diff --git a/.build-tools/component-folders.json b/.build-tools/component-folders.json index 07d69bb1f..2b92fe4eb 100644 --- a/.build-tools/component-folders.json +++ b/.build-tools/component-folders.json @@ -7,7 +7,8 @@ "nameresolution", "pubsub", "secretstores", - "state" + "state", + "workflows" ], "excludeFolders": [ "bindings/alicloud", diff --git a/.build-tools/pkg/metadataschema/schema.go b/.build-tools/pkg/metadataschema/schema.go index 68acd2782..74f728649 100644 --- a/.build-tools/pkg/metadataschema/schema.go +++ b/.build-tools/pkg/metadataschema/schema.go @@ -20,7 +20,7 @@ type ComponentMetadata struct { // Version of the component metadata schema. SchemaVersion string `json:"schemaVersion" jsonschema:"enum=v1"` // Component type, of one of the allowed values. - Type string `json:"type" jsonschema:"enum=bindings,enum=state,enum=secretstores,enum=pubsub,enum=configuration,enum=lock,enum=middleware"` + Type string `json:"type" jsonschema:"enum=bindings,enum=state,enum=secretstores,enum=pubsub,enum=workflows,enum=configuration,enum=lock,enum=middleware"` // Name of the component (without the inital type, e.g. "http" instead of "bindings.http"). Name string `json:"name"` // Version of the component, with the leading "v", e.g. "v1". diff --git a/go.mod b/go.mod index 0090480aa..597a46eac 100644 --- a/go.mod +++ b/go.mod @@ -104,6 +104,8 @@ require ( github.com/wapc/wapc-go v0.5.4 github.com/xdg-go/scram v1.1.1 go.mongodb.org/mongo-driver v1.10.3 + go.temporal.io/api v1.12.0 + go.temporal.io/sdk v1.17.0 go.uber.org/atomic v1.10.0 go.uber.org/ratelimit v0.2.0 golang.org/x/crypto v0.1.0 @@ -122,15 +124,6 @@ require ( k8s.io/utils v0.0.0-20221012122500-cfd413dd9e85 ) -require ( - github.com/facebookgo/clock v0.0.0-20150410010913-600d898af40a // indirect - github.com/gogo/googleapis v1.4.1 // indirect - github.com/gogo/status v1.1.1 // indirect - github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect - github.com/pborman/uuid v1.2.1 // indirect - github.com/robfig/cron v1.2.0 // indirect -) - require ( cloud.google.com/go v0.104.0 // indirect cloud.google.com/go/compute v1.10.0 // indirect @@ -198,6 +191,7 @@ require ( github.com/eapache/queue v1.1.0 // indirect github.com/emicklei/go-restful/v3 v3.8.0 // indirect github.com/emirpasic/gods v1.12.0 // indirect + github.com/facebookgo/clock v0.0.0-20150410010913-600d898af40a // indirect github.com/fatih/color v1.9.0 // indirect github.com/gavv/httpexpect v2.0.0+incompatible // indirect github.com/go-kit/kit v0.10.0 // indirect @@ -217,7 +211,9 @@ require ( github.com/gofrs/uuid v3.3.0+incompatible // indirect github.com/gogap/errors v0.0.0-20200228125012-531a6449b28c // indirect github.com/gogap/stack v0.0.0-20150131034635-fef68dddd4f8 // indirect + github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect + github.com/gogo/status v1.1.1 // indirect github.com/golang-jwt/jwt v3.2.2+incompatible // indirect github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe // indirect github.com/golang-sql/sqlexp v0.1.0 // indirect @@ -231,6 +227,7 @@ require ( github.com/google/gofuzz v1.1.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect github.com/gorilla/websocket v1.4.2 // indirect + github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect github.com/hashicorp/errwrap v1.1.0 // indirect @@ -290,6 +287,7 @@ require ( github.com/nats-io/nats-streaming-server v0.25.2 // indirect github.com/nats-io/nuid v1.0.1 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect + github.com/pborman/uuid v1.2.1 // indirect github.com/pelletier/go-toml v1.9.3 // indirect github.com/pierrec/lz4 v2.6.0+incompatible // indirect github.com/pierrec/lz4/v4 v4.1.17 // indirect @@ -302,6 +300,7 @@ require ( github.com/prometheus/procfs v0.8.0 // indirect github.com/prometheus/statsd_exporter v0.21.0 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect + github.com/robfig/cron v1.2.0 // indirect github.com/rs/zerolog v1.25.0 // indirect github.com/russross/blackfriday v1.6.0 // indirect github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b // indirect @@ -337,8 +336,6 @@ require ( github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect github.com/yuin/gopher-lua v0.0.0-20210529063254-f4c35e4016d9 // indirect go.opencensus.io v0.23.0 // indirect - go.temporal.io/api v1.12.0 - go.temporal.io/sdk v1.17.0 go.uber.org/multierr v1.7.0 // indirect go.uber.org/zap v1.21.0 // indirect golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0 // indirect