components-contrib/bindings
Alessandro (Ale) Segala f91eb8a10c
Update a number of dependencies (#3160)
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-10-03 22:44:30 +00:00
..
alicloud [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
apns [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
aws Add insecureskipverify warnings (#3090) 2023-08-18 16:23:51 +00:00
azure Update a number of dependencies (#3160) 2023-10-03 22:44:30 +00:00
cloudflare/queues [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
commercetools [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
cron [Sec] Update dapr/kit and remove deprecated clock dependency (#3055) 2023-08-07 23:13:59 +00:00
dubbo [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
gcp Fix GCP storage bucket binding authentication issue (#3127) 2023-09-14 08:42:50 -07:00
graphql [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
http HTTP Binding: add "maxResponseBodySize" metadata option (#3040) 2023-08-14 21:06:30 -07:00
huawei/obs [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
influx Make contrib compile with Go1.21 (#3145) 2023-09-20 22:04:11 +00:00
kafka Enhance Kafka pubsub OIDC auth support to support oauthbearer.extensions (#3124) 2023-09-12 18:09:56 +00:00
kitex [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
kubemq [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
kubernetes Kubernetes components: add "kubeconfigPath" metadata (#3060) 2023-08-10 17:27:02 -07:00
localstorage [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
mqtt3 [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
mysql [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
postgres Postgres components: Adds `queryExecMode` option (#3103) 2023-08-25 12:42:23 -07:00
postmark [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
rabbitmq Fixed a large number of errors in metadata.yaml (#3081) 2023-08-14 18:42:57 -07:00
redis [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
rethinkdb/statechange [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
rocketmq Propagate context from caller to appropriate places in the code (#2474) 2023-02-16 14:18:35 -08:00
smtp [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
twilio [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
wasm Fix wasm binding wasi http (#3077) 2023-09-18 09:07:53 -07:00
zeebe mark zeebe binding components as stable (#3119) 2023-09-08 14:15:11 -07:00
README.md middleware: changes wasm basic to use waPC (#1833) 2022-09-13 17:12:59 -07:00
bindings.go Components' init functions should return interfaces (#1997) 2022-08-25 18:27:45 -07:00
input_binding.go [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
metadata.go Define common metadata across components (#1994) 2022-08-25 10:10:53 -07:00
output_binding.go [Metadata] Update validator and some other fixes (#2984) 2023-07-17 22:17:22 +00:00
requests.go update license to Apache v2.0 (#1406) 2022-01-04 19:53:31 -08:00
responses.go Added ContentType to pubsub/binding/state request-response (#1376) 2022-01-28 10:17:04 -08:00

README.md

Bindings

Bindings provide a common way to trigger an application with events from external systems, or invoke an external system with optional data payloads. Bindings are great for event-driven, on-demand compute and help reduce boilerplate code.

To get started with bindings visit the How To Guide.

To view all the currently supported bindings visit: Dapr bindings.

For detailed binding specs visit Dapr binding specs.

Implementing a new binding

A compliant binding needs to implement at least one interface, depending on the type of binding (Input, Output, or both):

Input binding implement the InputBinding interface defined in input_binding.go

Output binding implement the OutputBinding interface defined in output_binding.go

An output binding can be used to invoke an external system and also to return data from it. Each output binding can decide which operations it supports. This information is communicated to the caller via the Operations() method.

When creating an Output Binding, a list of OperationKind items needs to be returned. For example, if running a component that takes in a SQL query and returns a result set, the OperationKind can be query.

While components are not restricted to a list of supported operations, it's best to use common ones if the operation kind falls under that operation definition. The list of common operations can be found in requests.go.

After implementing a binding, the specification docs need to be updated via a Pull Request: Dapr docs.