From 145fd9a940833c6e5b398994305d85847215d957 Mon Sep 17 00:00:00 2001
From: Alex Collins
Date: Thu, 18 Jun 2020 09:42:43 -0700
Subject: [PATCH] fix(types)!: Correct pkg and generate .proto files from them
(#701)
---
Makefile | 36 +-
api/event-bus.html | 6 +-
api/event-bus.md | 4 +-
api/event-source.html | 514 +-
api/event-source.md | 1391 +-
api/gateway.html | 8 +-
api/gateway.md | 30 +-
api/openapi-spec/swagger.json | 2025 +-
api/sensor.html | 148 +-
api/sensor.md | 306 +-
common/retry.go | 22 +-
controllers/eventbus/controller_test.go | 6 +-
controllers/eventbus/installer/nats.go | 14 +-
controllers/gateway/resource.go | 4 +-
controllers/sensor/controller.go | 9 +-
controllers/sensor/controller_test.go | 7 +-
controllers/sensor/node.go | 5 +-
controllers/sensor/node_test.go | 5 +-
controllers/sensor/operator.go | 7 +-
controllers/sensor/operator_test.go | 5 +-
controllers/sensor/resource.go | 2 +-
controllers/sensor/resource_test.go | 11 +-
controllers/sensor/validate.go | 11 +-
controllers/sensor/validate_test.go | 3 +-
gateways/client/event-source_test.go | 17 +-
gateways/server/calendar/start_test.go | 2 +-
gateways/server/common/webhook/fake.go | 3 +-
gateways/server/common/webhook/types.go | 25 +-
gateways/server/common/webhook/validate.go | 4 +-
gateways/server/common/webhook/webhook.go | 8 +-
gateways/server/github/start_test.go | 9 +-
gateways/server/redis/start.go | 2 +-
gateways/server/storagegrid/start_test.go | 9 +-
gateways/server/webhook/start.go | 8 +-
gateways/server/webhook/validate.go | 8 +-
go.mod | 6 +-
go.sum | 8 +
hack/auto-gen-msg.sh | 5 +
hack/crdgen.sh | 24 +
hack/crds.go | 33 +
hack/gen-openapi-spec/main.go | 29 +-
hack/generate-proto.sh | 32 +
hack/main.go | 14 +
hack/tools.go | 6 +
hack/update-codegen.sh | 5 +
hack/update-openapigen.sh | 7 +
...bus-crd.yaml => argoproj.io_eventbus.yaml} | 15 +-
...crd.yaml => argoproj.io_eventsources.yaml} | 13 +-
...way-crd.yaml => argoproj.io_gateways.yaml} | 11 +-
...nsor-crd.yaml => argoproj.io_sensors.yaml} | 11 +-
manifests/base/crds/kustomization.yaml | 8 +-
.../rbac/argo-events-aggregate-to-admin.yaml | 4 +-
.../rbac/argo-events-aggregate-to-edit.yaml | 4 +-
.../rbac/argo-events-aggregate-to-view.yaml | 4 +-
.../rbac/argo-events-cluster-role.yaml | 4 +-
manifests/install.yaml | 36 +-
manifests/namespace-install.yaml | 24 +-
.../rbac/argo-events-role.yaml | 4 +-
pkg/apis/common/amount.go | 35 +
pkg/apis/common/backoff.go | 21 +
pkg/apis/common/deepcopy_generated.go | 64 +
pkg/apis/common/generated.pb.go | 2238 +++
pkg/apis/common/generated.proto | 119 +
pkg/apis/common/openapi_generated.go | 914 +-
pkg/apis/common/resource.go | 32 +
pkg/apis/common/s3.go | 4 +-
pkg/apis/common/status_types.go | 10 +-
pkg/apis/eventbus/register.go | 4 +-
pkg/apis/eventbus/v1alpha1/generated.pb.go | 2359 +++
pkg/apis/eventbus/v1alpha1/generated.proto | 128 +
.../eventbus/v1alpha1/openapi_generated.go | 9 +-
pkg/apis/eventbus/v1alpha1/register.go | 14 +-
pkg/apis/eventbus/v1alpha1/types.go | 28 +-
.../v1alpha1/zz_generated.deepcopy.go | 4 +-
pkg/apis/events/event-data.go | 2 +-
.../apis/eventsource/v1alpha1}/config.go | 8 +-
.../apis/eventsource/v1alpha1}/config_test.go | 2 +-
pkg/apis/eventsource/v1alpha1/generated.pb.go | 15365 +++++++++++++++
pkg/apis/eventsource/v1alpha1/generated.proto | 763 +
.../eventsource/v1alpha1/openapi_generated.go | 223 +-
pkg/apis/eventsource/v1alpha1/types.go | 289 +-
pkg/apis/eventsource/v1alpha1/validate.go | 3 -
.../eventsource/v1alpha1/webhook_context.go | 18 +
.../v1alpha1/zz_generated.deepcopy.go | 78 +-
pkg/apis/gateway/v1alpha1/generated.pb.go | 4265 +++++
pkg/apis/gateway/v1alpha1/generated.proto | 235 +
.../gateway/v1alpha1/openapi_generated.go | 32 +-
pkg/apis/gateway/v1alpha1/types.go | 57 +-
pkg/apis/sensor/v1alpha1/generated.pb.go | 15413 ++++++++++++++++
pkg/apis/sensor/v1alpha1/generated.proto | 855 +
pkg/apis/sensor/v1alpha1/openapi_generated.go | 347 +-
pkg/apis/sensor/v1alpha1/register.go | 3 +-
pkg/apis/sensor/v1alpha1/types.go | 298 +-
.../sensor/v1alpha1/zz_generated.deepcopy.go | 67 +-
.../typed/eventbus/v1alpha1/eventbus.go | 56 +-
.../eventbus/v1alpha1/eventbus_client.go | 6 +-
.../eventbus/v1alpha1/fake/fake_eventbus.go | 48 +-
.../v1alpha1/fake/fake_eventbus_client.go | 4 +-
.../eventbus/v1alpha1/eventbus.go | 6 +-
.../eventbus/v1alpha1/interface.go | 8 +-
.../informers/externalversions/generic.go | 4 +-
.../listers/eventbus/v1alpha1/eventbus.go | 20 +-
sensors/context.go | 9 +-
sensors/dependencies/circuit.go | 5 +-
sensors/dependencies/circuit_test.go | 5 +-
sensors/dependencies/filter.go | 5 +-
sensors/dependencies/filter_test.go | 5 +-
sensors/dependencies/resolution.go | 3 +-
sensors/dependencies/resolution_test.go | 3 +-
sensors/event-notification_test.go | 19 +-
sensors/event-notifications.go | 5 +-
sensors/listener.go | 9 +-
sensors/listener_test.go | 5 +-
sensors/policy/resource-labels.go | 17 +-
sensors/policy/resource-labels_test.go | 23 +-
sensors/queue.go | 3 +-
sensors/queue_test.go | 13 +-
sensors/resource-update-notifications_test.go | 3 +-
sensors/sync.go | 2 +-
.../apache-openwhisk/apache-openwhisk.go | 9 +-
.../apache-openwhisk/apache-openwhisk_test.go | 9 +-
.../triggers/argo-workflow/argo-workflow.go | 7 +-
.../argo-workflow/argo-workflow_test.go | 17 +-
sensors/triggers/aws-lambda/aws-lambda.go | 11 +-
.../triggers/aws-lambda/aws-lambda_test.go | 7 +-
.../triggers/custom-trigger/custom-trigger.go | 7 +-
sensors/triggers/fetch.go | 7 +-
sensors/triggers/fetch_test.go | 9 +-
sensors/triggers/http/http.go | 13 +-
sensors/triggers/http/http_test.go | 9 +-
sensors/triggers/kafka/kafka.go | 9 +-
sensors/triggers/kafka/kafka_test.go | 5 +-
sensors/triggers/nats/nats.go | 5 +-
sensors/triggers/params.go | 7 +-
sensors/triggers/params_test.go | 9 +-
sensors/triggers/slack/slack.go | 7 +-
sensors/triggers/slack/slack_test.go | 5 +-
.../{starndard-k8s.go => standar-k8s.go} | 13 +-
...rndard-k8s_test.go => standar-k8s_test.go} | 19 +-
sensors/triggers/switches_test.go | 7 +-
store/configmap.go | 5 +-
store/configmap_test.go | 3 +-
store/creds.go | 5 +-
store/file.go | 3 +-
store/file_test.go | 3 +-
store/git.go | 3 +-
store/git_test.go | 3 +-
store/resource.go | 19 +-
store/resource_test.go | 8 +-
store/store.go | 9 +-
store/store_test.go | 17 +-
store/url.go | 3 +-
store/url_test.go | 6 +-
test/manifests/argo-events-ns.yaml | 4 +
test/manifests/kustomization.yaml | 8 +
155 files changed, 46182 insertions(+), 3681 deletions(-)
create mode 100755 hack/auto-gen-msg.sh
create mode 100755 hack/crdgen.sh
create mode 100644 hack/crds.go
create mode 100755 hack/generate-proto.sh
create mode 100644 hack/main.go
rename manifests/base/crds/{eventbus-crd.yaml => argoproj.io_eventbus.yaml} (53%)
rename manifests/base/crds/{eventsource-crd.yaml => argoproj.io_eventsources.yaml} (67%)
rename manifests/base/crds/{gateway-crd.yaml => argoproj.io_gateways.yaml} (65%)
rename manifests/base/crds/{sensor-crd.yaml => argoproj.io_sensors.yaml} (65%)
create mode 100644 pkg/apis/common/amount.go
create mode 100644 pkg/apis/common/backoff.go
create mode 100644 pkg/apis/common/generated.pb.go
create mode 100644 pkg/apis/common/generated.proto
create mode 100644 pkg/apis/common/resource.go
create mode 100644 pkg/apis/eventbus/v1alpha1/generated.pb.go
create mode 100644 pkg/apis/eventbus/v1alpha1/generated.proto
rename {gateways/server/common/fsevent => pkg/apis/eventsource/v1alpha1}/config.go (79%)
rename {gateways/server/common/fsevent => pkg/apis/eventsource/v1alpha1}/config_test.go (98%)
create mode 100644 pkg/apis/eventsource/v1alpha1/generated.pb.go
create mode 100644 pkg/apis/eventsource/v1alpha1/generated.proto
create mode 100644 pkg/apis/eventsource/v1alpha1/webhook_context.go
create mode 100644 pkg/apis/gateway/v1alpha1/generated.pb.go
create mode 100644 pkg/apis/gateway/v1alpha1/generated.proto
create mode 100644 pkg/apis/sensor/v1alpha1/generated.pb.go
create mode 100644 pkg/apis/sensor/v1alpha1/generated.proto
rename sensors/triggers/standard-k8s/{starndard-k8s.go => standar-k8s.go} (98%)
rename sensors/triggers/standard-k8s/{starndard-k8s_test.go => standar-k8s_test.go} (94%)
create mode 100644 test/manifests/argo-events-ns.yaml
create mode 100644 test/manifests/kustomization.yaml
diff --git a/Makefile b/Makefile
index b6c47f9d53..0168c81968 100644
--- a/Makefile
+++ b/Makefile
@@ -127,26 +127,38 @@ coverage:
clean:
-rm -rf ${CURRENT_DIR}/dist
+.PHONY: crds
+crds:
+ ./hack/crdgen.sh
+
+.PHONY: manifests
+manifests: crds
+ kustomize build manifests/cluster-install > manifests/install.yaml
+ kustomize build manifests/namespace-install > manifests/namespace-install.yaml
+
+.PHONY: swagger
+swagger:
+ go run ./hack/gen-openapi-spec/main.go ${VERSION} > ${CURRENT_DIR}/api/openapi-spec/swagger.json
+
.PHONY: codegen
codegen:
go mod vendor
+ ./hack/generate-proto.sh
./hack/update-codegen.sh
./hack/update-openapigen.sh
- go run ./hack/gen-openapi-spec/main.go ${VERSION} > ${CURRENT_DIR}/api/openapi-spec/swagger.json
+ $(MAKE) swagger
./hack/update-api-docs.sh
rm -rf ./vendor
go mod tidy
-
-.PHONY: e2e
-e2e:
- ./hack/e2e/run-e2e.sh
-
-.PHONY: kind-e2e
-kind-e2e:
- ./hack/e2e/kind-run-e2e.sh
-
-.PHONY: build-e2e-images
-build-e2e-images: sensor-controller-image gateway-controller-image gateway-client-image gateway-server-image
+ $(MAKE) manifests
+
+.PHONY: start
+start:
+ kustomize build --load_restrictor=none test/manifests > /tmp/argo-events.yaml
+ kubectl apply -f test/manifests/argo-events-ns.yaml
+ kubectl -n argo-events apply -l app.kubernetes.io/part-of=argo-events --prune --force -f /tmp/argo-events.yaml
+ kubectl -n argo-events wait --for=condition=Ready --timeout 60s pod --all
+ kubens argo-events
$(GOPATH)/bin/golangci-lint:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b `go env GOPATH`/bin v1.26.0
diff --git a/api/event-bus.html b/api/event-bus.html
index c3eb1b0e9d..7e9c4fa5b4 100644
--- a/api/event-bus.html
+++ b/api/event-bus.html
@@ -330,9 +330,9 @@ NativeStrategy
-size
+replicas
-int
+int32
|
@@ -423,7 +423,7 @@ PersistenceStrategy
|
-size
+volumeSize
k8s.io/apimachinery/pkg/api/resource.Quantity
diff --git a/api/event-bus.md b/api/event-bus.md
index c46b8f50f8..cfec0f7ca0 100644
--- a/api/event-bus.md
+++ b/api/event-bus.md
@@ -694,7 +694,7 @@ Description
|
-size int
+replicas int32
|
@@ -860,7 +860,7 @@ Available access modes such as ReadWriteOnce, ReadWriteMany
-size
+volumeSize
k8s.io/apimachinery/pkg/api/resource.Quantity
|
diff --git a/api/event-source.html b/api/event-source.html
index 911d86e168..1f093a6094 100644
--- a/api/event-source.html
+++ b/api/event-source.html
@@ -76,7 +76,7 @@ AMQPEventSource
connectionBackoff
-github.com/argoproj/argo-events/common.Backoff
+github.com/argoproj/argo-events/pkg/apis/common.Backoff
|
@@ -242,7 +242,6 @@ CalendarEventSource
|
- ExclusionDates defines the list of DATE-TIME exceptions for recurring events.
|
@@ -366,7 +365,7 @@
@@ -531,7 +827,9 @@ EventSourceSpec
webhook
-map[string]github.com/argoproj/argo-events/gateways/server/common/webhook.Context
+
+map[string]github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext
+
|
@@ -772,17 +1070,6 @@ EventSourceSpec
Generic event source
|
-
-
-type
-
-github.com/argoproj/argo-events/pkg/apis/common.EventSourceType
-
- |
-
- Type of the event source
- |
-
EventSourceStatus
@@ -849,7 +1136,9 @@ FileEventSource
watchPathConfig
-github.com/argoproj/argo-events/gateways/server/common/fsevent.WatchPathConfig
+
+WatchPathConfig
+
|
@@ -931,7 +1220,9 @@ GithubEventSource
webhook
-github.com/argoproj/argo-events/gateways/server/common/webhook.Context
+
+WebhookContext
+
|
@@ -968,7 +1259,6 @@ GithubEventSource
|
- Events refer to Github events to subscribe to which the gateway will subscribe
|
@@ -1105,7 +1395,9 @@ GitlabEventSource
webhook
-github.com/argoproj/argo-events/gateways/server/common/webhook.Context
+
+WebhookContext
+
|
@@ -1206,7 +1498,9 @@ HDFSEventSource
WatchPathConfig
-github.com/argoproj/argo-events/gateways/server/common/fsevent.WatchPathConfig
+
+WatchPathConfig
+
|
@@ -1245,7 +1539,6 @@ HDFSEventSource
|
- Addresses is accessible addresses of HDFS name nodes
|
|
@@ -1406,7 +1699,7 @@ KafkaEventSource
connectionBackoff
-github.com/argoproj/argo-events/common.Backoff
+github.com/argoproj/argo-events/pkg/apis/common.Backoff
|
@@ -1483,7 +1776,7 @@ MQTTEventSource
connectionBackoff
-github.com/argoproj/argo-events/common.Backoff
+github.com/argoproj/argo-events/pkg/apis/common.Backoff
|
@@ -1562,7 +1855,7 @@ NATSEventsSource
connectionBackoff
-github.com/argoproj/argo-events/common.Backoff
+github.com/argoproj/argo-events/pkg/apis/common.Backoff
|
@@ -1653,7 +1946,7 @@ NSQEventSource
connectionBackoff
-github.com/argoproj/argo-events/common.Backoff
+github.com/argoproj/argo-events/pkg/apis/common.Backoff
|
@@ -1762,7 +2055,7 @@ PubSubEventSource
(Optional)
EnableWorkflowIdentity determines if your project authenticates to GCP with WorkflowIdentity or CredentialsFile.
-If true, authentication is done with WorkflowIdentity. If false or omited, authentication is done with CredentialsFile.
+If true, authentication is done with WorkflowIdentity. If false or omitted, authentication is done with CredentialsFile.
|
| | | |
@@ -1851,7 +2144,7 @@ RedisEventSource
db
-int
+int32
|
@@ -1867,7 +2160,6 @@ RedisEventSource
|
- Channels to subscribe to listen events.
|
@@ -2078,7 +2370,9 @@ SNSEventSource
webhook
-github.com/argoproj/argo-events/gateways/server/common/webhook.Context
+
+WebhookContext
+
|
@@ -2389,7 +2683,9 @@ SlackEventSource
webhook
-github.com/argoproj/argo-events/gateways/server/common/webhook.Context
+
+WebhookContext
+
|
@@ -2431,7 +2727,9 @@ StorageGridEventSource
webhook
-github.com/argoproj/argo-events/gateways/server/common/webhook.Context
+
+WebhookContext
+
|
@@ -2446,9 +2744,6 @@ StorageGridEventSource
|
- Events are s3 bucket notification events.
-For more information on s3 notifications, follow https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations
-Note that storage grid notifications do not contain s3:
|
| |
@@ -2586,7 +2881,9 @@ StripeEventSource
webhook
-github.com/argoproj/argo-events/gateways/server/common/webhook.Context
+
+WebhookContext
+
|
@@ -2639,9 +2936,6 @@ StripeEventSource
|
-(Optional)
- EventFilter describes the type of events to listen to. If not specified, all types of events will be processed.
-More info at https://stripe.com/docs/api/events/list
|
@@ -2704,6 +2998,150 @@ TLSConfig
+WatchPathConfig
+
+
+(Appears on:
+FileEventSource,
+HDFSEventSource)
+
+
+
+
+
+
+Field |
+Description |
+
+
+
+
+
+directory
+
+string
+
+ |
+
+ Directory to watch for events
+ |
+
+
+
+path
+
+string
+
+ |
+
+ Path is relative path of object to watch with respect to the directory
+ |
+
+
+
+pathRegexp
+
+string
+
+ |
+
+ PathRegexp is regexp of relative path of object to watch with respect to the directory
+ |
+
+
+
+WebhookContext
+
+
+(Appears on:
+EventSourceSpec,
+GithubEventSource,
+GitlabEventSource,
+SNSEventSource,
+SlackEventSource,
+StorageGridEventSource,
+StripeEventSource)
+
+
+ WebhookContext holds a general purpose REST API context
+
+
+
+
+Field |
+Description |
+
+
+
+
+
+endpoint
+
+string
+
+ |
+
+ REST API endpoint
+ |
+
+
+
+method
+
+string
+
+ |
+
+ Method is HTTP request method that indicates the desired action to be performed for a given resource.
+See RFC7231 Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
+ |
+
+
+
+port
+
+string
+
+ |
+
+ Port on which HTTP server is listening for incoming events.
+ |
+
+
+
+url
+
+string
+
+ |
+
+ URL is the url of the server.
+ |
+
+
+
+serverCertPath
+
+string
+
+ |
+
+ ServerCertPath refers the file that contains the cert.
+ |
+
+
+
+serverKeyPath
+
+string
+
+ |
+
+ ServerKeyPath refers the file that contains private key
+ |
+
+
+
Generated with gen-crd-api-reference-docs .
diff --git a/api/event-source.md b/api/event-source.md
index 21c273441e..c22328c19e 100644
--- a/api/event-source.md
+++ b/api/event-source.md
@@ -169,7 +169,7 @@ Routing key for bindings
connectionBackoff
-github.com/argoproj/argo-events/common.Backoff
+github.com/argoproj/argo-events/pkg/apis/common.Backoff
|
@@ -500,13 +500,6 @@ Interval is a string that describes an interval duration, e.g. 1s, 30m,
-
-
-ExclusionDates defines the list of DATE-TIME exceptions for recurring
-events.
-
-
-
|
@@ -744,7 +737,7 @@ Password to use to connect to broker
connectionBackoff
-github.com/argoproj/argo-events/common.Backoff
+github.com/argoproj/argo-events/pkg/apis/common.Backoff
|
@@ -903,63 +896,6 @@ Refer to the Kubernetes API documentation for the fields of the
-
- |
-
-
-
-
-
-
-
-
-
-EventSourceSpec
-
-
-
-
-
-(Appears on:
-EventSource)
-
-
-
-
-
-
-
-EventSourceSpec refers to specification of event-source resource
-
-
-
-
-
-
-EventSourceStatus holds the status of the event-source resource
+EventSourceSpec refers to specification of event-source resource
@@ -1563,74 +1485,78 @@ Description
+
+GenericEventSource refers to a generic event source. It can be used to
+implement a custom event source.
+
+
+
+
+
+
+
+Filter represents filters to apply to bucket notifications for
+specifying constraints on objects
+
+
+
+
+
+
-Filter represents filters to apply to bucket notifications for
-specifying constraints on objects
+TLSConfig refers to TLS configuration for a client.
@@ -5019,12 +5736,18 @@ Description
-
+
-(Appears on:
-AMQPEventSource,
-EmitterEventSource,
-KafkaEventSource,
-MQTTEventSource,
-NATSEventsSource,
-NSQEventSource,
-RedisEventSource)
+method string
-
+ |
-
+
-TLSConfig refers to TLS configuration for a client.
-
-
+Method is HTTP request method that indicates the desired action to be
+performed for a given resource. See RFC7231 Hypertext Transfer Protocol
+(HTTP/1.1): Semantics and Content
-
+
-
+
-
+ |
-Field
+port string
-
+ |
-
+ |
-Description
+
-
+Port on which HTTP server is listening for incoming events.
- |
+
-
+
-
+
-caCertPath string
+url string
|
@@ -5281,7 +6030,7 @@ Description
-CACertPath refers the file path that contains the CA cert.
+URL is the url of the server.
@@ -5293,7 +6042,7 @@ CACertPath refers the file path that contains the CA cert.
-clientCertPath string
+serverCertPath string
|
@@ -5301,7 +6050,7 @@ CACertPath refers the file path that contains the CA cert.
-ClientCertPath refers the file path that contains client cert.
+ServerCertPath refers the file that contains the cert.
@@ -5313,7 +6062,7 @@ ClientCertPath refers the file path that contains client cert.
-clientKeyPath string
+serverKeyPath string
|
@@ -5321,7 +6070,7 @@ ClientCertPath refers the file path that contains client cert.
-ClientKeyPath refers the file path that contains client key.
+ServerKeyPath refers the file that contains private key
diff --git a/api/gateway.html b/api/gateway.html
index 185cb7d324..8a86947e5a 100644
--- a/api/gateway.html
+++ b/api/gateway.html
@@ -168,7 +168,6 @@ Gateway
(Optional)
- Subscribers holds the contexts of the subscribers/sinks to send events to.
|
@@ -186,7 +185,7 @@ Gateway
replica
-int
+int32
|
@@ -324,7 +323,6 @@ GatewaySpec
|
(Optional)
- Subscribers holds the contexts of the subscribers/sinks to send events to.
|
@@ -342,7 +340,7 @@ GatewaySpec
replica
-int
+int32
|
@@ -732,7 +730,6 @@ Subscribers
|
(Optional)
- HTTP subscribers are HTTP endpoints to send events to.
|
@@ -746,7 +743,6 @@ Subscribers
(Optional)
- NATS refers to the subscribers over NATS protocol.
|
diff --git a/api/gateway.md b/api/gateway.md
index 6eed94d7dd..09f9fbd63b 100644
--- a/api/gateway.md
+++ b/api/gateway.md
@@ -323,13 +323,6 @@ Service is the specifications of the service to expose the gateway
(Optional)
-
-
-Subscribers holds the contexts of the subscribers/sinks to send events
-to.
-
-
-
@@ -358,7 +351,7 @@ Port on which the gateway event source processor is running on.
-replica int
+replica int32
|
@@ -631,13 +624,6 @@ Service is the specifications of the service to expose the gateway
(Optional)
-
-
-Subscribers holds the contexts of the subscribers/sinks to send events
-to.
-
-
-
@@ -666,7 +652,7 @@ Port on which the gateway event source processor is running on.
-replica int
+replica int32
|
@@ -1444,12 +1430,6 @@ Description
(Optional)
-
-
-HTTP subscribers are HTTP endpoints to send events to.
-
-
-
@@ -1468,12 +1448,6 @@ HTTP subscribers are HTTP endpoints to send events to.
(Optional)
-
-
-NATS refers to the subscribers over NATS protocol.
-
-
-
diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json
index f40cd62606..af53d45278 100644
--- a/api/openapi-spec/swagger.json
+++ b/api/openapi-spec/swagger.json
@@ -1,1010 +1,1494 @@
{
"swagger": "2.0",
"info": {
- "title": "Argo",
+ "title": "Argo Events",
"version": "v0.16.0"
},
"paths": {},
"definitions": {
- "io.argoproj.common.AMQPEventData": {
- "description": "AMQPEventData represents the event data generated by AMQP gateway.",
- "type": "object",
- "required": [
- "contentType",
- "contentEncoding",
- "deliveryMode",
- "priority",
- "correlationId",
- "replyTo",
- "expiration",
- "messageId",
- "timestamp",
- "type",
- "appId",
- "exchange",
- "routingKey",
- "body"
+ "io.argoproj.common.Amount": {
+ "description": "Amount represent a numeric amount.",
+ "type": "number"
+ },
+ "io.argoproj.common.Backoff": {
+ "description": "Backoff for an operation",
+ "type": "object",
+ "required": [
+ "duration",
+ "factor"
],
"properties": {
- "appId": {
- "description": "AppId refers to the application id",
- "type": "string"
- },
- "body": {
- "description": "Body represents the messsage body",
- "type": "string",
- "format": "byte"
- },
- "contentEncoding": {
- "description": "ContentEncoding is the MIME content encoding",
- "type": "string"
- },
- "contentType": {
- "description": "ContentType is the MIME content type",
- "type": "string"
- },
- "correlationId": {
- "description": "CorrelationId is the correlation identifier",
- "type": "string"
- },
- "deliveryMode": {
- "description": "Delivery mode can be either - non-persistent (1) or persistent (2)",
+ "duration": {
+ "description": "Duration is the duration in nanoseconds",
"type": "integer",
- "format": "int32"
- },
- "exchange": {
- "description": "Exchange is basic.publish exchange",
- "type": "string"
+ "format": "int64"
},
- "expiration": {
- "description": "Expiration refers to message expiration spec",
- "type": "string"
+ "factor": {
+ "description": "Duration is multiplied by factor each iteration",
+ "$ref": "#/definitions/io.argoproj.common.Amount"
},
- "messageId": {
- "description": "MessageId is message identifier",
- "type": "string"
+ "jitter": {
+ "description": "The amount of jitter applied each iteration",
+ "$ref": "#/definitions/io.argoproj.common.Amount"
},
- "priority": {
- "description": "Priority refers to the use - 0 to 9",
+ "steps": {
+ "description": "Exit with error after this many steps",
"type": "integer",
"format": "int32"
+ }
+ }
+ },
+ "io.argoproj.common.Condition": {
+ "description": "Condition contains details about resource state",
+ "type": "object",
+ "required": [
+ "type",
+ "status"
+ ],
+ "properties": {
+ "lastTransitionTime": {
+ "description": "Last time the condition transitioned from one status to another.",
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
},
- "replyTo": {
- "description": "ReplyTo is the address to reply to (ex: RPC)",
+ "message": {
+ "description": "Human-readable message indicating details about last transition.",
"type": "string"
},
- "routingKey": {
- "description": "RoutingKey is basic.publish routing key",
+ "reason": {
+ "description": "Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. For example, \"ImageNotFound\"",
"type": "string"
},
- "timestamp": {
- "description": "Timestamp refers to the message timestamp",
+ "status": {
+ "description": "Condition status, True, False or Unknown.",
"type": "string"
},
"type": {
- "description": "Type refers to the message type name",
+ "description": "Condition type.",
"type": "string"
}
}
},
- "io.argoproj.common.AzureEventsHubEventData": {
- "description": "AzureEventsHubEventData represents to the event data generated by Azure Events Hub gateway.",
+ "io.argoproj.common.Resource": {
+ "description": "Resource represent arbitrary structured data.",
+ "type": "object"
+ },
+ "io.argoproj.common.S3Artifact": {
+ "description": "S3Artifact contains information about an S3 connection and bucket",
"type": "object",
"required": [
- "id",
- "partitionKey",
- "body"
+ "endpoint",
+ "bucket",
+ "accessKey",
+ "secretKey"
],
"properties": {
- "body": {
- "description": "Message body",
- "type": "string",
- "format": "byte"
+ "accessKey": {
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
},
- "id": {
- "description": "Id of the message",
+ "bucket": {
+ "$ref": "#/definitions/io.argoproj.common.S3Bucket"
+ },
+ "endpoint": {
"type": "string"
},
- "partitionKey": {
- "description": "PartitionKey",
+ "events": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "filter": {
+ "$ref": "#/definitions/io.argoproj.common.S3Filter"
+ },
+ "insecure": {
+ "type": "boolean"
+ },
+ "region": {
"type": "string"
+ },
+ "secretKey": {
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
}
}
},
- "io.argoproj.common.CalendarEventData": {
- "description": "CalendarEventData represents the event data generated by the Calendar gateway.",
+ "io.argoproj.common.S3Bucket": {
+ "description": "S3Bucket contains information to describe an S3 Bucket",
"type": "object",
"required": [
- "eventTime"
+ "name"
],
"properties": {
- "eventTime": {
- "description": "EventTime is time at which event occurred",
+ "key": {
"type": "string"
},
- "userPayload": {
- "description": "UserPayload if any",
- "type": "string",
- "format": "byte"
+ "name": {
+ "type": "string"
}
}
},
- "io.argoproj.common.EmitterEventData": {
- "description": "EmitterEventData represents the event data generated by the Emitter gateway.",
+ "io.argoproj.common.S3Filter": {
+ "description": "S3Filter represents filters to apply to bucket nofifications for specifying constraints on objects",
"type": "object",
"required": [
- "topic",
- "body"
+ "prefix",
+ "suffix"
],
"properties": {
- "body": {
- "description": "Body represents the message body",
- "type": "string",
- "format": "byte"
+ "prefix": {
+ "type": "string"
},
- "topic": {
- "description": "Topic name",
+ "suffix": {
"type": "string"
}
}
},
- "io.argoproj.common.Event": {
- "description": "Event is a data and its context. Adheres to the CloudEvents v0.3 specification",
+ "io.argoproj.common.Status": {
+ "description": "Status is a common structure which can be used for Status field.",
"type": "object",
- "required": [
- "context",
- "data"
- ],
"properties": {
- "context": {
- "$ref": "#/definitions/io.argoproj.common.EventContext"
- },
- "data": {
- "type": "string",
- "format": "byte",
- "x-kubernetes-list-type": "bytes"
+ "conditions": {
+ "description": "Conditions are the latest available observations of a resource's current state.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/io.argoproj.common.Condition"
+ },
+ "x-kubernetes-patch-merge-key": "type",
+ "x-kubernetes-patch-strategy": "merge"
+ }
+ }
+ },
+ "io.argoproj.eventbus.v1alpha1.BusConfig": {
+ "description": "BusConfig has the finalized configuration for EventBus",
+ "type": "object",
+ "properties": {
+ "nats": {
+ "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.NATSConfig"
}
}
},
- "io.argoproj.common.EventContext": {
- "description": "EventContext contains metadata that provides circumstantial information about the occurrence.",
+ "io.argoproj.eventbus.v1alpha1.EventBus": {
+ "description": "EventBus is the definition of a eventbus resource",
"type": "object",
"required": [
- "type",
- "specVersion",
- "source",
- "id",
- "time",
- "dataContentType",
- "subject"
+ "metadata",
+ "spec",
+ "status"
],
"properties": {
- "dataContentType": {
- "description": "Content type of the data attribute value. Enables the data attribute to carry any type of content, whereby format and encoding might differ from that of the chosen event format. For example, the data attribute may carry an XML or JSON payload and the consumer is informed by this attribute being set to \"application/xml\" or \"application/json\" respectively.",
- "type": "string"
- },
- "id": {
- "description": "ID of the event. The semantics are explicitly undefined to ease the implementation of producers.",
- "type": "string"
- },
- "source": {
- "description": "This describes the event producer.",
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
- "specVersion": {
- "description": "The version of the CloudEvents specification which the event uses. Enables the interpretation of the context.",
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
- "subject": {
- "description": "Subject of the event",
- "type": "string"
+ "metadata": {
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
},
- "time": {
- "description": "Time when the event happened. Must adhere to format specified in RFC 3339.",
- "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime"
+ "spec": {
+ "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.EventBusSpec"
},
- "type": {
- "description": "The type of occurrence which has happened. Often this attribute is used for routing, observability, policy enforcement, etc. should be prefixed with a reverse-DNS name. The prefixed domain dictates the organization which defines the semantics of this event type. ex: com.github.pull.create",
- "type": "string"
+ "status": {
+ "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.EventBusStatus"
}
}
},
- "io.argoproj.common.EventProtocol": {
- "description": "Dispatch protocol contains configuration necessary to dispatch an event to sensor over different communication protocols",
+ "io.argoproj.eventbus.v1alpha1.EventBusList": {
+ "description": "EventBusList is the list of eventbus resources",
"type": "object",
"required": [
- "type",
- "http",
- "nats"
+ "metadata",
+ "items"
],
"properties": {
- "http": {
- "$ref": "#/definitions/io.argoproj.common.Http"
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
},
- "nats": {
- "$ref": "#/definitions/io.argoproj.common.Nats"
+ "items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.EventBus"
+ }
},
- "type": {
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
+ },
+ "metadata": {
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
}
}
},
- "io.argoproj.common.GitLabEventData": {
- "description": "GitLabEventData represents the event data generated by the GitLab gateway.",
+ "io.argoproj.eventbus.v1alpha1.EventBusSpec": {
+ "description": "EventBusSpec refers to specification of eventbus resource",
"type": "object",
- "required": [
- "body"
- ],
"properties": {
- "body": {
- "description": "Body represents the message body",
- "type": "string",
- "format": "byte"
+ "nats": {
+ "description": "NATS eventbus",
+ "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.NATSBus"
}
}
},
- "io.argoproj.common.GithubEventData": {
- "description": "GithubEventData represents the event data generated by the GitHub gateway.",
+ "io.argoproj.eventbus.v1alpha1.EventBusStatus": {
+ "description": "EventBusStatus holds the status of the eventbus resource",
"type": "object",
- "required": [
- "body"
- ],
"properties": {
- "body": {
- "description": "Body represents the message body",
- "type": "string",
- "format": "byte"
+ "config": {
+ "description": "Config holds the fininalized configuration of EventBus",
+ "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.BusConfig"
+ },
+ "status": {
+ "$ref": "#/definitions/io.argoproj.common.Status"
}
}
},
- "io.argoproj.common.Http": {
- "description": "Http contains the information required to setup a http server and listen to incoming events",
+ "io.argoproj.eventbus.v1alpha1.NATSBus": {
+ "description": "NATSBus holds the NATS eventbus information",
"type": "object",
- "required": [
- "port"
- ],
"properties": {
- "annotations": {
- "description": "Annotations to be set for the service generated",
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- "labels": {
- "description": "Labels to be set for the service generated",
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "exotic": {
+ "description": "Exotic holds an exotic NATS config",
+ "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.NATSConfig"
},
- "port": {
- "description": "Port on which server will run",
- "type": "string"
+ "native": {
+ "description": "Native means to bring up a native NATS service",
+ "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.NativeStrategy"
}
}
},
- "io.argoproj.common.KafkaEventData": {
- "description": "KafkaEventData represents the event data generated by the Kafka gateway.",
+ "io.argoproj.eventbus.v1alpha1.NATSConfig": {
+ "description": "NATSConfig holds the config of NATS",
"type": "object",
- "required": [
- "topic",
- "partition",
- "value",
- "timestamp"
- ],
"properties": {
- "partition": {
- "description": "Partition refers to the Kafka partition",
- "type": "integer",
- "format": "int32"
+ "accessSecret": {
+ "description": "Secret for auth",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
},
- "timestamp": {
- "description": "Timestamp of the message",
+ "auth": {
+ "description": "Auth strategy, default to AuthStrategyNone",
"type": "string"
},
- "topic": {
- "description": "Topic refers to the Kafka topic",
+ "clusterID": {
+ "description": "Cluster ID for nats streaming, if it's missing, treat it as NATS server",
"type": "string"
},
- "value": {
- "description": "Body refers to the message value",
- "type": "string",
- "format": "byte"
+ "url": {
+ "description": "NATS host url",
+ "type": "string"
}
}
},
- "io.argoproj.common.MQTTEventData": {
- "description": "MQTTEventData represents the event data generated by the MQTT gateway.",
+ "io.argoproj.eventbus.v1alpha1.NativeStrategy": {
+ "description": "NativeStrategy indicates to install a native NATS service",
"type": "object",
- "required": [
- "topic",
- "messageId",
- "payload"
- ],
"properties": {
- "messageId": {
- "description": "MessageId is the unique ID for the message",
+ "antiAffinity": {
+ "type": "boolean"
+ },
+ "auth": {
+ "type": "string"
+ },
+ "persistence": {
+ "$ref": "#/definitions/io.argoproj.eventbus.v1alpha1.PersistenceStrategy"
+ },
+ "replicas": {
+ "description": "Size is the NATS StatefulSet size",
"type": "integer",
"format": "int32"
+ }
+ }
+ },
+ "io.argoproj.eventbus.v1alpha1.PersistenceStrategy": {
+ "description": "PersistenceStrategy defines the strategy of persistence",
+ "type": "object",
+ "properties": {
+ "accessMode": {
+ "description": "Available access modes such as ReadWriteOnce, ReadWriteMany https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes",
+ "type": "string"
},
- "payload": {
- "description": "Payload is the message payload.",
- "type": "string",
- "format": "byte"
- },
- "topic": {
- "description": "Topic refers to the MQTT topic name.",
+ "storageClassName": {
+ "description": "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1",
"type": "string"
+ },
+ "volumeSize": {
+ "description": "Volume size, e.g. 10Gi",
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"
}
}
},
- "io.argoproj.common.MinioEventData": {
- "description": "MinioEventData represents the event data generated by the Minio gateway.",
+ "io.argoproj.eventsource.v1alpha1.AMQPEventSource": {
+ "description": "AMQPEventSource refers to an event-source for AMQP stream events",
"type": "object",
"required": [
- "notification"
+ "url",
+ "exchangeName",
+ "exchangeType",
+ "routingKey"
],
"properties": {
- "notification": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/com.github.minio.minio-go.NotificationEvent"
- }
+ "connectionBackoff": {
+ "description": "Backoff holds parameters applied to connection.",
+ "$ref": "#/definitions/io.argoproj.common.Backoff"
+ },
+ "exchangeName": {
+ "description": "ExchangeName is the exchange name For more information, visit https://www.rabbitmq.com/tutorials/amqp-concepts.html",
+ "type": "string"
+ },
+ "exchangeType": {
+ "description": "ExchangeType is rabbitmq exchange type",
+ "type": "string"
+ },
+ "jsonBody": {
+ "description": "JSONBody specifies that all event body payload coming from this source will be JSON",
+ "type": "boolean"
+ },
+ "routingKey": {
+ "description": "Routing key for bindings",
+ "type": "string"
+ },
+ "tls": {
+ "description": "TLS configuration for the amqp client.",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.TLSConfig"
+ },
+ "url": {
+ "description": "URL for rabbitmq service",
+ "type": "string"
}
}
},
- "io.argoproj.common.NATSEventData": {
- "description": "NATSEventData represents the event data generated by the NATS gateway.",
+ "io.argoproj.eventsource.v1alpha1.AzureEventsHubEventSource": {
+ "description": "AzureEventsHubEventSource describes the event source for azure events hub More info at https://docs.microsoft.com/en-us/azure/event-hubs/",
"type": "object",
"required": [
- "subject",
- "data"
+ "fqdn",
+ "hubName"
],
"properties": {
- "data": {
- "description": "Message data.",
- "type": "string",
- "format": "byte"
+ "fqdn": {
+ "description": "FQDN of the EventHubs namespace you created More info at https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-get-connection-string",
+ "type": "string"
},
- "subject": {
- "description": "Name of the subject.",
+ "hubName": {
+ "description": "Event Hub path/name",
+ "type": "string"
+ },
+ "namespace": {
+ "description": "Namespace refers to Kubernetes namespace which is used to retrieve the shared access key and name from.",
"type": "string"
+ },
+ "sharedAccessKey": {
+ "description": "SharedAccessKey is the the generated value of the key",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ },
+ "sharedAccessKeyName": {
+ "description": "SharedAccessKeyName is the name you chose for your application's SAS keys",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
}
}
},
- "io.argoproj.common.NSQEventData": {
- "description": "NSQEventData represents the event data generated by the NSQ gateway.",
+ "io.argoproj.eventsource.v1alpha1.CalendarEventSource": {
+ "description": "CalendarEventSource describes a time based dependency. One of the fields (schedule, interval, or recurrence) must be passed. Schedule takes precedence over interval; interval takes precedence over recurrence",
"type": "object",
"required": [
- "Body",
- "Timestamp",
- "NSQDAddress"
+ "schedule",
+ "interval"
],
"properties": {
- "Body": {
- "description": "Body is the message data.",
+ "exclusionDates": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "interval": {
+ "description": "Interval is a string that describes an interval duration, e.g. 1s, 30m, 2h...",
+ "type": "string"
+ },
+ "schedule": {
+ "description": "Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron",
+ "type": "string"
+ },
+ "timezone": {
+ "description": "Timezone in which to run the schedule",
+ "type": "string"
+ },
+ "userPayload": {
+ "description": "UserPayload will be sent to sensor as extra data once the event is triggered",
"type": "string",
"format": "byte"
+ }
+ }
+ },
+ "io.argoproj.eventsource.v1alpha1.EmitterEventSource": {
+ "description": "EmitterEventSource describes the event source for emitter More info at https://emitter.io/develop/getting-started/",
+ "type": "object",
+ "required": [
+ "broker",
+ "channelKey",
+ "channelName"
+ ],
+ "properties": {
+ "broker": {
+ "description": "Broker URI to connect to.",
+ "type": "string"
+ },
+ "channelKey": {
+ "description": "ChannelKey refers to the channel key",
+ "type": "string"
+ },
+ "channelName": {
+ "description": "ChannelName refers to the channel name",
+ "type": "string"
+ },
+ "connectionBackoff": {
+ "description": "Backoff holds parameters applied to connection.",
+ "$ref": "#/definitions/io.argoproj.common.Backoff"
+ },
+ "jsonBody": {
+ "description": "JSONBody specifies that all event body payload coming from this source will be JSON",
+ "type": "boolean"
+ },
+ "namespace": {
+ "description": "Namespace to use to retrieve the channel key and optional username/password",
+ "type": "string"
+ },
+ "password": {
+ "description": "Password to use to connect to broker",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ },
+ "tls": {
+ "description": "TLS configuration for the emitter client.",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.TLSConfig"
+ },
+ "username": {
+ "description": "Username to use to connect to broker",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ }
+ }
+ },
+ "io.argoproj.eventsource.v1alpha1.EventSource": {
+ "description": "EventSource is the definition of a eventsource resource",
+ "type": "object",
+ "required": [
+ "metadata",
+ "status",
+ "spec"
+ ],
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ },
+ "spec": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.EventSourceSpec"
+ },
+ "status": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.EventSourceStatus"
+ }
+ }
+ },
+ "io.argoproj.eventsource.v1alpha1.EventSourceList": {
+ "description": "EventSourceList is the list of eventsource resources",
+ "type": "object",
+ "required": [
+ "metadata",
+ "items"
+ ],
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.EventSource"
+ }
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ }
+ },
+ "io.argoproj.eventsource.v1alpha1.EventSourceSpec": {
+ "description": "EventSourceSpec refers to specification of event-source resource",
+ "type": "object",
+ "properties": {
+ "amqp": {
+ "description": "AMQP event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.AMQPEventSource"
+ }
+ },
+ "azureEventsHub": {
+ "description": "AzureEventsHub event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.AzureEventsHubEventSource"
+ }
+ },
+ "calendar": {
+ "description": "Calendar event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.CalendarEventSource"
+ }
+ },
+ "emitter": {
+ "description": "Emitter event source",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.EmitterEventSource"
+ }
+ },
+ "file": {
+ "description": "File event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.FileEventSource"
+ }
+ },
+ "generic": {
+ "description": "Generic event source",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.GenericEventSource"
+ }
+ },
+ "github": {
+ "description": "Github event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.GithubEventSource"
+ }
+ },
+ "gitlab": {
+ "description": "Gitlab event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.GitlabEventSource"
+ }
+ },
+ "hdfs": {
+ "description": "HDFS event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.HDFSEventSource"
+ }
+ },
+ "kafka": {
+ "description": "Kafka event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.KafkaEventSource"
+ }
+ },
+ "minio": {
+ "description": "Minio event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.common.S3Artifact"
+ }
+ },
+ "mqtt": {
+ "description": "MQTT event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.MQTTEventSource"
+ }
+ },
+ "nats": {
+ "description": "NATS event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.NATSEventsSource"
+ }
+ },
+ "nsq": {
+ "description": "NSQ event source",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.NSQEventSource"
+ }
+ },
+ "pubSub": {
+ "description": "PubSub eevnt sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.PubSubEventSource"
+ }
+ },
+ "redis": {
+ "description": "Redis event source",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.RedisEventSource"
+ }
+ },
+ "resource": {
+ "description": "Resource event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.ResourceEventSource"
+ }
+ },
+ "slack": {
+ "description": "Slack event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.SlackEventSource"
+ }
+ },
+ "sns": {
+ "description": "SNS event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.SNSEventSource"
+ }
+ },
+ "sqs": {
+ "description": "SQS event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.SQSEventSource"
+ }
+ },
+ "storageGrid": {
+ "description": "StorageGrid event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.StorageGridEventSource"
+ }
+ },
+ "stripe": {
+ "description": "Stripe event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.StripeEventSource"
+ }
+ },
+ "webhook": {
+ "description": "Webhook event sources",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext"
+ }
+ }
+ }
+ },
+ "io.argoproj.eventsource.v1alpha1.EventSourceStatus": {
+ "description": "EventSourceStatus holds the status of the event-source resource",
+ "type": "object",
+ "properties": {
+ "createdAt": {
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
+ }
+ }
+ },
+ "io.argoproj.eventsource.v1alpha1.FileEventSource": {
+ "description": "FileEventSource describes an event-source for file related events.",
+ "type": "object",
+ "required": [
+ "eventType",
+ "watchPathConfig"
+ ],
+ "properties": {
+ "eventType": {
+ "description": "Type of file operations to watch Refer https://github.com/fsnotify/fsnotify/blob/master/fsnotify.go for more information",
+ "type": "string"
+ },
+ "polling": {
+ "description": "Use polling instead of inotify",
+ "type": "boolean"
+ },
+ "watchPathConfig": {
+ "description": "WatchPathConfig contains configuration about the file path to watch",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WatchPathConfig"
+ }
+ }
+ },
+ "io.argoproj.eventsource.v1alpha1.GenericEventSource": {
+ "description": "GenericEventSource refers to a generic event source. It can be used to implement a custom event source.",
+ "type": "object",
+ "required": [
+ "value"
+ ],
+ "properties": {
+ "value": {
+ "description": "Value of the event source",
+ "type": "string"
+ }
+ }
+ },
+ "io.argoproj.eventsource.v1alpha1.GithubEventSource": {
+ "description": "GithubEventSource refers to event-source for github related events",
+ "type": "object",
+ "required": [
+ "id",
+ "owner",
+ "repository",
+ "events"
+ ],
+ "properties": {
+ "active": {
+ "description": "Active refers to status of the webhook for event deliveries. https://developer.github.com/webhooks/creating/#active",
+ "type": "boolean"
+ },
+ "apiToken": {
+ "description": "APIToken refers to a K8s secret containing github api token",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ },
+ "contentType": {
+ "description": "ContentType of the event delivery",
+ "type": "string"
+ },
+ "deleteHookOnFinish": {
+ "description": "DeleteHookOnFinish determines whether to delete the GitHub hook for the repository once the event source is stopped.",
+ "type": "boolean"
+ },
+ "events": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "githubBaseURL": {
+ "description": "GitHub base URL (for GitHub Enterprise)",
+ "type": "string"
+ },
+ "githubUploadURL": {
+ "description": "GitHub upload URL (for GitHub Enterprise)",
+ "type": "string"
+ },
+ "id": {
+ "description": "Id is the webhook's id",
+ "type": "integer",
+ "format": "int64"
+ },
+ "insecure": {
+ "description": "Insecure tls verification",
+ "type": "boolean"
+ },
+ "namespace": {
+ "description": "Namespace refers to Kubernetes namespace which is used to retrieve webhook secret and api token from.",
+ "type": "string"
+ },
+ "owner": {
+ "description": "Owner refers to GitHub owner name i.e. argoproj",
+ "type": "string"
+ },
+ "repository": {
+ "description": "Repository refers to GitHub repo name i.e. argo-events",
+ "type": "string"
+ },
+ "webhook": {
+ "description": "Webhook refers to the configuration required to run a http server",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext"
+ },
+ "webhookSecret": {
+ "description": "WebhookSecret refers to K8s secret containing GitHub webhook secret https://developer.github.com/webhooks/securing/",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ }
+ }
+ },
+ "io.argoproj.eventsource.v1alpha1.GitlabEventSource": {
+ "description": "GitlabEventSource refers to event-source related to Gitlab events",
+ "type": "object",
+ "required": [
+ "projectID",
+ "events",
+ "gitlabBaseURL"
+ ],
+ "properties": {
+ "accessToken": {
+ "description": "AccessToken is reference to k8 secret which holds the gitlab api access information",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ },
+ "deleteHookOnFinish": {
+ "description": "DeleteHookOnFinish determines whether to delete the GitLab hook for the project once the event source is stopped.",
+ "type": "boolean"
+ },
+ "enableSSLVerification": {
+ "description": "EnableSSLVerification to enable ssl verification",
+ "type": "boolean"
+ },
+ "events": {
+ "description": "Events are gitlab event to listen to. Refer https://github.com/xanzy/go-gitlab/blob/bf34eca5d13a9f4c3f501d8a97b8ac226d55e4d9/projects.go#L794.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "gitlabBaseURL": {
+ "description": "GitlabBaseURL is the base URL for API requests to a custom endpoint",
+ "type": "string"
+ },
+ "projectID": {
+ "description": "ProjectID is the id of project for which integration needs to setup",
+ "type": "string"
+ },
+ "webhook": {
+ "description": "Webhook holds configuration to run a http server",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext"
+ }
+ }
+ },
+ "io.argoproj.eventsource.v1alpha1.HDFSEventSource": {
+ "description": "HDFSEventSource refers to event-source for HDFS related events",
+ "type": "object",
+ "required": [
+ "directory",
+ "type",
+ "addresses"
+ ],
+ "properties": {
+ "addresses": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "checkInterval": {
+ "description": "CheckInterval is a string that describes an interval duration to check the directory state, e.g. 1s, 30m, 2h... (defaults to 1m)",
+ "type": "string"
+ },
+ "directory": {
+ "description": "Directory to watch for events",
+ "type": "string"
+ },
+ "hdfsUser": {
+ "description": "HDFSUser is the user to access HDFS file system. It is ignored if either ccache or keytab is used.",
+ "type": "string"
+ },
+ "krbCCacheSecret": {
+ "description": "KrbCCacheSecret is the secret selector for Kerberos ccache Either ccache or keytab can be set to use Kerberos.",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ },
+ "krbConfigConfigMap": {
+ "description": "KrbConfig is the configmap selector for Kerberos config as string It must be set if either ccache or keytab is used.",
+ "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector"
+ },
+ "krbKeytabSecret": {
+ "description": "KrbKeytabSecret is the secret selector for Kerberos keytab Either ccache or keytab can be set to use Kerberos.",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ },
+ "krbRealm": {
+ "description": "KrbRealm is the Kerberos realm used with Kerberos keytab It must be set if keytab is used.",
+ "type": "string"
+ },
+ "krbServicePrincipalName": {
+ "description": "KrbServicePrincipalName is the principal name of Kerberos service It must be set if either ccache or keytab is used.",
+ "type": "string"
+ },
+ "krbUsername": {
+ "description": "KrbUsername is the Kerberos username used with Kerberos keytab It must be set if keytab is used.",
+ "type": "string"
+ },
+ "namespace": {
+ "description": "Namespace refers to Kubernetes namespace which is used to retrieve cache secret and ket tab secret from.",
+ "type": "string"
+ },
+ "path": {
+ "description": "Path is relative path of object to watch with respect to the directory",
+ "type": "string"
+ },
+ "pathRegexp": {
+ "description": "PathRegexp is regexp of relative path of object to watch with respect to the directory",
+ "type": "string"
+ },
+ "type": {
+ "description": "Type of file operations to watch",
+ "type": "string"
+ }
+ }
+ },
+ "io.argoproj.eventsource.v1alpha1.KafkaEventSource": {
+ "description": "KafkaEventSource refers to event-source for Kafka related events",
+ "type": "object",
+ "required": [
+ "url",
+ "partition",
+ "topic"
+ ],
+ "properties": {
+ "connectionBackoff": {
+ "description": "Backoff holds parameters applied to connection.",
+ "$ref": "#/definitions/io.argoproj.common.Backoff"
},
- "NSQDAddress": {
- "description": "NSQDAddress is the address of the nsq host.",
+ "partition": {
+ "description": "Partition name",
+ "type": "string"
+ },
+ "tls": {
+ "description": "TLS configuration for the kafka client.",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.TLSConfig"
+ },
+ "topic": {
+ "description": "Topic name",
"type": "string"
},
- "Timestamp": {
- "description": "Timestamp of the message.",
+ "url": {
+ "description": "URL to kafka cluster",
"type": "string"
}
}
},
- "io.argoproj.common.Nats": {
- "description": "Nats contains the information required to connect to nats server and get subscriptions",
+ "io.argoproj.eventsource.v1alpha1.MQTTEventSource": {
+ "description": "MQTTEventSource refers to event-source for MQTT related events",
"type": "object",
"required": [
"url",
- "type"
+ "topic",
+ "clientId"
],
"properties": {
"clientId": {
- "description": "The NATS Streaming cluster ID",
- "type": "string"
- },
- "clusterId": {
- "description": "The NATS Streaming cluster ID",
+ "description": "ClientID is the id of the client",
"type": "string"
},
- "deliverAllAvailable": {
- "description": "Receive all stored values in order.",
- "type": "boolean"
+ "connectionBackoff": {
+ "description": "ConnectionBackoff holds backoff applied to connection.",
+ "$ref": "#/definitions/io.argoproj.common.Backoff"
},
- "durable": {
- "description": "Durable subscriptions allow clients to assign a durable name to a subscription when it is created",
+ "jsonBody": {
+ "description": "JSONBody specifies that all event body payload coming from this source will be JSON",
"type": "boolean"
},
- "startAtSequence": {
- "description": "Receive messages starting at a specific sequence number",
- "type": "string"
- },
- "startAtTime": {
- "description": "Subscribe starting at a specific time",
- "type": "string"
- },
- "startAtTimeDelta": {
- "description": "Subscribe starting a specific amount of time in the past (e.g. 30 seconds ago)",
- "type": "string"
- },
- "startWithLastReceived": {
- "description": "Subscribe starting with most recently published value. Refer https://github.com/nats-io/go-nats-streaming",
- "type": "boolean"
+ "tls": {
+ "description": "TLS configuration for the mqtt client.",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.TLSConfig"
},
- "type": {
- "description": "Type of the connection. either standard or streaming",
+ "topic": {
+ "description": "Topic name",
"type": "string"
},
"url": {
- "description": "URL is nats server/service URL",
+ "description": "URL to connect to broker",
"type": "string"
}
}
},
- "io.argoproj.common.PubSubEventData": {
- "description": "PubSubEventData represents the event data generated by the GCP PubSub gateway.",
+ "io.argoproj.eventsource.v1alpha1.NATSEventsSource": {
+ "description": "NATSEventSource refers to event-source for NATS related events",
"type": "object",
"required": [
- "id",
- "body",
- "attributes",
- "publishTime"
+ "url",
+ "subject"
],
"properties": {
- "attributes": {
- "description": "Attributes represents the key-value pairs the current message is labelled with.",
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "connectionBackoff": {
+ "description": "ConnectionBackoff holds backoff applied to connection.",
+ "$ref": "#/definitions/io.argoproj.common.Backoff"
},
- "body": {
- "description": "Body is the actual data in the message.",
- "type": "string",
- "format": "byte"
+ "jsonBody": {
+ "description": "JSONBody specifies that all event body payload coming from this source will be JSON",
+ "type": "boolean"
},
- "id": {
- "description": "ID of the message",
+ "subject": {
+ "description": "Subject holds the name of the subject onto which messages are published",
"type": "string"
},
- "publishTime": {
- "description": "The time at which the message was published.",
+ "tls": {
+ "description": "TLS configuration for the nats client.",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.TLSConfig"
+ },
+ "url": {
+ "description": "URL to connect to NATS cluster",
"type": "string"
}
}
},
- "io.argoproj.common.RedisEventData": {
- "description": "RedisEventData represents the event data generated by the Redis gateway.",
+ "io.argoproj.eventsource.v1alpha1.NSQEventSource": {
+ "description": "NSQEventSource describes the event source for NSQ PubSub More info at https://godoc.org/github.com/nsqio/go-nsq",
"type": "object",
"required": [
- "channel",
- "pattern",
- "payload"
+ "hostAddress",
+ "topic",
+ "channel"
],
"properties": {
"channel": {
- "description": "Subscription channel.",
+ "description": "Channel used for subscription",
"type": "string"
},
- "pattern": {
- "description": "Message pattern",
+ "connectionBackoff": {
+ "description": "Backoff holds parameters applied to connection.",
+ "$ref": "#/definitions/io.argoproj.common.Backoff"
+ },
+ "hostAddress": {
+ "description": "HostAddress is the address of the host for NSQ lookup",
"type": "string"
},
- "payload": {
- "description": "Message body",
+ "jsonBody": {
+ "description": "JSONBody specifies that all event body payload coming from this source will be JSON",
+ "type": "boolean"
+ },
+ "tls": {
+ "description": "TLS configuration for the nsq client.",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.TLSConfig"
+ },
+ "topic": {
+ "description": "Topic to subscribe to.",
"type": "string"
}
}
},
- "io.argoproj.common.ResourceEventData": {
- "description": "ResourceEventData represents the event data generated by the Resource gateway.",
+ "io.argoproj.eventsource.v1alpha1.PubSubEventSource": {
+ "description": "PubSubEventSource refers to event-source for GCP PubSub related events.",
"type": "object",
"required": [
- "type",
- "body",
- "group",
- "version",
- "resource"
+ "projectID",
+ "topicProjectID",
+ "topic",
+ "credentialsFile"
],
"properties": {
- "body": {
- "description": "Resource body.",
- "type": "string",
- "format": "byte"
- },
- "group": {
- "description": "Resource group name.",
+ "credentialsFile": {
+ "description": "CredentialsFile is the file that contains credentials to authenticate for GCP",
"type": "string"
},
- "resource": {
- "description": "Resource name.",
+ "deleteSubscriptionOnFinish": {
+ "description": "DeleteSubscriptionOnFinish determines whether to delete the GCP PubSub subscription once the event source is stopped.",
+ "type": "boolean"
+ },
+ "enableWorkflowIdentity": {
+ "description": "EnableWorkflowIdentity determines if your project authenticates to GCP with WorkflowIdentity or CredentialsFile. If true, authentication is done with WorkflowIdentity. If false or omitted, authentication is done with CredentialsFile.",
+ "type": "boolean"
+ },
+ "jsonBody": {
+ "description": "JSONBody specifies that all event body payload coming from this source will be JSON",
+ "type": "boolean"
+ },
+ "projectID": {
+ "description": "ProjectID is the unique identifier for your project on GCP",
"type": "string"
},
- "type": {
- "description": "EventType of the type of the event.",
+ "topic": {
+ "description": "Topic on which a subscription will be created",
"type": "string"
},
- "version": {
- "description": "Resource version.",
+ "topicProjectID": {
+ "description": "TopicProjectID identifies the project where the topic should exist or be created (assumed to be the same as ProjectID by default)",
"type": "string"
}
}
},
- "io.argoproj.common.S3Artifact": {
- "description": "S3Artifact contains information about an S3 connection and bucket",
+ "io.argoproj.eventsource.v1alpha1.RedisEventSource": {
+ "description": "RedisEventSource describes an event source for the Redis PubSub. More info at https://godoc.org/github.com/go-redis/redis#example-PubSub",
"type": "object",
"required": [
- "endpoint",
- "bucket",
- "accessKey",
- "secretKey"
+ "hostAddress",
+ "channels"
],
"properties": {
- "accessKey": {
- "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
- },
- "bucket": {
- "$ref": "#/definitions/io.argoproj.common.S3Bucket"
- },
- "endpoint": {
- "type": "string"
- },
- "events": {
+ "channels": {
"type": "array",
"items": {
"type": "string"
- },
- "x-kubernetes-list-type": "string"
+ }
},
- "filter": {
- "$ref": "#/definitions/io.argoproj.common.S3Filter"
+ "db": {
+ "description": "DB to use. If not specified, default DB 0 will be used.",
+ "type": "integer",
+ "format": "int32"
},
- "insecure": {
- "type": "boolean"
+ "hostAddress": {
+ "description": "HostAddress refers to the address of the Redis host/server",
+ "type": "string"
},
- "region": {
+ "namespace": {
+ "description": "Namespace to use to retrieve the password from. It should only be specified if password is declared",
"type": "string"
},
- "secretKey": {
+ "password": {
+ "description": "Password required for authentication if any.",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ },
+ "tls": {
+ "description": "TLS configuration for the redis client.",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.TLSConfig"
}
}
},
- "io.argoproj.common.S3Bucket": {
- "description": "S3Bucket contains information to describe an S3 Bucket",
+ "io.argoproj.eventsource.v1alpha1.ResourceEventSource": {
+ "description": "ResourceEventSource refers to a event-source for K8s resource related events.",
"type": "object",
"required": [
- "name"
+ "namespace",
+ "group",
+ "version",
+ "resource",
+ "eventTypes"
],
"properties": {
- "key": {
+ "eventTypes": {
+ "description": "EventTypes is the list of event type to watch. Possible values are - ADD, UPDATE and DELETE.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "filter": {
+ "description": "Filter is applied on the metadata of the resource If you apply filter, then the internal event informer will only monitor objects that pass the filter.",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.ResourceFilter"
+ },
+ "group": {
"type": "string"
},
- "name": {
+ "namespace": {
+ "description": "Namespace where resource is deployed",
"type": "string"
- }
- }
- },
- "io.argoproj.common.S3Filter": {
- "description": "S3Filter represents filters to apply to bucket nofifications for specifying constraints on objects",
- "type": "object",
- "required": [
- "prefix",
- "suffix"
- ],
- "properties": {
- "prefix": {
+ },
+ "resource": {
"type": "string"
},
- "suffix": {
+ "version": {
"type": "string"
}
}
},
- "io.argoproj.common.SNSEventData": {
- "description": "SNSEventData represents the event data generated by SNS gateway.",
- "type": "object",
- "required": [
- "body"
- ],
- "properties": {
- "body": {
- "description": "Body represents the SNS message body",
- "type": "string",
- "format": "byte"
- }
- }
- },
- "io.argoproj.common.SQSEventData": {
- "description": "SQSEventData represents the event data generated by SQS gateway.",
+ "io.argoproj.eventsource.v1alpha1.ResourceFilter": {
+ "description": "ResourceFilter contains K8 ObjectMeta information to further filter resource event objects",
"type": "object",
- "required": [
- "messageId",
- "messageAttributes",
- "body"
- ],
"properties": {
- "body": {
- "description": "The message's contents (not URL-encoded).",
- "type": "string",
- "format": "byte"
+ "afterStart": {
+ "description": "If the resource is created after the start time then the event is treated as valid.",
+ "type": "boolean"
},
- "messageAttributes": {
- "description": "Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS Message Attributes (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html) in the Amazon Simple Queue Service Developer Guide.",
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/com.github.aws.aws-sdk-go.service.sqs.MessageAttributeValue"
+ "createdBy": {
+ "description": "If resource is created before the specified time then the event is treated as valid.",
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
+ },
+ "fields": {
+ "description": "Fields provide listing options to K8s API to watch resource/s. Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/ for more info.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.Selector"
+ }
+ },
+ "labels": {
+ "description": "Labels provide listing options to K8s API to watch resource/s. Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/label-selectors/ for more info.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.Selector"
}
},
- "messageId": {
- "description": "A unique identifier for the message. A MessageId is considered unique across all AWS accounts for an extended period of time.",
+ "prefix": {
+ "description": "Prefix filter is applied on the resource name.",
"type": "string"
}
}
},
- "io.argoproj.common.WebhookEventData": {
- "description": "WebhookEventData represents the event data generated by the Webhook gateway.",
+ "io.argoproj.eventsource.v1alpha1.SNSEventSource": {
+ "description": "SNSEventSource refers to event-source for AWS SNS related events",
"type": "object",
"required": [
- "header",
- "body"
+ "topicArn",
+ "region"
],
"properties": {
- "body": {
- "description": "Body is http request body",
- "type": "string",
- "format": "byte"
+ "accessKey": {
+ "description": "AccessKey refers K8 secret containing aws access key",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
},
- "header": {
- "description": "Header is the http request header",
- "type": "object",
- "additionalProperties": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- },
- "io.argoproj.gateway.v1alpha1.EventSourceRef": {
- "description": "EventSourceRef holds information about the EventSourceRef custom resource",
- "type": "object",
- "required": [
- "name"
- ],
- "properties": {
- "name": {
- "description": "Name of the event source",
+ "namespace": {
+ "description": "Namespace refers to Kubernetes namespace to read access related secret from.",
"type": "string"
},
- "namespace": {
- "description": "Namespace of the event source Default value is the namespace where referencing gateway is deployed",
+ "region": {
+ "description": "Region is AWS region",
+ "type": "string"
+ },
+ "roleARN": {
+ "description": "RoleARN is the Amazon Resource Name (ARN) of the role to assume.",
+ "type": "string"
+ },
+ "secretKey": {
+ "description": "SecretKey refers K8 secret containing aws secret key",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ },
+ "topicArn": {
+ "description": "TopicArn",
"type": "string"
+ },
+ "webhook": {
+ "description": "Webhook configuration for http server",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext"
}
}
},
- "io.argoproj.gateway.v1alpha1.Gateway": {
- "description": "Gateway is the definition of a gateway resource",
+ "io.argoproj.eventsource.v1alpha1.SQSEventSource": {
+ "description": "SQSEventSource refers to event-source for AWS SQS related events",
"type": "object",
"required": [
- "metadata",
- "status",
- "spec"
+ "region",
+ "queue",
+ "waitTimeSeconds"
],
"properties": {
- "apiVersion": {
- "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "accessKey": {
+ "description": "AccessKey refers K8 secret containing aws access key",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ },
+ "jsonBody": {
+ "description": "JSONBody specifies that all event body payload coming from this source will be JSON",
+ "type": "boolean"
+ },
+ "namespace": {
+ "description": "Namespace refers to Kubernetes namespace to read access related secret from.",
"type": "string"
},
- "kind": {
- "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "queue": {
+ "description": "Queue is AWS SQS queue to listen to for messages",
"type": "string"
},
- "metadata": {
- "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ "queueAccountId": {
+ "description": "QueueAccountId is the ID of the account that created the queue to monitor",
+ "type": "string"
},
- "spec": {
- "$ref": "#/definitions/io.argoproj.gateway.v1alpha1.GatewaySpec"
+ "region": {
+ "description": "Region is AWS region",
+ "type": "string"
},
- "status": {
- "$ref": "#/definitions/io.argoproj.gateway.v1alpha1.GatewayStatus"
+ "roleARN": {
+ "description": "RoleARN is the Amazon Resource Name (ARN) of the role to assume.",
+ "type": "string"
+ },
+ "secretKey": {
+ "description": "SecretKey refers K8 secret containing aws secret key",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ },
+ "waitTimeSeconds": {
+ "description": "WaitTimeSeconds is The duration (in seconds) for which the call waits for a message to arrive in the queue before returning.",
+ "type": "integer",
+ "format": "int64"
}
}
},
- "io.argoproj.gateway.v1alpha1.GatewayList": {
- "description": "GatewayList is the list of Gateway resources",
+ "io.argoproj.eventsource.v1alpha1.Selector": {
+ "description": "Selector represents conditional operation to select K8s objects.",
"type": "object",
"required": [
- "metadata",
- "items"
+ "key",
+ "value"
],
"properties": {
- "apiVersion": {
- "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "key": {
+ "description": "Key name",
"type": "string"
},
- "items": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/io.argoproj.gateway.v1alpha1.Gateway"
- },
- "x-kubernetes-list-type": "items"
- },
- "kind": {
- "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "operation": {
+ "description": "Supported operations like ==, !=, \u003c=, \u003e= etc. Defaults to ==. Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors for more info.",
"type": "string"
},
- "metadata": {
- "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ "value": {
+ "description": "Value",
+ "type": "string"
}
}
},
- "io.argoproj.gateway.v1alpha1.GatewayResource": {
- "description": "GatewayResource holds the metadata about the gateway resources",
+ "io.argoproj.eventsource.v1alpha1.SlackEventSource": {
+ "description": "SlackEventSource refers to event-source for Slack related events",
"type": "object",
- "required": [
- "deployment"
- ],
"properties": {
- "deployment": {
- "description": "Metadata of the deployment for the gateway",
- "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ "namespace": {
+ "description": "Namespace refers to Kubernetes namespace which is used to retrieve token and signing secret from.",
+ "type": "string"
},
- "service": {
- "description": "Metadata of the service for the gateway",
- "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ "signingSecret": {
+ "description": "Slack App signing secret",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ },
+ "token": {
+ "description": "Token for URL verification handshake",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ },
+ "webhook": {
+ "description": "Webhook holds configuration for a REST endpoint",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext"
}
}
},
- "io.argoproj.gateway.v1alpha1.GatewaySpec": {
- "description": "GatewaySpec represents gateway specifications",
+ "io.argoproj.eventsource.v1alpha1.StorageGridEventSource": {
+ "description": "StorageGridEventSource refers to event-source for StorageGrid related events",
"type": "object",
"required": [
- "type",
- "processorPort"
+ "topicArn",
+ "bucket",
+ "authToken",
+ "apiURL"
],
"properties": {
- "eventSourceRef": {
- "description": "EventSourceRef refers to event-source that stores event source configurations for the gateway",
- "$ref": "#/definitions/io.argoproj.gateway.v1alpha1.EventSourceRef"
- },
- "processorPort": {
- "description": "Port on which the gateway event source processor is running on.",
+ "apiURL": {
+ "description": "ApiURL is the url of the storagegrid api.",
"type": "string"
},
- "replica": {
- "description": "Replica is the gateway deployment replicas",
- "type": "integer",
- "format": "int32"
+ "authToken": {
+ "description": "Auth token for storagegrid api",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
+ },
+ "bucket": {
+ "description": "Name of the bucket to register notifications for.",
+ "type": "string"
},
- "service": {
- "description": "Service is the specifications of the service to expose the gateway",
- "$ref": "#/definitions/io.argoproj.gateway.v1alpha1.Service"
+ "events": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "subscribers": {
- "description": "Subscribers holds the contexts of the subscribers/sinks to send events to.",
- "x-kubernetes-list-type": "subscribers",
- "$ref": "#/definitions/io.argoproj.gateway.v1alpha1.Subscribers"
+ "filter": {
+ "description": "Filter on object key which caused the notification.",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.StorageGridFilter"
},
- "template": {
- "description": "Template is the pod specification for the gateway",
- "$ref": "#/definitions/io.argoproj.gateway.v1alpha1.Template"
+ "region": {
+ "description": "S3 region. Defaults to us-east-1",
+ "type": "string"
},
- "type": {
- "description": "Type is the type of gateway. Used as metadata.",
+ "topicArn": {
+ "description": "TopicArn",
"type": "string"
+ },
+ "webhook": {
+ "description": "Webhook holds configuration for a REST endpoint",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext"
}
}
},
- "io.argoproj.gateway.v1alpha1.GatewayStatus": {
- "description": "GatewayStatus contains information about the status of a gateway.",
+ "io.argoproj.eventsource.v1alpha1.StorageGridFilter": {
+ "description": "Filter represents filters to apply to bucket notifications for specifying constraints on objects",
"type": "object",
"required": [
- "phase",
- "resources"
+ "prefix",
+ "suffix"
],
"properties": {
- "message": {
- "description": "Message is a human readable string indicating details about a gateway in its phase",
+ "prefix": {
"type": "string"
},
- "nodes": {
- "description": "Nodes is a mapping between a node ID and the node's status it records the states for the configurations of gateway.",
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/io.argoproj.gateway.v1alpha1.NodeStatus"
- }
- },
- "phase": {
- "description": "Phase is the high-level summary of the gateway",
+ "suffix": {
"type": "string"
- },
- "resources": {
- "description": "Resources refers to the metadata about the gateway resources",
- "$ref": "#/definitions/io.argoproj.gateway.v1alpha1.GatewayResource"
- },
- "startedAt": {
- "description": "StartedAt is the time at which this gateway was initiated",
- "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
}
}
},
- "io.argoproj.gateway.v1alpha1.Metadata": {
- "description": "Metadata holds the annotations and labels of a gateway pod",
+ "io.argoproj.eventsource.v1alpha1.StripeEventSource": {
+ "description": "StripeEventSource describes the event source for stripe webhook notifications More info at https://stripe.com/docs/webhooks",
"type": "object",
"properties": {
- "annotations": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "apiKey": {
+ "description": "APIKey refers to K8s secret that holds Stripe API key. Used only if CreateWebhook is enabled.",
+ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
},
- "labels": {
- "type": "object",
- "additionalProperties": {
+ "createWebhook": {
+ "description": "CreateWebhook if specified creates a new webhook programmatically.",
+ "type": "boolean"
+ },
+ "eventFilter": {
+ "type": "array",
+ "items": {
"type": "string"
}
+ },
+ "namespace": {
+ "description": "Namespace to retrieve the APIKey secret from. Must be specified in order to read API key from APIKey K8s secret.",
+ "type": "string"
+ },
+ "webhook": {
+ "description": "Webhook holds configuration for a REST endpoint",
+ "$ref": "#/definitions/io.argoproj.eventsource.v1alpha1.WebhookContext"
}
}
},
- "io.argoproj.gateway.v1alpha1.NATSSubscriber": {
- "description": "NATSSubscriber holds the context of subscriber over NATS.",
+ "io.argoproj.eventsource.v1alpha1.TLSConfig": {
+ "description": "TLSConfig refers to TLS configuration for a client.",
"type": "object",
"required": [
- "serverURL",
- "subject",
- "name"
+ "caCertPath",
+ "clientCertPath",
+ "clientKeyPath"
],
"properties": {
- "name": {
- "description": "Name of the subscription. Must be unique.",
+ "caCertPath": {
+ "description": "CACertPath refers the file path that contains the CA cert.",
"type": "string"
},
- "serverURL": {
- "description": "ServerURL refers to the NATS server URL.",
+ "clientCertPath": {
+ "description": "ClientCertPath refers the file path that contains client cert.",
"type": "string"
},
- "subject": {
- "description": "Subject refers to the NATS subject name.",
+ "clientKeyPath": {
+ "description": "ClientKeyPath refers the file path that contains client key.",
"type": "string"
}
}
},
- "io.argoproj.gateway.v1alpha1.NodeStatus": {
- "description": "NodeStatus describes the status for an individual node in the gateway configurations. A single node can represent one configuration.",
+ "io.argoproj.eventsource.v1alpha1.WatchPathConfig": {
"type": "object",
"required": [
- "id",
- "name",
- "displayName",
- "phase"
+ "directory"
],
"properties": {
- "displayName": {
- "description": "DisplayName is the human readable representation of the node",
- "type": "string"
- },
- "id": {
- "description": "ID is a unique identifier of a node within a sensor It is a hash of the node name",
- "type": "string"
- },
- "message": {
- "description": "Message store data or something to save for configuration",
+ "directory": {
+ "description": "Directory to watch for events",
"type": "string"
},
- "name": {
- "description": "Name is a unique name in the node tree used to generate the node ID",
+ "path": {
+ "description": "Path is relative path of object to watch with respect to the directory",
"type": "string"
},
- "phase": {
- "description": "Phase of the node",
+ "pathRegexp": {
+ "description": "PathRegexp is regexp of relative path of object to watch with respect to the directory",
"type": "string"
- },
- "updateTime": {
- "description": "UpdateTime is the time when node(gateway configuration) was updated",
- "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime"
}
}
},
- "io.argoproj.gateway.v1alpha1.Service": {
- "description": "Service holds the service information gateway exposes",
+ "io.argoproj.eventsource.v1alpha1.WebhookContext": {
+ "description": "WebhookContext holds a general purpose REST API context",
"type": "object",
+ "required": [
+ "endpoint",
+ "method",
+ "port",
+ "url"
+ ],
"properties": {
- "clusterIP": {
- "description": "clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies",
+ "endpoint": {
+ "description": "REST API endpoint",
"type": "string"
},
- "ports": {
- "description": "The list of ports that are exposed by this ClusterIP service.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/io.k8s.api.core.v1.ServicePort"
- },
- "x-kubernetes-list-map-keys": [
- "port",
- "protocol"
- ],
- "x-kubernetes-list-type": "map",
- "x-kubernetes-patch-merge-key": "port",
- "x-kubernetes-patch-strategy": "merge"
- },
- "spec": {
- "description": "Spec holds the gateway service spec. DEPRECATED: Use Ports to declare the ports to be exposed.",
- "$ref": "#/definitions/io.k8s.api.core.v1.ServiceSpec"
- }
- }
- },
- "io.argoproj.gateway.v1alpha1.Subscribers": {
- "type": "object",
- "properties": {
- "http": {
- "description": "HTTP subscribers are HTTP endpoints to send events to.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-kubernetes-list-type": "string"
- },
- "nats": {
- "description": "NATS refers to the subscribers over NATS protocol.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/io.argoproj.gateway.v1alpha1.NATSSubscriber"
- },
- "x-kubernetes-list-type": "NATSSubscriber"
- }
- }
- },
- "io.argoproj.gateway.v1alpha1.Template": {
- "description": "Template holds the information of a Gateway deployment template",
- "type": "object",
- "properties": {
- "affinity": {
- "description": "If specified, the pod's scheduling constraints",
- "$ref": "#/definitions/io.k8s.api.core.v1.Affinity"
- },
- "container": {
- "description": "Container is the main container image to run in the gateway pod",
- "$ref": "#/definitions/io.k8s.api.core.v1.Container"
- },
- "metadata": {
- "description": "Metdata sets the pods's metadata, i.e. annotations and labels",
- "$ref": "#/definitions/io.argoproj.gateway.v1alpha1.Metadata"
- },
- "securityContext": {
- "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.",
- "$ref": "#/definitions/io.k8s.api.core.v1.PodSecurityContext"
+ "method": {
+ "description": "Method is HTTP request method that indicates the desired action to be performed for a given resource. See RFC7231 Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content",
+ "type": "string"
},
- "serviceAccountName": {
- "description": "ServiceAccountName is the name of the ServiceAccount to use to run gateway pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/",
+ "port": {
+ "description": "Port on which HTTP server is listening for incoming events.",
"type": "string"
},
- "spec": {
- "description": "Spec holds the gateway deployment spec. DEPRECATED: Use Container instead.",
- "$ref": "#/definitions/io.k8s.api.core.v1.PodSpec"
+ "serverCertPath": {
+ "description": "ServerCertPath refers the file that contains the cert.",
+ "type": "string"
},
- "tolerations": {
- "description": "If specified, the pod's tolerations.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/io.k8s.api.core.v1.Toleration"
- }
+ "serverKeyPath": {
+ "description": "ServerKeyPath refers the file that contains private key",
+ "type": "string"
},
- "volumes": {
- "description": "Volumes is a list of volumes that can be mounted by containers in a workflow.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/io.k8s.api.core.v1.Volume"
- },
- "x-kubernetes-patch-merge-key": "name",
- "x-kubernetes-patch-strategy": "merge"
+ "url": {
+ "description": "URL is the url of the server.",
+ "type": "string"
}
}
},
@@ -1030,20 +1514,16 @@
"type": "string"
},
"parameters": {
- "description": "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "triggerParameters"
+ }
},
"payload": {
- "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "payloadParameters"
+ }
},
"region": {
"description": "Region is AWS region",
@@ -1059,93 +1539,70 @@
"description": "ArgoWorkflowTrigger is the trigger for the Argo Workflow",
"type": "object",
"required": [
- "source"
+ "group",
+ "version",
+ "resource"
],
"properties": {
+ "group": {
+ "type": "string"
+ },
"operation": {
"description": "Operation refers to the type of operation performed on the argo workflow resource. Default value is Submit.",
"type": "string"
},
"parameters": {
- "description": "Parameters is the list of parameters to pass to resolved Argo Workflow object",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "triggerParameters"
+ }
+ },
+ "resource": {
+ "type": "string"
},
"source": {
"description": "Source of the K8 resource file(s)",
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.ArtifactLocation"
+ },
+ "version": {
+ "type": "string"
}
}
},
"io.argoproj.sensor.v1alpha1.ArtifactLocation": {
- "description": "ArtifactLocation describes the source location for an external minio",
+ "description": "ArtifactLocation describes the source location for an external artifact",
"type": "object",
"properties": {
"configmap": {
- "description": "Configmap that stores the minio",
+ "description": "Configmap that stores the artifact",
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.ConfigmapArtifact"
},
"file": {
- "description": "File minio is minio stored in a file",
+ "description": "File artifact is artifact stored in a file",
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.FileArtifact"
},
"git": {
- "description": "Git repository hosting the minio",
+ "description": "Git repository hosting the artifact",
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.GitArtifact"
},
"inline": {
- "description": "Inline minio is embedded in sensor spec as a string",
+ "description": "Inline artifact is embedded in sensor spec as a string",
"type": "string"
},
"resource": {
"description": "Resource is generic template for K8s resource",
- "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.unstructured.Unstructured"
+ "$ref": "#/definitions/io.argoproj.common.Resource"
},
"s3": {
- "description": "S3 compliant minio",
+ "description": "S3 compliant artifact",
"$ref": "#/definitions/io.argoproj.common.S3Artifact"
},
"url": {
- "description": "URL to fetch the minio from",
+ "description": "URL to fetch the artifact from",
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.URLArtifact"
}
}
},
- "io.argoproj.sensor.v1alpha1.Backoff": {
- "description": "Backoff for an operation",
- "type": "object",
- "required": [
- "duration",
- "factor",
- "jitter",
- "steps"
- ],
- "properties": {
- "duration": {
- "description": "Duration is the duration in nanoseconds",
- "type": "integer",
- "format": "int64"
- },
- "factor": {
- "description": "Duration is multiplied by factor each iteration",
- "type": "number",
- "format": "double"
- },
- "jitter": {
- "description": "The amount of jitter applied each iteration",
- "type": "number",
- "format": "double"
- },
- "steps": {
- "description": "Exit with error after this many steps",
- "type": "integer",
- "format": "int32"
- }
- }
- },
"io.argoproj.sensor.v1alpha1.BasicAuth": {
"description": "BasicAuth contains the reference to K8s secrets that holds the username and password",
"type": "object",
@@ -1165,7 +1622,7 @@
}
},
"io.argoproj.sensor.v1alpha1.ConfigmapArtifact": {
- "description": "ConfigmapArtifact contains information about minio in k8 configmap",
+ "description": "ConfigmapArtifact contains information about artifact in k8 configmap",
"type": "object",
"required": [
"name",
@@ -1202,20 +1659,16 @@
"type": "string"
},
"parameters": {
- "description": "Parameters is the list of parameters that is applied to resolved custom trigger trigger object.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "triggerParameters"
+ }
},
"payload": {
- "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "payloadParameters"
+ }
},
"secure": {
"description": "Secure refers to type of the connection between sensor to custom trigger gRPC",
@@ -1264,8 +1717,7 @@
"type": "array",
"items": {
"type": "string"
- },
- "x-kubernetes-list-type": "value"
+ }
}
}
},
@@ -1282,8 +1734,7 @@
"type": "array",
"items": {
"type": "string"
- },
- "x-kubernetes-list-type": "dependencies"
+ }
},
"name": {
"description": "Name of the group",
@@ -1295,7 +1746,6 @@
"description": "Event represents the cloudevent received from a gateway.",
"type": "object",
"required": [
- "context",
"data"
],
"properties": {
@@ -1394,8 +1844,7 @@
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.DataFilter"
- },
- "x-kubernetes-list-type": "data"
+ }
},
"name": {
"description": "Name is the name of event filter",
@@ -1408,7 +1857,7 @@
}
},
"io.argoproj.sensor.v1alpha1.FileArtifact": {
- "description": "FileArtifact contains information about an minio in a filesystem",
+ "description": "FileArtifact contains information about an artifact in a filesystem",
"type": "object",
"properties": {
"path": {
@@ -1417,7 +1866,7 @@
}
},
"io.argoproj.sensor.v1alpha1.GitArtifact": {
- "description": "GitArtifact contains information about an minio stored in git",
+ "description": "GitArtifact contains information about an artifact stored in git",
"type": "object",
"required": [
"url",
@@ -1470,10 +1919,6 @@
"io.argoproj.sensor.v1alpha1.GitCreds": {
"description": "GitCreds contain reference to git username and password",
"type": "object",
- "required": [
- "username",
- "password"
- ],
"properties": {
"password": {
"$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector"
@@ -1500,8 +1945,7 @@
"type": "array",
"items": {
"type": "string"
- },
- "x-kubernetes-list-type": "urls"
+ }
}
}
},
@@ -1535,10 +1979,7 @@
"description": "Headers for the HTTP request.",
"type": "object",
"additionalProperties": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
}
},
"method": {
@@ -1546,25 +1987,21 @@
"type": "string"
},
"parameters": {
- "description": "Parameters is the list of key-value extracted from event's payload that are applied to the HTTP trigger resource.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "atomic"
+ }
},
"payload": {
- "description": "Payload is the list of key-value extracted from an event payload to construct the HTTP request payload.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "atomic"
+ }
},
"timeout": {
"description": "Timeout refers to the HTTP request timeout in seconds. Default value is 60 seconds.",
"type": "integer",
- "format": "int32"
+ "format": "int64"
},
"tls": {
"description": "TLS configuration for the HTTP client.",
@@ -1576,18 +2013,17 @@
}
}
},
- "io.argoproj.sensor.v1alpha1.K8sResourcePolicy": {
- "description": "K8sResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels",
+ "io.argoproj.sensor.v1alpha1.K8SResourcePolicy": {
+ "description": "K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels",
"type": "object",
"required": [
- "labels",
"backoff",
"errorOnBackoffTimeout"
],
"properties": {
"backoff": {
"description": "Backoff before checking resource state",
- "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.wait.Backoff"
+ "$ref": "#/definitions/io.argoproj.common.Backoff"
},
"errorOnBackoffTimeout": {
"description": "ErrorOnBackoffTimeout determines whether sensor should transition to error state if the trigger policy is unable to determine the state of the resource",
@@ -1622,12 +2058,10 @@
"format": "int32"
},
"parameters": {
- "description": "Parameters is the list of parameters that is applied to resolved Kafka trigger object.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "triggerParameters"
+ }
},
"partition": {
"description": "Partition to write data to.",
@@ -1639,12 +2073,10 @@
"type": "string"
},
"payload": {
- "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "payloadParameters"
+ }
},
"requiredAcks": {
"description": "RequiredAcks used in producer to tell the broker how many replica acknowledgements Defaults to 1 (Only wait for the leader to ack).",
@@ -1693,20 +2125,16 @@
],
"properties": {
"parameters": {
- "description": "Parameters is the list of parameters that is applied to resolved NATS trigger object.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "triggerParameters"
+ }
},
"payload": {
- "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "payloadParameters"
+ }
},
"subject": {
"description": "Name of the subject to put message on.",
@@ -1805,20 +2233,16 @@
"type": "string"
},
"parameters": {
- "description": "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "triggerParameters"
+ }
},
"payload": {
- "description": "Payload is the list of key-value extracted from an event payload to construct the request payload.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "payloadParameters"
+ }
},
"version": {
"description": "Version for the API. Defaults to v1.",
@@ -1870,8 +2294,7 @@
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.Sensor"
- },
- "x-kubernetes-list-type": "items"
+ }
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -1885,9 +2308,6 @@
"io.argoproj.sensor.v1alpha1.SensorResources": {
"description": "SensorResources holds the metadata of the resources created for the sensor",
"type": "object",
- "required": [
- "deployment"
- ],
"properties": {
"deployment": {
"description": "Deployment holds the metadata of the deployment for the sensor",
@@ -1904,8 +2324,7 @@
"type": "object",
"required": [
"dependencies",
- "triggers",
- "subscription"
+ "triggers"
],
"properties": {
"circuit": {
@@ -1917,16 +2336,14 @@
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.EventDependency"
- },
- "x-kubernetes-list-type": "dependencies"
+ }
},
"dependencyGroups": {
"description": "DependencyGroups is a list of the groups of events.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.DependencyGroup"
- },
- "x-kubernetes-list-type": "dependencyGroups"
+ }
},
"errorOnFailedRound": {
"description": "ErrorOnFailedRound if set to true, marks sensor state as `error` if the previous trigger round fails. Once sensor state is set to `error`, no further triggers will be processed.",
@@ -1959,8 +2376,7 @@
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.Trigger"
- },
- "x-kubernetes-list-type": "triggers"
+ }
}
}
},
@@ -1970,8 +2386,7 @@
"required": [
"phase",
"triggerCycleStatus",
- "lastCycleTime",
- "resources"
+ "lastCycleTime"
],
"properties": {
"completedAt": {
@@ -2019,9 +2434,6 @@
"io.argoproj.sensor.v1alpha1.SlackTrigger": {
"description": "SlackTrigger refers to the specification of the slack notification trigger.",
"type": "object",
- "required": [
- "slackToken"
- ],
"properties": {
"channel": {
"description": "Channel refers to which Slack channel to send slack message.",
@@ -2036,12 +2448,10 @@
"type": "string"
},
"parameters": {
- "description": "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "triggerParameters"
+ }
},
"slackToken": {
"description": "SlackToken refers to the Kubernetes secret that holds the slack token required to send messages.",
@@ -2049,13 +2459,18 @@
}
}
},
- "io.argoproj.sensor.v1alpha1.StandardK8sTrigger": {
- "description": "StandardK8sTrigger is the standard Kubernetes resource trigger",
+ "io.argoproj.sensor.v1alpha1.StandardK8STrigger": {
+ "description": "StandardK8STrigger is the standard Kubernetes resource trigger",
"type": "object",
"required": [
- "source"
+ "group",
+ "version",
+ "resource"
],
"properties": {
+ "group": {
+ "type": "string"
+ },
"liveObject": {
"description": "LiveObject specifies whether the resource should be directly fetched from K8s instead of being marshaled from the resource artifact. If set to true, the resource artifact must contain the information required to uniquely identify the resource in the cluster, that is, you must specify \"apiVersion\", \"kind\" as well as \"name\" and \"namespace\" meta data. Only valid for operation type `update`",
"type": "boolean"
@@ -2065,20 +2480,24 @@
"type": "string"
},
"parameters": {
- "description": "Parameters is the list of parameters that is applied to resolved K8s trigger object.",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "triggerParameters"
+ }
},
"patchStrategy": {
"description": "PatchStrategy controls the K8s object patching strategy when the trigger operation is specified as patch. possible values: \"application/json-patch+json\" \"application/merge-patch+json\" \"application/strategic-merge-patch+json\" \"application/apply-patch+yaml\". Defaults to \"application/merge-patch+json\"",
"type": "string"
},
+ "resource": {
+ "type": "string"
+ },
"source": {
"description": "Source of the K8 resource file(s)",
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.ArtifactLocation"
+ },
+ "version": {
+ "type": "string"
}
}
},
@@ -2090,13 +2509,11 @@
],
"properties": {
"allow": {
- "description": "Allow refers to the list of allowed response statuses. If the response status of the the trigger is within the list, the trigger will marked as successful else it will result in trigger failure.",
"type": "array",
"items": {
"type": "integer",
"format": "int32"
- },
- "x-kubernetes-list-type": "allowedStatuses"
+ }
}
}
},
@@ -2185,18 +2602,13 @@
"io.argoproj.sensor.v1alpha1.Trigger": {
"description": "Trigger is an action taken, output produced, an event created, a message sent",
"type": "object",
- "required": [
- "template",
- "policy"
- ],
"properties": {
"parameters": {
"description": "Parameters is the list of parameters applied to the trigger template definition",
"type": "array",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
- },
- "x-kubernetes-list-type": "templateParameters"
+ }
},
"policy": {
"description": "Policy to configure backoff and execution criteria for the trigger",
@@ -2212,7 +2624,6 @@
"description": "TriggerParameter indicates a passed parameter to a service template",
"type": "object",
"required": [
- "src",
"dest"
],
"properties": {
@@ -2268,8 +2679,8 @@
"type": "object",
"properties": {
"k8s": {
- "description": "K8sResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels",
- "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.K8sResourcePolicy"
+ "description": "K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels",
+ "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.K8SResourcePolicy"
},
"status": {
"description": "Status refers to the policy used to check the state of the trigger using response status",
@@ -2286,16 +2697,14 @@
"type": "array",
"items": {
"type": "string"
- },
- "x-kubernetes-list-type": "all"
+ }
},
"any": {
"description": "Any acts as a OR operator between dependencies",
"type": "array",
"items": {
"type": "string"
- },
- "x-kubernetes-list-type": "any"
+ }
}
}
},
@@ -2323,8 +2732,8 @@
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.HTTPTrigger"
},
"k8s": {
- "description": "StandardK8sTrigger refers to the trigger designed to create or update a generic Kubernetes resource.",
- "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.StandardK8sTrigger"
+ "description": "StandardK8STrigger refers to the trigger designed to create or update a generic Kubernetes resource.",
+ "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.StandardK8STrigger"
},
"kafka": {
"description": "Kafka refers to the trigger designed to place messages on Kafka topic.",
@@ -2353,7 +2762,7 @@
}
},
"io.argoproj.sensor.v1alpha1.URLArtifact": {
- "description": "URLArtifact contains information about an minio at an http endpoint.",
+ "description": "URLArtifact contains information about an artifact at an http endpoint.",
"type": "object",
"required": [
"path"
diff --git a/api/sensor.html b/api/sensor.html
index 7ebde0b964..9b36dbce50 100644
--- a/api/sensor.html
+++ b/api/sensor.html
@@ -97,7 +97,6 @@ AWSLambdaTrigger
- Payload is the list of key-value extracted from an event payload to construct the request payload.
|
@@ -111,8 +110,6 @@ AWSLambdaTrigger
(Optional)
- Parameters is the list of key-value extracted from event’s payload that are applied to
-the trigger resource.
|
@@ -181,7 +178,6 @@ ArgoWorkflowTrigger
- Parameters is the list of parameters to pass to resolved Argo Workflow object
|
@@ -207,10 +203,10 @@ ArtifactLocation
(Appears on:
ArgoWorkflowTrigger,
-StandardK8sTrigger)
+StandardK8STrigger)
- ArtifactLocation describes the source location for an external minio
+ArtifactLocation describes the source location for an external artifact
@@ -228,7 +224,7 @@ ArtifactLocation
- S3 compliant minio
+S3 compliant artifact
|
@@ -239,7 +235,7 @@ ArtifactLocation
- Inline minio is embedded in sensor spec as a string
+Inline artifact is embedded in sensor spec as a string
|
@@ -252,7 +248,7 @@ ArtifactLocation
- File minio is minio stored in a file
+File artifact is artifact stored in a file
|
@@ -265,7 +261,7 @@ ArtifactLocation
- URL to fetch the minio from
+URL to fetch the artifact from
|
@@ -278,7 +274,7 @@ ArtifactLocation
- Configmap that stores the minio
+Configmap that stores the artifact
|
@@ -291,16 +287,14 @@ ArtifactLocation
- Git repository hosting the minio
+Git repository hosting the artifact
|
resource
-
-Kubernetes meta/v1/unstructured.Unstructured
-
+github.com/argoproj/argo-events/pkg/apis/common.Resource
|
@@ -309,65 +303,6 @@ ArtifactLocation
|
-Backoff
-
-
- Backoff for an operation
-
-
-
-
-Field |
-Description |
-
-
-
-
-
-duration
-
-time.Duration
-
- |
-
- Duration is the duration in nanoseconds
- |
-
-
-
-factor
-
-float64
-
- |
-
- Duration is multiplied by factor each iteration
- |
-
-
-
-jitter
-
-float64
-
- |
-
- The amount of jitter applied each iteration
- |
-
-
-
-steps
-
-int
-
- |
-
- Exit with error after this many steps
- |
-
-
-
BasicAuth
@@ -442,7 +377,7 @@ ConfigmapArtifact
ArtifactLocation)
- ConfigmapArtifact contains information about minio in k8 configmap
+ConfigmapArtifact contains information about artifact in k8 configmap
@@ -573,7 +508,6 @@ CustomTrigger
- Parameters is the list of parameters that is applied to resolved custom trigger trigger object.
|
@@ -586,7 +520,6 @@ CustomTrigger
- Payload is the list of key-value extracted from an event payload to construct the request payload.
|
@@ -991,7 +924,7 @@ FileArtifact
ArtifactLocation)
- FileArtifact contains information about an minio in a filesystem
+FileArtifact contains information about an artifact in a filesystem
@@ -1020,7 +953,7 @@ GitArtifact
ArtifactLocation)
- GitArtifact contains information about an minio stored in git
+GitArtifact contains information about an artifact stored in git
@@ -1263,7 +1196,7 @@ HTTPSubscription
port
-int
+int32
|
@@ -1310,7 +1243,6 @@ HTTPTrigger
|
- Payload is the list of key-value extracted from an event payload to construct the HTTP request payload.
|
@@ -1351,15 +1283,13 @@ HTTPTrigger
- Parameters is the list of key-value extracted from event’s payload that are applied to
-the HTTP trigger resource.
|
timeout
-int
+int64
|
@@ -1386,7 +1316,7 @@ HTTPTrigger
headers
-map[string][]string
+map[string]string
|
@@ -1405,14 +1335,14 @@ JSONType
JSONType contains the supported JSON types for data filtering
-K8sResourcePolicy
+K8SResourcePolicy
(Appears on:
TriggerPolicy)
- K8sResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels
+K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels
@@ -1437,7 +1367,7 @@ K8sResourcePolicy
backoff
-k8s.io/apimachinery/pkg/util/wait.Backoff
+github.com/argoproj/argo-events/pkg/apis/common.Backoff
|
@@ -1502,7 +1432,7 @@ KafkaTrigger
partition
-int
+int32
|
@@ -1519,14 +1449,13 @@ KafkaTrigger
|
- Parameters is the list of parameters that is applied to resolved Kafka trigger object.
|
requiredAcks
-int
+int32
|
@@ -1552,7 +1481,7 @@ KafkaTrigger
flushFrequency
-int
+int32
|
@@ -1585,7 +1514,6 @@ KafkaTrigger
|
- Payload is the list of key-value extracted from an event payload to construct the request payload.
|
|
@@ -1606,7 +1534,7 @@ KubernetesResourceOper
(string alias)
(Appears on:
-StandardK8sTrigger)
+StandardK8STrigger)
KubernetesResourceOperation refers to the type of operation performed on the K8s resource
@@ -1701,7 +1629,6 @@ NATSTrigger
- Payload is the list of key-value extracted from an event payload to construct the request payload.
|
@@ -1714,7 +1641,6 @@ NATSTrigger
- Parameters is the list of parameters that is applied to resolved NATS trigger object.
|
@@ -2001,7 +1927,6 @@ OpenWhiskTrigger
- Payload is the list of key-value extracted from an event payload to construct the request payload.
|
@@ -2015,8 +1940,6 @@ OpenWhiskTrigger
(Optional)
- Parameters is the list of key-value extracted from event’s payload that are applied to
-the trigger resource.
|
@@ -2530,8 +2453,6 @@ SlackTrigger
|
(Optional)
- Parameters is the list of key-value extracted from event’s payload that are applied to
-the trigger resource.
|
@@ -2586,14 +2507,14 @@ SlackTrigger
-StandardK8sTrigger
+StandardK8STrigger
(Appears on:
TriggerTemplate)
- StandardK8sTrigger is the standard Kubernetes resource trigger
+StandardK8STrigger is the standard Kubernetes resource trigger
@@ -2657,7 +2578,6 @@ StandardK8sTrigger
- Parameters is the list of parameters that is applied to resolved K8s trigger object.
|
@@ -2718,12 +2638,10 @@ StatusPolicy
allow
-[]int
+[]int32
|
- Allow refers to the list of allowed response statuses. If the response status of the the trigger is within the list,
-the trigger will marked as successful else it will result in trigger failure.
|
@@ -3049,7 +2967,7 @@ TriggerParameter
NATSTrigger,
OpenWhiskTrigger,
SlackTrigger,
-StandardK8sTrigger,
+StandardK8STrigger,
Trigger)
@@ -3237,13 +3155,13 @@ TriggerPolicy
k8s
-
-K8sResourcePolicy
+
+K8SResourcePolicy
|
- K8sResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels
+K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels
|
@@ -3349,14 +3267,14 @@ TriggerTemplate
k8s
-
-StandardK8sTrigger
+
+StandardK8STrigger
|
(Optional)
- StandardK8sTrigger refers to the trigger designed to create or update a generic Kubernetes resource.
+StandardK8STrigger refers to the trigger designed to create or update a generic Kubernetes resource.
|
@@ -3478,7 +3396,7 @@ URLArtifact
ArtifactLocation)
- URLArtifact contains information about an minio at an http endpoint.
+URLArtifact contains information about an artifact at an http endpoint.
diff --git a/api/sensor.md b/api/sensor.md
index a7aa6c338d..b3fdbbb6e5 100644
--- a/api/sensor.md
+++ b/api/sensor.md
@@ -201,13 +201,6 @@ Region is AWS region
-
-
-Payload is the list of key-value extracted from an event payload to
-construct the request payload.
-
-
-
|
@@ -226,13 +219,6 @@ construct the request payload.
(Optional)
-
-
-Parameters is the list of key-value extracted from event’s payload that
-are applied to the trigger resource.
-
-
-
@@ -373,13 +359,6 @@ resource. Default value is Submit.
-
-
-Parameters is the list of parameters to pass to resolved Argo Workflow
-object
-
-
-
|
@@ -428,7 +407,7 @@ ArtifactLocation
(Appears on:
ArgoWorkflowTrigger,
-StandardK8sTrigger)
+StandardK8STrigger)
@@ -436,7 +415,7 @@ ArtifactLocation
-ArtifactLocation describes the source location for an external minio
+ArtifactLocation describes the source location for an external artifact
@@ -479,7 +458,7 @@ github.com/argoproj/argo-events/pkg/apis/common.S3Artifact
-S3 compliant minio
+S3 compliant artifact
@@ -499,7 +478,7 @@ S3 compliant minio
-Inline minio is embedded in sensor spec as a string
+Inline artifact is embedded in sensor spec as a string
@@ -520,7 +499,7 @@ Inline minio is embedded in sensor spec as a string
-File minio is minio stored in a file
+File artifact is artifact stored in a file
@@ -541,7 +520,7 @@ URLArtifact
-URL to fetch the minio from
+URL to fetch the artifact from
@@ -563,7 +542,7 @@ URL to fetch the minio from
-Configmap that stores the minio
+Configmap that stores the artifact
@@ -584,7 +563,7 @@ GitArtifact
-Git repository hosting the minio
+Git repository hosting the artifact
@@ -597,8 +576,7 @@ Git repository hosting the minio
resource
-
-Kubernetes meta/v1/unstructured.Unstructured
+github.com/argoproj/argo-events/pkg/apis/common.Resource
|
@@ -618,130 +596,6 @@ Resource is generic template for K8s resource
-
-
-Backoff
-
-
-
-
-
-
-
-Backoff for an operation
-
-
-
-
-
-
-
-
-
-
-
-
-
-Field
-
- |
-
-
-
-Description
-
- |
-
-
-
-
-
-
-
-
-
-
-
-duration time.Duration
-
- |
-
-
-
-
-
-Duration is the duration in nanoseconds
-
-
-
- |
-
-
-
-
-
-
-
-factor float64
-
- |
-
-
-
-
-
-Duration is multiplied by factor each iteration
-
-
-
- |
-
-
-
-
-
-
-
-jitter float64
-
- |
-
-
-
-
-
-The amount of jitter applied each iteration
-
-
-
- |
-
-
-
-
-
-
-
-steps int
-
- |
-
-
-
-
-
-Exit with error after this many steps
-
-
-
- |
-
-
-
-
-
-
-
BasicAuth
@@ -904,7 +758,7 @@ ConfigmapArtifact
-ConfigmapArtifact contains information about minio in k8 configmap
+ConfigmapArtifact contains information about artifact in k8 configmap
@@ -1167,13 +1021,6 @@ gRPC server knows how to interpret.
-
-
-Parameters is the list of parameters that is applied to resolved custom
-trigger trigger object.
-
-
-
|
@@ -1190,13 +1037,6 @@ trigger trigger object.
-
-
-Payload is the list of key-value extracted from an event payload to
-construct the request payload.
-
-
-
|
@@ -2003,7 +1843,7 @@ FileArtifact
-FileArtifact contains information about an minio in a filesystem
+FileArtifact contains information about an artifact in a filesystem
@@ -2068,7 +1908,7 @@ GitArtifact
-GitArtifact contains information about an minio stored in git
+GitArtifact contains information about an artifact stored in git
@@ -2553,7 +2393,7 @@ Description
-port int
+port int32
|
@@ -2652,13 +2492,6 @@ URL refers to the URL to send HTTP request to.
-
-
-Payload is the list of key-value extracted from an event payload to
-construct the HTTP request payload.
-
-
-
|
@@ -2722,13 +2555,6 @@ for more info. Default value is POST.
-
-
-Parameters is the list of key-value extracted from event’s payload that
-are applied to the HTTP trigger resource.
-
-
-
|
@@ -2737,7 +2563,7 @@ are applied to the HTTP trigger resource.
-timeout int
+timeout int64
|
@@ -2783,7 +2609,7 @@ BasicAuth configuration for the http request.
-headers map\[string\]\[\]string
+headers map\[string\]string
|
@@ -2830,9 +2656,9 @@ JSONType contains the supported JSON types for data filtering
-
+
-K8sResourcePolicy
+K8SResourcePolicy
@@ -2847,7 +2673,7 @@ K8sResourcePolicy
-K8sResourcePolicy refers to the policy used to check the state of K8s
+K8SResourcePolicy refers to the policy used to check the state of K8s
based triggers using using labels
@@ -2902,8 +2728,8 @@ Labels required to identify whether a resource is in success state
-backoff k8s.io/apimachinery/pkg/util/wait.Backoff
-
+backoff
+github.com/argoproj/argo-events/pkg/apis/common.Backoff
|
@@ -3037,7 +2863,7 @@ Name of the topic. More info at
-partition int
+partition int32
|
@@ -3065,13 +2891,6 @@ Partition to write data to.
-
-
-Parameters is the list of parameters that is applied to resolved Kafka
-trigger object.
-
-
-
|
@@ -3080,7 +2899,7 @@ trigger object.
-requiredAcks int
+requiredAcks int32
|
@@ -3124,7 +2943,7 @@ false. If set to true, compresses message using snappy compression.
-flushFrequency int
+flushFrequency int32
|
@@ -3178,13 +2997,6 @@ TLS configuration for the Kafka producer.
-
-
-Payload is the list of key-value extracted from an event payload to
-construct the request payload.
-
-
-
|
@@ -3225,7 +3037,7 @@ KubernetesResourceOperation (string alias)
(Appears on:
-StandardK8sTrigger)
+StandardK8STrigger)
@@ -3431,13 +3243,6 @@ Name of the subject to put message on.
-
-
-Payload is the list of key-value extracted from an event payload to
-construct the request payload.
-
-
-
|
@@ -3454,13 +3259,6 @@ construct the request payload.
-
-
-Parameters is the list of parameters that is applied to resolved NATS
-trigger object.
-
-
-
|
@@ -4012,13 +3810,6 @@ Name of the action/function.
-
-
-Payload is the list of key-value extracted from an event payload to
-construct the request payload.
-
-
-
|
@@ -4037,13 +3828,6 @@ construct the request payload.
(Optional)
-
-
-Parameters is the list of key-value extracted from event’s payload that
-are applied to the trigger resource.
-
-
-
@@ -4998,13 +4782,6 @@ Description
(Optional)
-
-
-Parameters is the list of key-value extracted from event’s payload that
-are applied to the trigger resource.
-
-
-
@@ -5103,9 +4880,9 @@ Message refers to the message to send to the Slack channel.
-
+
-StandardK8sTrigger
+StandardK8STrigger
@@ -5120,7 +4897,7 @@ StandardK8sTrigger
-StandardK8sTrigger is the standard Kubernetes resource trigger
+StandardK8STrigger is the standard Kubernetes resource trigger
@@ -5239,13 +5016,6 @@ Default value is Create.
|
-
-
-Parameters is the list of parameters that is applied to resolved K8s
-trigger object.
-
-
-
|
|
@@ -5361,20 +5131,12 @@ Description
-allow \[\]int
+allow \[\]int32
|
-
-
-Allow refers to the list of allowed response statuses. If the response
-status of the the trigger is within the list, the trigger will marked as
-successful else it will result in trigger failure.
-
-
-
|
@@ -6030,7 +5792,7 @@ TriggerParameter
NATSTrigger,
OpenWhiskTrigger,
SlackTrigger,
-StandardK8sTrigger,
+StandardK8STrigger,
Trigger)
@@ -6422,7 +6184,7 @@ Description
k8s
- K8sResourcePolicy
+ K8SResourcePolicy
|
@@ -6431,7 +6193,7 @@ Description
-K8sResourcePolicy refers to the policy used to check the state of K8s
+K8SResourcePolicy refers to the policy used to check the state of K8s
based triggers using using labels
@@ -6654,7 +6416,7 @@ Switch is the condition to execute the trigger.
k8s
- StandardK8sTrigger
+ StandardK8STrigger
|
@@ -6665,7 +6427,7 @@ Switch is the condition to execute the trigger.
-StandardK8sTrigger refers to the trigger designed to create or update a
+StandardK8STrigger refers to the trigger designed to create or update a
generic Kubernetes resource.
@@ -6882,7 +6644,7 @@ URLArtifact
-URLArtifact contains information about an minio at an http endpoint.
+URLArtifact contains information about an artifact at an http endpoint.
diff --git a/common/retry.go b/common/retry.go
index b9dc15bfda..8b5539b62d 100644
--- a/common/retry.go
+++ b/common/retry.go
@@ -21,15 +21,9 @@ import (
apierr "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/util/wait"
-)
-// Backoff defines an operational backoff
-type Backoff struct {
- Duration time.Duration `json:"duration"` // the base duration
- Factor float64 `json:"factor"` // Duration is multiplied by factor each iteration
- Jitter float64 `json:"jitter"` // The amount of jitter applied each iteration
- Steps int `json:"steps"` // Exit with error after this many steps
-}
+ apicommon "github.com/argoproj/argo-events/pkg/apis/common"
+)
// DefaultRetry is a default retry backoff settings when retrying API calls
var DefaultRetry = wait.Backoff{
@@ -49,7 +43,7 @@ func IsRetryableKubeAPIError(err error) bool {
}
// GetConnectionBackoff returns a connection backoff option
-func GetConnectionBackoff(backoff *Backoff) *wait.Backoff {
+func GetConnectionBackoff(backoff *apicommon.Backoff) *wait.Backoff {
result := wait.Backoff{
Duration: DefaultRetry.Duration,
Factor: DefaultRetry.Factor,
@@ -62,14 +56,12 @@ func GetConnectionBackoff(backoff *Backoff) *wait.Backoff {
if &backoff.Duration != nil {
result.Duration = backoff.Duration
}
- if backoff.Factor != 0 {
- result.Factor = backoff.Factor
- }
- if backoff.Jitter != 0 {
- result.Jitter = backoff.Jitter
+ result.Factor, _ = backoff.Factor.Float64()
+ if backoff.Jitter != nil {
+ result.Jitter, _ = backoff.Jitter.Float64()
}
if backoff.Steps != 0 {
- result.Steps = backoff.Steps
+ result.Steps = backoff.GetSteps()
}
return &result
}
diff --git a/controllers/eventbus/controller_test.go b/controllers/eventbus/controller_test.go
index 63fc91899b..6fd129efa9 100644
--- a/controllers/eventbus/controller_test.go
+++ b/controllers/eventbus/controller_test.go
@@ -38,10 +38,10 @@ var (
Spec: v1alpha1.EventBusSpec{
NATS: &v1alpha1.NATSBus{
Native: &v1alpha1.NativeStrategy{
- Size: 1,
- Auth: &v1alpha1.AuthStrategyToken,
+ Replicas: 1,
+ Auth: &v1alpha1.AuthStrategyToken,
Persistence: &v1alpha1.PersistenceStrategy{
- Size: &volumeSize,
+ VolumeSize: &volumeSize,
},
},
},
diff --git a/controllers/eventbus/installer/nats.go b/controllers/eventbus/installer/nats.go
index 7a577105a5..70a59307f2 100644
--- a/controllers/eventbus/installer/nats.go
+++ b/controllers/eventbus/installer/nats.go
@@ -427,12 +427,12 @@ func (i *natsInstaller) buildConfigMap() (*corev1.ConfigMap, error) {
clusterID := generateClusterID(i.eventBus)
svcName := generateServiceName(i.eventBus)
ssName := generateStatefulSetName(i.eventBus)
- size := i.eventBus.Spec.NATS.Native.Size
- if size < 3 {
- size = 3
+ replicas := i.eventBus.Spec.NATS.Native.GetReplicas()
+ if replicas < 3 {
+ replicas = 3
}
peers := []string{}
- for j := 0; j < size; j++ {
+ for j := 0; j < replicas; j++ {
peers = append(peers, fmt.Sprintf("\"%s-%s\"", ssName, strconv.Itoa(j)))
}
conf := fmt.Sprintf(`http: %s
@@ -540,7 +540,7 @@ func (i *natsInstaller) buildStatefulSet(serviceName, configmapName, authSecretN
func (i *natsInstaller) buildStatefulSetSpec(serviceName, configmapName, authSecretName string) appv1.StatefulSetSpec {
// Streaming requires minimal size 3.
- replicas := int32(i.eventBus.Spec.NATS.Native.Size)
+ replicas := i.eventBus.Spec.NATS.Native.Replicas
if replicas < 3 {
replicas = 3
}
@@ -635,8 +635,8 @@ func (i *natsInstaller) buildStatefulSetSpec(serviceName, configmapName, authSec
pvcName := generatePVCName(i.eventBus)
// Default volume size
volSize := apiresource.MustParse("5Gi")
- if i.eventBus.Spec.NATS.Native.Persistence.Size != nil {
- volSize = *i.eventBus.Spec.NATS.Native.Persistence.Size
+ if i.eventBus.Spec.NATS.Native.Persistence.VolumeSize != nil {
+ volSize = *i.eventBus.Spec.NATS.Native.Persistence.VolumeSize
}
// Default to ReadWriteOnce
accessMode := corev1.ReadWriteOnce
diff --git a/controllers/gateway/resource.go b/controllers/gateway/resource.go
index 45a9e7ac64..5b6c558fb8 100644
--- a/controllers/gateway/resource.go
+++ b/controllers/gateway/resource.go
@@ -92,7 +92,7 @@ func (ctx *gatewayContext) makeDeploymentSpec() (*appv1.DeploymentSpec, error) {
return ctx.makeLegacyDeploymentSpec()
}
- replicas := int32(ctx.gateway.Spec.Replica)
+ replicas := ctx.gateway.Spec.Replica
if replicas == 0 {
replicas = 1
}
@@ -164,7 +164,7 @@ func (ctx *gatewayContext) makeDeploymentSpec() (*appv1.DeploymentSpec, error) {
// makeLegacyDeploymentSpec is deprecated, will be unsupported soon.
func (ctx *gatewayContext) makeLegacyDeploymentSpec() (*appv1.DeploymentSpec, error) {
- replicas := int32(ctx.gateway.Spec.Replica)
+ replicas := ctx.gateway.Spec.Replica
if replicas == 0 {
replicas = 1
}
diff --git a/controllers/sensor/controller.go b/controllers/sensor/controller.go
index 0bd3309e4c..c89d0f8472 100644
--- a/controllers/sensor/controller.go
+++ b/controllers/sensor/controller.go
@@ -21,10 +21,6 @@ import (
"errors"
"time"
- base "github.com/argoproj/argo-events"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- clientset "github.com/argoproj/argo-events/pkg/client/sensor/clientset/versioned"
"github.com/sirupsen/logrus"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/wait"
@@ -32,6 +28,11 @@ import (
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/cache"
"k8s.io/client-go/util/workqueue"
+
+ base "github.com/argoproj/argo-events"
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ clientset "github.com/argoproj/argo-events/pkg/client/sensor/clientset/versioned"
)
// informer constants
diff --git a/controllers/sensor/controller_test.go b/controllers/sensor/controller_test.go
index 92ef4fa2fb..5613d223e1 100644
--- a/controllers/sensor/controller_test.go
+++ b/controllers/sensor/controller_test.go
@@ -20,14 +20,15 @@ import (
"fmt"
"testing"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- fakesensor "github.com/argoproj/argo-events/pkg/client/sensor/clientset/versioned/fake"
"github.com/stretchr/testify/assert"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/util/workqueue"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ fakesensor "github.com/argoproj/argo-events/pkg/client/sensor/clientset/versioned/fake"
)
var (
diff --git a/controllers/sensor/node.go b/controllers/sensor/node.go
index cd5f3ac736..6b3ff7cfa5 100644
--- a/controllers/sensor/node.go
+++ b/controllers/sensor/node.go
@@ -19,10 +19,11 @@ package sensor
import (
"time"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/sirupsen/logrus"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
// GetNodeByName returns a copy of the node from this sensor for the nodename
diff --git a/controllers/sensor/node_test.go b/controllers/sensor/node_test.go
index b3c9a16a2b..dd14196457 100644
--- a/controllers/sensor/node_test.go
+++ b/controllers/sensor/node_test.go
@@ -19,11 +19,12 @@ package sensor
import (
"testing"
+ "github.com/stretchr/testify/assert"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
fakesensor "github.com/argoproj/argo-events/pkg/client/sensor/clientset/versioned/fake"
- "github.com/stretchr/testify/assert"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
func TestSensorState(t *testing.T) {
diff --git a/controllers/sensor/operator.go b/controllers/sensor/operator.go
index cb1dec2a76..fddb922353 100644
--- a/controllers/sensor/operator.go
+++ b/controllers/sensor/operator.go
@@ -19,12 +19,13 @@ package sensor
import (
"time"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- sensorclientset "github.com/argoproj/argo-events/pkg/client/sensor/clientset/versioned"
"github.com/sirupsen/logrus"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/wait"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ sensorclientset "github.com/argoproj/argo-events/pkg/client/sensor/clientset/versioned"
)
// the context of an operation on a sensor.
diff --git a/controllers/sensor/operator_test.go b/controllers/sensor/operator_test.go
index 36199f5c0c..e27ed1f13a 100644
--- a/controllers/sensor/operator_test.go
+++ b/controllers/sensor/operator_test.go
@@ -20,10 +20,11 @@ import (
"fmt"
"testing"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
func TestOperate(t *testing.T) {
diff --git a/controllers/sensor/resource.go b/controllers/sensor/resource.go
index 2496995634..de34a0faff 100644
--- a/controllers/sensor/resource.go
+++ b/controllers/sensor/resource.go
@@ -36,7 +36,7 @@ import (
func (ctx *sensorContext) generateServiceSpec() *corev1.Service {
port := common.SensorServerPort
if ctx.sensor.Spec.Subscription.HTTP != nil {
- port = ctx.sensor.Spec.Subscription.HTTP.Port
+ port = int(ctx.sensor.Spec.Subscription.HTTP.Port)
}
serviceSpec := &corev1.Service{
diff --git a/controllers/sensor/resource_test.go b/controllers/sensor/resource_test.go
index c501383467..deb3847248 100644
--- a/controllers/sensor/resource_test.go
+++ b/controllers/sensor/resource_test.go
@@ -19,9 +19,10 @@ package sensor
import (
"testing"
+ "github.com/stretchr/testify/assert"
+
"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- "github.com/stretchr/testify/assert"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -59,8 +60,8 @@ var sensorObj = &v1alpha1.Sensor{
{
Template: &v1alpha1.TriggerTemplate{
Name: "fake-trigger",
- K8s: &v1alpha1.StandardK8sTrigger{
- GroupVersionResource: &metav1.GroupVersionResource{
+ K8s: &v1alpha1.StandardK8STrigger{
+ GroupVersionResource: metav1.GroupVersionResource{
Group: "k8s.io",
Version: "",
Resource: "pods",
@@ -94,8 +95,8 @@ var sensorObjNoTemplate = &v1alpha1.Sensor{
{
Template: &v1alpha1.TriggerTemplate{
Name: "fake-trigger",
- K8s: &v1alpha1.StandardK8sTrigger{
- GroupVersionResource: &metav1.GroupVersionResource{
+ K8s: &v1alpha1.StandardK8STrigger{
+ GroupVersionResource: metav1.GroupVersionResource{
Group: "k8s.io",
Version: "",
Resource: "pods",
diff --git a/controllers/sensor/validate.go b/controllers/sensor/validate.go
index 874726a3cf..0d9410bea9 100644
--- a/controllers/sensor/validate.go
+++ b/controllers/sensor/validate.go
@@ -22,9 +22,10 @@ import (
"time"
"github.com/Knetic/govaluate"
+ "github.com/pkg/errors"
+
"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- "github.com/pkg/errors"
)
// ValidateSensor accepts a sensor and performs validation against it
@@ -162,14 +163,14 @@ func validateTriggerTemplate(template *v1alpha1.TriggerTemplate) error {
}
// validateK8sTrigger validates a kubernetes trigger
-func validateK8sTrigger(trigger *v1alpha1.StandardK8sTrigger) error {
+func validateK8sTrigger(trigger *v1alpha1.StandardK8STrigger) error {
if trigger == nil {
return errors.New("k8s trigger for can't be nil")
}
if trigger.Source == nil {
return errors.New("k8s trigger for does not contain an absolute action")
}
- if trigger.GroupVersionResource == nil {
+ if trigger.GroupVersionResource.Resource == "" {
return errors.New("must provide group, version and resource for the resource")
}
switch trigger.Operation {
@@ -195,7 +196,7 @@ func validateArgoWorkflowTrigger(trigger *v1alpha1.ArgoWorkflowTrigger) error {
if trigger.Source == nil {
return errors.New("k8s trigger for does not contain an absolute action")
}
- if trigger.GroupVersionResource == nil {
+ if trigger.GroupVersionResource.Size() == 0 {
return errors.New("must provide group, version and resource for the resource")
}
switch trigger.Operation {
@@ -533,7 +534,7 @@ func validateTriggerPolicy(trigger *v1alpha1.Trigger) error {
}
// validateK8sTriggerPolicy validates a k8s trigger policy
-func validateK8sTriggerPolicy(policy *v1alpha1.K8sResourcePolicy) error {
+func validateK8sTriggerPolicy(policy *v1alpha1.K8SResourcePolicy) error {
if policy == nil {
return nil
}
diff --git a/controllers/sensor/validate_test.go b/controllers/sensor/validate_test.go
index 79a798cda4..e0e21eca22 100644
--- a/controllers/sensor/validate_test.go
+++ b/controllers/sensor/validate_test.go
@@ -21,9 +21,10 @@ import (
"io/ioutil"
"testing"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/ghodss/yaml"
"github.com/stretchr/testify/assert"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
func TestValidateSensor(t *testing.T) {
diff --git a/gateways/client/event-source_test.go b/gateways/client/event-source_test.go
index bc61fcf20f..4d185e1e66 100644
--- a/gateways/client/event-source_test.go
+++ b/gateways/client/event-source_test.go
@@ -24,17 +24,17 @@ import (
"testing"
"time"
+ "github.com/stretchr/testify/assert"
+ "google.golang.org/grpc"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ "k8s.io/client-go/kubernetes/fake"
+
"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/gateways"
- "github.com/argoproj/argo-events/gateways/server/common/webhook"
apicommon "github.com/argoproj/argo-events/pkg/apis/common"
esv1alpha1 "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
"github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1"
gwfake "github.com/argoproj/argo-events/pkg/client/gateway/clientset/versioned/fake"
- "github.com/stretchr/testify/assert"
- "google.golang.org/grpc"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- "k8s.io/client-go/kubernetes/fake"
)
func getGatewayContext() *GatewayContext {
@@ -66,15 +66,14 @@ func getEventSource() *esv1alpha1.EventSource {
Name: "fake-event-source",
Namespace: "fake-namespace",
},
- Spec: &esv1alpha1.EventSourceSpec{
- Webhook: map[string]webhook.Context{
+ Spec: esv1alpha1.EventSourceSpec{
+ Webhook: map[string]esv1alpha1.WebhookContext{
"first-webhook": {
Endpoint: "/first-webhook",
Method: http.MethodPost,
Port: "13000",
},
},
- Type: apicommon.WebhookEvent,
},
}
}
@@ -191,7 +190,7 @@ func TestSyncEventSources(t *testing.T) {
delete(eventSource.Spec.Webhook, "first-webhook")
- eventSource.Spec.Webhook["second-webhook"] = webhook.Context{
+ eventSource.Spec.Webhook["second-webhook"] = esv1alpha1.WebhookContext{
Endpoint: "/second-webhook",
Method: http.MethodPost,
Port: "13000",
diff --git a/gateways/server/calendar/start_test.go b/gateways/server/calendar/start_test.go
index 4de36bce1a..2b6c99e021 100644
--- a/gateways/server/calendar/start_test.go
+++ b/gateways/server/calendar/start_test.go
@@ -47,7 +47,7 @@ func TestListenEvents(t *testing.T) {
calendarEventSource := &v1alpha1.CalendarEventSource{
Interval: "2s",
- UserPayload: &raw,
+ UserPayload: raw,
}
body, err := yaml.Marshal(calendarEventSource)
diff --git a/gateways/server/common/webhook/fake.go b/gateways/server/common/webhook/fake.go
index 3ef30c999e..c929a61f81 100644
--- a/gateways/server/common/webhook/fake.go
+++ b/gateways/server/common/webhook/fake.go
@@ -21,9 +21,10 @@ import (
"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/gateways"
+ v1alpha12 "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
)
-var Hook = &Context{
+var Hook = &v1alpha12.WebhookContext{
Endpoint: "/fake",
Port: "12000",
URL: "test-url",
diff --git a/gateways/server/common/webhook/types.go b/gateways/server/common/webhook/types.go
index d77c6cd724..ee4aeb92a9 100644
--- a/gateways/server/common/webhook/types.go
+++ b/gateways/server/common/webhook/types.go
@@ -20,9 +20,11 @@ import (
"net/http"
"sync"
- "github.com/argoproj/argo-events/gateways"
"github.com/gorilla/mux"
"github.com/sirupsen/logrus"
+
+ "github.com/argoproj/argo-events/gateways"
+ v1alpha12 "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
)
var (
@@ -44,8 +46,8 @@ type Router interface {
// Route contains general information about a route
type Route struct {
- // Context refers to the webhook context
- Context *Context
+ // WebhookContext refers to the webhook context
+ Context *v1alpha12.WebhookContext
// Logger to log stuff
Logger *logrus.Logger
// StartCh controls the
@@ -72,20 +74,3 @@ type Controller struct {
// RouteDeactivateChan handles inactivation of routes
RouteDeactivateChan chan Router
}
-
-// Context holds a general purpose REST API context
-type Context struct {
- // REST API endpoint
- Endpoint string `json:"endpoint" protobuf:"bytes,1,name=endpoint"`
- // Method is HTTP request method that indicates the desired action to be performed for a given resource.
- // See RFC7231 Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
- Method string `json:"method" protobuf:"bytes,2,name=method"`
- // Port on which HTTP server is listening for incoming events.
- Port string `json:"port" protobuf:"bytes,3,name=port"`
- // URL is the url of the server.
- URL string `json:"url" protobuf:"bytes,4,name=url"`
- // ServerCertPath refers the file that contains the cert.
- ServerCertPath string `json:"serverCertPath,omitempty" protobuf:"bytes,4,opt,name=serverCertPath"`
- // ServerKeyPath refers the file that contains private key
- ServerKeyPath string `json:"serverKeyPath,omitempty" protobuf:"bytes,5,opt,name=serverKeyPath"`
-}
diff --git a/gateways/server/common/webhook/validate.go b/gateways/server/common/webhook/validate.go
index 63f7b8f84c..5390024a83 100644
--- a/gateways/server/common/webhook/validate.go
+++ b/gateways/server/common/webhook/validate.go
@@ -19,10 +19,12 @@ package webhook
import (
"fmt"
"strconv"
+
+ v1alpha12 "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
)
// ValidateWebhookContext validates a webhook context
-func ValidateWebhookContext(context *Context) error {
+func ValidateWebhookContext(context *v1alpha12.WebhookContext) error {
if context == nil {
return fmt.Errorf("")
}
diff --git a/gateways/server/common/webhook/webhook.go b/gateways/server/common/webhook/webhook.go
index 0d42f258c4..2cb315569a 100644
--- a/gateways/server/common/webhook/webhook.go
+++ b/gateways/server/common/webhook/webhook.go
@@ -20,10 +20,12 @@ import (
"fmt"
"net/http"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/gateways"
"github.com/gorilla/mux"
"github.com/sirupsen/logrus"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/gateways"
+ v1alpha12 "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
)
// NewController returns a webhook controller
@@ -37,7 +39,7 @@ func NewController() *Controller {
}
// NewRoute returns a vanilla route
-func NewRoute(hookContext *Context, logger *logrus.Logger, eventSource *gateways.EventSource) *Route {
+func NewRoute(hookContext *v1alpha12.WebhookContext, logger *logrus.Logger, eventSource *gateways.EventSource) *Route {
return &Route{
Context: hookContext,
Logger: logger,
diff --git a/gateways/server/github/start_test.go b/gateways/server/github/start_test.go
index 83d831b148..97cab18b04 100644
--- a/gateways/server/github/start_test.go
+++ b/gateways/server/github/start_test.go
@@ -23,14 +23,15 @@ import (
"net/http"
"testing"
- "github.com/argoproj/argo-events/gateways/server/common/webhook"
- "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
"github.com/ghodss/yaml"
"github.com/google/go-github/v31/github"
"github.com/smartystreets/goconvey/convey"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"
+
+ "github.com/argoproj/argo-events/gateways/server/common/webhook"
+ "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
)
var (
@@ -62,7 +63,7 @@ func TestGetCredentials(t *testing.T) {
convey.So(secret, convey.ShouldNotBeNil)
githubEventSource := &v1alpha1.GithubEventSource{
- Webhook: &webhook.Context{
+ Webhook: &v1alpha1.WebhookContext{
Endpoint: "/push",
URL: "http://webhook-gateway-svc",
Port: "12000",
@@ -96,7 +97,7 @@ func TestRouteActiveHandler(t *testing.T) {
convey.Convey("Inactive route should return error", func() {
writer := &webhook.FakeHttpWriter{}
githubEventSource := &v1alpha1.GithubEventSource{
- Webhook: &webhook.Context{
+ Webhook: &v1alpha1.WebhookContext{
Endpoint: "/push",
URL: "http://webhook-gateway-svc",
Port: "12000",
diff --git a/gateways/server/redis/start.go b/gateways/server/redis/start.go
index dd0e40802f..69da6ac722 100644
--- a/gateways/server/redis/start.go
+++ b/gateways/server/redis/start.go
@@ -82,7 +82,7 @@ func (listener *EventListener) listenEvents(eventSource *gateways.EventSource, c
opt := &redis.Options{
Addr: redisEventSource.HostAddress,
Password: password,
- DB: redisEventSource.DB,
+ DB: int(redisEventSource.DB),
}
if redisEventSource.TLS != nil {
diff --git a/gateways/server/storagegrid/start_test.go b/gateways/server/storagegrid/start_test.go
index 0267199338..2bf55358f2 100644
--- a/gateways/server/storagegrid/start_test.go
+++ b/gateways/server/storagegrid/start_test.go
@@ -23,10 +23,11 @@ import (
"net/http"
"testing"
- "github.com/argoproj/argo-events/gateways/server/common/webhook"
- "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
"github.com/ghodss/yaml"
"github.com/smartystreets/goconvey/convey"
+
+ "github.com/argoproj/argo-events/gateways/server/common/webhook"
+ "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
)
var (
@@ -81,7 +82,7 @@ var (
func TestRouteActiveHandler(t *testing.T) {
convey.Convey("Given a route configuration", t, func() {
storageGridEventSource := &v1alpha1.StorageGridEventSource{
- Webhook: &webhook.Context{
+ Webhook: &v1alpha1.WebhookContext{
Endpoint: "/",
URL: "testurl",
Port: "8080",
@@ -134,7 +135,7 @@ func TestGenerateUUID(t *testing.T) {
func TestFilterName(t *testing.T) {
convey.Convey("Given a storage grid event, test whether the object key passes the filter", t, func() {
storageGridEventSource := &v1alpha1.StorageGridEventSource{
- Webhook: &webhook.Context{
+ Webhook: &v1alpha1.WebhookContext{
Endpoint: "/",
URL: "testurl",
Port: "8080",
diff --git a/gateways/server/webhook/start.go b/gateways/server/webhook/start.go
index 38acedc588..750e881244 100644
--- a/gateways/server/webhook/start.go
+++ b/gateways/server/webhook/start.go
@@ -21,12 +21,14 @@ import (
"io/ioutil"
"net/http"
+ "github.com/ghodss/yaml"
+ "github.com/sirupsen/logrus"
+
"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/gateways"
"github.com/argoproj/argo-events/gateways/server/common/webhook"
"github.com/argoproj/argo-events/pkg/apis/events"
- "github.com/ghodss/yaml"
- "github.com/sirupsen/logrus"
+ v1alpha12 "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
)
// EventListener implements Eventing for webhook events
@@ -123,7 +125,7 @@ func (listener *EventListener) StartEventSource(eventSource *gateways.EventSourc
log.Info("started operating on the event source...")
- var webhookEventSource *webhook.Context
+ var webhookEventSource *v1alpha12.WebhookContext
if err := yaml.Unmarshal(eventSource.Value, &webhookEventSource); err != nil {
log.WithError(err).Error("failed to parse the event source")
return err
diff --git a/gateways/server/webhook/validate.go b/gateways/server/webhook/validate.go
index c8b7a0385f..a66b1768ec 100644
--- a/gateways/server/webhook/validate.go
+++ b/gateways/server/webhook/validate.go
@@ -19,11 +19,13 @@ package webhook
import (
"context"
+ "github.com/ghodss/yaml"
+
"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/gateways"
"github.com/argoproj/argo-events/gateways/server/common/webhook"
apicommon "github.com/argoproj/argo-events/pkg/apis/common"
- "github.com/ghodss/yaml"
+ v1alpha12 "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
)
// ValidateEventSource validates webhook event source
@@ -35,7 +37,7 @@ func (listener *EventListener) ValidateEventSource(ctx context.Context, eventSou
}, nil
}
- var webhookEventSource *webhook.Context
+ var webhookEventSource *v1alpha12.WebhookContext
if err := yaml.Unmarshal(eventSource.Value, &webhookEventSource); err != nil {
listener.Logger.WithError(err).Error("failed to parse the event source")
return &gateways.ValidEventSource{
@@ -57,7 +59,7 @@ func (listener *EventListener) ValidateEventSource(ctx context.Context, eventSou
}, nil
}
-func validate(webhookEventSource *webhook.Context) error {
+func validate(webhookEventSource *v1alpha12.WebhookContext) error {
if webhookEventSource == nil {
return common.ErrNilEventSource
}
diff --git a/go.mod b/go.mod
index ad4ad44349..fad23f61b8 100644
--- a/go.mod
+++ b/go.mod
@@ -34,7 +34,7 @@ require (
github.com/go-redis/redis v6.15.7+incompatible
github.com/go-resty/resty/v2 v2.3.0
github.com/gobwas/glob v0.2.4-0.20181002190808-e7a84e9525fe
- github.com/gogo/protobuf v1.3.1 // indirect
+ github.com/gogo/protobuf v1.3.1
github.com/golang/protobuf v1.3.5
github.com/google/go-cmp v0.4.0
github.com/google/go-github/v31 v31.0.0
@@ -45,6 +45,7 @@ require (
github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 // indirect
github.com/gorilla/mux v1.7.4
github.com/gorilla/websocket v1.4.2 // indirect
+ github.com/grpc-ecosystem/grpc-gateway v1.9.5
github.com/hashicorp/go-retryablehttp v0.6.5 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hokaccha/go-prettyjson v0.0.0-20190818114111-108c894c2c0e // indirect
@@ -107,7 +108,8 @@ require (
k8s.io/kubernetes v1.17.5 // indirect
k8s.io/utils v0.0.0-20200327001022-6496210b90e8 // indirect
sigs.k8s.io/controller-runtime v0.5.4
- sigs.k8s.io/yaml v1.2.0 // indirect
+ sigs.k8s.io/controller-tools v0.2.5
+ sigs.k8s.io/yaml v1.2.0
)
replace k8s.io/api => k8s.io/api v0.17.5
diff --git a/go.sum b/go.sum
index acc5cdd247..234d117357 100644
--- a/go.sum
+++ b/go.sum
@@ -367,6 +367,8 @@ github.com/go-toolsmith/pkgload v0.0.0-20181119091011-e9e65178eee8/go.mod h1:WoM
github.com/go-toolsmith/pkgload v1.0.0/go.mod h1:5eFArkbO80v7Z0kdngIxsRXRMTaX4Ilcwuh3clNrQJc=
github.com/go-toolsmith/strparse v1.0.0/go.mod h1:YI2nUKP9YGZnL/L1/DLFBfixrcjslWct4wyljWhSRy8=
github.com/go-toolsmith/typep v1.0.0/go.mod h1:JSQCQMUPdRlMZFswiq3TGpNp1GMktqkR2Ns5AIQkATU=
+github.com/gobuffalo/flect v0.2.0 h1:EWCvMGGxOjsgwlWaP+f4+Hh6yrrte7JeFL2S6b+0hdM=
+github.com/gobuffalo/flect v0.2.0/go.mod h1:W3K3X9ksuZfir8f/LrfVtWmCDQFfayuylOJ7sz/Fj80=
github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8=
github.com/gobwas/glob v0.2.4-0.20181002190808-e7a84e9525fe h1:zn8tqiUbec4wR94o7Qj3LZCAT6uGobhEgnDRg6isG5U=
github.com/gobwas/glob v0.2.4-0.20181002190808-e7a84e9525fe/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8=
@@ -378,6 +380,7 @@ github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d h1:3PaI8p3seN09Vjb
github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls=
github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
+github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
@@ -605,6 +608,7 @@ github.com/mailru/easyjson v0.7.1 h1:mdxE1MF9o53iCb2Ghj1VfWvh7ZOwHpnVG/xwXrV90U8
github.com/mailru/easyjson v0.7.1/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs=
github.com/marten-seemann/qtls v0.2.3/go.mod h1:xzjG7avBwGGbdZ8dTGxlBnLArsVKLvwmjgmPuiQEcYk=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
+github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-colorable v0.1.6 h1:6Su7aK7lXmJ/U79bYtBjLNaha4Fs1Rg9plHpcH+vvnE=
github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
@@ -1249,6 +1253,8 @@ gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v3 v3.0.0-20190905181640-827449938966 h1:B0J02caTR6tpSJozBJyiAzT6CtBzjclw4pgm9gg8Ys0=
+gopkg.in/yaml.v3 v3.0.0-20190905181640-827449938966/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gotest.tools v2.1.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
@@ -1325,6 +1331,8 @@ rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
sigs.k8s.io/controller-runtime v0.5.4 h1:2w5Hpxdw2OZ3mHlbl0CB9L4fSOwcplPtaIkVkqmjRdI=
sigs.k8s.io/controller-runtime v0.5.4/go.mod h1:JZUwSMVbxDupo0lTJSSFP5pimEyxGynROImSsqIOx1A=
+sigs.k8s.io/controller-tools v0.2.5 h1:kH7HKWed9XO42OTxyhUtqyImiefdZV2Q9Jbrytvhf18=
+sigs.k8s.io/controller-tools v0.2.5/go.mod h1:+t0Hz6tOhJQCdd7IYO0mNzimmiM9sqMU0021u6UCF2o=
sigs.k8s.io/kustomize v2.0.3+incompatible h1:JUufWFNlI44MdtnjUqVnvh29rR37PQFzPbLXqhyOyX0=
sigs.k8s.io/kustomize v2.0.3+incompatible/go.mod h1:MkjgH3RdOWrievjo6c9T245dYlB5QeXV4WCbnt/PEpU=
sigs.k8s.io/structured-merge-diff/v2 v2.0.1/go.mod h1:Wb7vfKAodbKgf6tn1Kl0VvGj7mRH6DGaRcixXEJXTsE=
diff --git a/hack/auto-gen-msg.sh b/hack/auto-gen-msg.sh
new file mode 100755
index 0000000000..27ed252363
--- /dev/null
+++ b/hack/auto-gen-msg.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+set -eu -o pipefail
+
+echo "# This is an auto-generated file. DO NOT EDIT"
+cat
\ No newline at end of file
diff --git a/hack/crdgen.sh b/hack/crdgen.sh
new file mode 100755
index 0000000000..4b1e303ccc
--- /dev/null
+++ b/hack/crdgen.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+set -eu -o pipefail
+
+source $(dirname $0)/library.sh
+ensure_vendor
+
+add_header() {
+ cat "$1" | ./hack/auto-gen-msg.sh >tmp
+ mv tmp "$1"
+}
+
+if [ "$(command -v controller-gen)" = "" ]; then
+ go install ./vendor/sigs.k8s.io/controller-tools/cmd/controller-gen
+fi
+
+header "Generating CRDs"
+${GOPATH}/bin/controller-gen crd:trivialVersions=true,maxDescLen=0 paths=./pkg/apis/... output:dir=manifests/base/crds
+
+find manifests/base/crds -name 'argoproj.io*.yaml' | while read -r file; do
+ echo "Patching ${file}"
+ # remove junk fields
+ go run ./hack cleancrd "$file"
+ add_header "$file"
+done
diff --git a/hack/crds.go b/hack/crds.go
new file mode 100644
index 0000000000..dca6639eae
--- /dev/null
+++ b/hack/crds.go
@@ -0,0 +1,33 @@
+package main
+
+import (
+ "io/ioutil"
+
+ "sigs.k8s.io/yaml"
+)
+
+func cleanCRD(filename string) {
+ data, err := ioutil.ReadFile(filename)
+ if err != nil {
+ panic(err)
+ }
+ crd := make(map[string]interface{})
+ err = yaml.Unmarshal(data, &crd)
+ if err != nil {
+ panic(err)
+ }
+ delete(crd, "status")
+ metadata := crd["metadata"].(map[string]interface{})
+ delete(metadata, "annotations")
+ delete(metadata, "creationTimestamp")
+ spec := crd["spec"].(map[string]interface{})
+ delete(spec, "validation")
+ data, err = yaml.Marshal(crd)
+ if err != nil {
+ panic(err)
+ }
+ err = ioutil.WriteFile(filename, data, 0666)
+ if err != nil {
+ panic(err)
+ }
+}
diff --git a/hack/gen-openapi-spec/main.go b/hack/gen-openapi-spec/main.go
index f7eeaa48c8..d956c43f4c 100644
--- a/hack/gen-openapi-spec/main.go
+++ b/hack/gen-openapi-spec/main.go
@@ -7,11 +7,13 @@ import (
"os"
"strings"
- cv1 "github.com/argoproj/argo-events/pkg/apis/common"
- gwv1 "github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1"
- sv1 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/go-openapi/spec"
"k8s.io/kube-openapi/pkg/common"
+
+ cv1 "github.com/argoproj/argo-events/pkg/apis/common"
+ ebv1 "github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1"
+ esv1 "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
+ sv1 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
// Generate OpenAPI spec definitions for Workflow Resource
@@ -23,23 +25,20 @@ func main() {
if !strings.HasPrefix(version, "v") {
version = "v" + version
}
- gwOAPIDefs := gwv1.GetOpenAPIDefinitions(func(name string) spec.Ref {
+ referenceCallback := func(name string) spec.Ref {
return spec.MustCreateRef("#/definitions/" + common.EscapeJsonPointer(swaggify(name)))
- })
- sOAPIDefs := sv1.GetOpenAPIDefinitions(func(name string) spec.Ref {
- return spec.MustCreateRef("#/definitions/" + common.EscapeJsonPointer(swaggify(name)))
- })
- cOAPIDefs := cv1.GetOpenAPIDefinitions(func(name string) spec.Ref {
- return spec.MustCreateRef("#/definitions/" + common.EscapeJsonPointer(swaggify(name)))
- })
+ }
defs := spec.Definitions{}
- for defName, val := range gwOAPIDefs {
+ for defName, val := range cv1.GetOpenAPIDefinitions(referenceCallback) {
+ defs[swaggify(defName)] = val.Schema
+ }
+ for defName, val := range ebv1.GetOpenAPIDefinitions(referenceCallback) {
defs[swaggify(defName)] = val.Schema
}
- for defName, val := range sOAPIDefs {
+ for defName, val := range esv1.GetOpenAPIDefinitions(referenceCallback) {
defs[swaggify(defName)] = val.Schema
}
- for defName, val := range cOAPIDefs {
+ for defName, val := range sv1.GetOpenAPIDefinitions(referenceCallback) {
defs[swaggify(defName)] = val.Schema
}
swagger := spec.Swagger{
@@ -49,7 +48,7 @@ func main() {
Paths: &spec.Paths{Paths: map[string]spec.PathItem{}},
Info: &spec.Info{
InfoProps: spec.InfoProps{
- Title: "Argo",
+ Title: "Argo Events",
Version: version,
},
},
diff --git a/hack/generate-proto.sh b/hack/generate-proto.sh
new file mode 100755
index 0000000000..bcda985edd
--- /dev/null
+++ b/hack/generate-proto.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+set -o errexit
+set -o nounset
+set -o pipefail
+
+source $(dirname $0)/library.sh
+header "generating proto files"
+
+ensure_vendor
+make_fake_paths
+
+export GOPATH="${FAKE_GOPATH}"
+export GO111MODULE="off"
+
+cd "${FAKE_REPOPATH}"
+
+go install ./vendor/k8s.io/code-generator/cmd/go-to-protobuf
+
+${GOPATH}/bin/go-to-protobuf \
+ --go-header-file=./hack/custom-boilerplate.go.txt \
+ --packages=github.com/argoproj/argo-events/pkg/apis/common \
+ --apimachinery-packages=+k8s.io/apimachinery/pkg/util/intstr,+k8s.io/apimachinery/pkg/api/resource,k8s.io/apimachinery/pkg/runtime/schema,+k8s.io/apimachinery/pkg/runtime,k8s.io/apimachinery/pkg/apis/meta/v1,k8s.io/api/core/v1,k8s.io/api/policy/v1beta1 \
+ --proto-import ./vendor
+
+${GOPATH}/bin/go-to-protobuf \
+ --go-header-file=./hack/custom-boilerplate.go.txt \
+ --packages=github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1,github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1,github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1,github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1 \
+ --apimachinery-packages=github.com/argoproj/argo-events/pkg/apis/common,+k8s.io/apimachinery/pkg/util/intstr,+k8s.io/apimachinery/pkg/api/resource,k8s.io/apimachinery/pkg/runtime/schema,+k8s.io/apimachinery/pkg/runtime,k8s.io/apimachinery/pkg/apis/meta/v1,k8s.io/api/core/v1,k8s.io/api/policy/v1beta1 \
+ --proto-import ./vendor
+
+
diff --git a/hack/main.go b/hack/main.go
new file mode 100644
index 0000000000..c2765371af
--- /dev/null
+++ b/hack/main.go
@@ -0,0 +1,14 @@
+package main
+
+import (
+ "os"
+)
+
+func main() {
+ switch os.Args[1] {
+ case "cleancrd":
+ cleanCRD(os.Args[2])
+ default:
+ panic(os.Args[1])
+ }
+}
diff --git a/hack/tools.go b/hack/tools.go
index 7208e2682d..a6ea6161d4 100644
--- a/hack/tools.go
+++ b/hack/tools.go
@@ -6,6 +6,11 @@ package tools
import (
_ "github.com/ahmetb/gen-crd-api-reference-docs"
+ _ "github.com/gogo/protobuf/gogoproto"
+ _ "github.com/gogo/protobuf/protoc-gen-gogo"
+ _ "github.com/gogo/protobuf/protoc-gen-gogofast"
+ _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway"
+ _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger"
_ "k8s.io/code-generator"
_ "k8s.io/code-generator/cmd/client-gen"
_ "k8s.io/code-generator/cmd/conversion-gen"
@@ -20,4 +25,5 @@ import (
_ "k8s.io/code-generator/cmd/set-gen"
_ "k8s.io/gengo/examples/deepcopy-gen"
_ "k8s.io/kube-openapi/cmd/openapi-gen"
+ _ "sigs.k8s.io/controller-tools/cmd/controller-gen"
)
diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh
index d71e7e6d38..da4db19b38 100755
--- a/hack/update-codegen.sh
+++ b/hack/update-codegen.sh
@@ -17,6 +17,11 @@ cd "${FAKE_REPOPATH}"
CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${FAKE_REPOPATH}"; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator)}
+#### fix the plural issue of code-generator ####
+for i in `grep '"Endpoints": "Endpoints"' -R vendor/k8s.io/code-generator/ | grep -v EventBus | awk -F\: '{print $1}'`; do
+ sed -i "" "s/\"Endpoints\": \"Endpoints\"/\"Endpoints\": \"Endpoints\", \"EventBus\": \"EventBus\"/g" $i
+done
+
subheader "running codegen for sensor"
bash -x ${CODEGEN_PKG}/generate-groups.sh "deepcopy,client,informer,lister" \
github.com/argoproj/argo-events/pkg/client/sensor github.com/argoproj/argo-events/pkg/apis \
diff --git a/hack/update-openapigen.sh b/hack/update-openapigen.sh
index 6c82101e91..10c3cb48d4 100755
--- a/hack/update-openapigen.sh
+++ b/hack/update-openapigen.sh
@@ -18,6 +18,13 @@ VERSION="v1alpha1"
cd "${FAKE_REPOPATH}"
+# Common
+go run ${CODEGEN_PKG}/cmd/openapi-gen/openapi-gen.go \
+ --go-header-file ${REPO_ROOT}/hack/custom-boilerplate.go.txt \
+ --input-dirs github.com/argoproj/argo-events/pkg/apis/common \
+ --output-package github.com/argoproj/argo-events/pkg/apis/common \
+ $@
+
# Sensor
go run ${CODEGEN_PKG}/cmd/openapi-gen/openapi-gen.go \
--go-header-file ${REPO_ROOT}/hack/custom-boilerplate.go.txt \
diff --git a/manifests/base/crds/eventbus-crd.yaml b/manifests/base/crds/argoproj.io_eventbus.yaml
similarity index 53%
rename from manifests/base/crds/eventbus-crd.yaml
rename to manifests/base/crds/argoproj.io_eventbus.yaml
index fdcf962ec3..62e722086b 100644
--- a/manifests/base/crds/eventbus-crd.yaml
+++ b/manifests/base/crds/argoproj.io_eventbus.yaml
@@ -1,15 +1,20 @@
+# This is an auto-generated file. DO NOT EDIT
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
- name: eventbuses.argoproj.io
+ name: eventbus.argoproj.io
spec:
group: argoproj.io
names:
kind: EventBus
- plural: eventbuses
- singular: eventbus
listKind: EventBusList
+ plural: eventbus
shortNames:
- - eb
+ - eb
+ singular: eventbus
scope: Namespaced
- version: "v1alpha1"
+ version: v1alpha1
+ versions:
+ - name: v1alpha1
+ served: true
+ storage: true
diff --git a/manifests/base/crds/eventsource-crd.yaml b/manifests/base/crds/argoproj.io_eventsources.yaml
similarity index 67%
rename from manifests/base/crds/eventsource-crd.yaml
rename to manifests/base/crds/argoproj.io_eventsources.yaml
index 4350f694bf..e58fbf8c66 100644
--- a/manifests/base/crds/eventsource-crd.yaml
+++ b/manifests/base/crds/argoproj.io_eventsources.yaml
@@ -1,3 +1,4 @@
+# This is an auto-generated file. DO NOT EDIT
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
@@ -6,10 +7,14 @@ spec:
group: argoproj.io
names:
kind: EventSource
- plural: eventsources
- singular: eventsource
listKind: EventSourceList
+ plural: eventsources
shortNames:
- - es
+ - es
+ singular: eventsource
scope: Namespaced
- version: "v1alpha1"
+ version: v1alpha1
+ versions:
+ - name: v1alpha1
+ served: true
+ storage: true
diff --git a/manifests/base/crds/gateway-crd.yaml b/manifests/base/crds/argoproj.io_gateways.yaml
similarity index 65%
rename from manifests/base/crds/gateway-crd.yaml
rename to manifests/base/crds/argoproj.io_gateways.yaml
index c5523fb3a4..69ebd8fd02 100644
--- a/manifests/base/crds/gateway-crd.yaml
+++ b/manifests/base/crds/argoproj.io_gateways.yaml
@@ -1,3 +1,4 @@
+# This is an auto-generated file. DO NOT EDIT
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
@@ -8,8 +9,12 @@ spec:
kind: Gateway
listKind: GatewayList
plural: gateways
- singular: gateway
shortNames:
- - gw
+ - gw
+ singular: gateway
scope: Namespaced
- version: "v1alpha1"
+ version: v1alpha1
+ versions:
+ - name: v1alpha1
+ served: true
+ storage: true
diff --git a/manifests/base/crds/sensor-crd.yaml b/manifests/base/crds/argoproj.io_sensors.yaml
similarity index 65%
rename from manifests/base/crds/sensor-crd.yaml
rename to manifests/base/crds/argoproj.io_sensors.yaml
index ebb834d656..b8ad46f5ff 100644
--- a/manifests/base/crds/sensor-crd.yaml
+++ b/manifests/base/crds/argoproj.io_sensors.yaml
@@ -1,3 +1,4 @@
+# This is an auto-generated file. DO NOT EDIT
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
@@ -8,8 +9,12 @@ spec:
kind: Sensor
listKind: SensorList
plural: sensors
- singular: sensor
shortNames:
- - sn
+ - sn
+ singular: sensor
scope: Namespaced
- version: "v1alpha1"
+ version: v1alpha1
+ versions:
+ - name: v1alpha1
+ served: true
+ storage: true
diff --git a/manifests/base/crds/kustomization.yaml b/manifests/base/crds/kustomization.yaml
index f2820538f5..3b3775f1ea 100644
--- a/manifests/base/crds/kustomization.yaml
+++ b/manifests/base/crds/kustomization.yaml
@@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- - eventbus-crd.yaml
- - eventsource-crd.yaml
- - gateway-crd.yaml
- - sensor-crd.yaml
+ - argoproj.io_eventbus.yaml
+ - argoproj.io_eventsources.yaml
+ - argoproj.io_gateways.yaml
+ - argoproj.io_sensors.yaml
diff --git a/manifests/cluster-install/rbac/argo-events-aggregate-to-admin.yaml b/manifests/cluster-install/rbac/argo-events-aggregate-to-admin.yaml
index 1e4c7de5d3..23b8f1b459 100644
--- a/manifests/cluster-install/rbac/argo-events-aggregate-to-admin.yaml
+++ b/manifests/cluster-install/rbac/argo-events-aggregate-to-admin.yaml
@@ -14,8 +14,8 @@ rules:
- sensors/finalizers
- eventsources
- eventsources/finalizers
- - eventbuses
- - eventbuses/finalizers
+ - eventbus
+ - eventbus/finalizers
verbs:
- create
- delete
diff --git a/manifests/cluster-install/rbac/argo-events-aggregate-to-edit.yaml b/manifests/cluster-install/rbac/argo-events-aggregate-to-edit.yaml
index 3858986785..e8eb09968d 100644
--- a/manifests/cluster-install/rbac/argo-events-aggregate-to-edit.yaml
+++ b/manifests/cluster-install/rbac/argo-events-aggregate-to-edit.yaml
@@ -14,8 +14,8 @@ rules:
- sensors/finalizers
- eventsources
- eventsources/finalizers
- - eventbuses
- - eventbuses/finalizers
+ - eventbus
+ - eventbus/finalizers
verbs:
- create
- delete
diff --git a/manifests/cluster-install/rbac/argo-events-aggregate-to-view.yaml b/manifests/cluster-install/rbac/argo-events-aggregate-to-view.yaml
index 0e5322d5ae..448c66f62b 100644
--- a/manifests/cluster-install/rbac/argo-events-aggregate-to-view.yaml
+++ b/manifests/cluster-install/rbac/argo-events-aggregate-to-view.yaml
@@ -14,8 +14,8 @@ rules:
- sensors/finalizers
- eventsources
- eventsources/finalizers
- - eventbuses
- - eventbuses/finalizers
+ - eventbus
+ - eventbus/finalizers
verbs:
- get
- list
diff --git a/manifests/cluster-install/rbac/argo-events-cluster-role.yaml b/manifests/cluster-install/rbac/argo-events-cluster-role.yaml
index 5a1e6cafa0..5cfd86ba9f 100644
--- a/manifests/cluster-install/rbac/argo-events-cluster-role.yaml
+++ b/manifests/cluster-install/rbac/argo-events-cluster-role.yaml
@@ -39,8 +39,8 @@ rules:
- sensors/finalizers
- eventsources
- eventsources/finalizers
- - eventbuses
- - eventbuses/finalizers
+ - eventbus
+ - eventbus/finalizers
- apiGroups:
- ""
resources:
diff --git a/manifests/install.yaml b/manifests/install.yaml
index 312e09d719..7561514b17 100644
--- a/manifests/install.yaml
+++ b/manifests/install.yaml
@@ -1,18 +1,22 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
- name: eventbuses.argoproj.io
+ name: eventbus.argoproj.io
spec:
group: argoproj.io
names:
kind: EventBus
listKind: EventBusList
- plural: eventbuses
+ plural: eventbus
shortNames:
- eb
singular: eventbus
scope: Namespaced
version: v1alpha1
+ versions:
+ - name: v1alpha1
+ served: true
+ storage: true
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
@@ -29,6 +33,10 @@ spec:
singular: eventsource
scope: Namespaced
version: v1alpha1
+ versions:
+ - name: v1alpha1
+ served: true
+ storage: true
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
@@ -45,6 +53,10 @@ spec:
singular: gateway
scope: Namespaced
version: v1alpha1
+ versions:
+ - name: v1alpha1
+ served: true
+ storage: true
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
@@ -61,6 +73,10 @@ spec:
singular: sensor
scope: Namespaced
version: v1alpha1
+ versions:
+ - name: v1alpha1
+ served: true
+ storage: true
---
apiVersion: v1
kind: ServiceAccount
@@ -84,8 +100,8 @@ rules:
- sensors/finalizers
- eventsources
- eventsources/finalizers
- - eventbuses
- - eventbuses/finalizers
+ - eventbus
+ - eventbus/finalizers
verbs:
- create
- delete
@@ -112,8 +128,8 @@ rules:
- sensors/finalizers
- eventsources
- eventsources/finalizers
- - eventbuses
- - eventbuses/finalizers
+ - eventbus
+ - eventbus/finalizers
verbs:
- create
- delete
@@ -140,8 +156,8 @@ rules:
- sensors/finalizers
- eventsources
- eventsources/finalizers
- - eventbuses
- - eventbuses/finalizers
+ - eventbus
+ - eventbus/finalizers
verbs:
- get
- list
@@ -179,8 +195,8 @@ rules:
- sensors/finalizers
- eventsources
- eventsources/finalizers
- - eventbuses
- - eventbuses/finalizers
+ - eventbus
+ - eventbus/finalizers
verbs:
- create
- delete
diff --git a/manifests/namespace-install.yaml b/manifests/namespace-install.yaml
index 9ff78ccbd2..415e0219d1 100644
--- a/manifests/namespace-install.yaml
+++ b/manifests/namespace-install.yaml
@@ -1,18 +1,22 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
- name: eventbuses.argoproj.io
+ name: eventbus.argoproj.io
spec:
group: argoproj.io
names:
kind: EventBus
listKind: EventBusList
- plural: eventbuses
+ plural: eventbus
shortNames:
- eb
singular: eventbus
scope: Namespaced
version: v1alpha1
+ versions:
+ - name: v1alpha1
+ served: true
+ storage: true
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
@@ -29,6 +33,10 @@ spec:
singular: eventsource
scope: Namespaced
version: v1alpha1
+ versions:
+ - name: v1alpha1
+ served: true
+ storage: true
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
@@ -45,6 +53,10 @@ spec:
singular: gateway
scope: Namespaced
version: v1alpha1
+ versions:
+ - name: v1alpha1
+ served: true
+ storage: true
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
@@ -61,6 +73,10 @@ spec:
singular: sensor
scope: Namespaced
version: v1alpha1
+ versions:
+ - name: v1alpha1
+ served: true
+ storage: true
---
apiVersion: v1
kind: ServiceAccount
@@ -86,8 +102,8 @@ rules:
- sensors/finalizers
- eventsources
- eventsources/finalizers
- - eventbuses
- - eventbuses/finalizers
+ - eventbus
+ - eventbus/finalizers
verbs:
- create
- delete
diff --git a/manifests/namespace-install/rbac/argo-events-role.yaml b/manifests/namespace-install/rbac/argo-events-role.yaml
index da31872980..15a1d71039 100644
--- a/manifests/namespace-install/rbac/argo-events-role.yaml
+++ b/manifests/namespace-install/rbac/argo-events-role.yaml
@@ -25,8 +25,8 @@ rules:
- sensors/finalizers
- eventsources
- eventsources/finalizers
- - eventbuses
- - eventbuses/finalizers
+ - eventbus
+ - eventbus/finalizers
- apiGroups:
- ""
resources:
diff --git a/pkg/apis/common/amount.go b/pkg/apis/common/amount.go
new file mode 100644
index 0000000000..ee9f657b6b
--- /dev/null
+++ b/pkg/apis/common/amount.go
@@ -0,0 +1,35 @@
+package common
+
+import "strconv"
+
+/**
+This inspired by intstr.IntOrStr and json.Number.
+*/
+
+// Amount represent a numeric amount.
+type Amount struct {
+ Value []byte `json:"value" protobuf:"bytes,1,opt,name=value"`
+}
+
+func NewAmount(s string) Amount {
+ return Amount{Value: []byte(s)}
+}
+
+func (a *Amount) UnmarshalJSON(value []byte) error {
+ a.Value = value
+ return nil
+}
+
+func (n Amount) MarshalJSON() ([]byte, error) {
+ return n.Value, nil
+}
+
+func (n Amount) OpenAPISchemaType() []string {
+ return []string{"number"}
+}
+
+func (n Amount) OpenAPISchemaFormat() string { return "" }
+
+func (n *Amount) Float64() (float64, error) {
+ return strconv.ParseFloat(string(n.Value), 64)
+}
diff --git a/pkg/apis/common/backoff.go b/pkg/apis/common/backoff.go
new file mode 100644
index 0000000000..bbb8b57624
--- /dev/null
+++ b/pkg/apis/common/backoff.go
@@ -0,0 +1,21 @@
+package common
+
+import (
+ "time"
+)
+
+// Backoff for an operation
+type Backoff struct {
+ // Duration is the duration in nanoseconds
+ Duration time.Duration `json:"duration" protobuf:"varint,1,opt,name=duration,casttype=time.Duration"`
+ // Duration is multiplied by factor each iteration
+ Factor Amount `json:"factor" protobuf:"bytes,2,opt,name=factor"`
+ // The amount of jitter applied each iteration
+ Jitter *Amount `json:"jitter,omitempty" protobuf:"bytes,3,opt,name=jitter"`
+ // Exit with error after this many steps
+ Steps int32 `json:"steps,omitempty" protobuf:"varint,4,opt,name=steps"`
+}
+
+func (b Backoff) GetSteps() int {
+ return int(b.Steps)
+}
diff --git a/pkg/apis/common/deepcopy_generated.go b/pkg/apis/common/deepcopy_generated.go
index a372e5dc08..1028cd2b1c 100644
--- a/pkg/apis/common/deepcopy_generated.go
+++ b/pkg/apis/common/deepcopy_generated.go
@@ -24,6 +24,49 @@ import (
v1 "k8s.io/api/core/v1"
)
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *Amount) DeepCopyInto(out *Amount) {
+ *out = *in
+ if in.Value != nil {
+ in, out := &in.Value, &out.Value
+ *out = make([]byte, len(*in))
+ copy(*out, *in)
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Amount.
+func (in *Amount) DeepCopy() *Amount {
+ if in == nil {
+ return nil
+ }
+ out := new(Amount)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *Backoff) DeepCopyInto(out *Backoff) {
+ *out = *in
+ in.Factor.DeepCopyInto(&out.Factor)
+ if in.Jitter != nil {
+ in, out := &in.Jitter, &out.Jitter
+ *out = new(Amount)
+ (*in).DeepCopyInto(*out)
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backoff.
+func (in *Backoff) DeepCopy() *Backoff {
+ if in == nil {
+ return nil
+ }
+ out := new(Backoff)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Condition) DeepCopyInto(out *Condition) {
*out = *in
@@ -41,6 +84,27 @@ func (in *Condition) DeepCopy() *Condition {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *Resource) DeepCopyInto(out *Resource) {
+ *out = *in
+ if in.Value != nil {
+ in, out := &in.Value, &out.Value
+ *out = make([]byte, len(*in))
+ copy(*out, *in)
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.
+func (in *Resource) DeepCopy() *Resource {
+ if in == nil {
+ return nil
+ }
+ out := new(Resource)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *S3Artifact) DeepCopyInto(out *S3Artifact) {
*out = *in
diff --git a/pkg/apis/common/generated.pb.go b/pkg/apis/common/generated.pb.go
new file mode 100644
index 0000000000..fce8832234
--- /dev/null
+++ b/pkg/apis/common/generated.pb.go
@@ -0,0 +1,2238 @@
+/*
+Copyright 2020 BlackRock, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// source: github.com/argoproj/argo-events/pkg/apis/common/generated.proto
+
+package common
+
+import (
+ fmt "fmt"
+
+ io "io"
+ math "math"
+ math_bits "math/bits"
+ reflect "reflect"
+ strings "strings"
+ time "time"
+
+ proto "github.com/gogo/protobuf/proto"
+ k8s_io_api_core_v1 "k8s.io/api/core/v1"
+ v11 "k8s.io/api/core/v1"
+)
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ = proto.Marshal
+var _ = fmt.Errorf
+var _ = math.Inf
+var _ = time.Kitchen
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the proto package it is being compiled against.
+// A compilation error at this line likely means your copy of the
+// proto package needs to be updated.
+const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
+
+func (m *Amount) Reset() { *m = Amount{} }
+func (*Amount) ProtoMessage() {}
+func (*Amount) Descriptor() ([]byte, []int) {
+ return fileDescriptor_02aae6165a434fa7, []int{0}
+}
+func (m *Amount) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Amount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Amount) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Amount.Merge(m, src)
+}
+func (m *Amount) XXX_Size() int {
+ return m.Size()
+}
+func (m *Amount) XXX_DiscardUnknown() {
+ xxx_messageInfo_Amount.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Amount proto.InternalMessageInfo
+
+func (m *Backoff) Reset() { *m = Backoff{} }
+func (*Backoff) ProtoMessage() {}
+func (*Backoff) Descriptor() ([]byte, []int) {
+ return fileDescriptor_02aae6165a434fa7, []int{1}
+}
+func (m *Backoff) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Backoff) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Backoff) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Backoff.Merge(m, src)
+}
+func (m *Backoff) XXX_Size() int {
+ return m.Size()
+}
+func (m *Backoff) XXX_DiscardUnknown() {
+ xxx_messageInfo_Backoff.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Backoff proto.InternalMessageInfo
+
+func (m *Condition) Reset() { *m = Condition{} }
+func (*Condition) ProtoMessage() {}
+func (*Condition) Descriptor() ([]byte, []int) {
+ return fileDescriptor_02aae6165a434fa7, []int{2}
+}
+func (m *Condition) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Condition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Condition) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Condition.Merge(m, src)
+}
+func (m *Condition) XXX_Size() int {
+ return m.Size()
+}
+func (m *Condition) XXX_DiscardUnknown() {
+ xxx_messageInfo_Condition.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Condition proto.InternalMessageInfo
+
+func (m *Resource) Reset() { *m = Resource{} }
+func (*Resource) ProtoMessage() {}
+func (*Resource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_02aae6165a434fa7, []int{3}
+}
+func (m *Resource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Resource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Resource.Merge(m, src)
+}
+func (m *Resource) XXX_Size() int {
+ return m.Size()
+}
+func (m *Resource) XXX_DiscardUnknown() {
+ xxx_messageInfo_Resource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Resource proto.InternalMessageInfo
+
+func (m *S3Artifact) Reset() { *m = S3Artifact{} }
+func (*S3Artifact) ProtoMessage() {}
+func (*S3Artifact) Descriptor() ([]byte, []int) {
+ return fileDescriptor_02aae6165a434fa7, []int{4}
+}
+func (m *S3Artifact) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *S3Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *S3Artifact) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_S3Artifact.Merge(m, src)
+}
+func (m *S3Artifact) XXX_Size() int {
+ return m.Size()
+}
+func (m *S3Artifact) XXX_DiscardUnknown() {
+ xxx_messageInfo_S3Artifact.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_S3Artifact proto.InternalMessageInfo
+
+func (m *S3Bucket) Reset() { *m = S3Bucket{} }
+func (*S3Bucket) ProtoMessage() {}
+func (*S3Bucket) Descriptor() ([]byte, []int) {
+ return fileDescriptor_02aae6165a434fa7, []int{5}
+}
+func (m *S3Bucket) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *S3Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *S3Bucket) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_S3Bucket.Merge(m, src)
+}
+func (m *S3Bucket) XXX_Size() int {
+ return m.Size()
+}
+func (m *S3Bucket) XXX_DiscardUnknown() {
+ xxx_messageInfo_S3Bucket.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_S3Bucket proto.InternalMessageInfo
+
+func (m *S3Filter) Reset() { *m = S3Filter{} }
+func (*S3Filter) ProtoMessage() {}
+func (*S3Filter) Descriptor() ([]byte, []int) {
+ return fileDescriptor_02aae6165a434fa7, []int{6}
+}
+func (m *S3Filter) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *S3Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *S3Filter) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_S3Filter.Merge(m, src)
+}
+func (m *S3Filter) XXX_Size() int {
+ return m.Size()
+}
+func (m *S3Filter) XXX_DiscardUnknown() {
+ xxx_messageInfo_S3Filter.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_S3Filter proto.InternalMessageInfo
+
+func (m *Status) Reset() { *m = Status{} }
+func (*Status) ProtoMessage() {}
+func (*Status) Descriptor() ([]byte, []int) {
+ return fileDescriptor_02aae6165a434fa7, []int{7}
+}
+func (m *Status) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Status) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Status.Merge(m, src)
+}
+func (m *Status) XXX_Size() int {
+ return m.Size()
+}
+func (m *Status) XXX_DiscardUnknown() {
+ xxx_messageInfo_Status.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Status proto.InternalMessageInfo
+
+func init() {
+ proto.RegisterType((*Amount)(nil), "github.com.argoproj.argo_events.pkg.apis.common.Amount")
+ proto.RegisterType((*Backoff)(nil), "github.com.argoproj.argo_events.pkg.apis.common.Backoff")
+ proto.RegisterType((*Condition)(nil), "github.com.argoproj.argo_events.pkg.apis.common.Condition")
+ proto.RegisterType((*Resource)(nil), "github.com.argoproj.argo_events.pkg.apis.common.Resource")
+ proto.RegisterType((*S3Artifact)(nil), "github.com.argoproj.argo_events.pkg.apis.common.S3Artifact")
+ proto.RegisterType((*S3Bucket)(nil), "github.com.argoproj.argo_events.pkg.apis.common.S3Bucket")
+ proto.RegisterType((*S3Filter)(nil), "github.com.argoproj.argo_events.pkg.apis.common.S3Filter")
+ proto.RegisterType((*Status)(nil), "github.com.argoproj.argo_events.pkg.apis.common.Status")
+}
+
+func init() {
+ proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/common/generated.proto", fileDescriptor_02aae6165a434fa7)
+}
+
+var fileDescriptor_02aae6165a434fa7 = []byte{
+ // 831 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xdd, 0x6e, 0x1b, 0x45,
+ 0x14, 0xc7, 0xbd, 0xb1, 0xbd, 0xb1, 0x27, 0x0d, 0xa0, 0xb9, 0xb2, 0x22, 0x75, 0x6d, 0x16, 0x81,
+ 0x5c, 0x68, 0x67, 0x95, 0xb4, 0x12, 0x1f, 0x12, 0x42, 0x59, 0x68, 0x25, 0x48, 0x41, 0x68, 0x5c,
+ 0x71, 0x51, 0x84, 0xaa, 0xc9, 0xe6, 0x78, 0xbb, 0x75, 0x76, 0x67, 0x35, 0x33, 0x6b, 0xd5, 0x77,
+ 0x3c, 0x02, 0xd7, 0xbc, 0x02, 0x2f, 0x92, 0xcb, 0xde, 0xd1, 0x2b, 0x8b, 0x98, 0xb7, 0xe8, 0x15,
+ 0x9a, 0x8f, 0xdd, 0x0d, 0x21, 0x12, 0x32, 0xdc, 0x8d, 0xff, 0xe7, 0xcc, 0xef, 0x9c, 0xfd, 0x9f,
+ 0x33, 0x46, 0x5f, 0xa4, 0x99, 0x7a, 0x5e, 0x9d, 0x92, 0x84, 0xe7, 0x11, 0x13, 0x29, 0x2f, 0x05,
+ 0x7f, 0x61, 0x0e, 0xf7, 0x60, 0x09, 0x85, 0x92, 0x51, 0xb9, 0x48, 0x23, 0x56, 0x66, 0x32, 0x4a,
+ 0x78, 0x9e, 0xf3, 0x22, 0x4a, 0xa1, 0x00, 0xc1, 0x14, 0x9c, 0x91, 0x52, 0x70, 0xc5, 0x71, 0xd4,
+ 0x02, 0x48, 0x0d, 0x30, 0x87, 0x67, 0x16, 0x40, 0xca, 0x45, 0x4a, 0x34, 0x80, 0x58, 0xc0, 0xc1,
+ 0xbd, 0x2b, 0x15, 0x53, 0x9e, 0xf2, 0xc8, 0x70, 0x4e, 0xab, 0xb9, 0xf9, 0x65, 0x7e, 0x98, 0x93,
+ 0xe5, 0x1f, 0x84, 0x8b, 0x4f, 0x24, 0xc9, 0xb8, 0xee, 0x21, 0x4a, 0xb8, 0x80, 0x68, 0x79, 0x78,
+ 0xbd, 0x87, 0x83, 0x07, 0x6d, 0x4e, 0xce, 0x92, 0xe7, 0x59, 0x01, 0x62, 0xd5, 0x36, 0x9e, 0x83,
+ 0x62, 0x37, 0xdc, 0x0a, 0xef, 0x20, 0xff, 0x38, 0xe7, 0x55, 0xa1, 0xf0, 0x18, 0xf5, 0x97, 0xec,
+ 0xbc, 0x82, 0x91, 0x37, 0xf1, 0xa6, 0xb7, 0xe2, 0xe1, 0x66, 0x3d, 0xee, 0xff, 0xa0, 0x05, 0x6a,
+ 0xf5, 0xf0, 0xb7, 0x1d, 0xb4, 0x1b, 0xb3, 0x64, 0xc1, 0xe7, 0x73, 0xfc, 0x39, 0x1a, 0x9c, 0x55,
+ 0x82, 0xa9, 0x8c, 0x17, 0x26, 0xbf, 0x1b, 0xbf, 0x7b, 0xb1, 0x1e, 0x77, 0x36, 0xeb, 0xf1, 0xe0,
+ 0x2b, 0xa7, 0xbf, 0x59, 0x8f, 0xf7, 0x55, 0x96, 0x03, 0xa9, 0x05, 0xda, 0x5c, 0xc1, 0xcf, 0x90,
+ 0x3f, 0x67, 0x89, 0xe2, 0x62, 0xb4, 0x33, 0xf1, 0xa6, 0x7b, 0x47, 0x1f, 0x93, 0x2d, 0x0d, 0x24,
+ 0xb6, 0xe9, 0xf8, 0x2d, 0x57, 0xd5, 0x7f, 0x64, 0x70, 0xd4, 0x61, 0xf1, 0x8f, 0xc8, 0x7f, 0x91,
+ 0x29, 0x05, 0x62, 0xd4, 0xfd, 0x7f, 0x05, 0x90, 0x86, 0x7f, 0x63, 0x50, 0xd4, 0x21, 0xf1, 0x7b,
+ 0xa8, 0x2f, 0x15, 0x94, 0x72, 0xd4, 0x9b, 0x78, 0xd3, 0x7e, 0xbc, 0xef, 0x7a, 0xe8, 0xcf, 0xb4,
+ 0x48, 0x6d, 0x2c, 0xfc, 0x7d, 0x07, 0x0d, 0xbf, 0xe4, 0xc5, 0x59, 0x66, 0x3e, 0xf8, 0x10, 0xf5,
+ 0xd4, 0xaa, 0xb4, 0xde, 0x0e, 0xe3, 0xdb, 0xee, 0x46, 0xef, 0xc9, 0xaa, 0x04, 0xed, 0x53, 0x93,
+ 0xa8, 0x05, 0x6a, 0x52, 0xf1, 0x63, 0xe4, 0x4b, 0xc5, 0x54, 0x25, 0x8d, 0x47, 0xc3, 0xf8, 0x41,
+ 0xfd, 0xa9, 0x33, 0xa3, 0xbe, 0x59, 0x8f, 0x6f, 0xd8, 0x0a, 0xd2, 0x90, 0x6c, 0x16, 0x75, 0x0c,
+ 0xbc, 0x44, 0xf8, 0x9c, 0x49, 0xf5, 0x44, 0xb0, 0x42, 0xda, 0x4a, 0x59, 0x0e, 0xce, 0x9c, 0x0f,
+ 0x89, 0x05, 0x91, 0xab, 0xab, 0xd3, 0x1a, 0xa2, 0x57, 0x87, 0x2c, 0x0f, 0x89, 0xbe, 0x11, 0x1f,
+ 0xb8, 0x2e, 0xf0, 0xe3, 0x7f, 0xd0, 0xe8, 0x0d, 0x15, 0xf0, 0x07, 0xc8, 0x17, 0xc0, 0x24, 0x2f,
+ 0x8c, 0x59, 0xc3, 0x76, 0x60, 0xd4, 0xa8, 0xd4, 0x45, 0xf1, 0x1d, 0xb4, 0x9b, 0x83, 0x94, 0x2c,
+ 0x85, 0x51, 0xdf, 0x24, 0xbe, 0xed, 0x12, 0x77, 0xbf, 0xb5, 0x32, 0xad, 0xe3, 0xe1, 0x47, 0x68,
+ 0x40, 0x41, 0xf2, 0x4a, 0x24, 0xf0, 0xef, 0x4b, 0xfb, 0x6b, 0x0f, 0xa1, 0xd9, 0xfd, 0x63, 0xa1,
+ 0x32, 0xbd, 0x19, 0xf8, 0x2e, 0x1a, 0x40, 0x71, 0x56, 0xf2, 0xac, 0x50, 0x6e, 0x16, 0xef, 0xd4,
+ 0x7b, 0xfb, 0xd0, 0xe9, 0xb4, 0xc9, 0xc0, 0x3f, 0x21, 0xff, 0xb4, 0x4a, 0x16, 0xa0, 0xdc, 0x9a,
+ 0x7e, 0xba, 0xf5, 0x16, 0xcd, 0xee, 0xc7, 0x06, 0x60, 0xf7, 0xc8, 0x9e, 0xa9, 0x83, 0x5a, 0x6f,
+ 0x52, 0xfd, 0x84, 0xba, 0xd7, 0xbd, 0xd1, 0x2a, 0x75, 0x51, 0xdd, 0x74, 0x56, 0x48, 0x48, 0x2a,
+ 0x01, 0xc6, 0xc5, 0x41, 0xdb, 0xf4, 0xd7, 0x4e, 0xa7, 0x4d, 0x06, 0xa6, 0x68, 0xc8, 0x92, 0x04,
+ 0xa4, 0x3c, 0x81, 0x95, 0xf1, 0x72, 0xef, 0xe8, 0xfd, 0x2b, 0x03, 0x26, 0x7a, 0x53, 0xf4, 0x38,
+ 0x67, 0x90, 0x08, 0x50, 0x27, 0xb0, 0x9a, 0xc1, 0x39, 0xe8, 0x47, 0x13, 0xef, 0x6f, 0xd6, 0xe3,
+ 0xe1, 0x71, 0x7d, 0x97, 0xb6, 0x18, 0xcd, 0x94, 0x75, 0xfa, 0xc8, 0xdf, 0x9a, 0xd9, 0xc8, 0xb4,
+ 0xc5, 0xe0, 0x10, 0xf9, 0xd6, 0xb4, 0xd1, 0xee, 0xa4, 0x3b, 0x1d, 0x5a, 0x87, 0x1e, 0x1a, 0x85,
+ 0xba, 0x88, 0x1e, 0xc0, 0x3c, 0x3b, 0xd7, 0xcf, 0x78, 0xf0, 0x9f, 0x07, 0xf0, 0xc8, 0x00, 0x2c,
+ 0xde, 0x9e, 0xa9, 0x83, 0x86, 0x27, 0x68, 0x50, 0x0f, 0x08, 0xdf, 0x46, 0xdd, 0x05, 0xac, 0xdc,
+ 0x52, 0xec, 0x39, 0x7f, 0xbb, 0xba, 0x67, 0xad, 0xe3, 0x09, 0xea, 0x15, 0x2c, 0x07, 0xf7, 0x16,
+ 0x6f, 0xd5, 0x0f, 0xf8, 0x3b, 0x96, 0x03, 0x35, 0x91, 0xf0, 0xa9, 0x86, 0xd9, 0x02, 0x7a, 0xb2,
+ 0xa5, 0x80, 0x79, 0xf6, 0xd2, 0xf1, 0x9a, 0xc9, 0x7e, 0x6f, 0x54, 0xea, 0xa2, 0x3a, 0x4f, 0x56,
+ 0x73, 0x9d, 0xb7, 0xf3, 0xf7, 0xbc, 0x99, 0x51, 0xa9, 0x8b, 0x86, 0x2f, 0x91, 0x7b, 0xf5, 0xb8,
+ 0x40, 0x28, 0xa9, 0x9f, 0xb8, 0x1c, 0x79, 0x93, 0xee, 0x74, 0xef, 0xe8, 0xb3, 0xad, 0x5d, 0x69,
+ 0xfe, 0x25, 0x62, 0xec, 0x2a, 0xa2, 0x46, 0x92, 0xf4, 0x4a, 0x85, 0xf8, 0xee, 0xc5, 0x65, 0xd0,
+ 0x79, 0x75, 0x19, 0x74, 0x5e, 0x5f, 0x06, 0x9d, 0x9f, 0x37, 0x81, 0x77, 0xb1, 0x09, 0xbc, 0x57,
+ 0x9b, 0xc0, 0x7b, 0xbd, 0x09, 0xbc, 0x3f, 0x36, 0x81, 0xf7, 0xcb, 0x9f, 0x41, 0xe7, 0xa9, 0x6f,
+ 0xb9, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x7b, 0xad, 0x8f, 0x49, 0x07, 0x00, 0x00,
+}
+
+func (m *Amount) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Amount) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Amount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Value != nil {
+ i -= len(m.Value)
+ copy(dAtA[i:], m.Value)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *Backoff) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Backoff) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Backoff) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i = encodeVarintGenerated(dAtA, i, uint64(m.Steps))
+ i--
+ dAtA[i] = 0x20
+ if m.Jitter != nil {
+ {
+ size, err := m.Jitter.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ {
+ size, err := m.Factor.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i = encodeVarintGenerated(dAtA, i, uint64(m.Duration))
+ i--
+ dAtA[i] = 0x8
+ return len(dAtA) - i, nil
+}
+
+func (m *Condition) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Condition) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Condition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Message)
+ copy(dAtA[i:], m.Message)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
+ i--
+ dAtA[i] = 0x2a
+ i -= len(m.Reason)
+ copy(dAtA[i:], m.Reason)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
+ i--
+ dAtA[i] = 0x22
+ {
+ size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Status)
+ copy(dAtA[i:], m.Status)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Type)
+ copy(dAtA[i:], m.Type)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *Resource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Resource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Value != nil {
+ i -= len(m.Value)
+ copy(dAtA[i:], m.Value)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *S3Artifact) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *S3Artifact) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *S3Artifact) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Filter != nil {
+ {
+ size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x42
+ }
+ if len(m.Events) > 0 {
+ for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.Events[iNdEx])
+ copy(dAtA[i:], m.Events[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Events[iNdEx])))
+ i--
+ dAtA[i] = 0x3a
+ }
+ }
+ if m.SecretKey != nil {
+ {
+ size, err := m.SecretKey.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ if m.AccessKey != nil {
+ {
+ size, err := m.AccessKey.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ i--
+ if m.Insecure {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x20
+ i -= len(m.Region)
+ copy(dAtA[i:], m.Region)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Region)))
+ i--
+ dAtA[i] = 0x1a
+ if m.Bucket != nil {
+ {
+ size, err := m.Bucket.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ i -= len(m.Endpoint)
+ copy(dAtA[i:], m.Endpoint)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Endpoint)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *S3Bucket) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *S3Bucket) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *S3Bucket) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Key)
+ copy(dAtA[i:], m.Key)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *S3Filter) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *S3Filter) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *S3Filter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Suffix)
+ copy(dAtA[i:], m.Suffix)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Suffix)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Prefix)
+ copy(dAtA[i:], m.Prefix)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Prefix)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *Status) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Status) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Conditions) > 0 {
+ for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
+ offset -= sovGenerated(v)
+ base := offset
+ for v >= 1<<7 {
+ dAtA[offset] = uint8(v&0x7f | 0x80)
+ v >>= 7
+ offset++
+ }
+ dAtA[offset] = uint8(v)
+ return base
+}
+func (m *Amount) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Value != nil {
+ l = len(m.Value)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *Backoff) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ n += 1 + sovGenerated(uint64(m.Duration))
+ l = m.Factor.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Jitter != nil {
+ l = m.Jitter.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ n += 1 + sovGenerated(uint64(m.Steps))
+ return n
+}
+
+func (m *Condition) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Type)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Status)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.LastTransitionTime.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Reason)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Message)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *Resource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Value != nil {
+ l = len(m.Value)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *S3Artifact) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Endpoint)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Bucket != nil {
+ l = m.Bucket.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Region)
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 2
+ if m.AccessKey != nil {
+ l = m.AccessKey.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.SecretKey != nil {
+ l = m.SecretKey.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if len(m.Events) > 0 {
+ for _, s := range m.Events {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if m.Filter != nil {
+ l = m.Filter.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *S3Bucket) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Key)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Name)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *S3Filter) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Prefix)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Suffix)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *Status) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Conditions) > 0 {
+ for _, e := range m.Conditions {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func sovGenerated(x uint64) (n int) {
+ return (math_bits.Len64(x|1) + 6) / 7
+}
+func sozGenerated(x uint64) (n int) {
+ return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
+}
+func (this *Amount) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&Amount{`,
+ `Value:` + valueToStringGenerated(this.Value) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Backoff) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&Backoff{`,
+ `Duration:` + fmt.Sprintf("%v", this.Duration) + `,`,
+ `Factor:` + strings.Replace(strings.Replace(this.Factor.String(), "Amount", "Amount", 1), `&`, ``, 1) + `,`,
+ `Jitter:` + strings.Replace(this.Jitter.String(), "Amount", "Amount", 1) + `,`,
+ `Steps:` + fmt.Sprintf("%v", this.Steps) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Condition) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&Condition{`,
+ `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
+ `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
+ `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
+ `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
+ `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Resource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&Resource{`,
+ `Value:` + valueToStringGenerated(this.Value) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *S3Artifact) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&S3Artifact{`,
+ `Endpoint:` + fmt.Sprintf("%v", this.Endpoint) + `,`,
+ `Bucket:` + strings.Replace(this.Bucket.String(), "S3Bucket", "S3Bucket", 1) + `,`,
+ `Region:` + fmt.Sprintf("%v", this.Region) + `,`,
+ `Insecure:` + fmt.Sprintf("%v", this.Insecure) + `,`,
+ `AccessKey:` + strings.Replace(fmt.Sprintf("%v", this.AccessKey), "SecretKeySelector", "v11.SecretKeySelector", 1) + `,`,
+ `SecretKey:` + strings.Replace(fmt.Sprintf("%v", this.SecretKey), "SecretKeySelector", "v11.SecretKeySelector", 1) + `,`,
+ `Events:` + fmt.Sprintf("%v", this.Events) + `,`,
+ `Filter:` + strings.Replace(this.Filter.String(), "S3Filter", "S3Filter", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *S3Bucket) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&S3Bucket{`,
+ `Key:` + fmt.Sprintf("%v", this.Key) + `,`,
+ `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *S3Filter) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&S3Filter{`,
+ `Prefix:` + fmt.Sprintf("%v", this.Prefix) + `,`,
+ `Suffix:` + fmt.Sprintf("%v", this.Suffix) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Status) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForConditions := "[]Condition{"
+ for _, f := range this.Conditions {
+ repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "Condition", "Condition", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForConditions += "}"
+ s := strings.Join([]string{`&Status{`,
+ `Conditions:` + repeatedStringForConditions + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func valueToStringGenerated(v interface{}) string {
+ rv := reflect.ValueOf(v)
+ if rv.IsNil() {
+ return "nil"
+ }
+ pv := reflect.Indirect(rv).Interface()
+ return fmt.Sprintf("*%v", pv)
+}
+func (m *Amount) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Amount: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Amount: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
+ if m.Value == nil {
+ m.Value = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Backoff) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Backoff: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Backoff: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType)
+ }
+ m.Duration = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Duration |= time.Duration(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Factor", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Factor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Jitter", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Jitter == nil {
+ m.Jitter = &Amount{}
+ }
+ if err := m.Jitter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Steps", wireType)
+ }
+ m.Steps = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Steps |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Condition) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Condition: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Condition: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Type = ConditionType(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Reason = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Message = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Resource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Resource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Resource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
+ if m.Value == nil {
+ m.Value = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *S3Artifact) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: S3Artifact: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: S3Artifact: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Endpoint = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Bucket", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Bucket == nil {
+ m.Bucket = &S3Bucket{}
+ }
+ if err := m.Bucket.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Region = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Insecure", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.Insecure = bool(v != 0)
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AccessKey", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.AccessKey == nil {
+ m.AccessKey = &v11.SecretKeySelector{}
+ }
+ if err := m.AccessKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SecretKey", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SecretKey == nil {
+ m.SecretKey = &v11.SecretKeySelector{}
+ }
+ if err := m.SecretKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Events = append(m.Events, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Filter == nil {
+ m.Filter = &S3Filter{}
+ }
+ if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *S3Bucket) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: S3Bucket: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: S3Bucket: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Key = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *S3Filter) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: S3Filter: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: S3Filter: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Prefix = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Suffix", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Suffix = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Status) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Status: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Status: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Conditions = append(m.Conditions, Condition{})
+ if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func skipGenerated(dAtA []byte) (n int, err error) {
+ l := len(dAtA)
+ iNdEx := 0
+ depth := 0
+ for iNdEx < l {
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= (uint64(b) & 0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ wireType := int(wire & 0x7)
+ switch wireType {
+ case 0:
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ iNdEx++
+ if dAtA[iNdEx-1] < 0x80 {
+ break
+ }
+ }
+ case 1:
+ iNdEx += 8
+ case 2:
+ var length int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ length |= (int(b) & 0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if length < 0 {
+ return 0, ErrInvalidLengthGenerated
+ }
+ iNdEx += length
+ case 3:
+ depth++
+ case 4:
+ if depth == 0 {
+ return 0, ErrUnexpectedEndOfGroupGenerated
+ }
+ depth--
+ case 5:
+ iNdEx += 4
+ default:
+ return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
+ }
+ if iNdEx < 0 {
+ return 0, ErrInvalidLengthGenerated
+ }
+ if depth == 0 {
+ return iNdEx, nil
+ }
+ }
+ return 0, io.ErrUnexpectedEOF
+}
+
+var (
+ ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
+ ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
+ ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
+)
diff --git a/pkg/apis/common/generated.proto b/pkg/apis/common/generated.proto
new file mode 100644
index 0000000000..1136996303
--- /dev/null
+++ b/pkg/apis/common/generated.proto
@@ -0,0 +1,119 @@
+/*
+Copyright 2020 BlackRock, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+// This file was autogenerated by go-to-protobuf. Do not edit it manually!
+
+syntax = 'proto2';
+
+package github.com.argoproj.argo_events.pkg.apis.common;
+
+import "k8s.io/api/core/v1/generated.proto";
+import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
+
+// Package-wide variables from generator "generated".
+option go_package = "common";
+
+// Amount represent a numeric amount.
+message Amount {
+ optional bytes value = 1;
+}
+
+// Backoff for an operation
+message Backoff {
+ // Duration is the duration in nanoseconds
+ optional int64 duration = 1;
+
+ // Duration is multiplied by factor each iteration
+ optional Amount factor = 2;
+
+ // The amount of jitter applied each iteration
+ optional Amount jitter = 3;
+
+ // Exit with error after this many steps
+ optional int32 steps = 4;
+}
+
+// Condition contains details about resource state
+message Condition {
+ // Condition type.
+ // +required
+ optional string type = 1;
+
+ // Condition status, True, False or Unknown.
+ // +required
+ optional string status = 2;
+
+ // Last time the condition transitioned from one status to another.
+ // +optional
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3;
+
+ // Unique, this should be a short, machine understandable string that gives the reason
+ // for condition's last transition. For example, "ImageNotFound"
+ // +optional
+ optional string reason = 4;
+
+ // Human-readable message indicating details about last transition.
+ // +optional
+ optional string message = 5;
+}
+
+// Resource represent arbitrary structured data.
+message Resource {
+ optional bytes value = 1;
+}
+
+// S3Artifact contains information about an S3 connection and bucket
+message S3Artifact {
+ optional string endpoint = 1;
+
+ optional S3Bucket bucket = 2;
+
+ optional string region = 3;
+
+ optional bool insecure = 4;
+
+ optional k8s.io.api.core.v1.SecretKeySelector accessKey = 5;
+
+ optional k8s.io.api.core.v1.SecretKeySelector secretKey = 6;
+
+ repeated string events = 7;
+
+ optional S3Filter filter = 8;
+}
+
+// S3Bucket contains information to describe an S3 Bucket
+message S3Bucket {
+ optional string key = 1;
+
+ optional string name = 2;
+}
+
+// S3Filter represents filters to apply to bucket nofifications for specifying constraints on objects
+message S3Filter {
+ optional string prefix = 1;
+
+ optional string suffix = 2;
+}
+
+// Status is a common structure which can be used for Status field.
+message Status {
+ // Conditions are the latest available observations of a resource's current state.
+ // +optional
+ // +patchMergeKey=type
+ // +patchStrategy=merge
+ repeated Condition conditions = 1;
+}
+
diff --git a/pkg/apis/common/openapi_generated.go b/pkg/apis/common/openapi_generated.go
index bcf604aaa5..a466309c45 100644
--- a/pkg/apis/common/openapi_generated.go
+++ b/pkg/apis/common/openapi_generated.go
@@ -29,839 +29,128 @@ import (
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition {
return map[string]common.OpenAPIDefinition{
- "github.com/argoproj/argo-events/pkg/apis/common.AMQPEventData": schema_argo_events_pkg_apis_common_AMQPEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.AzureEventsHubEventData": schema_argo_events_pkg_apis_common_AzureEventsHubEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.CalendarEventData": schema_argo_events_pkg_apis_common_CalendarEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.EmitterEventData": schema_argo_events_pkg_apis_common_EmitterEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.Event": schema_argo_events_pkg_apis_common_Event(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.EventContext": schema_argo_events_pkg_apis_common_EventContext(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.EventProtocol": schema_argo_events_pkg_apis_common_EventProtocol(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.GitLabEventData": schema_argo_events_pkg_apis_common_GitLabEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.GithubEventData": schema_argo_events_pkg_apis_common_GithubEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.Http": schema_argo_events_pkg_apis_common_Http(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.KafkaEventData": schema_argo_events_pkg_apis_common_KafkaEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.MQTTEventData": schema_argo_events_pkg_apis_common_MQTTEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.MinioEventData": schema_argo_events_pkg_apis_common_MinioEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.NATSEventData": schema_argo_events_pkg_apis_common_NATSEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.NSQEventData": schema_argo_events_pkg_apis_common_NSQEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.Nats": schema_argo_events_pkg_apis_common_Nats(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.PubSubEventData": schema_argo_events_pkg_apis_common_PubSubEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.RedisEventData": schema_argo_events_pkg_apis_common_RedisEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.ResourceEventData": schema_argo_events_pkg_apis_common_ResourceEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.S3Artifact": schema_argo_events_pkg_apis_common_S3Artifact(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.S3Bucket": schema_argo_events_pkg_apis_common_S3Bucket(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.S3Filter": schema_argo_events_pkg_apis_common_S3Filter(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.SNSEventData": schema_argo_events_pkg_apis_common_SNSEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.SQSEventData": schema_argo_events_pkg_apis_common_SQSEventData(ref),
- "github.com/argoproj/argo-events/pkg/apis/common.WebhookEventData": schema_argo_events_pkg_apis_common_WebhookEventData(ref),
+ "github.com/argoproj/argo-events/pkg/apis/common.Amount": schema_argo_events_pkg_apis_common_Amount(ref),
+ "github.com/argoproj/argo-events/pkg/apis/common.Backoff": schema_argo_events_pkg_apis_common_Backoff(ref),
+ "github.com/argoproj/argo-events/pkg/apis/common.Condition": schema_argo_events_pkg_apis_common_Condition(ref),
+ "github.com/argoproj/argo-events/pkg/apis/common.Resource": schema_argo_events_pkg_apis_common_Resource(ref),
+ "github.com/argoproj/argo-events/pkg/apis/common.S3Artifact": schema_argo_events_pkg_apis_common_S3Artifact(ref),
+ "github.com/argoproj/argo-events/pkg/apis/common.S3Bucket": schema_argo_events_pkg_apis_common_S3Bucket(ref),
+ "github.com/argoproj/argo-events/pkg/apis/common.S3Filter": schema_argo_events_pkg_apis_common_S3Filter(ref),
+ "github.com/argoproj/argo-events/pkg/apis/common.Status": schema_argo_events_pkg_apis_common_Status(ref),
}
}
-func schema_argo_events_pkg_apis_common_AMQPEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_argo_events_pkg_apis_common_Amount(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
- Description: "AMQPEventData represents the event data generated by AMQP gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "contentType": {
- SchemaProps: spec.SchemaProps{
- Description: "ContentType is the MIME content type",
- Type: []string{"string"},
- Format: "",
- },
- },
- "contentEncoding": {
- SchemaProps: spec.SchemaProps{
- Description: "ContentEncoding is the MIME content encoding",
- Type: []string{"string"},
- Format: "",
- },
- },
- "deliveryMode": {
- SchemaProps: spec.SchemaProps{
- Description: "Delivery mode can be either - non-persistent (1) or persistent (2)",
- Type: []string{"integer"},
- Format: "int32",
- },
- },
- "priority": {
- SchemaProps: spec.SchemaProps{
- Description: "Priority refers to the use - 0 to 9",
- Type: []string{"integer"},
- Format: "int32",
- },
- },
- "correlationId": {
- SchemaProps: spec.SchemaProps{
- Description: "CorrelationId is the correlation identifier",
- Type: []string{"string"},
- Format: "",
- },
- },
- "replyTo": {
- SchemaProps: spec.SchemaProps{
- Description: "ReplyTo is the address to reply to (ex: RPC)",
- Type: []string{"string"},
- Format: "",
- },
- },
- "expiration": {
- SchemaProps: spec.SchemaProps{
- Description: "Expiration refers to message expiration spec",
- Type: []string{"string"},
- Format: "",
- },
- },
- "messageId": {
- SchemaProps: spec.SchemaProps{
- Description: "MessageId is message identifier",
- Type: []string{"string"},
- Format: "",
- },
- },
- "timestamp": {
- SchemaProps: spec.SchemaProps{
- Description: "Timestamp refers to the message timestamp",
- Type: []string{"string"},
- Format: "",
- },
- },
- "type": {
- SchemaProps: spec.SchemaProps{
- Description: "Type refers to the message type name",
- Type: []string{"string"},
- Format: "",
- },
- },
- "appId": {
- SchemaProps: spec.SchemaProps{
- Description: "AppId refers to the application id",
- Type: []string{"string"},
- Format: "",
- },
- },
- "exchange": {
- SchemaProps: spec.SchemaProps{
- Description: "Exchange is basic.publish exchange",
- Type: []string{"string"},
- Format: "",
- },
- },
- "routingKey": {
- SchemaProps: spec.SchemaProps{
- Description: "RoutingKey is basic.publish routing key",
- Type: []string{"string"},
- Format: "",
- },
- },
- "body": {
- SchemaProps: spec.SchemaProps{
- Description: "Body represents the messsage body",
- Type: []string{"string"},
- Format: "byte",
- },
- },
- },
- Required: []string{"contentType", "contentEncoding", "deliveryMode", "priority", "correlationId", "replyTo", "expiration", "messageId", "timestamp", "type", "appId", "exchange", "routingKey", "body"},
- },
- },
- }
-}
-
-func schema_argo_events_pkg_apis_common_AzureEventsHubEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "AzureEventsHubEventData represents to the event data generated by Azure Events Hub gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "id": {
- SchemaProps: spec.SchemaProps{
- Description: "Id of the message",
- Type: []string{"string"},
- Format: "",
- },
- },
- "partitionKey": {
- SchemaProps: spec.SchemaProps{
- Description: "PartitionKey",
- Type: []string{"string"},
- Format: "",
- },
- },
- "body": {
- SchemaProps: spec.SchemaProps{
- Description: "Message body",
- Type: []string{"string"},
- Format: "byte",
- },
- },
- },
- Required: []string{"id", "partitionKey", "body"},
- },
- },
- }
-}
-
-func schema_argo_events_pkg_apis_common_CalendarEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "CalendarEventData represents the event data generated by the Calendar gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "eventTime": {
- SchemaProps: spec.SchemaProps{
- Description: "EventTime is time at which event occurred",
- Type: []string{"string"},
- Format: "",
- },
- },
- "userPayload": {
- SchemaProps: spec.SchemaProps{
- Description: "UserPayload if any",
- Type: []string{"string"},
- Format: "byte",
- },
- },
- },
- Required: []string{"eventTime"},
- },
- },
- }
-}
-
-func schema_argo_events_pkg_apis_common_EmitterEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "EmitterEventData represents the event data generated by the Emitter gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "topic": {
- SchemaProps: spec.SchemaProps{
- Description: "Topic name",
- Type: []string{"string"},
- Format: "",
- },
- },
- "body": {
- SchemaProps: spec.SchemaProps{
- Description: "Body represents the message body",
- Type: []string{"string"},
- Format: "byte",
- },
- },
- },
- Required: []string{"topic", "body"},
- },
- },
- }
-}
-
-func schema_argo_events_pkg_apis_common_Event(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "Event is a data and its context. Adheres to the CloudEvents v0.3 specification",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "context": {
- SchemaProps: spec.SchemaProps{
- Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.EventContext"),
- },
- },
- "data": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "bytes",
- },
- },
- SchemaProps: spec.SchemaProps{
- Type: []string{"string"},
- Format: "byte",
- },
- },
- },
- Required: []string{"context", "data"},
- },
- },
- Dependencies: []string{
- "github.com/argoproj/argo-events/pkg/apis/common.EventContext"},
- }
-}
-
-func schema_argo_events_pkg_apis_common_EventContext(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "EventContext contains metadata that provides circumstantial information about the occurrence.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "type": {
- SchemaProps: spec.SchemaProps{
- Description: "The type of occurrence which has happened. Often this attribute is used for routing, observability, policy enforcement, etc. should be prefixed with a reverse-DNS name. The prefixed domain dictates the organization which defines the semantics of this event type. ex: com.github.pull.create",
- Type: []string{"string"},
- Format: "",
- },
- },
- "specVersion": {
- SchemaProps: spec.SchemaProps{
- Description: "The version of the CloudEvents specification which the event uses. Enables the interpretation of the context.",
- Type: []string{"string"},
- Format: "",
- },
- },
- "source": {
- SchemaProps: spec.SchemaProps{
- Description: "This describes the event producer.",
- Type: []string{"string"},
- Format: "",
- },
- },
- "id": {
- SchemaProps: spec.SchemaProps{
- Description: "ID of the event. The semantics are explicitly undefined to ease the implementation of producers.",
- Type: []string{"string"},
- Format: "",
- },
- },
- "time": {
- SchemaProps: spec.SchemaProps{
- Description: "Time when the event happened. Must adhere to format specified in RFC 3339.",
- Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"),
- },
- },
- "dataContentType": {
- SchemaProps: spec.SchemaProps{
- Description: "Content type of the data attribute value. Enables the data attribute to carry any type of content, whereby format and encoding might differ from that of the chosen event format. For example, the data attribute may carry an XML or JSON payload and the consumer is informed by this attribute being set to \"application/xml\" or \"application/json\" respectively.",
- Type: []string{"string"},
- Format: "",
- },
- },
- "subject": {
- SchemaProps: spec.SchemaProps{
- Description: "Subject of the event",
- Type: []string{"string"},
- Format: "",
- },
- },
- },
- Required: []string{"type", "specVersion", "source", "id", "time", "dataContentType", "subject"},
- },
- },
- Dependencies: []string{
- "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"},
- }
-}
-
-func schema_argo_events_pkg_apis_common_EventProtocol(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "Dispatch protocol contains configuration necessary to dispatch an event to sensor over different communication protocols",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "type": {
- SchemaProps: spec.SchemaProps{
- Type: []string{"string"},
- Format: "",
- },
- },
- "http": {
- SchemaProps: spec.SchemaProps{
- Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Http"),
- },
- },
- "nats": {
- SchemaProps: spec.SchemaProps{
- Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Nats"),
- },
- },
- },
- Required: []string{"type", "http", "nats"},
- },
- },
- Dependencies: []string{
- "github.com/argoproj/argo-events/pkg/apis/common.Http", "github.com/argoproj/argo-events/pkg/apis/common.Nats"},
- }
-}
-
-func schema_argo_events_pkg_apis_common_GitLabEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "GitLabEventData represents the event data generated by the GitLab gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "body": {
- SchemaProps: spec.SchemaProps{
- Description: "Body represents the message body",
- Type: []string{"string"},
- Format: "byte",
- },
- },
- },
- Required: []string{"body"},
- },
- },
- }
-}
-
-func schema_argo_events_pkg_apis_common_GithubEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "GithubEventData represents the event data generated by the GitHub gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "body": {
- SchemaProps: spec.SchemaProps{
- Description: "Body represents the message body",
- Type: []string{"string"},
- Format: "byte",
- },
- },
- },
- Required: []string{"body"},
- },
- },
- }
-}
-
-func schema_argo_events_pkg_apis_common_Http(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "Http contains the information required to setup a http server and listen to incoming events",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "port": {
- SchemaProps: spec.SchemaProps{
- Description: "Port on which server will run",
- Type: []string{"string"},
- Format: "",
- },
- },
- "labels": {
- SchemaProps: spec.SchemaProps{
- Description: "Labels to be set for the service generated",
- Type: []string{"object"},
- AdditionalProperties: &spec.SchemaOrBool{
- Allows: true,
- Schema: &spec.Schema{
- SchemaProps: spec.SchemaProps{
- Type: []string{"string"},
- Format: "",
- },
- },
- },
- },
- },
- "annotations": {
- SchemaProps: spec.SchemaProps{
- Description: "Annotations to be set for the service generated",
- Type: []string{"object"},
- AdditionalProperties: &spec.SchemaOrBool{
- Allows: true,
- Schema: &spec.Schema{
- SchemaProps: spec.SchemaProps{
- Type: []string{"string"},
- Format: "",
- },
- },
- },
- },
- },
- },
- Required: []string{"port"},
- },
- },
- }
-}
-
-func schema_argo_events_pkg_apis_common_KafkaEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "KafkaEventData represents the event data generated by the Kafka gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "topic": {
- SchemaProps: spec.SchemaProps{
- Description: "Topic refers to the Kafka topic",
- Type: []string{"string"},
- Format: "",
- },
- },
- "partition": {
- SchemaProps: spec.SchemaProps{
- Description: "Partition refers to the Kafka partition",
- Type: []string{"integer"},
- Format: "int32",
- },
- },
- "value": {
- SchemaProps: spec.SchemaProps{
- Description: "Body refers to the message value",
- Type: []string{"string"},
- Format: "byte",
- },
- },
- "timestamp": {
- SchemaProps: spec.SchemaProps{
- Description: "Timestamp of the message",
- Type: []string{"string"},
- Format: "",
- },
- },
- },
- Required: []string{"topic", "partition", "value", "timestamp"},
+ Description: "Amount represent a numeric amount.",
+ Type: Amount{}.OpenAPISchemaType(),
+ Format: Amount{}.OpenAPISchemaFormat(),
},
},
}
}
-func schema_argo_events_pkg_apis_common_MQTTEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_argo_events_pkg_apis_common_Backoff(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
- Description: "MQTTEventData represents the event data generated by the MQTT gateway.",
+ Description: "Backoff for an operation",
Type: []string{"object"},
Properties: map[string]spec.Schema{
- "topic": {
- SchemaProps: spec.SchemaProps{
- Description: "Topic refers to the MQTT topic name.",
- Type: []string{"string"},
- Format: "",
- },
- },
- "messageId": {
+ "duration": {
SchemaProps: spec.SchemaProps{
- Description: "MessageId is the unique ID for the message",
+ Description: "Duration is the duration in nanoseconds",
Type: []string{"integer"},
- Format: "int32",
- },
- },
- "payload": {
- SchemaProps: spec.SchemaProps{
- Description: "Payload is the message payload.",
- Type: []string{"string"},
- Format: "byte",
- },
- },
- },
- Required: []string{"topic", "messageId", "payload"},
- },
- },
- }
-}
-
-func schema_argo_events_pkg_apis_common_MinioEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "MinioEventData represents the event data generated by the Minio gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "notification": {
- SchemaProps: spec.SchemaProps{
- Type: []string{"array"},
- Items: &spec.SchemaOrArray{
- Schema: &spec.Schema{
- SchemaProps: spec.SchemaProps{
- Ref: ref("github.com/minio/minio-go.NotificationEvent"),
- },
- },
- },
- },
- },
- },
- Required: []string{"notification"},
- },
- },
- Dependencies: []string{
- "github.com/minio/minio-go.NotificationEvent"},
- }
-}
-
-func schema_argo_events_pkg_apis_common_NATSEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "NATSEventData represents the event data generated by the NATS gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "subject": {
- SchemaProps: spec.SchemaProps{
- Description: "Name of the subject.",
- Type: []string{"string"},
- Format: "",
- },
- },
- "data": {
- SchemaProps: spec.SchemaProps{
- Description: "Message data.",
- Type: []string{"string"},
- Format: "byte",
+ Format: "int64",
},
},
- },
- Required: []string{"subject", "data"},
- },
- },
- }
-}
-
-func schema_argo_events_pkg_apis_common_NSQEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "NSQEventData represents the event data generated by the NSQ gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "Body": {
+ "factor": {
SchemaProps: spec.SchemaProps{
- Description: "Body is the message data.",
- Type: []string{"string"},
- Format: "byte",
+ Description: "Duration is multiplied by factor each iteration",
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Amount"),
},
},
- "Timestamp": {
+ "jitter": {
SchemaProps: spec.SchemaProps{
- Description: "Timestamp of the message.",
- Type: []string{"string"},
- Format: "",
+ Description: "The amount of jitter applied each iteration",
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Amount"),
},
},
- "NSQDAddress": {
+ "steps": {
SchemaProps: spec.SchemaProps{
- Description: "NSQDAddress is the address of the nsq host.",
- Type: []string{"string"},
- Format: "",
+ Description: "Exit with error after this many steps",
+ Type: []string{"integer"},
+ Format: "int32",
},
},
},
- Required: []string{"Body", "Timestamp", "NSQDAddress"},
+ Required: []string{"duration", "factor"},
},
},
+ Dependencies: []string{
+ "github.com/argoproj/argo-events/pkg/apis/common.Amount"},
}
}
-func schema_argo_events_pkg_apis_common_Nats(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_argo_events_pkg_apis_common_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
- Description: "Nats contains the information required to connect to nats server and get subscriptions",
+ Description: "Condition contains details about resource state",
Type: []string{"object"},
Properties: map[string]spec.Schema{
- "url": {
- SchemaProps: spec.SchemaProps{
- Description: "URL is nats server/service URL",
- Type: []string{"string"},
- Format: "",
- },
- },
- "startWithLastReceived": {
- SchemaProps: spec.SchemaProps{
- Description: "Subscribe starting with most recently published value. Refer https://github.com/nats-io/go-nats-streaming",
- Type: []string{"boolean"},
- Format: "",
- },
- },
- "deliverAllAvailable": {
- SchemaProps: spec.SchemaProps{
- Description: "Receive all stored values in order.",
- Type: []string{"boolean"},
- Format: "",
- },
- },
- "startAtSequence": {
- SchemaProps: spec.SchemaProps{
- Description: "Receive messages starting at a specific sequence number",
- Type: []string{"string"},
- Format: "",
- },
- },
- "startAtTime": {
- SchemaProps: spec.SchemaProps{
- Description: "Subscribe starting at a specific time",
- Type: []string{"string"},
- Format: "",
- },
- },
- "startAtTimeDelta": {
- SchemaProps: spec.SchemaProps{
- Description: "Subscribe starting a specific amount of time in the past (e.g. 30 seconds ago)",
- Type: []string{"string"},
- Format: "",
- },
- },
- "durable": {
- SchemaProps: spec.SchemaProps{
- Description: "Durable subscriptions allow clients to assign a durable name to a subscription when it is created",
- Type: []string{"boolean"},
- Format: "",
- },
- },
- "clusterId": {
- SchemaProps: spec.SchemaProps{
- Description: "The NATS Streaming cluster ID",
- Type: []string{"string"},
- Format: "",
- },
- },
- "clientId": {
- SchemaProps: spec.SchemaProps{
- Description: "The NATS Streaming cluster ID",
- Type: []string{"string"},
- Format: "",
- },
- },
"type": {
SchemaProps: spec.SchemaProps{
- Description: "Type of the connection. either standard or streaming",
- Type: []string{"string"},
- Format: "",
- },
- },
- },
- Required: []string{"url", "type"},
- },
- },
- }
-}
-
-func schema_argo_events_pkg_apis_common_PubSubEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "PubSubEventData represents the event data generated by the GCP PubSub gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "id": {
- SchemaProps: spec.SchemaProps{
- Description: "ID of the message",
+ Description: "Condition type.",
Type: []string{"string"},
Format: "",
},
},
- "body": {
- SchemaProps: spec.SchemaProps{
- Description: "Body is the actual data in the message.",
- Type: []string{"string"},
- Format: "byte",
- },
- },
- "attributes": {
- SchemaProps: spec.SchemaProps{
- Description: "Attributes represents the key-value pairs the current message is labelled with.",
- Type: []string{"object"},
- AdditionalProperties: &spec.SchemaOrBool{
- Allows: true,
- Schema: &spec.Schema{
- SchemaProps: spec.SchemaProps{
- Type: []string{"string"},
- Format: "",
- },
- },
- },
- },
- },
- "publishTime": {
+ "status": {
SchemaProps: spec.SchemaProps{
- Description: "The time at which the message was published.",
+ Description: "Condition status, True, False or Unknown.",
Type: []string{"string"},
Format: "",
},
},
- },
- Required: []string{"id", "body", "attributes", "publishTime"},
- },
- },
- }
-}
-
-func schema_argo_events_pkg_apis_common_RedisEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "RedisEventData represents the event data generated by the Redis gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "channel": {
+ "lastTransitionTime": {
SchemaProps: spec.SchemaProps{
- Description: "Subscription channel.",
- Type: []string{"string"},
- Format: "",
+ Description: "Last time the condition transitioned from one status to another.",
+ Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
},
},
- "pattern": {
+ "reason": {
SchemaProps: spec.SchemaProps{
- Description: "Message pattern",
+ Description: "Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. For example, \"ImageNotFound\"",
Type: []string{"string"},
Format: "",
},
},
- "payload": {
+ "message": {
SchemaProps: spec.SchemaProps{
- Description: "Message body",
+ Description: "Human-readable message indicating details about last transition.",
Type: []string{"string"},
Format: "",
},
},
},
- Required: []string{"channel", "pattern", "payload"},
+ Required: []string{"type", "status"},
},
},
+ Dependencies: []string{
+ "k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
}
}
-func schema_argo_events_pkg_apis_common_ResourceEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_argo_events_pkg_apis_common_Resource(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
- Description: "ResourceEventData represents the event data generated by the Resource gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "type": {
- SchemaProps: spec.SchemaProps{
- Description: "EventType of the type of the event.",
- Type: []string{"string"},
- Format: "",
- },
- },
- "body": {
- SchemaProps: spec.SchemaProps{
- Description: "Resource body.",
- Type: []string{"string"},
- Format: "byte",
- },
- },
- "group": {
- SchemaProps: spec.SchemaProps{
- Description: "Resource group name.",
- Type: []string{"string"},
- Format: "",
- },
- },
- "version": {
- SchemaProps: spec.SchemaProps{
- Description: "Resource version.",
- Type: []string{"string"},
- Format: "",
- },
- },
- "resource": {
- SchemaProps: spec.SchemaProps{
- Description: "Resource name.",
- Type: []string{"string"},
- Format: "",
- },
- },
- },
- Required: []string{"type", "body", "group", "version", "resource"},
+ Description: "Resource represent arbitrary structured data.",
+ Type: Resource{}.OpenAPISchemaType(),
+ Format: Resource{}.OpenAPISchemaFormat(),
},
},
}
@@ -908,11 +197,6 @@ func schema_argo_events_pkg_apis_common_S3Artifact(ref common.ReferenceCallback)
},
},
"events": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "string",
- },
- },
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
@@ -991,110 +275,36 @@ func schema_argo_events_pkg_apis_common_S3Filter(ref common.ReferenceCallback) c
}
}
-func schema_argo_events_pkg_apis_common_SNSEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "SNSEventData represents the event data generated by SNS gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "body": {
- SchemaProps: spec.SchemaProps{
- Description: "Body represents the SNS message body",
- Type: []string{"string"},
- Format: "byte",
- },
- },
- },
- Required: []string{"body"},
- },
- },
- }
-}
-
-func schema_argo_events_pkg_apis_common_SQSEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_argo_events_pkg_apis_common_Status(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
- Description: "SQSEventData represents the event data generated by SQS gateway.",
+ Description: "Status is a common structure which can be used for Status field.",
Type: []string{"object"},
Properties: map[string]spec.Schema{
- "messageId": {
- SchemaProps: spec.SchemaProps{
- Description: "A unique identifier for the message. A MessageId is considered unique across all AWS accounts for an extended period of time.",
- Type: []string{"string"},
- Format: "",
- },
- },
- "messageAttributes": {
- SchemaProps: spec.SchemaProps{
- Description: "Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS Message Attributes (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html) in the Amazon Simple Queue Service Developer Guide.",
- Type: []string{"object"},
- AdditionalProperties: &spec.SchemaOrBool{
- Allows: true,
- Schema: &spec.Schema{
- SchemaProps: spec.SchemaProps{
- Ref: ref("github.com/aws/aws-sdk-go/service/sqs.MessageAttributeValue"),
- },
- },
+ "conditions": {
+ VendorExtensible: spec.VendorExtensible{
+ Extensions: spec.Extensions{
+ "x-kubernetes-patch-merge-key": "type",
+ "x-kubernetes-patch-strategy": "merge",
},
},
- },
- "body": {
- SchemaProps: spec.SchemaProps{
- Description: "The message's contents (not URL-encoded).",
- Type: []string{"string"},
- Format: "byte",
- },
- },
- },
- Required: []string{"messageId", "messageAttributes", "body"},
- },
- },
- Dependencies: []string{
- "github.com/aws/aws-sdk-go/service/sqs.MessageAttributeValue"},
- }
-}
-
-func schema_argo_events_pkg_apis_common_WebhookEventData(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "WebhookEventData represents the event data generated by the Webhook gateway.",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "header": {
SchemaProps: spec.SchemaProps{
- Description: "Header is the http request header",
- Type: []string{"object"},
- AdditionalProperties: &spec.SchemaOrBool{
- Allows: true,
+ Description: "Conditions are the latest available observations of a resource's current state.",
+ Type: []string{"array"},
+ Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
- Type: []string{"array"},
- Items: &spec.SchemaOrArray{
- Schema: &spec.Schema{
- SchemaProps: spec.SchemaProps{
- Type: []string{"string"},
- Format: "",
- },
- },
- },
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Condition"),
},
},
},
},
},
- "body": {
- SchemaProps: spec.SchemaProps{
- Description: "Body is http request body",
- Type: []string{"string"},
- Format: "byte",
- },
- },
},
- Required: []string{"header", "body"},
},
},
+ Dependencies: []string{
+ "github.com/argoproj/argo-events/pkg/apis/common.Condition"},
}
}
diff --git a/pkg/apis/common/resource.go b/pkg/apis/common/resource.go
new file mode 100644
index 0000000000..fba3735827
--- /dev/null
+++ b/pkg/apis/common/resource.go
@@ -0,0 +1,32 @@
+package common
+
+import "encoding/json"
+
+/**
+This inspired by intstr.IntOrStr and json.RawMessage.
+*/
+
+// Resource represent arbitrary structured data.
+type Resource struct {
+ Value []byte `json:"value" protobuf:"bytes,1,opt,name=value"`
+}
+
+func NewResource(s interface{}) Resource {
+ data, _ := json.Marshal(s)
+ return Resource{Value: data}
+}
+
+func (a *Resource) UnmarshalJSON(value []byte) error {
+ a.Value = value
+ return nil
+}
+
+func (n Resource) MarshalJSON() ([]byte, error) {
+ return n.Value, nil
+}
+
+func (n Resource) OpenAPISchemaType() []string {
+ return []string{"object"}
+}
+
+func (n Resource) OpenAPISchemaFormat() string { return "" }
diff --git a/pkg/apis/common/s3.go b/pkg/apis/common/s3.go
index 269b511a15..342f70df43 100644
--- a/pkg/apis/common/s3.go
+++ b/pkg/apis/common/s3.go
@@ -28,8 +28,8 @@ type S3Artifact struct {
Insecure bool `json:"insecure,omitempty" protobuf:"varint,4,opt,name=insecure"`
AccessKey *corev1.SecretKeySelector `json:"accessKey" protobuf:"bytes,5,opt,name=accessKey"`
SecretKey *corev1.SecretKeySelector `json:"secretKey" protobuf:"bytes,6,opt,name=secretKey"`
- // +listType=string
- Events []string `json:"events,omitempty" protobuf:"bytes,7,opt,name=events"`
+
+ Events []string `json:"events,omitempty" protobuf:"bytes,7,rep,name=events"`
Filter *S3Filter `json:"filter,omitempty" protobuf:"bytes,8,opt,name=filter"`
}
diff --git a/pkg/apis/common/status_types.go b/pkg/apis/common/status_types.go
index 7d1e239b88..dc915c07ba 100644
--- a/pkg/apis/common/status_types.go
+++ b/pkg/apis/common/status_types.go
@@ -24,17 +24,17 @@ type Condition struct {
Type ConditionType `json:"type" protobuf:"bytes,1,opt,name=type"`
// Condition status, True, False or Unknown.
// +required
- Status corev1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status"`
+ Status corev1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"`
// Last time the condition transitioned from one status to another.
// +optional
- LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"`
+ LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"`
// Unique, this should be a short, machine understandable string that gives the reason
// for condition's last transition. For example, "ImageNotFound"
// +optional
- Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"`
+ Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"`
// Human-readable message indicating details about last transition.
// +optional
- Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"`
+ Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"`
}
// IsTrue tells if the condition is True
@@ -83,7 +83,7 @@ type Status struct {
// +optional
// +patchMergeKey=type
// +patchStrategy=merge
- Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,opt,name=conditions"`
+ Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}
// InitConditions initializes the contions to Unknown
diff --git a/pkg/apis/eventbus/register.go b/pkg/apis/eventbus/register.go
index 43d283b4a4..46c4965a5f 100644
--- a/pkg/apis/eventbus/register.go
+++ b/pkg/apis/eventbus/register.go
@@ -4,9 +4,9 @@ const (
// Group is the API Group
Group string = "argoproj.io"
- // EventSource constants
+ // EventBus constants
Kind string = "EventBus"
Singular string = "eventbus"
- Plural string = "eventbuses"
+ Plural string = "eventbus"
FullName string = Plural + "." + Group
)
diff --git a/pkg/apis/eventbus/v1alpha1/generated.pb.go b/pkg/apis/eventbus/v1alpha1/generated.pb.go
new file mode 100644
index 0000000000..cef5ee6e92
--- /dev/null
+++ b/pkg/apis/eventbus/v1alpha1/generated.pb.go
@@ -0,0 +1,2359 @@
+/*
+Copyright 2020 BlackRock, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// source: github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1/generated.proto
+
+package v1alpha1
+
+import (
+ fmt "fmt"
+
+ io "io"
+
+ proto "github.com/gogo/protobuf/proto"
+ k8s_io_api_core_v1 "k8s.io/api/core/v1"
+ v11 "k8s.io/api/core/v1"
+ resource "k8s.io/apimachinery/pkg/api/resource"
+
+ math "math"
+ math_bits "math/bits"
+ reflect "reflect"
+ strings "strings"
+)
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ = proto.Marshal
+var _ = fmt.Errorf
+var _ = math.Inf
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the proto package it is being compiled against.
+// A compilation error at this line likely means your copy of the
+// proto package needs to be updated.
+const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
+
+func (m *BusConfig) Reset() { *m = BusConfig{} }
+func (*BusConfig) ProtoMessage() {}
+func (*BusConfig) Descriptor() ([]byte, []int) {
+ return fileDescriptor_871e47633eb7aad4, []int{0}
+}
+func (m *BusConfig) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *BusConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *BusConfig) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_BusConfig.Merge(m, src)
+}
+func (m *BusConfig) XXX_Size() int {
+ return m.Size()
+}
+func (m *BusConfig) XXX_DiscardUnknown() {
+ xxx_messageInfo_BusConfig.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_BusConfig proto.InternalMessageInfo
+
+func (m *EventBus) Reset() { *m = EventBus{} }
+func (*EventBus) ProtoMessage() {}
+func (*EventBus) Descriptor() ([]byte, []int) {
+ return fileDescriptor_871e47633eb7aad4, []int{1}
+}
+func (m *EventBus) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EventBus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *EventBus) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventBus.Merge(m, src)
+}
+func (m *EventBus) XXX_Size() int {
+ return m.Size()
+}
+func (m *EventBus) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventBus.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EventBus proto.InternalMessageInfo
+
+func (m *EventBusList) Reset() { *m = EventBusList{} }
+func (*EventBusList) ProtoMessage() {}
+func (*EventBusList) Descriptor() ([]byte, []int) {
+ return fileDescriptor_871e47633eb7aad4, []int{2}
+}
+func (m *EventBusList) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EventBusList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *EventBusList) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventBusList.Merge(m, src)
+}
+func (m *EventBusList) XXX_Size() int {
+ return m.Size()
+}
+func (m *EventBusList) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventBusList.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EventBusList proto.InternalMessageInfo
+
+func (m *EventBusSpec) Reset() { *m = EventBusSpec{} }
+func (*EventBusSpec) ProtoMessage() {}
+func (*EventBusSpec) Descriptor() ([]byte, []int) {
+ return fileDescriptor_871e47633eb7aad4, []int{3}
+}
+func (m *EventBusSpec) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EventBusSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *EventBusSpec) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventBusSpec.Merge(m, src)
+}
+func (m *EventBusSpec) XXX_Size() int {
+ return m.Size()
+}
+func (m *EventBusSpec) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventBusSpec.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EventBusSpec proto.InternalMessageInfo
+
+func (m *EventBusStatus) Reset() { *m = EventBusStatus{} }
+func (*EventBusStatus) ProtoMessage() {}
+func (*EventBusStatus) Descriptor() ([]byte, []int) {
+ return fileDescriptor_871e47633eb7aad4, []int{4}
+}
+func (m *EventBusStatus) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EventBusStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *EventBusStatus) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventBusStatus.Merge(m, src)
+}
+func (m *EventBusStatus) XXX_Size() int {
+ return m.Size()
+}
+func (m *EventBusStatus) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventBusStatus.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EventBusStatus proto.InternalMessageInfo
+
+func (m *NATSBus) Reset() { *m = NATSBus{} }
+func (*NATSBus) ProtoMessage() {}
+func (*NATSBus) Descriptor() ([]byte, []int) {
+ return fileDescriptor_871e47633eb7aad4, []int{5}
+}
+func (m *NATSBus) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *NATSBus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *NATSBus) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_NATSBus.Merge(m, src)
+}
+func (m *NATSBus) XXX_Size() int {
+ return m.Size()
+}
+func (m *NATSBus) XXX_DiscardUnknown() {
+ xxx_messageInfo_NATSBus.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_NATSBus proto.InternalMessageInfo
+
+func (m *NATSConfig) Reset() { *m = NATSConfig{} }
+func (*NATSConfig) ProtoMessage() {}
+func (*NATSConfig) Descriptor() ([]byte, []int) {
+ return fileDescriptor_871e47633eb7aad4, []int{6}
+}
+func (m *NATSConfig) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *NATSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *NATSConfig) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_NATSConfig.Merge(m, src)
+}
+func (m *NATSConfig) XXX_Size() int {
+ return m.Size()
+}
+func (m *NATSConfig) XXX_DiscardUnknown() {
+ xxx_messageInfo_NATSConfig.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_NATSConfig proto.InternalMessageInfo
+
+func (m *NativeStrategy) Reset() { *m = NativeStrategy{} }
+func (*NativeStrategy) ProtoMessage() {}
+func (*NativeStrategy) Descriptor() ([]byte, []int) {
+ return fileDescriptor_871e47633eb7aad4, []int{7}
+}
+func (m *NativeStrategy) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *NativeStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *NativeStrategy) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_NativeStrategy.Merge(m, src)
+}
+func (m *NativeStrategy) XXX_Size() int {
+ return m.Size()
+}
+func (m *NativeStrategy) XXX_DiscardUnknown() {
+ xxx_messageInfo_NativeStrategy.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_NativeStrategy proto.InternalMessageInfo
+
+func (m *PersistenceStrategy) Reset() { *m = PersistenceStrategy{} }
+func (*PersistenceStrategy) ProtoMessage() {}
+func (*PersistenceStrategy) Descriptor() ([]byte, []int) {
+ return fileDescriptor_871e47633eb7aad4, []int{8}
+}
+func (m *PersistenceStrategy) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *PersistenceStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *PersistenceStrategy) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_PersistenceStrategy.Merge(m, src)
+}
+func (m *PersistenceStrategy) XXX_Size() int {
+ return m.Size()
+}
+func (m *PersistenceStrategy) XXX_DiscardUnknown() {
+ xxx_messageInfo_PersistenceStrategy.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_PersistenceStrategy proto.InternalMessageInfo
+
+func init() {
+ proto.RegisterType((*BusConfig)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.BusConfig")
+ proto.RegisterType((*EventBus)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.EventBus")
+ proto.RegisterType((*EventBusList)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.EventBusList")
+ proto.RegisterType((*EventBusSpec)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.EventBusSpec")
+ proto.RegisterType((*EventBusStatus)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.EventBusStatus")
+ proto.RegisterType((*NATSBus)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.NATSBus")
+ proto.RegisterType((*NATSConfig)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.NATSConfig")
+ proto.RegisterType((*NativeStrategy)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.NativeStrategy")
+ proto.RegisterType((*PersistenceStrategy)(nil), "github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1.PersistenceStrategy")
+}
+
+func init() {
+ proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/eventbus/v1alpha1/generated.proto", fileDescriptor_871e47633eb7aad4)
+}
+
+var fileDescriptor_871e47633eb7aad4 = []byte{
+ // 931 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x41, 0x6f, 0x1b, 0x45,
+ 0x1b, 0xf6, 0x3a, 0x8e, 0x3f, 0x7b, 0xec, 0xe6, 0x8b, 0x86, 0x1e, 0xac, 0x48, 0xac, 0xab, 0x95,
+ 0x90, 0x2a, 0xd1, 0xcc, 0x92, 0x0a, 0x41, 0xc5, 0xa5, 0x78, 0xd3, 0x20, 0x5a, 0xda, 0x14, 0xc6,
+ 0xd0, 0x03, 0x20, 0xc2, 0x64, 0x33, 0x59, 0x6f, 0xe2, 0xdd, 0xd9, 0xce, 0xcc, 0x5a, 0x98, 0x13,
+ 0xe2, 0x17, 0x70, 0xe4, 0x3f, 0xf0, 0x47, 0x72, 0xe0, 0xd0, 0x1b, 0x3d, 0x59, 0xcd, 0x56, 0xfc,
+ 0x89, 0x9e, 0xd0, 0xcc, 0xce, 0x7a, 0xd7, 0x71, 0x29, 0x01, 0xe7, 0xe4, 0x9d, 0x77, 0xde, 0xf7,
+ 0x79, 0xe6, 0x79, 0xe6, 0x7d, 0x77, 0x0d, 0x1e, 0x04, 0xa1, 0x1c, 0xa5, 0x87, 0xc8, 0x67, 0x91,
+ 0x4b, 0x78, 0xc0, 0x12, 0xce, 0x4e, 0xf4, 0xc3, 0x36, 0x9d, 0xd0, 0x58, 0x0a, 0x37, 0x39, 0x0d,
+ 0x5c, 0x92, 0x84, 0xc2, 0xd5, 0xeb, 0xc3, 0x54, 0xb8, 0x93, 0x1d, 0x32, 0x4e, 0x46, 0x64, 0xc7,
+ 0x0d, 0x68, 0x4c, 0x39, 0x91, 0xf4, 0x08, 0x25, 0x9c, 0x49, 0x06, 0x3f, 0x2a, 0xb1, 0x50, 0x81,
+ 0xa5, 0x1f, 0x0e, 0x72, 0x2c, 0x94, 0x9c, 0x06, 0x48, 0x61, 0xa1, 0x02, 0x0b, 0x15, 0x58, 0x5b,
+ 0x77, 0x2f, 0x7d, 0x0e, 0x9f, 0x45, 0x11, 0x8b, 0x2f, 0x92, 0x6f, 0x6d, 0x57, 0x00, 0x02, 0x16,
+ 0x30, 0x57, 0x87, 0x0f, 0xd3, 0x63, 0xbd, 0xd2, 0x0b, 0xfd, 0x64, 0xd2, 0x9d, 0xd3, 0x3b, 0x02,
+ 0x85, 0x4c, 0x41, 0xba, 0x3e, 0xe3, 0xd4, 0x9d, 0x2c, 0xe9, 0xd9, 0x7a, 0xbf, 0xcc, 0x89, 0x88,
+ 0x3f, 0x0a, 0x63, 0xca, 0xa7, 0xc5, 0x39, 0x5c, 0x4e, 0x05, 0x4b, 0xb9, 0x4f, 0xff, 0x55, 0x95,
+ 0x70, 0x23, 0x2a, 0xc9, 0xeb, 0xb8, 0xdc, 0xbf, 0xab, 0xe2, 0x69, 0x2c, 0xc3, 0x68, 0x99, 0xe6,
+ 0x83, 0x7f, 0x2a, 0x10, 0xfe, 0x88, 0x46, 0xe4, 0x62, 0x9d, 0xf3, 0x14, 0xb4, 0xbd, 0x54, 0xec,
+ 0xb2, 0xf8, 0x38, 0x0c, 0xe0, 0x11, 0x68, 0xc4, 0x44, 0x8a, 0x9e, 0x75, 0xc3, 0xba, 0xd9, 0xb9,
+ 0xfd, 0x09, 0xfa, 0xef, 0x17, 0x88, 0xf6, 0x07, 0x5f, 0x0e, 0x73, 0x54, 0xaf, 0x95, 0xcd, 0xfa,
+ 0x0d, 0xb5, 0xc6, 0x1a, 0xdd, 0xf9, 0xbd, 0x0e, 0x5a, 0x7b, 0xaa, 0xc0, 0x4b, 0x05, 0xfc, 0x1e,
+ 0xb4, 0x94, 0x07, 0x47, 0x44, 0x12, 0x43, 0xfb, 0x1e, 0xca, 0xa5, 0xa0, 0xaa, 0x94, 0x92, 0x4a,
+ 0x65, 0xa3, 0xc9, 0x0e, 0x7a, 0x7c, 0x78, 0x42, 0x7d, 0xf9, 0x88, 0x4a, 0xe2, 0xc1, 0xb3, 0x59,
+ 0xbf, 0x96, 0xcd, 0xfa, 0xa0, 0x8c, 0xe1, 0x39, 0x2a, 0x3c, 0x01, 0x0d, 0x91, 0x50, 0xbf, 0x57,
+ 0xd7, 0xe8, 0x9f, 0xae, 0x22, 0xaa, 0x38, 0xf5, 0x30, 0xa1, 0xbe, 0xd7, 0x35, 0xac, 0x0d, 0xb5,
+ 0xc2, 0x9a, 0x03, 0x72, 0xd0, 0x14, 0x92, 0xc8, 0x54, 0xf4, 0xd6, 0x34, 0xdb, 0x83, 0x2b, 0x61,
+ 0xd3, 0x88, 0xde, 0x86, 0xe1, 0x6b, 0xe6, 0x6b, 0x6c, 0x98, 0x9c, 0x3f, 0x2c, 0xd0, 0x2d, 0x52,
+ 0x1f, 0x86, 0x42, 0xc2, 0x6f, 0x97, 0x2c, 0x45, 0x97, 0xb3, 0x54, 0x55, 0x6b, 0x43, 0x37, 0x0d,
+ 0x55, 0xab, 0x88, 0x54, 0xec, 0x0c, 0xc1, 0x7a, 0x28, 0x69, 0x24, 0x7a, 0xf5, 0x1b, 0x6b, 0x37,
+ 0x3b, 0xb7, 0xef, 0x5d, 0x85, 0x42, 0xef, 0x9a, 0x21, 0x5c, 0xbf, 0xaf, 0xa0, 0x71, 0xce, 0xe0,
+ 0x3c, 0x2d, 0x85, 0x29, 0x8f, 0x21, 0x59, 0x68, 0xcf, 0xdd, 0x55, 0xdb, 0x53, 0x11, 0x5f, 0xec,
+ 0xcd, 0x17, 0x16, 0xd8, 0x58, 0xf4, 0x1d, 0x1e, 0xcc, 0xef, 0x34, 0xe7, 0xfd, 0xf0, 0xf2, 0xbc,
+ 0xf9, 0xbb, 0x09, 0xbd, 0xf9, 0x02, 0x61, 0x04, 0x9a, 0xbe, 0x9e, 0x14, 0xd3, 0xa2, 0x7b, 0xab,
+ 0x08, 0x9b, 0x0f, 0x73, 0x49, 0x97, 0xaf, 0xb1, 0x21, 0x71, 0xfe, 0xb4, 0xc0, 0xff, 0x8c, 0x7c,
+ 0x18, 0x83, 0x66, 0x4c, 0x64, 0x38, 0xa1, 0x46, 0xdb, 0x4a, 0xfd, 0xba, 0xaf, 0x91, 0x86, 0x52,
+ 0xbd, 0x5e, 0x82, 0xa9, 0x07, 0x14, 0x77, 0x1e, 0xc3, 0x86, 0x05, 0x9e, 0x80, 0x26, 0xfd, 0x81,
+ 0xc9, 0xb0, 0x98, 0xc6, 0xab, 0x7a, 0xc5, 0x68, 0xae, 0x3d, 0x8d, 0x8c, 0x0d, 0x83, 0xf3, 0xd2,
+ 0x02, 0xa0, 0x4c, 0x81, 0x6f, 0x83, 0xb5, 0x94, 0x8f, 0xb5, 0xce, 0xb6, 0xd7, 0x31, 0xde, 0xac,
+ 0x7d, 0x85, 0x1f, 0x62, 0x15, 0x87, 0xef, 0x82, 0xb6, 0x3f, 0x4e, 0x85, 0xa4, 0xfc, 0xfe, 0x3d,
+ 0x7d, 0xb8, 0xb6, 0x77, 0x2d, 0x9b, 0xf5, 0xdb, 0xbb, 0x45, 0x10, 0x97, 0xfb, 0xf0, 0x16, 0x68,
+ 0x90, 0x54, 0x8e, 0xf4, 0x90, 0xb7, 0xbd, 0x9e, 0xea, 0xa1, 0x41, 0x2a, 0x47, 0xaf, 0x66, 0xfd,
+ 0xae, 0xfa, 0x2d, 0x2c, 0xc0, 0x3a, 0x0b, 0x7e, 0x03, 0xba, 0xc4, 0xf7, 0xa9, 0x10, 0x43, 0xea,
+ 0x73, 0x2a, 0x7b, 0x0d, 0x2d, 0xfd, 0x9d, 0xca, 0x4c, 0x22, 0xf5, 0xc9, 0x51, 0x13, 0x98, 0x67,
+ 0x7c, 0x46, 0xa7, 0x43, 0x3a, 0xa6, 0xbe, 0x64, 0xdc, 0xdb, 0xcc, 0x14, 0x68, 0xa5, 0x1c, 0x2f,
+ 0x80, 0x39, 0xbf, 0xd5, 0xc1, 0xc6, 0xa2, 0xf1, 0xf0, 0x16, 0x68, 0x71, 0x9a, 0x8c, 0x43, 0x9f,
+ 0xe4, 0x2d, 0xbb, 0x5e, 0xce, 0x33, 0x36, 0x71, 0x3c, 0xcf, 0x98, 0x6b, 0xa9, 0x5f, 0x4a, 0xcb,
+ 0x1d, 0xd0, 0x25, 0xb1, 0x0c, 0x07, 0xc7, 0xc7, 0x61, 0x1c, 0xca, 0xa9, 0x76, 0xa0, 0xe5, 0x5d,
+ 0x37, 0xf8, 0xdd, 0x41, 0x65, 0x0f, 0x2f, 0x64, 0xc2, 0x9f, 0x2d, 0xd0, 0x49, 0x28, 0x17, 0xa1,
+ 0x90, 0x34, 0xf6, 0xa9, 0x71, 0xe1, 0xf1, 0x2a, 0x0d, 0xf0, 0x79, 0x09, 0x37, 0xef, 0xba, 0xff,
+ 0x67, 0xb3, 0x7e, 0xa7, 0xb2, 0x81, 0xab, 0xa4, 0xce, 0xaf, 0x75, 0xf0, 0xd6, 0x6b, 0xaa, 0xe0,
+ 0xc7, 0x60, 0x53, 0x48, 0xc6, 0x49, 0x40, 0x77, 0xc7, 0x44, 0x88, 0x7d, 0x12, 0x51, 0xd3, 0x29,
+ 0xd7, 0xb3, 0x59, 0x7f, 0x73, 0x78, 0x61, 0x0f, 0x2f, 0x65, 0xc3, 0x03, 0x00, 0xf2, 0x7b, 0x79,
+ 0xc4, 0x8e, 0xa8, 0x31, 0xf3, 0xae, 0xfa, 0x26, 0x0d, 0xe6, 0xd1, 0x57, 0xb3, 0xfe, 0xf6, 0xf2,
+ 0xdf, 0x8c, 0x52, 0x85, 0x7c, 0xc2, 0xc6, 0x69, 0x44, 0xcb, 0x02, 0x5c, 0x81, 0x84, 0xdf, 0x01,
+ 0x30, 0xd1, 0xfb, 0xc3, 0xf0, 0x47, 0x6a, 0x3e, 0x2f, 0x6f, 0x7c, 0xaf, 0xa3, 0xe2, 0x2f, 0x09,
+ 0xfa, 0x22, 0x55, 0x37, 0x21, 0xa7, 0xde, 0x86, 0x3a, 0xd0, 0x93, 0x39, 0x0a, 0xae, 0x20, 0x7a,
+ 0xe8, 0xec, 0xdc, 0xae, 0x3d, 0x3b, 0xb7, 0x6b, 0xcf, 0xcf, 0xed, 0xda, 0x4f, 0x99, 0x6d, 0x9d,
+ 0x65, 0xb6, 0xf5, 0x2c, 0xb3, 0xad, 0xe7, 0x99, 0x6d, 0xbd, 0xc8, 0x6c, 0xeb, 0x97, 0x97, 0x76,
+ 0xed, 0xeb, 0x56, 0x61, 0xfe, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x58, 0x3c, 0xf7, 0x72, 0x2a,
+ 0x0a, 0x00, 0x00,
+}
+
+func (m *BusConfig) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *BusConfig) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *BusConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.NATS != nil {
+ {
+ size, err := m.NATS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *EventBus) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EventBus) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EventBus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ {
+ size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ {
+ size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ {
+ size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *EventBusList) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EventBusList) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EventBusList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Items) > 0 {
+ for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ {
+ size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *EventBusSpec) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EventBusSpec) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EventBusSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.NATS != nil {
+ {
+ size, err := m.NATS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *EventBusStatus) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EventBusStatus) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EventBusStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ {
+ size, err := m.Config.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ {
+ size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *NATSBus) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *NATSBus) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *NATSBus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Exotic != nil {
+ {
+ size, err := m.Exotic.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.Native != nil {
+ {
+ size, err := m.Native.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *NATSConfig) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *NATSConfig) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *NATSConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.AccessSecret != nil {
+ {
+ size, err := m.AccessSecret.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ if m.Auth != nil {
+ i -= len(*m.Auth)
+ copy(dAtA[i:], *m.Auth)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Auth)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.ClusterID != nil {
+ i -= len(*m.ClusterID)
+ copy(dAtA[i:], *m.ClusterID)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ClusterID)))
+ i--
+ dAtA[i] = 0x12
+ }
+ i -= len(m.URL)
+ copy(dAtA[i:], m.URL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *NativeStrategy) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *NativeStrategy) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *NativeStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Persistence != nil {
+ {
+ size, err := m.Persistence.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ i--
+ if m.AntiAffinity {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x18
+ if m.Auth != nil {
+ i -= len(*m.Auth)
+ copy(dAtA[i:], *m.Auth)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Auth)))
+ i--
+ dAtA[i] = 0x12
+ }
+ i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas))
+ i--
+ dAtA[i] = 0x8
+ return len(dAtA) - i, nil
+}
+
+func (m *PersistenceStrategy) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *PersistenceStrategy) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *PersistenceStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.VolumeSize != nil {
+ {
+ size, err := m.VolumeSize.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.AccessMode != nil {
+ i -= len(*m.AccessMode)
+ copy(dAtA[i:], *m.AccessMode)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(*m.AccessMode)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.StorageClassName != nil {
+ i -= len(*m.StorageClassName)
+ copy(dAtA[i:], *m.StorageClassName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(*m.StorageClassName)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
+ offset -= sovGenerated(v)
+ base := offset
+ for v >= 1<<7 {
+ dAtA[offset] = uint8(v&0x7f | 0x80)
+ v >>= 7
+ offset++
+ }
+ dAtA[offset] = uint8(v)
+ return base
+}
+func (m *BusConfig) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.NATS != nil {
+ l = m.NATS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *EventBus) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.ObjectMeta.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.Spec.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.Status.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *EventBusList) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.ListMeta.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Items) > 0 {
+ for _, e := range m.Items {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *EventBusSpec) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.NATS != nil {
+ l = m.NATS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *EventBusStatus) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.Status.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.Config.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *NATSBus) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Native != nil {
+ l = m.Native.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Exotic != nil {
+ l = m.Exotic.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *NATSConfig) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.URL)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.ClusterID != nil {
+ l = len(*m.ClusterID)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Auth != nil {
+ l = len(*m.Auth)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.AccessSecret != nil {
+ l = m.AccessSecret.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *NativeStrategy) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ n += 1 + sovGenerated(uint64(m.Replicas))
+ if m.Auth != nil {
+ l = len(*m.Auth)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ n += 2
+ if m.Persistence != nil {
+ l = m.Persistence.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *PersistenceStrategy) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.StorageClassName != nil {
+ l = len(*m.StorageClassName)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.AccessMode != nil {
+ l = len(*m.AccessMode)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.VolumeSize != nil {
+ l = m.VolumeSize.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func sovGenerated(x uint64) (n int) {
+ return (math_bits.Len64(x|1) + 6) / 7
+}
+func sozGenerated(x uint64) (n int) {
+ return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
+}
+func (this *BusConfig) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&BusConfig{`,
+ `NATS:` + strings.Replace(this.NATS.String(), "NATSConfig", "NATSConfig", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *EventBus) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&EventBus{`,
+ `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
+ `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "EventBusSpec", "EventBusSpec", 1), `&`, ``, 1) + `,`,
+ `Status:` + strings.Replace(strings.Replace(this.Status.String(), "EventBusStatus", "EventBusStatus", 1), `&`, ``, 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *EventBusList) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForItems := "[]EventBus{"
+ for _, f := range this.Items {
+ repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "EventBus", "EventBus", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForItems += "}"
+ s := strings.Join([]string{`&EventBusList{`,
+ `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
+ `Items:` + repeatedStringForItems + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *EventBusSpec) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&EventBusSpec{`,
+ `NATS:` + strings.Replace(this.NATS.String(), "NATSBus", "NATSBus", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *EventBusStatus) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&EventBusStatus{`,
+ `Status:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Status), "Status", "common.Status", 1), `&`, ``, 1) + `,`,
+ `Config:` + strings.Replace(strings.Replace(this.Config.String(), "BusConfig", "BusConfig", 1), `&`, ``, 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *NATSBus) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&NATSBus{`,
+ `Native:` + strings.Replace(this.Native.String(), "NativeStrategy", "NativeStrategy", 1) + `,`,
+ `Exotic:` + strings.Replace(this.Exotic.String(), "NATSConfig", "NATSConfig", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *NATSConfig) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&NATSConfig{`,
+ `URL:` + fmt.Sprintf("%v", this.URL) + `,`,
+ `ClusterID:` + valueToStringGenerated(this.ClusterID) + `,`,
+ `Auth:` + valueToStringGenerated(this.Auth) + `,`,
+ `AccessSecret:` + strings.Replace(fmt.Sprintf("%v", this.AccessSecret), "SecretKeySelector", "v11.SecretKeySelector", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *NativeStrategy) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&NativeStrategy{`,
+ `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
+ `Auth:` + valueToStringGenerated(this.Auth) + `,`,
+ `AntiAffinity:` + fmt.Sprintf("%v", this.AntiAffinity) + `,`,
+ `Persistence:` + strings.Replace(this.Persistence.String(), "PersistenceStrategy", "PersistenceStrategy", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *PersistenceStrategy) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&PersistenceStrategy{`,
+ `StorageClassName:` + valueToStringGenerated(this.StorageClassName) + `,`,
+ `AccessMode:` + valueToStringGenerated(this.AccessMode) + `,`,
+ `VolumeSize:` + strings.Replace(fmt.Sprintf("%v", this.VolumeSize), "Quantity", "resource.Quantity", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func valueToStringGenerated(v interface{}) string {
+ rv := reflect.ValueOf(v)
+ if rv.IsNil() {
+ return "nil"
+ }
+ pv := reflect.Indirect(rv).Interface()
+ return fmt.Sprintf("*%v", pv)
+}
+func (m *BusConfig) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: BusConfig: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: BusConfig: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NATS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.NATS == nil {
+ m.NATS = &NATSConfig{}
+ }
+ if err := m.NATS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *EventBus) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EventBus: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EventBus: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *EventBusList) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EventBusList: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EventBusList: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Items = append(m.Items, EventBus{})
+ if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *EventBusSpec) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EventBusSpec: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EventBusSpec: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NATS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.NATS == nil {
+ m.NATS = &NATSBus{}
+ }
+ if err := m.NATS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *EventBusStatus) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EventBusStatus: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EventBusStatus: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Config.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *NATSBus) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: NATSBus: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: NATSBus: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Native", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Native == nil {
+ m.Native = &NativeStrategy{}
+ }
+ if err := m.Native.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Exotic", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Exotic == nil {
+ m.Exotic = &NATSConfig{}
+ }
+ if err := m.Exotic.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *NATSConfig) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: NATSConfig: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: NATSConfig: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.URL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ClusterID", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ s := string(dAtA[iNdEx:postIndex])
+ m.ClusterID = &s
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Auth", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ s := AuthStrategy(dAtA[iNdEx:postIndex])
+ m.Auth = &s
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AccessSecret", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.AccessSecret == nil {
+ m.AccessSecret = &v11.SecretKeySelector{}
+ }
+ if err := m.AccessSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *NativeStrategy) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: NativeStrategy: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: NativeStrategy: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
+ }
+ m.Replicas = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Replicas |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Auth", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ s := AuthStrategy(dAtA[iNdEx:postIndex])
+ m.Auth = &s
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AntiAffinity", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.AntiAffinity = bool(v != 0)
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Persistence", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Persistence == nil {
+ m.Persistence = &PersistenceStrategy{}
+ }
+ if err := m.Persistence.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *PersistenceStrategy) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: PersistenceStrategy: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: PersistenceStrategy: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field StorageClassName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ s := string(dAtA[iNdEx:postIndex])
+ m.StorageClassName = &s
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AccessMode", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ s := k8s_io_api_core_v1.PersistentVolumeAccessMode(dAtA[iNdEx:postIndex])
+ m.AccessMode = &s
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field VolumeSize", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.VolumeSize == nil {
+ m.VolumeSize = &resource.Quantity{}
+ }
+ if err := m.VolumeSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func skipGenerated(dAtA []byte) (n int, err error) {
+ l := len(dAtA)
+ iNdEx := 0
+ depth := 0
+ for iNdEx < l {
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= (uint64(b) & 0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ wireType := int(wire & 0x7)
+ switch wireType {
+ case 0:
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ iNdEx++
+ if dAtA[iNdEx-1] < 0x80 {
+ break
+ }
+ }
+ case 1:
+ iNdEx += 8
+ case 2:
+ var length int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ length |= (int(b) & 0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if length < 0 {
+ return 0, ErrInvalidLengthGenerated
+ }
+ iNdEx += length
+ case 3:
+ depth++
+ case 4:
+ if depth == 0 {
+ return 0, ErrUnexpectedEndOfGroupGenerated
+ }
+ depth--
+ case 5:
+ iNdEx += 4
+ default:
+ return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
+ }
+ if iNdEx < 0 {
+ return 0, ErrInvalidLengthGenerated
+ }
+ if depth == 0 {
+ return iNdEx, nil
+ }
+ }
+ return 0, io.ErrUnexpectedEOF
+}
+
+var (
+ ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
+ ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
+ ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
+)
diff --git a/pkg/apis/eventbus/v1alpha1/generated.proto b/pkg/apis/eventbus/v1alpha1/generated.proto
new file mode 100644
index 0000000000..473338c73f
--- /dev/null
+++ b/pkg/apis/eventbus/v1alpha1/generated.proto
@@ -0,0 +1,128 @@
+/*
+Copyright 2020 BlackRock, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+// This file was autogenerated by go-to-protobuf. Do not edit it manually!
+
+syntax = 'proto2';
+
+package github.com.argoproj.argo_events.pkg.apis.eventbus.v1alpha1;
+
+import "github.com/argoproj/argo-events/pkg/apis/common/generated.proto";
+import "k8s.io/api/core/v1/generated.proto";
+import "k8s.io/apimachinery/pkg/api/resource/generated.proto";
+import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
+import "k8s.io/apimachinery/pkg/runtime/generated.proto";
+import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
+
+// Package-wide variables from generator "generated".
+option go_package = "v1alpha1";
+
+// BusConfig has the finalized configuration for EventBus
+message BusConfig {
+ optional NATSConfig nats = 1;
+}
+
+// EventBus is the definition of a eventbus resource
+// +genclient
+// +kubebuilder:resource:singular=eventbus,shortName=eb
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+// +k8s:openapi-gen=true
+message EventBus {
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
+
+ optional EventBusSpec spec = 2;
+
+ optional EventBusStatus status = 3;
+}
+
+// EventBusList is the list of eventbus resources
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+message EventBusList {
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
+
+ repeated EventBus items = 2;
+}
+
+// EventBusSpec refers to specification of eventbus resource
+message EventBusSpec {
+ // NATS eventbus
+ optional NATSBus nats = 1;
+}
+
+// EventBusStatus holds the status of the eventbus resource
+message EventBusStatus {
+ optional github.com.argoproj.argo_events.pkg.apis.common.Status status = 1;
+
+ // Config holds the fininalized configuration of EventBus
+ optional BusConfig config = 2;
+}
+
+// NATSBus holds the NATS eventbus information
+message NATSBus {
+ // Native means to bring up a native NATS service
+ optional NativeStrategy native = 1;
+
+ // Exotic holds an exotic NATS config
+ optional NATSConfig exotic = 2;
+}
+
+// NATSConfig holds the config of NATS
+message NATSConfig {
+ // NATS host url
+ optional string url = 1;
+
+ // Cluster ID for nats streaming, if it's missing, treat it as NATS server
+ // +optional
+ optional string clusterID = 2;
+
+ // Auth strategy, default to AuthStrategyNone
+ // +optional
+ optional string auth = 3;
+
+ // Secret for auth
+ // +optional
+ optional k8s.io.api.core.v1.SecretKeySelector accessSecret = 4;
+}
+
+// NativeStrategy indicates to install a native NATS service
+message NativeStrategy {
+ // Size is the NATS StatefulSet size
+ optional int32 replicas = 1;
+
+ optional string auth = 2;
+
+ optional bool antiAffinity = 3;
+
+ // +optional
+ optional PersistenceStrategy persistence = 4;
+}
+
+// PersistenceStrategy defines the strategy of persistence
+message PersistenceStrategy {
+ // Name of the StorageClass required by the claim.
+ // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
+ // +optional
+ optional string storageClassName = 1;
+
+ // Available access modes such as ReadWriteOnce, ReadWriteMany
+ // https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes
+ // +optional
+ optional string accessMode = 2;
+
+ // Volume size, e.g. 10Gi
+ optional k8s.io.apimachinery.pkg.api.resource.Quantity volumeSize = 3;
+}
+
diff --git a/pkg/apis/eventbus/v1alpha1/openapi_generated.go b/pkg/apis/eventbus/v1alpha1/openapi_generated.go
index 7003e9c7b3..50ec918370 100644
--- a/pkg/apis/eventbus/v1alpha1/openapi_generated.go
+++ b/pkg/apis/eventbus/v1alpha1/openapi_generated.go
@@ -133,11 +133,6 @@ func schema_pkg_apis_eventbus_v1alpha1_EventBusList(ref common.ReferenceCallback
},
},
"items": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "eventbus",
- },
- },
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
@@ -281,7 +276,7 @@ func schema_pkg_apis_eventbus_v1alpha1_NativeStrategy(ref common.ReferenceCallba
Description: "NativeStrategy indicates to install a native NATS service",
Type: []string{"object"},
Properties: map[string]spec.Schema{
- "size": {
+ "replicas": {
SchemaProps: spec.SchemaProps{
Description: "Size is the NATS StatefulSet size",
Type: []string{"integer"},
@@ -334,7 +329,7 @@ func schema_pkg_apis_eventbus_v1alpha1_PersistenceStrategy(ref common.ReferenceC
Format: "",
},
},
- "size": {
+ "volumeSize": {
SchemaProps: spec.SchemaProps{
Description: "Volume size, e.g. 10Gi",
Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"),
diff --git a/pkg/apis/eventbus/v1alpha1/register.go b/pkg/apis/eventbus/v1alpha1/register.go
index c109d46ae8..1da99d696c 100644
--- a/pkg/apis/eventbus/v1alpha1/register.go
+++ b/pkg/apis/eventbus/v1alpha1/register.go
@@ -6,8 +6,9 @@
package v1alpha1
import (
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
- "sigs.k8s.io/controller-runtime/pkg/scheme"
"github.com/argoproj/argo-events/pkg/apis/eventbus"
)
@@ -20,7 +21,7 @@ var (
SchemaGroupVersionKind = schema.GroupVersionKind{Group: eventbus.Group, Version: "v1alpha1", Kind: eventbus.Kind}
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
- SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
+ SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
// AddToScheme is required by pkg/client/...
AddToScheme = SchemeBuilder.AddToScheme
@@ -30,3 +31,12 @@ var (
func Resource(resource string) schema.GroupResource {
return SchemeGroupVersion.WithResource(resource).GroupResource()
}
+
+func addKnownTypes(scheme *runtime.Scheme) error {
+ scheme.AddKnownTypes(SchemeGroupVersion,
+ &EventBus{},
+ &EventBusList{},
+ )
+ v1.AddToGroupVersion(scheme, SchemeGroupVersion)
+ return nil
+}
diff --git a/pkg/apis/eventbus/v1alpha1/types.go b/pkg/apis/eventbus/v1alpha1/types.go
index 6b957cd619..4eec9ea10d 100644
--- a/pkg/apis/eventbus/v1alpha1/types.go
+++ b/pkg/apis/eventbus/v1alpha1/types.go
@@ -1,14 +1,16 @@
package v1alpha1
import (
- "github.com/argoproj/argo-events/pkg/apis/common"
corev1 "k8s.io/api/core/v1"
apiresource "k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
+ "github.com/argoproj/argo-events/pkg/apis/common"
)
// EventBus is the definition of a eventbus resource
// +genclient
+// +kubebuilder:resource:singular=eventbus,shortName=eb
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
type EventBus struct {
@@ -23,8 +25,8 @@ type EventBus struct {
type EventBusList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
- // +listType=eventbus
- Items []EventBus `json:"items" protobuf:"bytes,2,opt,name=items"`
+
+ Items []EventBus `json:"items" protobuf:"bytes,2,rep,name=items"`
}
// EventBusSpec refers to specification of eventbus resource
@@ -60,13 +62,17 @@ var (
// NativeStrategy indicates to install a native NATS service
type NativeStrategy struct {
// Size is the NATS StatefulSet size
- Size int `json:"size,omitempty" protobuf:"bytes,1,opt,name=size"`
- Auth *AuthStrategy `json:"auth,omitempty" protobuf:"bytes,2,opt,name=auth"`
- AntiAffinity bool `json:"antiAffinity,omitempty" protobuf:"bytes,3,opt,name=antiAffinity"`
+ Replicas int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"`
+ Auth *AuthStrategy `json:"auth,omitempty" protobuf:"bytes,2,opt,name=auth,casttype=AuthStrategy"`
+ AntiAffinity bool `json:"antiAffinity,omitempty" protobuf:"varint,3,opt,name=antiAffinity"`
// +optional
Persistence *PersistenceStrategy `json:"persistence,omitempty" protobuf:"bytes,4,opt,name=persistence"`
}
+func (in *NativeStrategy) GetReplicas() int {
+ return int(in.Replicas)
+}
+
// PersistenceStrategy defines the strategy of persistence
type PersistenceStrategy struct {
// Name of the StorageClass required by the claim.
@@ -76,9 +82,9 @@ type PersistenceStrategy struct {
// Available access modes such as ReadWriteOnce, ReadWriteMany
// https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes
// +optional
- AccessMode *corev1.PersistentVolumeAccessMode `json:"accessMode,omitempty" protobuf:"bytes,2,opt,name=accessMode"`
+ AccessMode *corev1.PersistentVolumeAccessMode `json:"accessMode,omitempty" protobuf:"bytes,2,opt,name=accessMode,casttype=k8s.io/api/core/v1.PersistentVolumeAccessMode"`
// Volume size, e.g. 10Gi
- Size *apiresource.Quantity `json:"size,omitempty" protobuf:"bytes,3,opt,name=size"`
+ VolumeSize *apiresource.Quantity `json:"volumeSize,omitempty" protobuf:"bytes,3,opt,name=volumeSize"`
}
// BusConfig has the finalized configuration for EventBus
@@ -95,7 +101,7 @@ type NATSConfig struct {
ClusterID *string `json:"clusterID,omitempty" protobuf:"bytes,2,opt,name=clusterID"`
// Auth strategy, default to AuthStrategyNone
// +optional
- Auth *AuthStrategy `json:"auth,omitempty" protobuf:"bytes,3,opt,name=auth"`
+ Auth *AuthStrategy `json:"auth,omitempty" protobuf:"bytes,3,opt,name=auth,casttype=AuthStrategy"`
// Secret for auth
// +optional
AccessSecret *corev1.SecretKeySelector `json:"accessSecret,omitempty" protobuf:"bytes,4,opt,name=accessSecret"`
@@ -139,7 +145,3 @@ func (s *EventBusStatus) MarkConfigured() {
func (s *EventBusStatus) MarkNotConfigured(reason, message string) {
s.Status.MarkFalse(EventBusConditionConfigured, reason, message)
}
-
-func init() {
- SchemeBuilder.Register(&EventBus{}, &EventBusList{})
-}
diff --git a/pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go
index d36c013ac9..d9b365eb72 100644
--- a/pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go
+++ b/pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go
@@ -242,8 +242,8 @@ func (in *PersistenceStrategy) DeepCopyInto(out *PersistenceStrategy) {
*out = new(v1.PersistentVolumeAccessMode)
**out = **in
}
- if in.Size != nil {
- in, out := &in.Size, &out.Size
+ if in.VolumeSize != nil {
+ in, out := &in.VolumeSize, &out.VolumeSize
x := (*in).DeepCopy()
*out = &x
}
diff --git a/pkg/apis/events/event-data.go b/pkg/apis/events/event-data.go
index 303e846c85..8bcaf5c2ee 100644
--- a/pkg/apis/events/event-data.go
+++ b/pkg/apis/events/event-data.go
@@ -97,7 +97,7 @@ type CalendarEventData struct {
EventTime string `json:"eventTime"`
// UserPayload if any
// +optional
- UserPayload *json.RawMessage `json:"userPayload,omitempty"`
+ UserPayload json.RawMessage `json:"userPayload,omitempty"`
}
// EmitterEventData represents the event data generated by the Emitter gateway.
diff --git a/gateways/server/common/fsevent/config.go b/pkg/apis/eventsource/v1alpha1/config.go
similarity index 79%
rename from gateways/server/common/fsevent/config.go
rename to pkg/apis/eventsource/v1alpha1/config.go
index 9a802fc045..07fb8101ff 100644
--- a/gateways/server/common/fsevent/config.go
+++ b/pkg/apis/eventsource/v1alpha1/config.go
@@ -1,4 +1,4 @@
-package fsevent
+package v1alpha1
import (
"errors"
@@ -8,11 +8,11 @@ import (
type WatchPathConfig struct {
// Directory to watch for events
- Directory string `json:"directory"`
+ Directory string `json:"directory" protobuf:"bytes,1,opt,name=directory"`
// Path is relative path of object to watch with respect to the directory
- Path string `json:"path,omitempty"`
+ Path string `json:"path,omitempty" protobuf:"bytes,2,opt,name=path"`
// PathRegexp is regexp of relative path of object to watch with respect to the directory
- PathRegexp string `json:"pathRegexp,omitempty"`
+ PathRegexp string `json:"pathRegexp,omitempty" protobuf:"bytes,3,opt,name=pathRegexp"`
}
// Validate validates WatchPathConfig
diff --git a/gateways/server/common/fsevent/config_test.go b/pkg/apis/eventsource/v1alpha1/config_test.go
similarity index 98%
rename from gateways/server/common/fsevent/config_test.go
rename to pkg/apis/eventsource/v1alpha1/config_test.go
index eeef933cff..93aabb9e41 100644
--- a/gateways/server/common/fsevent/config_test.go
+++ b/pkg/apis/eventsource/v1alpha1/config_test.go
@@ -1,4 +1,4 @@
-package fsevent
+package v1alpha1
import (
"testing"
diff --git a/pkg/apis/eventsource/v1alpha1/generated.pb.go b/pkg/apis/eventsource/v1alpha1/generated.pb.go
new file mode 100644
index 0000000000..b68915acbf
--- /dev/null
+++ b/pkg/apis/eventsource/v1alpha1/generated.pb.go
@@ -0,0 +1,15365 @@
+/*
+Copyright 2020 BlackRock, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// source: github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1/generated.proto
+
+package v1alpha1
+
+import (
+ fmt "fmt"
+
+ common "github.com/argoproj/argo-events/pkg/apis/common"
+
+ io "io"
+
+ proto "github.com/gogo/protobuf/proto"
+ github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
+ v1 "k8s.io/api/core/v1"
+
+ math "math"
+ math_bits "math/bits"
+ reflect "reflect"
+ strings "strings"
+)
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ = proto.Marshal
+var _ = fmt.Errorf
+var _ = math.Inf
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the proto package it is being compiled against.
+// A compilation error at this line likely means your copy of the
+// proto package needs to be updated.
+const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
+
+func (m *AMQPEventSource) Reset() { *m = AMQPEventSource{} }
+func (*AMQPEventSource) ProtoMessage() {}
+func (*AMQPEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{0}
+}
+func (m *AMQPEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *AMQPEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *AMQPEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_AMQPEventSource.Merge(m, src)
+}
+func (m *AMQPEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *AMQPEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_AMQPEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_AMQPEventSource proto.InternalMessageInfo
+
+func (m *AzureEventsHubEventSource) Reset() { *m = AzureEventsHubEventSource{} }
+func (*AzureEventsHubEventSource) ProtoMessage() {}
+func (*AzureEventsHubEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{1}
+}
+func (m *AzureEventsHubEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *AzureEventsHubEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *AzureEventsHubEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_AzureEventsHubEventSource.Merge(m, src)
+}
+func (m *AzureEventsHubEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *AzureEventsHubEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_AzureEventsHubEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_AzureEventsHubEventSource proto.InternalMessageInfo
+
+func (m *CalendarEventSource) Reset() { *m = CalendarEventSource{} }
+func (*CalendarEventSource) ProtoMessage() {}
+func (*CalendarEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{2}
+}
+func (m *CalendarEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *CalendarEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *CalendarEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_CalendarEventSource.Merge(m, src)
+}
+func (m *CalendarEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *CalendarEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_CalendarEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_CalendarEventSource proto.InternalMessageInfo
+
+func (m *EmitterEventSource) Reset() { *m = EmitterEventSource{} }
+func (*EmitterEventSource) ProtoMessage() {}
+func (*EmitterEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{3}
+}
+func (m *EmitterEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EmitterEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *EmitterEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EmitterEventSource.Merge(m, src)
+}
+func (m *EmitterEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *EmitterEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_EmitterEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EmitterEventSource proto.InternalMessageInfo
+
+func (m *EventSource) Reset() { *m = EventSource{} }
+func (*EventSource) ProtoMessage() {}
+func (*EventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{4}
+}
+func (m *EventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *EventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventSource.Merge(m, src)
+}
+func (m *EventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *EventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EventSource proto.InternalMessageInfo
+
+func (m *EventSourceList) Reset() { *m = EventSourceList{} }
+func (*EventSourceList) ProtoMessage() {}
+func (*EventSourceList) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{5}
+}
+func (m *EventSourceList) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EventSourceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *EventSourceList) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventSourceList.Merge(m, src)
+}
+func (m *EventSourceList) XXX_Size() int {
+ return m.Size()
+}
+func (m *EventSourceList) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventSourceList.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EventSourceList proto.InternalMessageInfo
+
+func (m *EventSourceSpec) Reset() { *m = EventSourceSpec{} }
+func (*EventSourceSpec) ProtoMessage() {}
+func (*EventSourceSpec) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{6}
+}
+func (m *EventSourceSpec) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EventSourceSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *EventSourceSpec) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventSourceSpec.Merge(m, src)
+}
+func (m *EventSourceSpec) XXX_Size() int {
+ return m.Size()
+}
+func (m *EventSourceSpec) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventSourceSpec.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EventSourceSpec proto.InternalMessageInfo
+
+func (m *EventSourceStatus) Reset() { *m = EventSourceStatus{} }
+func (*EventSourceStatus) ProtoMessage() {}
+func (*EventSourceStatus) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{7}
+}
+func (m *EventSourceStatus) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EventSourceStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *EventSourceStatus) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventSourceStatus.Merge(m, src)
+}
+func (m *EventSourceStatus) XXX_Size() int {
+ return m.Size()
+}
+func (m *EventSourceStatus) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventSourceStatus.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EventSourceStatus proto.InternalMessageInfo
+
+func (m *FileEventSource) Reset() { *m = FileEventSource{} }
+func (*FileEventSource) ProtoMessage() {}
+func (*FileEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{8}
+}
+func (m *FileEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *FileEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *FileEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_FileEventSource.Merge(m, src)
+}
+func (m *FileEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *FileEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_FileEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_FileEventSource proto.InternalMessageInfo
+
+func (m *GenericEventSource) Reset() { *m = GenericEventSource{} }
+func (*GenericEventSource) ProtoMessage() {}
+func (*GenericEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{9}
+}
+func (m *GenericEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *GenericEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *GenericEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_GenericEventSource.Merge(m, src)
+}
+func (m *GenericEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *GenericEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_GenericEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_GenericEventSource proto.InternalMessageInfo
+
+func (m *GithubEventSource) Reset() { *m = GithubEventSource{} }
+func (*GithubEventSource) ProtoMessage() {}
+func (*GithubEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{10}
+}
+func (m *GithubEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *GithubEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *GithubEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_GithubEventSource.Merge(m, src)
+}
+func (m *GithubEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *GithubEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_GithubEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_GithubEventSource proto.InternalMessageInfo
+
+func (m *GitlabEventSource) Reset() { *m = GitlabEventSource{} }
+func (*GitlabEventSource) ProtoMessage() {}
+func (*GitlabEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{11}
+}
+func (m *GitlabEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *GitlabEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *GitlabEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_GitlabEventSource.Merge(m, src)
+}
+func (m *GitlabEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *GitlabEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_GitlabEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_GitlabEventSource proto.InternalMessageInfo
+
+func (m *HDFSEventSource) Reset() { *m = HDFSEventSource{} }
+func (*HDFSEventSource) ProtoMessage() {}
+func (*HDFSEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{12}
+}
+func (m *HDFSEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *HDFSEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *HDFSEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_HDFSEventSource.Merge(m, src)
+}
+func (m *HDFSEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *HDFSEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_HDFSEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_HDFSEventSource proto.InternalMessageInfo
+
+func (m *KafkaEventSource) Reset() { *m = KafkaEventSource{} }
+func (*KafkaEventSource) ProtoMessage() {}
+func (*KafkaEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{13}
+}
+func (m *KafkaEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *KafkaEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *KafkaEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_KafkaEventSource.Merge(m, src)
+}
+func (m *KafkaEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *KafkaEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_KafkaEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_KafkaEventSource proto.InternalMessageInfo
+
+func (m *MQTTEventSource) Reset() { *m = MQTTEventSource{} }
+func (*MQTTEventSource) ProtoMessage() {}
+func (*MQTTEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{14}
+}
+func (m *MQTTEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *MQTTEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *MQTTEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MQTTEventSource.Merge(m, src)
+}
+func (m *MQTTEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *MQTTEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_MQTTEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MQTTEventSource proto.InternalMessageInfo
+
+func (m *NATSEventsSource) Reset() { *m = NATSEventsSource{} }
+func (*NATSEventsSource) ProtoMessage() {}
+func (*NATSEventsSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{15}
+}
+func (m *NATSEventsSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *NATSEventsSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *NATSEventsSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_NATSEventsSource.Merge(m, src)
+}
+func (m *NATSEventsSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *NATSEventsSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_NATSEventsSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_NATSEventsSource proto.InternalMessageInfo
+
+func (m *NSQEventSource) Reset() { *m = NSQEventSource{} }
+func (*NSQEventSource) ProtoMessage() {}
+func (*NSQEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{16}
+}
+func (m *NSQEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *NSQEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *NSQEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_NSQEventSource.Merge(m, src)
+}
+func (m *NSQEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *NSQEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_NSQEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_NSQEventSource proto.InternalMessageInfo
+
+func (m *PubSubEventSource) Reset() { *m = PubSubEventSource{} }
+func (*PubSubEventSource) ProtoMessage() {}
+func (*PubSubEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{17}
+}
+func (m *PubSubEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *PubSubEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *PubSubEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_PubSubEventSource.Merge(m, src)
+}
+func (m *PubSubEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *PubSubEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_PubSubEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_PubSubEventSource proto.InternalMessageInfo
+
+func (m *RedisEventSource) Reset() { *m = RedisEventSource{} }
+func (*RedisEventSource) ProtoMessage() {}
+func (*RedisEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{18}
+}
+func (m *RedisEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *RedisEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *RedisEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_RedisEventSource.Merge(m, src)
+}
+func (m *RedisEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *RedisEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_RedisEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_RedisEventSource proto.InternalMessageInfo
+
+func (m *ResourceEventSource) Reset() { *m = ResourceEventSource{} }
+func (*ResourceEventSource) ProtoMessage() {}
+func (*ResourceEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{19}
+}
+func (m *ResourceEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *ResourceEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *ResourceEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_ResourceEventSource.Merge(m, src)
+}
+func (m *ResourceEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *ResourceEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_ResourceEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_ResourceEventSource proto.InternalMessageInfo
+
+func (m *ResourceFilter) Reset() { *m = ResourceFilter{} }
+func (*ResourceFilter) ProtoMessage() {}
+func (*ResourceFilter) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{20}
+}
+func (m *ResourceFilter) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *ResourceFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *ResourceFilter) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_ResourceFilter.Merge(m, src)
+}
+func (m *ResourceFilter) XXX_Size() int {
+ return m.Size()
+}
+func (m *ResourceFilter) XXX_DiscardUnknown() {
+ xxx_messageInfo_ResourceFilter.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_ResourceFilter proto.InternalMessageInfo
+
+func (m *SNSEventSource) Reset() { *m = SNSEventSource{} }
+func (*SNSEventSource) ProtoMessage() {}
+func (*SNSEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{21}
+}
+func (m *SNSEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *SNSEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *SNSEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_SNSEventSource.Merge(m, src)
+}
+func (m *SNSEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *SNSEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_SNSEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_SNSEventSource proto.InternalMessageInfo
+
+func (m *SQSEventSource) Reset() { *m = SQSEventSource{} }
+func (*SQSEventSource) ProtoMessage() {}
+func (*SQSEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{22}
+}
+func (m *SQSEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *SQSEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *SQSEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_SQSEventSource.Merge(m, src)
+}
+func (m *SQSEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *SQSEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_SQSEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_SQSEventSource proto.InternalMessageInfo
+
+func (m *Selector) Reset() { *m = Selector{} }
+func (*Selector) ProtoMessage() {}
+func (*Selector) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{23}
+}
+func (m *Selector) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Selector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Selector) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Selector.Merge(m, src)
+}
+func (m *Selector) XXX_Size() int {
+ return m.Size()
+}
+func (m *Selector) XXX_DiscardUnknown() {
+ xxx_messageInfo_Selector.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Selector proto.InternalMessageInfo
+
+func (m *SlackEventSource) Reset() { *m = SlackEventSource{} }
+func (*SlackEventSource) ProtoMessage() {}
+func (*SlackEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{24}
+}
+func (m *SlackEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *SlackEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *SlackEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_SlackEventSource.Merge(m, src)
+}
+func (m *SlackEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *SlackEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_SlackEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_SlackEventSource proto.InternalMessageInfo
+
+func (m *StorageGridEventSource) Reset() { *m = StorageGridEventSource{} }
+func (*StorageGridEventSource) ProtoMessage() {}
+func (*StorageGridEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{25}
+}
+func (m *StorageGridEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *StorageGridEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *StorageGridEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_StorageGridEventSource.Merge(m, src)
+}
+func (m *StorageGridEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *StorageGridEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_StorageGridEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_StorageGridEventSource proto.InternalMessageInfo
+
+func (m *StorageGridFilter) Reset() { *m = StorageGridFilter{} }
+func (*StorageGridFilter) ProtoMessage() {}
+func (*StorageGridFilter) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{26}
+}
+func (m *StorageGridFilter) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *StorageGridFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *StorageGridFilter) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_StorageGridFilter.Merge(m, src)
+}
+func (m *StorageGridFilter) XXX_Size() int {
+ return m.Size()
+}
+func (m *StorageGridFilter) XXX_DiscardUnknown() {
+ xxx_messageInfo_StorageGridFilter.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_StorageGridFilter proto.InternalMessageInfo
+
+func (m *StripeEventSource) Reset() { *m = StripeEventSource{} }
+func (*StripeEventSource) ProtoMessage() {}
+func (*StripeEventSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{27}
+}
+func (m *StripeEventSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *StripeEventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *StripeEventSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_StripeEventSource.Merge(m, src)
+}
+func (m *StripeEventSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *StripeEventSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_StripeEventSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_StripeEventSource proto.InternalMessageInfo
+
+func (m *TLSConfig) Reset() { *m = TLSConfig{} }
+func (*TLSConfig) ProtoMessage() {}
+func (*TLSConfig) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{28}
+}
+func (m *TLSConfig) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *TLSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *TLSConfig) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_TLSConfig.Merge(m, src)
+}
+func (m *TLSConfig) XXX_Size() int {
+ return m.Size()
+}
+func (m *TLSConfig) XXX_DiscardUnknown() {
+ xxx_messageInfo_TLSConfig.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_TLSConfig proto.InternalMessageInfo
+
+func (m *WatchPathConfig) Reset() { *m = WatchPathConfig{} }
+func (*WatchPathConfig) ProtoMessage() {}
+func (*WatchPathConfig) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{29}
+}
+func (m *WatchPathConfig) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *WatchPathConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *WatchPathConfig) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_WatchPathConfig.Merge(m, src)
+}
+func (m *WatchPathConfig) XXX_Size() int {
+ return m.Size()
+}
+func (m *WatchPathConfig) XXX_DiscardUnknown() {
+ xxx_messageInfo_WatchPathConfig.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_WatchPathConfig proto.InternalMessageInfo
+
+func (m *WebhookContext) Reset() { *m = WebhookContext{} }
+func (*WebhookContext) ProtoMessage() {}
+func (*WebhookContext) Descriptor() ([]byte, []int) {
+ return fileDescriptor_c9ac5d6cd016403b, []int{30}
+}
+func (m *WebhookContext) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *WebhookContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *WebhookContext) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_WebhookContext.Merge(m, src)
+}
+func (m *WebhookContext) XXX_Size() int {
+ return m.Size()
+}
+func (m *WebhookContext) XXX_DiscardUnknown() {
+ xxx_messageInfo_WebhookContext.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_WebhookContext proto.InternalMessageInfo
+
+func init() {
+ proto.RegisterType((*AMQPEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.AMQPEventSource")
+ proto.RegisterType((*AzureEventsHubEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.AzureEventsHubEventSource")
+ proto.RegisterType((*CalendarEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.CalendarEventSource")
+ proto.RegisterType((*EmitterEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EmitterEventSource")
+ proto.RegisterType((*EventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSource")
+ proto.RegisterType((*EventSourceList)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceList")
+ proto.RegisterType((*EventSourceSpec)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec")
+ proto.RegisterMapType((map[string]AMQPEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.AmqpEntry")
+ proto.RegisterMapType((map[string]AzureEventsHubEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.AzureEventsHubEntry")
+ proto.RegisterMapType((map[string]CalendarEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.CalendarEntry")
+ proto.RegisterMapType((map[string]EmitterEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.EmitterEntry")
+ proto.RegisterMapType((map[string]FileEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.FileEntry")
+ proto.RegisterMapType((map[string]GenericEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.GenericEntry")
+ proto.RegisterMapType((map[string]GithubEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.GithubEntry")
+ proto.RegisterMapType((map[string]GitlabEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.GitlabEntry")
+ proto.RegisterMapType((map[string]HDFSEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.HdfsEntry")
+ proto.RegisterMapType((map[string]KafkaEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.KafkaEntry")
+ proto.RegisterMapType((map[string]common.S3Artifact)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.MinioEntry")
+ proto.RegisterMapType((map[string]MQTTEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.MqttEntry")
+ proto.RegisterMapType((map[string]NATSEventsSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.NatsEntry")
+ proto.RegisterMapType((map[string]NSQEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.NsqEntry")
+ proto.RegisterMapType((map[string]PubSubEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.PubSubEntry")
+ proto.RegisterMapType((map[string]RedisEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.RedisEntry")
+ proto.RegisterMapType((map[string]ResourceEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.ResourceEntry")
+ proto.RegisterMapType((map[string]SlackEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.SlackEntry")
+ proto.RegisterMapType((map[string]SNSEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.SnsEntry")
+ proto.RegisterMapType((map[string]SQSEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.SqsEntry")
+ proto.RegisterMapType((map[string]StorageGridEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.StorageGridEntry")
+ proto.RegisterMapType((map[string]StripeEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.StripeEntry")
+ proto.RegisterMapType((map[string]WebhookContext)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceSpec.WebhookEntry")
+ proto.RegisterType((*EventSourceStatus)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.EventSourceStatus")
+ proto.RegisterType((*FileEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.FileEventSource")
+ proto.RegisterType((*GenericEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.GenericEventSource")
+ proto.RegisterType((*GithubEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.GithubEventSource")
+ proto.RegisterType((*GitlabEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.GitlabEventSource")
+ proto.RegisterType((*HDFSEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.HDFSEventSource")
+ proto.RegisterType((*KafkaEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.KafkaEventSource")
+ proto.RegisterType((*MQTTEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.MQTTEventSource")
+ proto.RegisterType((*NATSEventsSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.NATSEventsSource")
+ proto.RegisterType((*NSQEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.NSQEventSource")
+ proto.RegisterType((*PubSubEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.PubSubEventSource")
+ proto.RegisterType((*RedisEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.RedisEventSource")
+ proto.RegisterType((*ResourceEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.ResourceEventSource")
+ proto.RegisterType((*ResourceFilter)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.ResourceFilter")
+ proto.RegisterType((*SNSEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.SNSEventSource")
+ proto.RegisterType((*SQSEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.SQSEventSource")
+ proto.RegisterType((*Selector)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.Selector")
+ proto.RegisterType((*SlackEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.SlackEventSource")
+ proto.RegisterType((*StorageGridEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.StorageGridEventSource")
+ proto.RegisterType((*StorageGridFilter)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.StorageGridFilter")
+ proto.RegisterType((*StripeEventSource)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.StripeEventSource")
+ proto.RegisterType((*TLSConfig)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.TLSConfig")
+ proto.RegisterType((*WatchPathConfig)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.WatchPathConfig")
+ proto.RegisterType((*WebhookContext)(nil), "github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1.WebhookContext")
+}
+
+func init() {
+ proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1/generated.proto", fileDescriptor_c9ac5d6cd016403b)
+}
+
+var fileDescriptor_c9ac5d6cd016403b = []byte{
+ // 3920 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x3c, 0x5d, 0x6f, 0x1b, 0x49,
+ 0x72, 0x1e, 0x92, 0xa2, 0xc8, 0xa6, 0x3e, 0xac, 0xf1, 0xda, 0x66, 0x84, 0x9c, 0x64, 0x70, 0x11,
+ 0xc3, 0x9b, 0xdb, 0xa3, 0x62, 0xe7, 0x03, 0x9b, 0x5d, 0x64, 0x03, 0x52, 0x96, 0x6d, 0xad, 0x2c,
+ 0x59, 0xaa, 0x91, 0xd7, 0xf7, 0x85, 0xbb, 0x34, 0x67, 0x9a, 0xe4, 0x2c, 0x87, 0x33, 0xa3, 0x99,
+ 0xa6, 0x6c, 0x2d, 0x90, 0x4f, 0x20, 0xdf, 0x77, 0xc9, 0x25, 0xc0, 0x1d, 0x02, 0xe4, 0xed, 0x90,
+ 0x97, 0x24, 0x7f, 0x21, 0x3f, 0x60, 0x1f, 0xef, 0x29, 0x38, 0x20, 0x88, 0xb0, 0x56, 0xde, 0x12,
+ 0x20, 0x40, 0x1e, 0x92, 0x87, 0x7b, 0x0a, 0xfa, 0x63, 0x7a, 0x3e, 0x38, 0x92, 0x29, 0x4b, 0xb4,
+ 0x5f, 0xee, 0x65, 0x57, 0xac, 0xaa, 0xae, 0xaa, 0xae, 0xaa, 0xae, 0xae, 0xee, 0xea, 0x31, 0xda,
+ 0xee, 0xd9, 0xb4, 0x3f, 0xea, 0x34, 0x4d, 0x6f, 0xb8, 0x86, 0x83, 0x9e, 0xe7, 0x07, 0xde, 0x67,
+ 0xfc, 0x8f, 0xaf, 0x91, 0x43, 0xe2, 0xd2, 0x70, 0xcd, 0x1f, 0xf4, 0xd6, 0xb0, 0x6f, 0x87, 0x6b,
+ 0xe2, 0xb7, 0x37, 0x0a, 0x4c, 0xb2, 0x76, 0x78, 0x17, 0x3b, 0x7e, 0x1f, 0xdf, 0x5d, 0xeb, 0x11,
+ 0x97, 0x04, 0x98, 0x12, 0xab, 0xe9, 0x07, 0x1e, 0xf5, 0xf4, 0xdf, 0x8a, 0xd9, 0x35, 0x23, 0x76,
+ 0xfc, 0x8f, 0xef, 0x8a, 0xe1, 0x4d, 0x7f, 0xd0, 0x6b, 0x32, 0x76, 0xcd, 0x04, 0xbb, 0x66, 0xc4,
+ 0x6e, 0xf9, 0xb7, 0x27, 0xd6, 0xc6, 0xf4, 0x86, 0x43, 0xcf, 0xcd, 0xca, 0x5f, 0xfe, 0x5a, 0x82,
+ 0x41, 0xcf, 0xeb, 0x79, 0x6b, 0x1c, 0xdc, 0x19, 0x75, 0xf9, 0x2f, 0xfe, 0x83, 0xff, 0x25, 0xc9,
+ 0x1b, 0x83, 0x0f, 0xc2, 0xa6, 0xed, 0x31, 0x96, 0x6b, 0xa6, 0x17, 0xb0, 0x89, 0x8d, 0xb1, 0xfc,
+ 0xb5, 0x98, 0x66, 0x88, 0xcd, 0xbe, 0xed, 0x92, 0xe0, 0x28, 0xd6, 0x63, 0x48, 0x28, 0xce, 0x1b,
+ 0xb5, 0x76, 0xda, 0xa8, 0x60, 0xe4, 0x52, 0x7b, 0x48, 0xc6, 0x06, 0xfc, 0xc6, 0xab, 0x06, 0x84,
+ 0x66, 0x9f, 0x0c, 0x71, 0x76, 0x5c, 0xe3, 0x3f, 0x8b, 0x68, 0xb1, 0xb5, 0xbd, 0xb7, 0xbb, 0xc1,
+ 0x0c, 0x64, 0x70, 0x7b, 0xea, 0x5f, 0x41, 0xc5, 0x51, 0xe0, 0xd4, 0xb5, 0x5b, 0xda, 0x9d, 0x6a,
+ 0xbb, 0xf6, 0xc5, 0xf1, 0xea, 0x95, 0x93, 0xe3, 0xd5, 0xe2, 0x53, 0x78, 0x0c, 0x0c, 0xae, 0x7f,
+ 0x80, 0xe6, 0xc8, 0x0b, 0xb3, 0x8f, 0xdd, 0x1e, 0xd9, 0xc1, 0x43, 0x52, 0x2f, 0x70, 0xba, 0x77,
+ 0x24, 0xdd, 0xdc, 0x46, 0x02, 0x07, 0x29, 0xca, 0xe4, 0xc8, 0xfd, 0x23, 0x9f, 0xd4, 0x8b, 0xf9,
+ 0x23, 0x19, 0x0e, 0x52, 0x94, 0xfa, 0x3d, 0x84, 0x02, 0x6f, 0x44, 0x6d, 0xb7, 0xb7, 0x45, 0x8e,
+ 0xea, 0x25, 0x3e, 0x4e, 0x97, 0xe3, 0x10, 0x28, 0x0c, 0x24, 0xa8, 0xf4, 0xdf, 0x45, 0x4b, 0xa6,
+ 0xe7, 0xba, 0xc4, 0xa4, 0xb6, 0xe7, 0xb6, 0xb1, 0x39, 0xf0, 0xba, 0xdd, 0xfa, 0xcc, 0x2d, 0xed,
+ 0x4e, 0xed, 0xde, 0x07, 0xcd, 0x89, 0x03, 0x4d, 0x44, 0x4a, 0x53, 0x8e, 0x6f, 0x5f, 0x3f, 0x39,
+ 0x5e, 0x5d, 0x5a, 0xcf, 0xb2, 0x85, 0x71, 0x49, 0xfa, 0xfb, 0xa8, 0xf2, 0x59, 0xe8, 0xb9, 0x6d,
+ 0xcf, 0x3a, 0xaa, 0x97, 0x6f, 0x69, 0x77, 0x2a, 0xed, 0xab, 0x52, 0xe1, 0xca, 0x27, 0xc6, 0x93,
+ 0x1d, 0x06, 0x07, 0x45, 0xa1, 0x9b, 0xa8, 0x48, 0x9d, 0xb0, 0x3e, 0xcb, 0xd5, 0x7b, 0xd4, 0xbc,
+ 0xd0, 0x3a, 0x68, 0xee, 0x3f, 0x36, 0xd6, 0x3d, 0xb7, 0x6b, 0xf7, 0xda, 0xb3, 0xcc, 0x73, 0xfb,
+ 0x8f, 0x0d, 0x60, 0xdc, 0x1b, 0xff, 0x53, 0x40, 0xbf, 0xd0, 0xfa, 0x7c, 0x14, 0x10, 0xee, 0xed,
+ 0xf0, 0xd1, 0xa8, 0x93, 0x74, 0xfb, 0x2d, 0x54, 0xea, 0x1e, 0x58, 0xae, 0xf4, 0xfb, 0x9c, 0x54,
+ 0xb6, 0xf4, 0x60, 0xef, 0xfe, 0x0e, 0x70, 0x8c, 0xee, 0xa3, 0x6b, 0x61, 0x1f, 0x07, 0xc4, 0x6a,
+ 0x99, 0x26, 0x09, 0xc3, 0x2d, 0x72, 0xa4, 0x02, 0xa0, 0x76, 0xef, 0x97, 0x9a, 0x22, 0x04, 0x99,
+ 0x5e, 0x4d, 0xb6, 0x1a, 0x9a, 0x87, 0x77, 0x9b, 0x06, 0x31, 0x03, 0x42, 0xb7, 0xc8, 0x91, 0x41,
+ 0x1c, 0x62, 0x52, 0x2f, 0x68, 0xdf, 0x3c, 0x39, 0x5e, 0xbd, 0x66, 0x8c, 0x73, 0x81, 0x3c, 0xd6,
+ 0xba, 0x85, 0x16, 0x33, 0x60, 0x1e, 0x34, 0x13, 0x4b, 0xbb, 0x76, 0x72, 0xbc, 0xba, 0x98, 0x91,
+ 0x06, 0x59, 0x96, 0xfa, 0x7b, 0x68, 0xb6, 0x3f, 0xea, 0xf0, 0xb9, 0x88, 0xd0, 0x5a, 0x94, 0x93,
+ 0x9f, 0x7d, 0x24, 0xc0, 0x10, 0xe1, 0xf5, 0x35, 0x54, 0x75, 0xf1, 0x90, 0x84, 0x3e, 0x36, 0x09,
+ 0x0f, 0xa6, 0x6a, 0x7b, 0x49, 0x12, 0x57, 0x77, 0x22, 0x04, 0xc4, 0x34, 0x8d, 0x7f, 0x2a, 0xa0,
+ 0x6b, 0xeb, 0xd8, 0x21, 0xae, 0x85, 0x83, 0xa4, 0xb5, 0xdf, 0x47, 0x15, 0xb6, 0x24, 0xad, 0x91,
+ 0x43, 0xa4, 0xc5, 0x55, 0x78, 0x18, 0x12, 0x0e, 0x8a, 0x82, 0x51, 0xdb, 0x2e, 0x25, 0xc1, 0x21,
+ 0x76, 0xe4, 0x7a, 0x53, 0xd4, 0x9b, 0x12, 0x0e, 0x8a, 0x42, 0xff, 0x10, 0x2d, 0x90, 0x17, 0xa6,
+ 0x33, 0x0a, 0x6d, 0xcf, 0xbd, 0x8f, 0x29, 0x09, 0xeb, 0xc5, 0x5b, 0x45, 0xb6, 0x62, 0x4e, 0x8e,
+ 0x57, 0x17, 0x36, 0x52, 0x18, 0xc8, 0x50, 0x32, 0x49, 0x2c, 0x5f, 0x7c, 0xee, 0xb9, 0x91, 0x31,
+ 0x94, 0xa4, 0x7d, 0x09, 0x07, 0x45, 0xa1, 0x6f, 0xa3, 0xda, 0x28, 0x24, 0xc1, 0x2e, 0x3e, 0x72,
+ 0x3c, 0x6c, 0x71, 0x83, 0xcc, 0xb5, 0xbf, 0x7a, 0x72, 0xbc, 0x5a, 0x7b, 0x1a, 0x83, 0x7f, 0x76,
+ 0xbc, 0x5a, 0x27, 0xae, 0xe9, 0x59, 0xb6, 0xdb, 0x5b, 0x63, 0x11, 0xdf, 0x04, 0xfc, 0x7c, 0x9b,
+ 0x84, 0x21, 0xee, 0x11, 0x48, 0x8e, 0x6f, 0x7c, 0x6f, 0x06, 0xe9, 0x1b, 0x43, 0x9b, 0x52, 0x92,
+ 0xb2, 0xd5, 0x6d, 0x54, 0xee, 0x04, 0xde, 0x80, 0x04, 0xd2, 0x52, 0x0b, 0x52, 0xa3, 0x72, 0x9b,
+ 0x43, 0x41, 0x62, 0x59, 0x96, 0x60, 0x39, 0xc3, 0x25, 0x0e, 0x0b, 0x94, 0x42, 0x3a, 0x4b, 0xac,
+ 0x2b, 0x0c, 0x24, 0xa8, 0xf4, 0x5f, 0x47, 0x35, 0xf9, 0x8b, 0xfb, 0x5f, 0xa4, 0xa4, 0x6b, 0x72,
+ 0x50, 0x6d, 0x3d, 0x46, 0x41, 0x92, 0x2e, 0x1d, 0x07, 0xa5, 0x57, 0xc7, 0x81, 0xfe, 0x04, 0x55,
+ 0xd8, 0x4c, 0x19, 0x40, 0x26, 0xa1, 0x09, 0x43, 0x78, 0x8e, 0x99, 0xfe, 0xa9, 0x1c, 0x0a, 0x8a,
+ 0x09, 0x63, 0xe8, 0xe3, 0x30, 0x7c, 0xee, 0x05, 0x16, 0xcf, 0x2f, 0xe7, 0x63, 0xb8, 0x2b, 0x87,
+ 0x82, 0x62, 0x92, 0x9f, 0x2f, 0x67, 0xdf, 0x4a, 0xbe, 0xac, 0x4c, 0x9a, 0x2f, 0xab, 0x53, 0xcd,
+ 0x97, 0xff, 0x56, 0x40, 0xb5, 0x64, 0x1c, 0xfe, 0x0e, 0xaa, 0xb0, 0x0d, 0xdb, 0xc2, 0x14, 0xf3,
+ 0x48, 0xac, 0xdd, 0xfb, 0x95, 0x84, 0xc9, 0xd5, 0xbe, 0x1b, 0x4b, 0x63, 0xd4, 0xcc, 0x09, 0x4f,
+ 0x3a, 0x9f, 0x11, 0x93, 0x6e, 0x13, 0x8a, 0xe3, 0x78, 0x8c, 0x61, 0xa0, 0xb8, 0xea, 0x2f, 0x50,
+ 0x39, 0xa4, 0x98, 0x8e, 0x42, 0x99, 0x54, 0x77, 0x2f, 0x38, 0xb3, 0x84, 0xf6, 0x06, 0xe7, 0x1b,
+ 0xaf, 0x1d, 0xf1, 0x1b, 0xa4, 0x3c, 0xdd, 0x47, 0xa5, 0xd0, 0x27, 0xa6, 0x4c, 0xaf, 0x3b, 0x97,
+ 0x28, 0xd7, 0x27, 0x66, 0xbc, 0x9b, 0xb0, 0x5f, 0xc0, 0x25, 0x35, 0xbe, 0xd4, 0xd0, 0x62, 0x82,
+ 0xee, 0xb1, 0x1d, 0x52, 0xfd, 0xdb, 0x63, 0x16, 0x6e, 0x4e, 0x66, 0x61, 0x36, 0x9a, 0xdb, 0x57,
+ 0x05, 0x4d, 0x04, 0x49, 0x58, 0xd7, 0x43, 0x33, 0x36, 0x25, 0x43, 0x66, 0xdc, 0xe2, 0x9d, 0xda,
+ 0xbd, 0x4f, 0x2e, 0x6f, 0x92, 0xed, 0x79, 0x29, 0x76, 0x66, 0x93, 0x09, 0x00, 0x21, 0xa7, 0xf1,
+ 0x83, 0xbb, 0xa9, 0x29, 0xb2, 0xc9, 0xeb, 0xbf, 0x87, 0x66, 0x86, 0xb6, 0x6b, 0x7b, 0x75, 0x8d,
+ 0x2b, 0xf1, 0x8d, 0xcb, 0xb5, 0x74, 0x73, 0x9b, 0xf1, 0xde, 0x70, 0x69, 0x70, 0x14, 0xeb, 0xc4,
+ 0x61, 0x20, 0xc4, 0xea, 0x7f, 0xa1, 0xa1, 0x8a, 0x29, 0x37, 0x24, 0x69, 0x88, 0x6f, 0x5f, 0xb2,
+ 0x0e, 0x6a, 0xbf, 0xe3, 0x6a, 0x28, 0x8f, 0x44, 0x60, 0x50, 0xf2, 0xf5, 0xcf, 0x51, 0xa9, 0x6b,
+ 0x3b, 0x84, 0xef, 0x4f, 0xb5, 0x7b, 0x5f, 0xbf, 0x64, 0x3d, 0x1e, 0xd8, 0x0e, 0x11, 0x3a, 0xc4,
+ 0xd5, 0x8c, 0xed, 0x10, 0xe0, 0x32, 0xb9, 0x21, 0x02, 0x22, 0x78, 0xd4, 0x4b, 0x53, 0x31, 0x04,
+ 0x48, 0xf6, 0x19, 0x43, 0x44, 0x60, 0x50, 0xf2, 0xf5, 0x3f, 0xd1, 0xd0, 0xec, 0x73, 0xd2, 0xe9,
+ 0x7b, 0xde, 0xa0, 0x3e, 0xc3, 0x75, 0xf9, 0xd6, 0x25, 0xeb, 0xf2, 0x4c, 0x70, 0x17, 0xaa, 0xa8,
+ 0x02, 0x47, 0x42, 0x21, 0x12, 0xce, 0x3c, 0x82, 0x87, 0x07, 0x7e, 0xbd, 0x3c, 0x15, 0x8f, 0xb4,
+ 0x86, 0x07, 0x7e, 0xc6, 0x23, 0xec, 0xf4, 0x01, 0x5c, 0x26, 0x5b, 0x1a, 0x03, 0xdc, 0x1d, 0xe0,
+ 0xfa, 0xec, 0x54, 0x96, 0xc6, 0x16, 0xe3, 0x9d, 0x59, 0x1a, 0x1c, 0x06, 0x42, 0x2c, 0x9b, 0xfb,
+ 0xf0, 0x80, 0xd2, 0x7a, 0x65, 0x2a, 0x73, 0xdf, 0x3e, 0xa0, 0x34, 0x33, 0xf7, 0xed, 0xbd, 0xfd,
+ 0x7d, 0xe0, 0x32, 0x99, 0x6c, 0x17, 0x53, 0xb6, 0xa3, 0x4d, 0x43, 0xf6, 0x0e, 0xa6, 0x61, 0x46,
+ 0xf6, 0x4e, 0x6b, 0xdf, 0x00, 0x2e, 0x53, 0x3f, 0x44, 0xc5, 0xd0, 0x0d, 0xeb, 0x88, 0x8b, 0x7e,
+ 0x76, 0xc9, 0xa2, 0x0d, 0x57, 0x4a, 0x56, 0x27, 0x49, 0x63, 0xc7, 0x00, 0x26, 0x90, 0xcb, 0x3d,
+ 0x08, 0xeb, 0xb5, 0xe9, 0xc8, 0x3d, 0x18, 0x93, 0xbb, 0xc7, 0xe4, 0x1e, 0x84, 0xfa, 0x1f, 0x69,
+ 0xa8, 0xec, 0x8f, 0x3a, 0xc6, 0xa8, 0x53, 0x9f, 0xe3, 0xb2, 0xbf, 0x79, 0xc9, 0xb2, 0x77, 0x39,
+ 0x73, 0x21, 0x5e, 0x6d, 0xb8, 0x02, 0x08, 0x52, 0x32, 0x57, 0x42, 0x48, 0xad, 0xcf, 0x4f, 0x45,
+ 0x89, 0x87, 0x9c, 0x5b, 0x46, 0x09, 0x01, 0x04, 0x29, 0x39, 0x52, 0xc2, 0xc1, 0x9d, 0xfa, 0xc2,
+ 0xb4, 0x94, 0x70, 0x70, 0x8e, 0x12, 0x0e, 0x16, 0x4a, 0x38, 0xb8, 0xc3, 0x42, 0xbf, 0x6f, 0x75,
+ 0xc3, 0xfa, 0xe2, 0x54, 0x42, 0xff, 0x91, 0xd5, 0xcd, 0x86, 0xfe, 0xa3, 0xfb, 0x0f, 0x0c, 0xe0,
+ 0x32, 0x59, 0xca, 0x09, 0x1d, 0x6c, 0x0e, 0xea, 0x57, 0xa7, 0x92, 0x72, 0x0c, 0xc6, 0x3b, 0x93,
+ 0x72, 0x38, 0x0c, 0x84, 0x58, 0xfd, 0x47, 0x1a, 0xaa, 0x85, 0xd4, 0x0b, 0x70, 0x8f, 0x3c, 0x0c,
+ 0x6c, 0xab, 0xbe, 0xc4, 0xd5, 0xf8, 0xee, 0x65, 0xab, 0x11, 0x4b, 0x10, 0xca, 0xa8, 0x03, 0x4e,
+ 0x02, 0x03, 0x49, 0x45, 0xf4, 0x1f, 0x6b, 0x68, 0x01, 0xa7, 0xee, 0x0a, 0xea, 0x3a, 0xd7, 0xad,
+ 0x73, 0xd9, 0x5b, 0x42, 0xfa, 0x42, 0x82, 0xab, 0x77, 0x43, 0xaa, 0xb7, 0x90, 0x46, 0x42, 0x46,
+ 0x23, 0x1e, 0xbe, 0x21, 0x0d, 0x6c, 0x9f, 0xd4, 0xaf, 0x4d, 0x25, 0x7c, 0x0d, 0xce, 0x3c, 0x13,
+ 0xbe, 0x02, 0x08, 0x52, 0x32, 0xdf, 0xba, 0x89, 0x38, 0xb4, 0xd6, 0xdf, 0x99, 0xca, 0xd6, 0x1d,
+ 0x1d, 0x89, 0xd3, 0x5b, 0xb7, 0x84, 0x42, 0x24, 0x9c, 0xc5, 0x72, 0x40, 0x2c, 0x3b, 0xac, 0x5f,
+ 0x9f, 0x4a, 0x2c, 0x03, 0xe3, 0x9d, 0x89, 0x65, 0x0e, 0x03, 0x21, 0x96, 0xa5, 0x73, 0x37, 0x3c,
+ 0xa8, 0xdf, 0x98, 0x4a, 0x3a, 0xdf, 0x09, 0x0f, 0x32, 0xe9, 0x7c, 0xc7, 0xd8, 0x03, 0x26, 0x90,
+ 0x3b, 0x80, 0xdf, 0x6b, 0xda, 0x66, 0xfd, 0xe6, 0x54, 0x1c, 0xf0, 0x50, 0x70, 0xcf, 0x38, 0x40,
+ 0x42, 0x21, 0x12, 0xbe, 0x3c, 0x42, 0x28, 0x2e, 0xbf, 0xf5, 0xab, 0xa8, 0x38, 0x20, 0x47, 0xe2,
+ 0xca, 0x02, 0xd8, 0x9f, 0xfa, 0x1e, 0x9a, 0x39, 0xc4, 0xce, 0x28, 0xba, 0x31, 0xfb, 0xe8, 0xdc,
+ 0xa7, 0x6a, 0xe3, 0x57, 0x5b, 0x01, 0xb5, 0xbb, 0xd8, 0xa4, 0x20, 0x38, 0x7d, 0x58, 0xf8, 0x40,
+ 0x5b, 0xfe, 0x6b, 0x0d, 0xcd, 0xa7, 0x4a, 0xee, 0x1c, 0xd1, 0xfd, 0xb4, 0x68, 0xb8, 0xa0, 0x81,
+ 0x72, 0x6e, 0xb4, 0x92, 0x1a, 0xfd, 0xa9, 0x86, 0xaa, 0xaa, 0xf8, 0xce, 0xd1, 0xc6, 0x4a, 0x6b,
+ 0x73, 0xd1, 0xd3, 0x26, 0x17, 0x95, 0xaf, 0x09, 0xb3, 0x4d, 0xaa, 0x0a, 0x9f, 0xbe, 0x6d, 0x94,
+ 0xb8, 0x7c, 0x8d, 0xfe, 0x5c, 0x43, 0x73, 0xc9, 0x5a, 0x3c, 0x47, 0x21, 0x33, 0xad, 0xd0, 0xf6,
+ 0x05, 0x15, 0x92, 0xd2, 0xd6, 0x3d, 0x97, 0x92, 0x17, 0x34, 0xeb, 0x27, 0x55, 0x92, 0x4f, 0xdf,
+ 0x4f, 0x99, 0x46, 0x43, 0xc6, 0x2a, 0x28, 0xae, 0xcf, 0x73, 0x54, 0x21, 0x69, 0x55, 0x9e, 0x5c,
+ 0x50, 0x15, 0x21, 0xeb, 0xf4, 0xe8, 0x55, 0xc5, 0xfa, 0xf4, 0xad, 0xc2, 0x0e, 0x01, 0xa7, 0x68,
+ 0xf2, 0x67, 0x1a, 0xaa, 0xaa, 0xd2, 0x7d, 0xfa, 0x46, 0x61, 0x47, 0x02, 0xb1, 0xb9, 0x8e, 0xab,
+ 0xf2, 0xc7, 0x1a, 0xaa, 0x44, 0xa5, 0xfc, 0xf4, 0x43, 0xd6, 0xd8, 0x31, 0x4e, 0x31, 0x09, 0xd7,
+ 0xe3, 0xe0, 0x8d, 0xe9, 0xb1, 0x77, 0x9a, 0x1e, 0x7f, 0xa9, 0xa1, 0x5a, 0xa2, 0xcc, 0xcf, 0x51,
+ 0xa5, 0x9b, 0x56, 0xe5, 0xa2, 0x57, 0x79, 0x52, 0xd8, 0xe9, 0xda, 0x24, 0xea, 0xfd, 0xe9, 0x6b,
+ 0x23, 0x85, 0x9d, 0xa9, 0x4d, 0x54, 0xf8, 0xbf, 0x11, 0x6d, 0x98, 0xb0, 0xd3, 0x97, 0xb3, 0x3a,
+ 0x04, 0x4c, 0x7f, 0x39, 0xb3, 0xc3, 0xc5, 0x19, 0x49, 0x2e, 0x3e, 0x11, 0x4c, 0x7f, 0x3d, 0x0b,
+ 0x59, 0xf9, 0xba, 0xfc, 0x50, 0x43, 0x57, 0xb3, 0xc7, 0x82, 0x1c, 0x8d, 0x06, 0x69, 0x8d, 0x9e,
+ 0x5e, 0x54, 0xa3, 0x84, 0xc4, 0x7c, 0xbd, 0xfe, 0x5e, 0x43, 0xd7, 0x72, 0x8e, 0x04, 0x39, 0xaa,
+ 0xb9, 0x69, 0xd5, 0x2e, 0x7a, 0x6e, 0x3c, 0xb5, 0x31, 0x9a, 0x8d, 0xec, 0xc4, 0x99, 0x60, 0xfa,
+ 0x91, 0x2d, 0x85, 0xe5, 0x6b, 0xf3, 0x7d, 0x0d, 0xcd, 0x25, 0xcf, 0x06, 0x39, 0xea, 0xf4, 0xd2,
+ 0xea, 0xec, 0x5d, 0xb4, 0x30, 0x1e, 0x6b, 0xce, 0x65, 0xe3, 0x3b, 0x3e, 0x25, 0x4c, 0x3f, 0xbe,
+ 0x85, 0xac, 0xd3, 0xf7, 0x89, 0xe8, 0xcc, 0x30, 0xfd, 0x7d, 0x62, 0xc7, 0xd8, 0x3b, 0xc3, 0x47,
+ 0xc9, 0xe3, 0xc3, 0xf4, 0x7d, 0x14, 0x49, 0xcb, 0xd5, 0xa7, 0xe1, 0xa3, 0xa5, 0xb1, 0xa6, 0x90,
+ 0xfe, 0x2d, 0x54, 0x35, 0x03, 0x82, 0x29, 0xb1, 0x5a, 0x54, 0xf6, 0x5d, 0x7e, 0x79, 0xb2, 0xbe,
+ 0xcb, 0xbe, 0x3d, 0x24, 0x71, 0xe7, 0x73, 0x3d, 0x62, 0x02, 0x31, 0xbf, 0xc6, 0x1f, 0x16, 0xd0,
+ 0x62, 0xa6, 0x42, 0xd7, 0xd7, 0x50, 0x95, 0xeb, 0xce, 0x9f, 0x81, 0x68, 0xe9, 0xf6, 0xe9, 0x46,
+ 0x84, 0x80, 0x98, 0x46, 0xff, 0x1b, 0x0d, 0x2d, 0x3e, 0xc7, 0xd4, 0xec, 0xef, 0x62, 0xda, 0x17,
+ 0xcd, 0xba, 0x4b, 0xca, 0xd7, 0xcf, 0xd2, 0x5c, 0xdb, 0x37, 0xa5, 0x1e, 0x8b, 0x19, 0x04, 0x64,
+ 0xe5, 0xeb, 0xef, 0xa1, 0x59, 0xdf, 0x73, 0x1c, 0xdb, 0xed, 0xf1, 0xae, 0x59, 0x25, 0x3e, 0x19,
+ 0xee, 0x0a, 0x30, 0x44, 0xf8, 0xc6, 0x6f, 0x22, 0x7d, 0xdc, 0x2d, 0xfa, 0xbb, 0x91, 0xe3, 0x85,
+ 0x05, 0xd4, 0xa9, 0xfa, 0x53, 0x06, 0x94, 0x4e, 0x6b, 0xfc, 0x7b, 0x19, 0x2d, 0x8d, 0xed, 0xb6,
+ 0xfa, 0x32, 0x2a, 0xd8, 0x16, 0x1f, 0x57, 0x6c, 0x23, 0x39, 0xae, 0xb0, 0x69, 0x41, 0xc1, 0xb6,
+ 0x74, 0x1a, 0xb7, 0x12, 0xa6, 0x71, 0x80, 0x68, 0xd7, 0x72, 0x1b, 0x07, 0xef, 0xa2, 0x19, 0xef,
+ 0xb9, 0x4b, 0x02, 0xd9, 0x42, 0x57, 0x93, 0x79, 0xc2, 0x80, 0x20, 0x70, 0xfc, 0x1d, 0x0f, 0xf1,
+ 0xbd, 0xd0, 0xa6, 0x5e, 0x30, 0xfe, 0x8e, 0x47, 0x61, 0x20, 0x41, 0xa5, 0x37, 0x50, 0x59, 0x68,
+ 0xc5, 0x1b, 0x23, 0xd5, 0x36, 0x3a, 0x39, 0x5e, 0x2d, 0x8b, 0x44, 0x0d, 0x12, 0xa3, 0x3f, 0x41,
+ 0x15, 0xec, 0xdb, 0xfb, 0xde, 0x80, 0xb8, 0xaf, 0xd1, 0x0c, 0x6f, 0xed, 0x6e, 0xf2, 0xa1, 0xa0,
+ 0x98, 0xe8, 0xdf, 0x41, 0xf3, 0x72, 0x62, 0x62, 0x8c, 0x6c, 0x84, 0x4f, 0xc8, 0x75, 0xe9, 0xe4,
+ 0x78, 0x75, 0xfe, 0x59, 0x72, 0x3c, 0xa4, 0xd9, 0x89, 0x07, 0x1d, 0x21, 0x31, 0x47, 0x01, 0xc9,
+ 0x76, 0xbb, 0x37, 0x25, 0x1c, 0x14, 0x85, 0x7e, 0x1b, 0x95, 0xb1, 0x49, 0xed, 0x43, 0xc2, 0x1b,
+ 0xde, 0x95, 0xf8, 0x2a, 0xaa, 0xc5, 0xa1, 0x20, 0xb1, 0xfc, 0x31, 0x03, 0x73, 0x92, 0x5c, 0x58,
+ 0x28, 0xf3, 0x98, 0x21, 0x46, 0x41, 0x92, 0x4e, 0xff, 0x08, 0xcd, 0x8b, 0x00, 0x69, 0xe3, 0x90,
+ 0x3c, 0x85, 0xc7, 0xf5, 0x1a, 0x1f, 0x78, 0x5d, 0x0e, 0x9c, 0x7f, 0x98, 0x44, 0x42, 0x9a, 0x56,
+ 0x6f, 0xa1, 0x45, 0x01, 0x78, 0xea, 0x3b, 0x1e, 0xb6, 0xd8, 0xf0, 0x39, 0x3e, 0x5c, 0x2d, 0xa4,
+ 0x87, 0x69, 0x34, 0x64, 0xe9, 0xd3, 0x8f, 0x29, 0xe6, 0x27, 0x78, 0x4c, 0xf1, 0x09, 0xd2, 0x2d,
+ 0xe2, 0x10, 0x4a, 0x1e, 0x79, 0xde, 0xe0, 0x89, 0xfb, 0xc0, 0x76, 0xed, 0xb0, 0x5f, 0x5f, 0xe0,
+ 0xb6, 0x59, 0x96, 0x23, 0xf5, 0xfb, 0x63, 0x14, 0x90, 0x33, 0xaa, 0xf1, 0xa3, 0x12, 0x5f, 0x5f,
+ 0xe9, 0xfa, 0x31, 0xb9, 0x86, 0xb4, 0x37, 0xb7, 0x86, 0xd6, 0x50, 0x95, 0xb1, 0x25, 0x26, 0xdd,
+ 0xbc, 0xcf, 0x5d, 0x9d, 0x30, 0xc4, 0x6e, 0x84, 0x80, 0x98, 0x26, 0xb1, 0x36, 0x8a, 0xa7, 0xae,
+ 0x8d, 0xaf, 0xa3, 0x1a, 0xe6, 0x4f, 0x9d, 0xc4, 0xf2, 0x28, 0x9d, 0x27, 0x90, 0x17, 0x59, 0xdc,
+ 0xb4, 0xe2, 0xd1, 0x90, 0x64, 0xa5, 0x1b, 0xe8, 0x3a, 0x71, 0x71, 0xc7, 0x21, 0x86, 0xf1, 0xf8,
+ 0x53, 0x12, 0xd8, 0x5d, 0xdb, 0xc4, 0xd4, 0xf6, 0x5c, 0xfe, 0xc0, 0xa5, 0xd2, 0xfe, 0x8a, 0x54,
+ 0xfd, 0xfa, 0x46, 0x1e, 0x11, 0xe4, 0x8f, 0x95, 0xc1, 0xe8, 0x60, 0x15, 0x8c, 0xe5, 0xb1, 0x60,
+ 0x8c, 0x91, 0x90, 0xa6, 0x3d, 0x25, 0x30, 0x2a, 0xaf, 0x15, 0x18, 0x7f, 0x35, 0x8b, 0x16, 0x33,
+ 0xc5, 0x7c, 0xee, 0x36, 0xa4, 0xbd, 0xe5, 0x6d, 0xe8, 0x16, 0x2a, 0x51, 0xb6, 0xda, 0x0b, 0xe9,
+ 0x77, 0x7b, 0x7c, 0x99, 0x73, 0x0c, 0x33, 0xa9, 0xd9, 0x27, 0xe6, 0x20, 0x7a, 0x2a, 0x26, 0x53,
+ 0xb4, 0x32, 0xe9, 0x7a, 0x12, 0x09, 0x69, 0x5a, 0xfd, 0xab, 0xa8, 0x8a, 0x2d, 0x2b, 0x20, 0x61,
+ 0x48, 0x42, 0xde, 0x26, 0xaf, 0xb6, 0xe7, 0x59, 0x3c, 0xb6, 0x22, 0x20, 0xc4, 0x78, 0x96, 0xd6,
+ 0xfa, 0x56, 0x37, 0x7c, 0x1a, 0x92, 0x40, 0xbe, 0x8e, 0x53, 0x69, 0x8d, 0x99, 0x92, 0xc1, 0x41,
+ 0x51, 0xe8, 0x16, 0x5a, 0x1c, 0x04, 0x9d, 0xf5, 0x75, 0x6c, 0xf6, 0x89, 0x4c, 0xb3, 0xe5, 0x73,
+ 0xbf, 0xee, 0xdb, 0x4a, 0x73, 0x80, 0x2c, 0x4b, 0x29, 0x65, 0x8b, 0x1c, 0x51, 0xdc, 0x79, 0x9d,
+ 0x64, 0x1e, 0x49, 0x49, 0x72, 0x80, 0x2c, 0x4b, 0x96, 0x7a, 0x07, 0x41, 0x27, 0x7a, 0xa7, 0xc5,
+ 0x43, 0x2e, 0x91, 0x7a, 0xb7, 0x62, 0x14, 0x24, 0xe9, 0x98, 0xc1, 0x06, 0x41, 0x07, 0x08, 0x76,
+ 0x86, 0x72, 0xc1, 0x2b, 0x83, 0x6d, 0x49, 0x38, 0x28, 0x0a, 0xdd, 0x47, 0x3a, 0x9b, 0x1d, 0xf7,
+ 0xbb, 0xf8, 0xef, 0x36, 0xf6, 0x79, 0x9a, 0xaf, 0xdd, 0xbb, 0x93, 0x37, 0x1b, 0x45, 0x94, 0x9c,
+ 0xd0, 0x0d, 0xb6, 0x08, 0xb6, 0xc6, 0xf8, 0x40, 0x0e, 0x6f, 0xfd, 0x1b, 0xe8, 0xe6, 0x20, 0xe8,
+ 0x18, 0x24, 0x38, 0xb4, 0x4d, 0xb2, 0x1b, 0xd8, 0xae, 0x69, 0xfb, 0x58, 0x3c, 0x95, 0x13, 0x9b,
+ 0xc4, 0xaa, 0x54, 0xf7, 0xe6, 0x56, 0x3e, 0x19, 0x9c, 0x36, 0x3e, 0x9d, 0xf5, 0xe7, 0x26, 0x78,
+ 0x4a, 0xf9, 0x5f, 0x05, 0x74, 0x35, 0x7b, 0x6f, 0xf7, 0xaa, 0xc7, 0xca, 0x2c, 0xa3, 0xe2, 0x80,
+ 0xda, 0x3c, 0x2d, 0x15, 0x32, 0x19, 0x35, 0x42, 0x40, 0x4c, 0xc3, 0xca, 0x18, 0xea, 0xf9, 0xb6,
+ 0x99, 0x2d, 0x63, 0xf6, 0x19, 0x10, 0x04, 0x2e, 0xff, 0xa9, 0x5c, 0xe9, 0x8d, 0x3d, 0x95, 0x93,
+ 0x8f, 0xdf, 0x66, 0xa6, 0xfa, 0xf8, 0xed, 0x87, 0x45, 0xb4, 0x98, 0xb9, 0x9a, 0x7c, 0x95, 0xb1,
+ 0x95, 0xed, 0x0a, 0x67, 0xd8, 0xee, 0x7d, 0x54, 0x31, 0x1d, 0x9b, 0xb8, 0x74, 0xd3, 0x92, 0x36,
+ 0x8e, 0x1f, 0x08, 0x49, 0x38, 0x28, 0x8a, 0xb7, 0x6d, 0xe9, 0xe4, 0xa3, 0xc4, 0x99, 0x49, 0x1f,
+ 0x25, 0x96, 0xa7, 0xea, 0x97, 0xff, 0x2e, 0xa0, 0xab, 0xd9, 0x8b, 0xda, 0x57, 0x39, 0xe6, 0x3d,
+ 0x34, 0x1b, 0x8e, 0xf8, 0x7b, 0x43, 0xe9, 0x1a, 0x75, 0x52, 0x31, 0x04, 0x18, 0x22, 0x7c, 0xbe,
+ 0xc1, 0x8b, 0x6f, 0xc5, 0xe0, 0xa5, 0x49, 0x0d, 0x3e, 0xdd, 0x85, 0xf0, 0x8f, 0x45, 0xb4, 0x90,
+ 0x3e, 0xdf, 0xb3, 0x64, 0xdf, 0xf7, 0x42, 0x2a, 0xb7, 0x40, 0x69, 0x76, 0x95, 0xec, 0x1f, 0xc5,
+ 0x28, 0x48, 0xd2, 0x4d, 0xb6, 0x3e, 0xde, 0x43, 0xb3, 0xf2, 0xa1, 0xb1, 0x5c, 0x1e, 0xca, 0x57,
+ 0xf2, 0x31, 0x32, 0x44, 0xf8, 0x9f, 0x2f, 0x8e, 0x31, 0x5f, 0xfd, 0x6b, 0x11, 0x2d, 0x8d, 0x5d,
+ 0x94, 0xa7, 0xcb, 0x6a, 0x6d, 0x82, 0xb2, 0xfa, 0x63, 0xb4, 0xc0, 0x9d, 0xa1, 0x90, 0xd2, 0x63,
+ 0xea, 0x5d, 0xc2, 0x7e, 0x0a, 0x0b, 0x19, 0xea, 0xc9, 0x36, 0x91, 0x16, 0x5a, 0x34, 0x03, 0x62,
+ 0x11, 0x97, 0xda, 0xd8, 0x09, 0x1f, 0xd8, 0x4e, 0xf4, 0x90, 0x5c, 0x95, 0x7e, 0xeb, 0x69, 0x34,
+ 0x64, 0xe9, 0xf5, 0x4f, 0xd1, 0x0d, 0x51, 0x44, 0x3f, 0xf3, 0x82, 0x41, 0xd7, 0xf1, 0x9e, 0x6f,
+ 0x72, 0x34, 0x8d, 0xfc, 0xb1, 0x22, 0x39, 0xdd, 0xd8, 0xc8, 0xa5, 0x82, 0x53, 0x46, 0xeb, 0x1d,
+ 0xb4, 0x2c, 0x0a, 0x62, 0x63, 0xd4, 0x09, 0xcd, 0xc0, 0xf6, 0x99, 0xdb, 0x55, 0x39, 0x2d, 0xbe,
+ 0x66, 0x69, 0x48, 0xde, 0xcb, 0xf7, 0x4f, 0xa5, 0x84, 0x33, 0xb8, 0xa4, 0xa2, 0x67, 0xf6, 0x55,
+ 0xd1, 0xd3, 0xf8, 0xbf, 0x02, 0xba, 0x9a, 0xbd, 0xee, 0x7b, 0xdd, 0x65, 0x98, 0x7c, 0x39, 0x5f,
+ 0xb8, 0x8c, 0x97, 0xf3, 0xa9, 0x4a, 0xa6, 0x38, 0xc1, 0xf9, 0x75, 0x19, 0x15, 0xac, 0x0e, 0xf7,
+ 0xf6, 0x4c, 0x7c, 0x7b, 0x73, 0xbf, 0x0d, 0x05, 0xab, 0xa3, 0xdf, 0x41, 0x15, 0xb9, 0xbe, 0xa3,
+ 0x0b, 0x0f, 0x2e, 0x56, 0x2e, 0xfe, 0x10, 0x14, 0xf6, 0xcd, 0xac, 0xa8, 0xef, 0x17, 0xd1, 0xb5,
+ 0x9c, 0x8e, 0x76, 0x7a, 0xce, 0xda, 0x04, 0x73, 0x3e, 0x40, 0xe5, 0xae, 0xed, 0x50, 0x12, 0x5c,
+ 0xd2, 0xa5, 0x54, 0xa4, 0xd4, 0x03, 0xce, 0x54, 0x9c, 0x7c, 0xc5, 0xdf, 0x20, 0x05, 0xe9, 0xdf,
+ 0xd3, 0xd0, 0x3b, 0xbd, 0xc0, 0x1b, 0xf9, 0x9f, 0x92, 0x20, 0x64, 0x75, 0x5e, 0xf4, 0xda, 0x57,
+ 0xec, 0x67, 0x1f, 0x4e, 0x76, 0xc5, 0xf9, 0x30, 0x87, 0x43, 0xfb, 0x17, 0xe5, 0x5c, 0xdf, 0xc9,
+ 0xc3, 0x42, 0xae, 0x54, 0x7d, 0x1d, 0x21, 0x75, 0xa1, 0x19, 0x1d, 0xa5, 0xde, 0x3d, 0x39, 0x5e,
+ 0x45, 0xea, 0xc6, 0x33, 0xfc, 0xd9, 0xf1, 0xea, 0x52, 0xca, 0xda, 0xfc, 0x14, 0x97, 0x18, 0xd6,
+ 0xf8, 0xe7, 0x22, 0x5a, 0x48, 0x4f, 0x5d, 0xbf, 0x8d, 0xca, 0x7e, 0x40, 0xba, 0xf6, 0x8b, 0xec,
+ 0xe7, 0x31, 0xbb, 0x1c, 0x0a, 0x12, 0xab, 0x7b, 0xa8, 0xec, 0xe0, 0x0e, 0x8b, 0x2b, 0xf1, 0xec,
+ 0xfb, 0xe1, 0x45, 0x7b, 0x13, 0xd1, 0xba, 0x50, 0x02, 0x1f, 0x73, 0xf6, 0x20, 0xc5, 0x30, 0x81,
+ 0x5d, 0x9b, 0x38, 0x56, 0x28, 0xdf, 0x77, 0x5f, 0xbe, 0xc0, 0x07, 0x9c, 0x3d, 0x48, 0x31, 0x89,
+ 0x7b, 0xec, 0xf6, 0x91, 0xdc, 0x08, 0x2f, 0x72, 0x8f, 0xdd, 0x3e, 0x82, 0x98, 0x9f, 0x7e, 0x0f,
+ 0x21, 0xdc, 0xa5, 0x24, 0x30, 0x28, 0x0e, 0xa8, 0x4c, 0xb0, 0xea, 0xee, 0xb2, 0xa5, 0x30, 0x90,
+ 0xa0, 0x6a, 0x7c, 0x59, 0x44, 0x0b, 0xe9, 0x5e, 0xf6, 0x5b, 0xba, 0x59, 0x7a, 0x1f, 0x55, 0xf8,
+ 0xae, 0xd3, 0x0a, 0xdc, 0xec, 0x07, 0x64, 0xfb, 0x12, 0x0e, 0x8a, 0x42, 0x07, 0x54, 0xc5, 0xaf,
+ 0xf7, 0xc1, 0x9d, 0xb8, 0x1a, 0x50, 0x9f, 0xda, 0xc5, 0x6c, 0x18, 0xcf, 0x30, 0x22, 0x3f, 0xdf,
+ 0x25, 0x14, 0xe7, 0xa9, 0xc0, 0x10, 0xb3, 0x39, 0xf7, 0xd7, 0x78, 0x6c, 0xa9, 0x04, 0xa4, 0xc7,
+ 0xce, 0x82, 0xe5, 0xf4, 0x52, 0x01, 0x0e, 0x05, 0x89, 0x65, 0x45, 0x58, 0xe0, 0x39, 0xa4, 0x05,
+ 0x3b, 0x7c, 0x6f, 0x4a, 0x14, 0x61, 0x20, 0xc0, 0x10, 0xe1, 0x1b, 0x7f, 0x5b, 0x42, 0x0b, 0xe9,
+ 0x67, 0x02, 0x69, 0xf3, 0x69, 0x53, 0x30, 0x5f, 0xe1, 0x72, 0xcc, 0x17, 0x5b, 0xa3, 0x78, 0xa6,
+ 0x35, 0xde, 0x45, 0x33, 0x07, 0x23, 0x32, 0x8a, 0xea, 0x13, 0x55, 0xce, 0xec, 0x31, 0x20, 0x08,
+ 0x1c, 0x2b, 0x67, 0x9e, 0x63, 0x9b, 0xb2, 0x85, 0x64, 0x10, 0xd3, 0x73, 0x2d, 0x51, 0x97, 0x17,
+ 0x93, 0x37, 0x59, 0x29, 0x34, 0x64, 0xe9, 0xd3, 0xee, 0x2c, 0x4f, 0xe0, 0xce, 0xc9, 0xdd, 0x74,
+ 0xce, 0xcf, 0xcb, 0x3e, 0x46, 0x0b, 0x7c, 0x56, 0x2d, 0xd3, 0xf4, 0x46, 0xfc, 0xa8, 0x5a, 0x4d,
+ 0x17, 0x80, 0x7b, 0x29, 0x2c, 0x64, 0xa8, 0x1b, 0xbf, 0x8f, 0x2a, 0x91, 0xfd, 0xd9, 0xd9, 0x4c,
+ 0x35, 0xfc, 0xe2, 0xb3, 0x19, 0x73, 0x05, 0xef, 0xfe, 0xad, 0xa1, 0xaa, 0xe7, 0x93, 0x00, 0xe7,
+ 0xdd, 0x50, 0x3c, 0x89, 0x10, 0x10, 0xd3, 0xc4, 0x5d, 0xa3, 0xe2, 0x19, 0x5d, 0xa3, 0x97, 0x05,
+ 0x74, 0x35, 0xdb, 0xfe, 0xd7, 0xbf, 0x83, 0xe6, 0x43, 0xbb, 0xe7, 0xda, 0x6e, 0x4f, 0xde, 0x83,
+ 0x69, 0xe7, 0x6e, 0x6a, 0x18, 0xc9, 0xf1, 0x90, 0x66, 0xa7, 0x3f, 0x60, 0x65, 0xef, 0x80, 0xb8,
+ 0xe7, 0x8b, 0xcf, 0xaa, 0xa8, 0x8c, 0x07, 0xc4, 0x05, 0x31, 0x3c, 0x99, 0x22, 0x8b, 0x6f, 0xf4,
+ 0xf2, 0xfd, 0x5c, 0x9f, 0x74, 0x36, 0x7e, 0x5c, 0x42, 0x37, 0xf2, 0x1f, 0x34, 0xbc, 0xa5, 0x24,
+ 0x1f, 0x77, 0x03, 0x0a, 0xa7, 0x76, 0x03, 0xa8, 0x2a, 0xc3, 0x8a, 0x97, 0xf4, 0x40, 0x41, 0x19,
+ 0xe0, 0x8c, 0x4a, 0x2c, 0xb9, 0xfd, 0x94, 0x5e, 0xb9, 0xfd, 0xdc, 0x46, 0xe5, 0xce, 0xc8, 0x1c,
+ 0x10, 0x2a, 0x73, 0x7a, 0xfc, 0xbd, 0x2f, 0x87, 0x82, 0xc4, 0x4e, 0x9c, 0xcd, 0x59, 0x3e, 0x1e,
+ 0xd1, 0xbe, 0xe8, 0x7f, 0xcc, 0x9e, 0x3f, 0x1f, 0x47, 0x63, 0x21, 0x66, 0xc3, 0x5b, 0x72, 0xbe,
+ 0xfd, 0x14, 0x1e, 0xcb, 0xab, 0xde, 0xb8, 0x25, 0xc7, 0xa1, 0x20, 0xb1, 0x0d, 0x13, 0x2d, 0x8d,
+ 0x99, 0x68, 0xe2, 0x8a, 0xed, 0x36, 0x2a, 0x87, 0xa3, 0x2e, 0xa3, 0x2b, 0xa4, 0xe9, 0x0c, 0x0e,
+ 0x05, 0x89, 0x6d, 0xfc, 0x6f, 0x81, 0x49, 0xc9, 0xbc, 0x14, 0x79, 0x4b, 0x41, 0xf8, 0x11, 0x9a,
+ 0x17, 0x35, 0xd3, 0xb3, 0x44, 0x0f, 0xba, 0x92, 0x68, 0x36, 0x24, 0x91, 0x90, 0xa6, 0xd5, 0x37,
+ 0xb9, 0x55, 0xcf, 0x5d, 0x75, 0xf0, 0x90, 0x6b, 0xed, 0x6e, 0xb2, 0xa4, 0x2a, 0x19, 0x9c, 0xff,
+ 0x0b, 0xed, 0xbb, 0xa8, 0xc6, 0x67, 0x2d, 0x7c, 0x24, 0xcf, 0x5e, 0xbc, 0x01, 0xb6, 0x11, 0x83,
+ 0x21, 0x49, 0xd3, 0xf8, 0x17, 0x0d, 0x55, 0xd5, 0xc1, 0x89, 0x7f, 0x7e, 0x8e, 0xd7, 0x49, 0x40,
+ 0x77, 0x31, 0xed, 0x4b, 0xcf, 0xc6, 0x9f, 0x9f, 0xb7, 0x22, 0x0c, 0x24, 0xa8, 0xd8, 0x46, 0x23,
+ 0xee, 0x3a, 0xd5, 0xb8, 0xcc, 0x4d, 0xc3, 0x7a, 0x0a, 0x0b, 0x19, 0x6a, 0x6e, 0x6d, 0x0e, 0xd9,
+ 0x22, 0x47, 0x7c, 0x78, 0xb6, 0xb5, 0x93, 0x44, 0x42, 0x9a, 0xb6, 0xf1, 0x77, 0x1a, 0xca, 0xb6,
+ 0x97, 0x98, 0xd9, 0x2c, 0x3b, 0xe0, 0x66, 0x3d, 0xca, 0x9e, 0xeb, 0xee, 0x47, 0x08, 0x88, 0x69,
+ 0xf4, 0x5b, 0xa8, 0xe4, 0xc7, 0x7a, 0xab, 0xf6, 0x13, 0x97, 0xc7, 0x31, 0xcc, 0x2e, 0xec, 0xff,
+ 0x40, 0x7a, 0xe4, 0x85, 0x2f, 0x15, 0x54, 0x76, 0xd9, 0x55, 0x18, 0x48, 0x50, 0x35, 0xfe, 0xa1,
+ 0x80, 0x16, 0xd2, 0xe1, 0xc6, 0x72, 0x08, 0x71, 0x2d, 0xdf, 0xb3, 0x5d, 0x9a, 0xfd, 0x17, 0x13,
+ 0x36, 0x24, 0x1c, 0x14, 0x05, 0x5b, 0x3a, 0x43, 0x42, 0xfb, 0x9e, 0x95, 0x5d, 0x3a, 0xdb, 0x1c,
+ 0x0a, 0x12, 0xcb, 0xd5, 0xf7, 0x02, 0x2a, 0xd5, 0x8a, 0xd5, 0xf7, 0x02, 0x0a, 0x1c, 0x13, 0xdd,
+ 0xad, 0x96, 0x4e, 0xb9, 0x5b, 0xfd, 0x18, 0x2d, 0x84, 0x24, 0x38, 0x24, 0x81, 0xf2, 0xe0, 0x4c,
+ 0xda, 0x83, 0x46, 0x0a, 0x0b, 0x19, 0x6a, 0xe6, 0x41, 0x01, 0x89, 0x3c, 0x98, 0xe9, 0x77, 0x1a,
+ 0x49, 0x24, 0xa4, 0x69, 0xdb, 0xcd, 0x2f, 0x5e, 0xae, 0x5c, 0xf9, 0xc9, 0xcb, 0x95, 0x2b, 0x3f,
+ 0x7d, 0xb9, 0x72, 0xe5, 0x0f, 0x4e, 0x56, 0xb4, 0x2f, 0x4e, 0x56, 0xb4, 0x9f, 0x9c, 0xac, 0x68,
+ 0x3f, 0x3d, 0x59, 0xd1, 0xbe, 0x3c, 0x59, 0xd1, 0x7e, 0xf0, 0x1f, 0x2b, 0x57, 0xbe, 0x59, 0x89,
+ 0x56, 0xf0, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x26, 0xc9, 0xda, 0xc2, 0xb0, 0x47, 0x00, 0x00,
+}
+
+func (m *AMQPEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *AMQPEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *AMQPEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.TLS != nil {
+ {
+ size, err := m.TLS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ }
+ i--
+ if m.JSONBody {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x30
+ if m.ConnectionBackoff != nil {
+ {
+ size, err := m.ConnectionBackoff.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ i -= len(m.RoutingKey)
+ copy(dAtA[i:], m.RoutingKey)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.RoutingKey)))
+ i--
+ dAtA[i] = 0x22
+ i -= len(m.ExchangeType)
+ copy(dAtA[i:], m.ExchangeType)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ExchangeType)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.ExchangeName)
+ copy(dAtA[i:], m.ExchangeName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ExchangeName)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.URL)
+ copy(dAtA[i:], m.URL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *AzureEventsHubEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *AzureEventsHubEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *AzureEventsHubEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x2a
+ i -= len(m.HubName)
+ copy(dAtA[i:], m.HubName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.HubName)))
+ i--
+ dAtA[i] = 0x22
+ if m.SharedAccessKey != nil {
+ {
+ size, err := m.SharedAccessKey.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.SharedAccessKeyName != nil {
+ {
+ size, err := m.SharedAccessKeyName.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ i -= len(m.FQDN)
+ copy(dAtA[i:], m.FQDN)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.FQDN)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *CalendarEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *CalendarEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *CalendarEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.UserPayload != nil {
+ i -= len(m.UserPayload)
+ copy(dAtA[i:], m.UserPayload)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.UserPayload)))
+ i--
+ dAtA[i] = 0x2a
+ }
+ i -= len(m.Timezone)
+ copy(dAtA[i:], m.Timezone)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Timezone)))
+ i--
+ dAtA[i] = 0x22
+ if len(m.ExclusionDates) > 0 {
+ for iNdEx := len(m.ExclusionDates) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.ExclusionDates[iNdEx])
+ copy(dAtA[i:], m.ExclusionDates[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ExclusionDates[iNdEx])))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ i -= len(m.Interval)
+ copy(dAtA[i:], m.Interval)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Interval)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Schedule)
+ copy(dAtA[i:], m.Schedule)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Schedule)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *EmitterEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EmitterEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EmitterEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.TLS != nil {
+ {
+ size, err := m.TLS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x4a
+ }
+ i--
+ if m.JSONBody {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x40
+ if m.ConnectionBackoff != nil {
+ {
+ size, err := m.ConnectionBackoff.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ }
+ if m.Password != nil {
+ {
+ size, err := m.Password.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ if m.Username != nil {
+ {
+ size, err := m.Username.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x22
+ i -= len(m.ChannelName)
+ copy(dAtA[i:], m.ChannelName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ChannelName)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.ChannelKey)
+ copy(dAtA[i:], m.ChannelKey)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ChannelKey)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Broker)
+ copy(dAtA[i:], m.Broker)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Broker)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *EventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ {
+ size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ {
+ size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ {
+ size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *EventSourceList) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EventSourceList) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EventSourceList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Items) > 0 {
+ for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ {
+ size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *EventSourceSpec) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EventSourceSpec) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EventSourceSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Generic) > 0 {
+ keysForGeneric := make([]string, 0, len(m.Generic))
+ for k := range m.Generic {
+ keysForGeneric = append(keysForGeneric, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForGeneric)
+ for iNdEx := len(keysForGeneric) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Generic[string(keysForGeneric[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForGeneric[iNdEx])
+ copy(dAtA[i:], keysForGeneric[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForGeneric[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0xba
+ }
+ }
+ if len(m.NSQ) > 0 {
+ keysForNSQ := make([]string, 0, len(m.NSQ))
+ for k := range m.NSQ {
+ keysForNSQ = append(keysForNSQ, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForNSQ)
+ for iNdEx := len(keysForNSQ) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.NSQ[string(keysForNSQ[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForNSQ[iNdEx])
+ copy(dAtA[i:], keysForNSQ[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForNSQ[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0xb2
+ }
+ }
+ if len(m.Redis) > 0 {
+ keysForRedis := make([]string, 0, len(m.Redis))
+ for k := range m.Redis {
+ keysForRedis = append(keysForRedis, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForRedis)
+ for iNdEx := len(keysForRedis) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Redis[string(keysForRedis[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForRedis[iNdEx])
+ copy(dAtA[i:], keysForRedis[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForRedis[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0xaa
+ }
+ }
+ if len(m.Emitter) > 0 {
+ keysForEmitter := make([]string, 0, len(m.Emitter))
+ for k := range m.Emitter {
+ keysForEmitter = append(keysForEmitter, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForEmitter)
+ for iNdEx := len(keysForEmitter) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Emitter[string(keysForEmitter[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForEmitter[iNdEx])
+ copy(dAtA[i:], keysForEmitter[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForEmitter[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0xa2
+ }
+ }
+ if len(m.Stripe) > 0 {
+ keysForStripe := make([]string, 0, len(m.Stripe))
+ for k := range m.Stripe {
+ keysForStripe = append(keysForStripe, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForStripe)
+ for iNdEx := len(keysForStripe) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Stripe[string(keysForStripe[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForStripe[iNdEx])
+ copy(dAtA[i:], keysForStripe[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForStripe[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0x9a
+ }
+ }
+ if len(m.AzureEventsHub) > 0 {
+ keysForAzureEventsHub := make([]string, 0, len(m.AzureEventsHub))
+ for k := range m.AzureEventsHub {
+ keysForAzureEventsHub = append(keysForAzureEventsHub, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForAzureEventsHub)
+ for iNdEx := len(keysForAzureEventsHub) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.AzureEventsHub[string(keysForAzureEventsHub[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForAzureEventsHub[iNdEx])
+ copy(dAtA[i:], keysForAzureEventsHub[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAzureEventsHub[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0x92
+ }
+ }
+ if len(m.StorageGrid) > 0 {
+ keysForStorageGrid := make([]string, 0, len(m.StorageGrid))
+ for k := range m.StorageGrid {
+ keysForStorageGrid = append(keysForStorageGrid, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForStorageGrid)
+ for iNdEx := len(keysForStorageGrid) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.StorageGrid[string(keysForStorageGrid[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForStorageGrid[iNdEx])
+ copy(dAtA[i:], keysForStorageGrid[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForStorageGrid[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0x8a
+ }
+ }
+ if len(m.Slack) > 0 {
+ keysForSlack := make([]string, 0, len(m.Slack))
+ for k := range m.Slack {
+ keysForSlack = append(keysForSlack, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForSlack)
+ for iNdEx := len(keysForSlack) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Slack[string(keysForSlack[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForSlack[iNdEx])
+ copy(dAtA[i:], keysForSlack[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForSlack[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0x82
+ }
+ }
+ if len(m.HDFS) > 0 {
+ keysForHDFS := make([]string, 0, len(m.HDFS))
+ for k := range m.HDFS {
+ keysForHDFS = append(keysForHDFS, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForHDFS)
+ for iNdEx := len(keysForHDFS) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.HDFS[string(keysForHDFS[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForHDFS[iNdEx])
+ copy(dAtA[i:], keysForHDFS[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForHDFS[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x7a
+ }
+ }
+ if len(m.Gitlab) > 0 {
+ keysForGitlab := make([]string, 0, len(m.Gitlab))
+ for k := range m.Gitlab {
+ keysForGitlab = append(keysForGitlab, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForGitlab)
+ for iNdEx := len(keysForGitlab) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Gitlab[string(keysForGitlab[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForGitlab[iNdEx])
+ copy(dAtA[i:], keysForGitlab[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForGitlab[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x72
+ }
+ }
+ if len(m.Github) > 0 {
+ keysForGithub := make([]string, 0, len(m.Github))
+ for k := range m.Github {
+ keysForGithub = append(keysForGithub, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForGithub)
+ for iNdEx := len(keysForGithub) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Github[string(keysForGithub[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForGithub[iNdEx])
+ copy(dAtA[i:], keysForGithub[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForGithub[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x6a
+ }
+ }
+ if len(m.PubSub) > 0 {
+ keysForPubSub := make([]string, 0, len(m.PubSub))
+ for k := range m.PubSub {
+ keysForPubSub = append(keysForPubSub, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForPubSub)
+ for iNdEx := len(keysForPubSub) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.PubSub[string(keysForPubSub[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForPubSub[iNdEx])
+ copy(dAtA[i:], keysForPubSub[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForPubSub[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x62
+ }
+ }
+ if len(m.SQS) > 0 {
+ keysForSQS := make([]string, 0, len(m.SQS))
+ for k := range m.SQS {
+ keysForSQS = append(keysForSQS, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForSQS)
+ for iNdEx := len(keysForSQS) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.SQS[string(keysForSQS[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForSQS[iNdEx])
+ copy(dAtA[i:], keysForSQS[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForSQS[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x5a
+ }
+ }
+ if len(m.SNS) > 0 {
+ keysForSNS := make([]string, 0, len(m.SNS))
+ for k := range m.SNS {
+ keysForSNS = append(keysForSNS, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForSNS)
+ for iNdEx := len(keysForSNS) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.SNS[string(keysForSNS[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForSNS[iNdEx])
+ copy(dAtA[i:], keysForSNS[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForSNS[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x52
+ }
+ }
+ if len(m.NATS) > 0 {
+ keysForNATS := make([]string, 0, len(m.NATS))
+ for k := range m.NATS {
+ keysForNATS = append(keysForNATS, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForNATS)
+ for iNdEx := len(keysForNATS) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.NATS[string(keysForNATS[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForNATS[iNdEx])
+ copy(dAtA[i:], keysForNATS[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForNATS[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x4a
+ }
+ }
+ if len(m.MQTT) > 0 {
+ keysForMQTT := make([]string, 0, len(m.MQTT))
+ for k := range m.MQTT {
+ keysForMQTT = append(keysForMQTT, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForMQTT)
+ for iNdEx := len(keysForMQTT) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.MQTT[string(keysForMQTT[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForMQTT[iNdEx])
+ copy(dAtA[i:], keysForMQTT[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForMQTT[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x42
+ }
+ }
+ if len(m.Kafka) > 0 {
+ keysForKafka := make([]string, 0, len(m.Kafka))
+ for k := range m.Kafka {
+ keysForKafka = append(keysForKafka, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForKafka)
+ for iNdEx := len(keysForKafka) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Kafka[string(keysForKafka[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForKafka[iNdEx])
+ copy(dAtA[i:], keysForKafka[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForKafka[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x3a
+ }
+ }
+ if len(m.AMQP) > 0 {
+ keysForAMQP := make([]string, 0, len(m.AMQP))
+ for k := range m.AMQP {
+ keysForAMQP = append(keysForAMQP, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForAMQP)
+ for iNdEx := len(keysForAMQP) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.AMQP[string(keysForAMQP[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForAMQP[iNdEx])
+ copy(dAtA[i:], keysForAMQP[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAMQP[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x32
+ }
+ }
+ if len(m.Webhook) > 0 {
+ keysForWebhook := make([]string, 0, len(m.Webhook))
+ for k := range m.Webhook {
+ keysForWebhook = append(keysForWebhook, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForWebhook)
+ for iNdEx := len(keysForWebhook) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Webhook[string(keysForWebhook[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForWebhook[iNdEx])
+ copy(dAtA[i:], keysForWebhook[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForWebhook[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x2a
+ }
+ }
+ if len(m.Resource) > 0 {
+ keysForResource := make([]string, 0, len(m.Resource))
+ for k := range m.Resource {
+ keysForResource = append(keysForResource, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForResource)
+ for iNdEx := len(keysForResource) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Resource[string(keysForResource[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForResource[iNdEx])
+ copy(dAtA[i:], keysForResource[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForResource[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ if len(m.File) > 0 {
+ keysForFile := make([]string, 0, len(m.File))
+ for k := range m.File {
+ keysForFile = append(keysForFile, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForFile)
+ for iNdEx := len(keysForFile) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.File[string(keysForFile[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForFile[iNdEx])
+ copy(dAtA[i:], keysForFile[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForFile[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if len(m.Calendar) > 0 {
+ keysForCalendar := make([]string, 0, len(m.Calendar))
+ for k := range m.Calendar {
+ keysForCalendar = append(keysForCalendar, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForCalendar)
+ for iNdEx := len(keysForCalendar) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Calendar[string(keysForCalendar[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForCalendar[iNdEx])
+ copy(dAtA[i:], keysForCalendar[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForCalendar[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if len(m.Minio) > 0 {
+ keysForMinio := make([]string, 0, len(m.Minio))
+ for k := range m.Minio {
+ keysForMinio = append(keysForMinio, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForMinio)
+ for iNdEx := len(keysForMinio) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Minio[string(keysForMinio[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForMinio[iNdEx])
+ copy(dAtA[i:], keysForMinio[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForMinio[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *EventSourceStatus) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EventSourceStatus) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EventSourceStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ {
+ size, err := m.CreatedAt.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *FileEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *FileEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *FileEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i--
+ if m.Polling {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x18
+ {
+ size, err := m.WatchPathConfig.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.EventType)
+ copy(dAtA[i:], m.EventType)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.EventType)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *GenericEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *GenericEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *GenericEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Value)
+ copy(dAtA[i:], m.Value)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *GithubEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *GithubEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *GithubEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i--
+ if m.DeleteHookOnFinish {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x70
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x6a
+ i -= len(m.GithubUploadURL)
+ copy(dAtA[i:], m.GithubUploadURL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.GithubUploadURL)))
+ i--
+ dAtA[i] = 0x62
+ i -= len(m.GithubBaseURL)
+ copy(dAtA[i:], m.GithubBaseURL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.GithubBaseURL)))
+ i--
+ dAtA[i] = 0x5a
+ i -= len(m.ContentType)
+ copy(dAtA[i:], m.ContentType)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContentType)))
+ i--
+ dAtA[i] = 0x52
+ i--
+ if m.Active {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x48
+ i--
+ if m.Insecure {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x40
+ if m.WebhookSecret != nil {
+ {
+ size, err := m.WebhookSecret.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ }
+ if m.APIToken != nil {
+ {
+ size, err := m.APIToken.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ if len(m.Events) > 0 {
+ for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.Events[iNdEx])
+ copy(dAtA[i:], m.Events[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Events[iNdEx])))
+ i--
+ dAtA[i] = 0x2a
+ }
+ }
+ i -= len(m.Repository)
+ copy(dAtA[i:], m.Repository)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Repository)))
+ i--
+ dAtA[i] = 0x22
+ i -= len(m.Owner)
+ copy(dAtA[i:], m.Owner)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Owner)))
+ i--
+ dAtA[i] = 0x1a
+ if m.Webhook != nil {
+ {
+ size, err := m.Webhook.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ i = encodeVarintGenerated(dAtA, i, uint64(m.Id))
+ i--
+ dAtA[i] = 0x8
+ return len(dAtA) - i, nil
+}
+
+func (m *GitlabEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *GitlabEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *GitlabEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.ProjectID)
+ copy(dAtA[i:], m.ProjectID)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ProjectID)))
+ i--
+ dAtA[i] = 0x4a
+ i--
+ if m.DeleteHookOnFinish {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x40
+ i -= len(m.GitlabBaseURL)
+ copy(dAtA[i:], m.GitlabBaseURL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.GitlabBaseURL)))
+ i--
+ dAtA[i] = 0x32
+ i--
+ if m.EnableSSLVerification {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x28
+ if m.AccessToken != nil {
+ {
+ size, err := m.AccessToken.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(m.Events) > 0 {
+ for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.Events[iNdEx])
+ copy(dAtA[i:], m.Events[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Events[iNdEx])))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if m.Webhook != nil {
+ {
+ size, err := m.Webhook.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *HDFSEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *HDFSEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HDFSEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x62
+ i -= len(m.KrbServicePrincipalName)
+ copy(dAtA[i:], m.KrbServicePrincipalName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.KrbServicePrincipalName)))
+ i--
+ dAtA[i] = 0x5a
+ if m.KrbConfigConfigMap != nil {
+ {
+ size, err := m.KrbConfigConfigMap.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x52
+ }
+ i -= len(m.KrbRealm)
+ copy(dAtA[i:], m.KrbRealm)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.KrbRealm)))
+ i--
+ dAtA[i] = 0x4a
+ i -= len(m.KrbUsername)
+ copy(dAtA[i:], m.KrbUsername)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.KrbUsername)))
+ i--
+ dAtA[i] = 0x42
+ if m.KrbKeytabSecret != nil {
+ {
+ size, err := m.KrbKeytabSecret.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ }
+ if m.KrbCCacheSecret != nil {
+ {
+ size, err := m.KrbCCacheSecret.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ i -= len(m.HDFSUser)
+ copy(dAtA[i:], m.HDFSUser)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.HDFSUser)))
+ i--
+ dAtA[i] = 0x2a
+ if len(m.Addresses) > 0 {
+ for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.Addresses[iNdEx])
+ copy(dAtA[i:], m.Addresses[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Addresses[iNdEx])))
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ i -= len(m.CheckInterval)
+ copy(dAtA[i:], m.CheckInterval)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.CheckInterval)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Type)
+ copy(dAtA[i:], m.Type)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
+ i--
+ dAtA[i] = 0x12
+ {
+ size, err := m.WatchPathConfig.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *KafkaEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *KafkaEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *KafkaEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.TLS != nil {
+ {
+ size, err := m.TLS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ if m.ConnectionBackoff != nil {
+ {
+ size, err := m.ConnectionBackoff.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ i -= len(m.Topic)
+ copy(dAtA[i:], m.Topic)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Topic)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Partition)
+ copy(dAtA[i:], m.Partition)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Partition)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.URL)
+ copy(dAtA[i:], m.URL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *MQTTEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *MQTTEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *MQTTEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.TLS != nil {
+ {
+ size, err := m.TLS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ i--
+ if m.JSONBody {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x28
+ if m.ConnectionBackoff != nil {
+ {
+ size, err := m.ConnectionBackoff.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ i -= len(m.ClientId)
+ copy(dAtA[i:], m.ClientId)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClientId)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Topic)
+ copy(dAtA[i:], m.Topic)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Topic)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.URL)
+ copy(dAtA[i:], m.URL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *NATSEventsSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *NATSEventsSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *NATSEventsSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.TLS != nil {
+ {
+ size, err := m.TLS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ i--
+ if m.JSONBody {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x20
+ if m.ConnectionBackoff != nil {
+ {
+ size, err := m.ConnectionBackoff.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ i -= len(m.Subject)
+ copy(dAtA[i:], m.Subject)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Subject)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.URL)
+ copy(dAtA[i:], m.URL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *NSQEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *NSQEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *NSQEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.TLS != nil {
+ {
+ size, err := m.TLS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ i--
+ if m.JSONBody {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x28
+ if m.ConnectionBackoff != nil {
+ {
+ size, err := m.ConnectionBackoff.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ i -= len(m.Channel)
+ copy(dAtA[i:], m.Channel)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Channel)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Topic)
+ copy(dAtA[i:], m.Topic)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Topic)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.HostAddress)
+ copy(dAtA[i:], m.HostAddress)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.HostAddress)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *PubSubEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *PubSubEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *PubSubEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i--
+ if m.JSONBody {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x38
+ i--
+ if m.DeleteSubscriptionOnFinish {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x30
+ i--
+ if m.EnableWorkflowIdentity {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x28
+ i -= len(m.CredentialsFile)
+ copy(dAtA[i:], m.CredentialsFile)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.CredentialsFile)))
+ i--
+ dAtA[i] = 0x22
+ i -= len(m.Topic)
+ copy(dAtA[i:], m.Topic)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Topic)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.TopicProjectID)
+ copy(dAtA[i:], m.TopicProjectID)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.TopicProjectID)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.ProjectID)
+ copy(dAtA[i:], m.ProjectID)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ProjectID)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *RedisEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *RedisEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *RedisEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.TLS != nil {
+ {
+ size, err := m.TLS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ if len(m.Channels) > 0 {
+ for iNdEx := len(m.Channels) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.Channels[iNdEx])
+ copy(dAtA[i:], m.Channels[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Channels[iNdEx])))
+ i--
+ dAtA[i] = 0x2a
+ }
+ }
+ i = encodeVarintGenerated(dAtA, i, uint64(m.DB))
+ i--
+ dAtA[i] = 0x20
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x1a
+ if m.Password != nil {
+ {
+ size, err := m.Password.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ i -= len(m.HostAddress)
+ copy(dAtA[i:], m.HostAddress)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.HostAddress)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *ResourceEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *ResourceEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *ResourceEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.EventTypes) > 0 {
+ for iNdEx := len(m.EventTypes) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.EventTypes[iNdEx])
+ copy(dAtA[i:], m.EventTypes[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.EventTypes[iNdEx])))
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ {
+ size, err := m.GroupVersionResource.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ if m.Filter != nil {
+ {
+ size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *ResourceFilter) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *ResourceFilter) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *ResourceFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i--
+ if m.AfterStart {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x28
+ {
+ size, err := m.CreatedBy.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ if len(m.Fields) > 0 {
+ for iNdEx := len(m.Fields) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Fields[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if len(m.Labels) > 0 {
+ for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ i -= len(m.Prefix)
+ copy(dAtA[i:], m.Prefix)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Prefix)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *SNSEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *SNSEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *SNSEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.RoleARN)
+ copy(dAtA[i:], m.RoleARN)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.RoleARN)))
+ i--
+ dAtA[i] = 0x3a
+ i -= len(m.Region)
+ copy(dAtA[i:], m.Region)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Region)))
+ i--
+ dAtA[i] = 0x32
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x2a
+ if m.SecretKey != nil {
+ {
+ size, err := m.SecretKey.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ if m.AccessKey != nil {
+ {
+ size, err := m.AccessKey.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ i -= len(m.TopicArn)
+ copy(dAtA[i:], m.TopicArn)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.TopicArn)))
+ i--
+ dAtA[i] = 0x12
+ if m.Webhook != nil {
+ {
+ size, err := m.Webhook.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *SQSEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *SQSEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *SQSEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.QueueAccountId)
+ copy(dAtA[i:], m.QueueAccountId)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.QueueAccountId)))
+ i--
+ dAtA[i] = 0x4a
+ i--
+ if m.JSONBody {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x40
+ i -= len(m.RoleARN)
+ copy(dAtA[i:], m.RoleARN)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.RoleARN)))
+ i--
+ dAtA[i] = 0x3a
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x32
+ i = encodeVarintGenerated(dAtA, i, uint64(m.WaitTimeSeconds))
+ i--
+ dAtA[i] = 0x28
+ i -= len(m.Queue)
+ copy(dAtA[i:], m.Queue)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Queue)))
+ i--
+ dAtA[i] = 0x22
+ i -= len(m.Region)
+ copy(dAtA[i:], m.Region)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Region)))
+ i--
+ dAtA[i] = 0x1a
+ if m.SecretKey != nil {
+ {
+ size, err := m.SecretKey.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.AccessKey != nil {
+ {
+ size, err := m.AccessKey.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *Selector) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Selector) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Selector) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Value)
+ copy(dAtA[i:], m.Value)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Operation)
+ copy(dAtA[i:], m.Operation)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operation)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Key)
+ copy(dAtA[i:], m.Key)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *SlackEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *SlackEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *SlackEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x22
+ if m.Webhook != nil {
+ {
+ size, err := m.Webhook.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.Token != nil {
+ {
+ size, err := m.Token.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.SigningSecret != nil {
+ {
+ size, err := m.SigningSecret.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *StorageGridEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *StorageGridEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *StorageGridEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.ApiURL)
+ copy(dAtA[i:], m.ApiURL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ApiURL)))
+ i--
+ dAtA[i] = 0x42
+ if m.AuthToken != nil {
+ {
+ size, err := m.AuthToken.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ }
+ i -= len(m.Region)
+ copy(dAtA[i:], m.Region)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Region)))
+ i--
+ dAtA[i] = 0x32
+ i -= len(m.Bucket)
+ copy(dAtA[i:], m.Bucket)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Bucket)))
+ i--
+ dAtA[i] = 0x2a
+ i -= len(m.TopicArn)
+ copy(dAtA[i:], m.TopicArn)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.TopicArn)))
+ i--
+ dAtA[i] = 0x22
+ if m.Filter != nil {
+ {
+ size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(m.Events) > 0 {
+ for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.Events[iNdEx])
+ copy(dAtA[i:], m.Events[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Events[iNdEx])))
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if m.Webhook != nil {
+ {
+ size, err := m.Webhook.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *StorageGridFilter) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *StorageGridFilter) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *StorageGridFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Suffix)
+ copy(dAtA[i:], m.Suffix)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Suffix)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Prefix)
+ copy(dAtA[i:], m.Prefix)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Prefix)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *StripeEventSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *StripeEventSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *StripeEventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.EventFilter) > 0 {
+ for iNdEx := len(m.EventFilter) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.EventFilter[iNdEx])
+ copy(dAtA[i:], m.EventFilter[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.EventFilter[iNdEx])))
+ i--
+ dAtA[i] = 0x2a
+ }
+ }
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x22
+ if m.APIKey != nil {
+ {
+ size, err := m.APIKey.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ i--
+ if m.CreateWebhook {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x10
+ if m.Webhook != nil {
+ {
+ size, err := m.Webhook.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *TLSConfig) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *TLSConfig) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *TLSConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.ClientKeyPath)
+ copy(dAtA[i:], m.ClientKeyPath)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClientKeyPath)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.ClientCertPath)
+ copy(dAtA[i:], m.ClientCertPath)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClientCertPath)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.CACertPath)
+ copy(dAtA[i:], m.CACertPath)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.CACertPath)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *WatchPathConfig) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *WatchPathConfig) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *WatchPathConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.PathRegexp)
+ copy(dAtA[i:], m.PathRegexp)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.PathRegexp)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Path)
+ copy(dAtA[i:], m.Path)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Directory)
+ copy(dAtA[i:], m.Directory)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Directory)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *WebhookContext) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *WebhookContext) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *WebhookContext) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.ServerKeyPath)
+ copy(dAtA[i:], m.ServerKeyPath)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServerKeyPath)))
+ i--
+ dAtA[i] = 0x32
+ i -= len(m.ServerCertPath)
+ copy(dAtA[i:], m.ServerCertPath)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServerCertPath)))
+ i--
+ dAtA[i] = 0x2a
+ i -= len(m.URL)
+ copy(dAtA[i:], m.URL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL)))
+ i--
+ dAtA[i] = 0x22
+ i -= len(m.Port)
+ copy(dAtA[i:], m.Port)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Port)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Method)
+ copy(dAtA[i:], m.Method)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Method)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Endpoint)
+ copy(dAtA[i:], m.Endpoint)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Endpoint)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
+ offset -= sovGenerated(v)
+ base := offset
+ for v >= 1<<7 {
+ dAtA[offset] = uint8(v&0x7f | 0x80)
+ v >>= 7
+ offset++
+ }
+ dAtA[offset] = uint8(v)
+ return base
+}
+func (m *AMQPEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.URL)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ExchangeName)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ExchangeType)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.RoutingKey)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.ConnectionBackoff != nil {
+ l = m.ConnectionBackoff.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ n += 2
+ if m.TLS != nil {
+ l = m.TLS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *AzureEventsHubEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.FQDN)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.SharedAccessKeyName != nil {
+ l = m.SharedAccessKeyName.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.SharedAccessKey != nil {
+ l = m.SharedAccessKey.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.HubName)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *CalendarEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Schedule)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Interval)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.ExclusionDates) > 0 {
+ for _, s := range m.ExclusionDates {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ l = len(m.Timezone)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.UserPayload != nil {
+ l = len(m.UserPayload)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *EmitterEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Broker)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ChannelKey)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ChannelName)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Username != nil {
+ l = m.Username.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Password != nil {
+ l = m.Password.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.ConnectionBackoff != nil {
+ l = m.ConnectionBackoff.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ n += 2
+ if m.TLS != nil {
+ l = m.TLS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *EventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.ObjectMeta.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.Status.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.Spec.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *EventSourceList) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.ListMeta.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Items) > 0 {
+ for _, e := range m.Items {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *EventSourceSpec) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Minio) > 0 {
+ for k, v := range m.Minio {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.Calendar) > 0 {
+ for k, v := range m.Calendar {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.File) > 0 {
+ for k, v := range m.File {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.Resource) > 0 {
+ for k, v := range m.Resource {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.Webhook) > 0 {
+ for k, v := range m.Webhook {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.AMQP) > 0 {
+ for k, v := range m.AMQP {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.Kafka) > 0 {
+ for k, v := range m.Kafka {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.MQTT) > 0 {
+ for k, v := range m.MQTT {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.NATS) > 0 {
+ for k, v := range m.NATS {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.SNS) > 0 {
+ for k, v := range m.SNS {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.SQS) > 0 {
+ for k, v := range m.SQS {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.PubSub) > 0 {
+ for k, v := range m.PubSub {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.Github) > 0 {
+ for k, v := range m.Github {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.Gitlab) > 0 {
+ for k, v := range m.Gitlab {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.HDFS) > 0 {
+ for k, v := range m.HDFS {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.Slack) > 0 {
+ for k, v := range m.Slack {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.StorageGrid) > 0 {
+ for k, v := range m.StorageGrid {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.AzureEventsHub) > 0 {
+ for k, v := range m.AzureEventsHub {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.Stripe) > 0 {
+ for k, v := range m.Stripe {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.Emitter) > 0 {
+ for k, v := range m.Emitter {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.Redis) > 0 {
+ for k, v := range m.Redis {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.NSQ) > 0 {
+ for k, v := range m.NSQ {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.Generic) > 0 {
+ for k, v := range m.Generic {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ return n
+}
+
+func (m *EventSourceStatus) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.CreatedAt.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *FileEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.EventType)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.WatchPathConfig.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 2
+ return n
+}
+
+func (m *GenericEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Value)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *GithubEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ n += 1 + sovGenerated(uint64(m.Id))
+ if m.Webhook != nil {
+ l = m.Webhook.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Owner)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Repository)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Events) > 0 {
+ for _, s := range m.Events {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if m.APIToken != nil {
+ l = m.APIToken.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.WebhookSecret != nil {
+ l = m.WebhookSecret.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ n += 2
+ n += 2
+ l = len(m.ContentType)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.GithubBaseURL)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.GithubUploadURL)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 2
+ return n
+}
+
+func (m *GitlabEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Webhook != nil {
+ l = m.Webhook.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if len(m.Events) > 0 {
+ for _, s := range m.Events {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if m.AccessToken != nil {
+ l = m.AccessToken.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ n += 2
+ l = len(m.GitlabBaseURL)
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 2
+ l = len(m.ProjectID)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *HDFSEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.WatchPathConfig.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Type)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.CheckInterval)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Addresses) > 0 {
+ for _, s := range m.Addresses {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ l = len(m.HDFSUser)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.KrbCCacheSecret != nil {
+ l = m.KrbCCacheSecret.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.KrbKeytabSecret != nil {
+ l = m.KrbKeytabSecret.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.KrbUsername)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.KrbRealm)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.KrbConfigConfigMap != nil {
+ l = m.KrbConfigConfigMap.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.KrbServicePrincipalName)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *KafkaEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.URL)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Partition)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Topic)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.ConnectionBackoff != nil {
+ l = m.ConnectionBackoff.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.TLS != nil {
+ l = m.TLS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *MQTTEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.URL)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Topic)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ClientId)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.ConnectionBackoff != nil {
+ l = m.ConnectionBackoff.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ n += 2
+ if m.TLS != nil {
+ l = m.TLS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *NATSEventsSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.URL)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Subject)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.ConnectionBackoff != nil {
+ l = m.ConnectionBackoff.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ n += 2
+ if m.TLS != nil {
+ l = m.TLS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *NSQEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.HostAddress)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Topic)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Channel)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.ConnectionBackoff != nil {
+ l = m.ConnectionBackoff.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ n += 2
+ if m.TLS != nil {
+ l = m.TLS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *PubSubEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ProjectID)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.TopicProjectID)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Topic)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.CredentialsFile)
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 2
+ n += 2
+ n += 2
+ return n
+}
+
+func (m *RedisEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.HostAddress)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Password != nil {
+ l = m.Password.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 1 + sovGenerated(uint64(m.DB))
+ if len(m.Channels) > 0 {
+ for _, s := range m.Channels {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if m.TLS != nil {
+ l = m.TLS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *ResourceEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Filter != nil {
+ l = m.Filter.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = m.GroupVersionResource.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.EventTypes) > 0 {
+ for _, s := range m.EventTypes {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *ResourceFilter) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Prefix)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Labels) > 0 {
+ for _, e := range m.Labels {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if len(m.Fields) > 0 {
+ for _, e := range m.Fields {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ l = m.CreatedBy.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 2
+ return n
+}
+
+func (m *SNSEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Webhook != nil {
+ l = m.Webhook.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.TopicArn)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.AccessKey != nil {
+ l = m.AccessKey.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.SecretKey != nil {
+ l = m.SecretKey.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Region)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.RoleARN)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *SQSEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.AccessKey != nil {
+ l = m.AccessKey.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.SecretKey != nil {
+ l = m.SecretKey.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Region)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Queue)
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 1 + sovGenerated(uint64(m.WaitTimeSeconds))
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.RoleARN)
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 2
+ l = len(m.QueueAccountId)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *Selector) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Key)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Operation)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Value)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *SlackEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.SigningSecret != nil {
+ l = m.SigningSecret.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Token != nil {
+ l = m.Token.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Webhook != nil {
+ l = m.Webhook.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *StorageGridEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Webhook != nil {
+ l = m.Webhook.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if len(m.Events) > 0 {
+ for _, s := range m.Events {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if m.Filter != nil {
+ l = m.Filter.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.TopicArn)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Bucket)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Region)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.AuthToken != nil {
+ l = m.AuthToken.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.ApiURL)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *StorageGridFilter) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Prefix)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Suffix)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *StripeEventSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Webhook != nil {
+ l = m.Webhook.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ n += 2
+ if m.APIKey != nil {
+ l = m.APIKey.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.EventFilter) > 0 {
+ for _, s := range m.EventFilter {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *TLSConfig) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.CACertPath)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ClientCertPath)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ClientKeyPath)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *WatchPathConfig) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Directory)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Path)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.PathRegexp)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *WebhookContext) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Endpoint)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Method)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Port)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.URL)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ServerCertPath)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ServerKeyPath)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func sovGenerated(x uint64) (n int) {
+ return (math_bits.Len64(x|1) + 6) / 7
+}
+func sozGenerated(x uint64) (n int) {
+ return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
+}
+func (this *AMQPEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&AMQPEventSource{`,
+ `URL:` + fmt.Sprintf("%v", this.URL) + `,`,
+ `ExchangeName:` + fmt.Sprintf("%v", this.ExchangeName) + `,`,
+ `ExchangeType:` + fmt.Sprintf("%v", this.ExchangeType) + `,`,
+ `RoutingKey:` + fmt.Sprintf("%v", this.RoutingKey) + `,`,
+ `ConnectionBackoff:` + strings.Replace(fmt.Sprintf("%v", this.ConnectionBackoff), "Backoff", "common.Backoff", 1) + `,`,
+ `JSONBody:` + fmt.Sprintf("%v", this.JSONBody) + `,`,
+ `TLS:` + strings.Replace(this.TLS.String(), "TLSConfig", "TLSConfig", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *AzureEventsHubEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&AzureEventsHubEventSource{`,
+ `FQDN:` + fmt.Sprintf("%v", this.FQDN) + `,`,
+ `SharedAccessKeyName:` + strings.Replace(fmt.Sprintf("%v", this.SharedAccessKeyName), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `SharedAccessKey:` + strings.Replace(fmt.Sprintf("%v", this.SharedAccessKey), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `HubName:` + fmt.Sprintf("%v", this.HubName) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *CalendarEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&CalendarEventSource{`,
+ `Schedule:` + fmt.Sprintf("%v", this.Schedule) + `,`,
+ `Interval:` + fmt.Sprintf("%v", this.Interval) + `,`,
+ `ExclusionDates:` + fmt.Sprintf("%v", this.ExclusionDates) + `,`,
+ `Timezone:` + fmt.Sprintf("%v", this.Timezone) + `,`,
+ `UserPayload:` + valueToStringGenerated(this.UserPayload) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *EmitterEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&EmitterEventSource{`,
+ `Broker:` + fmt.Sprintf("%v", this.Broker) + `,`,
+ `ChannelKey:` + fmt.Sprintf("%v", this.ChannelKey) + `,`,
+ `ChannelName:` + fmt.Sprintf("%v", this.ChannelName) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `Username:` + strings.Replace(fmt.Sprintf("%v", this.Username), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `Password:` + strings.Replace(fmt.Sprintf("%v", this.Password), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `ConnectionBackoff:` + strings.Replace(fmt.Sprintf("%v", this.ConnectionBackoff), "Backoff", "common.Backoff", 1) + `,`,
+ `JSONBody:` + fmt.Sprintf("%v", this.JSONBody) + `,`,
+ `TLS:` + strings.Replace(this.TLS.String(), "TLSConfig", "TLSConfig", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *EventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&EventSource{`,
+ `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`,
+ `Status:` + strings.Replace(strings.Replace(this.Status.String(), "EventSourceStatus", "EventSourceStatus", 1), `&`, ``, 1) + `,`,
+ `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "EventSourceSpec", "EventSourceSpec", 1), `&`, ``, 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *EventSourceList) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForItems := "[]EventSource{"
+ for _, f := range this.Items {
+ repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "EventSource", "EventSource", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForItems += "}"
+ s := strings.Join([]string{`&EventSourceList{`,
+ `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`,
+ `Items:` + repeatedStringForItems + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *EventSourceSpec) String() string {
+ if this == nil {
+ return "nil"
+ }
+ keysForMinio := make([]string, 0, len(this.Minio))
+ for k := range this.Minio {
+ keysForMinio = append(keysForMinio, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForMinio)
+ mapStringForMinio := "map[string]common.S3Artifact{"
+ for _, k := range keysForMinio {
+ mapStringForMinio += fmt.Sprintf("%v: %v,", k, this.Minio[k])
+ }
+ mapStringForMinio += "}"
+ keysForCalendar := make([]string, 0, len(this.Calendar))
+ for k := range this.Calendar {
+ keysForCalendar = append(keysForCalendar, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForCalendar)
+ mapStringForCalendar := "map[string]CalendarEventSource{"
+ for _, k := range keysForCalendar {
+ mapStringForCalendar += fmt.Sprintf("%v: %v,", k, this.Calendar[k])
+ }
+ mapStringForCalendar += "}"
+ keysForFile := make([]string, 0, len(this.File))
+ for k := range this.File {
+ keysForFile = append(keysForFile, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForFile)
+ mapStringForFile := "map[string]FileEventSource{"
+ for _, k := range keysForFile {
+ mapStringForFile += fmt.Sprintf("%v: %v,", k, this.File[k])
+ }
+ mapStringForFile += "}"
+ keysForResource := make([]string, 0, len(this.Resource))
+ for k := range this.Resource {
+ keysForResource = append(keysForResource, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForResource)
+ mapStringForResource := "map[string]ResourceEventSource{"
+ for _, k := range keysForResource {
+ mapStringForResource += fmt.Sprintf("%v: %v,", k, this.Resource[k])
+ }
+ mapStringForResource += "}"
+ keysForWebhook := make([]string, 0, len(this.Webhook))
+ for k := range this.Webhook {
+ keysForWebhook = append(keysForWebhook, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForWebhook)
+ mapStringForWebhook := "map[string]WebhookContext{"
+ for _, k := range keysForWebhook {
+ mapStringForWebhook += fmt.Sprintf("%v: %v,", k, this.Webhook[k])
+ }
+ mapStringForWebhook += "}"
+ keysForAMQP := make([]string, 0, len(this.AMQP))
+ for k := range this.AMQP {
+ keysForAMQP = append(keysForAMQP, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForAMQP)
+ mapStringForAMQP := "map[string]AMQPEventSource{"
+ for _, k := range keysForAMQP {
+ mapStringForAMQP += fmt.Sprintf("%v: %v,", k, this.AMQP[k])
+ }
+ mapStringForAMQP += "}"
+ keysForKafka := make([]string, 0, len(this.Kafka))
+ for k := range this.Kafka {
+ keysForKafka = append(keysForKafka, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForKafka)
+ mapStringForKafka := "map[string]KafkaEventSource{"
+ for _, k := range keysForKafka {
+ mapStringForKafka += fmt.Sprintf("%v: %v,", k, this.Kafka[k])
+ }
+ mapStringForKafka += "}"
+ keysForMQTT := make([]string, 0, len(this.MQTT))
+ for k := range this.MQTT {
+ keysForMQTT = append(keysForMQTT, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForMQTT)
+ mapStringForMQTT := "map[string]MQTTEventSource{"
+ for _, k := range keysForMQTT {
+ mapStringForMQTT += fmt.Sprintf("%v: %v,", k, this.MQTT[k])
+ }
+ mapStringForMQTT += "}"
+ keysForNATS := make([]string, 0, len(this.NATS))
+ for k := range this.NATS {
+ keysForNATS = append(keysForNATS, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForNATS)
+ mapStringForNATS := "map[string]NATSEventsSource{"
+ for _, k := range keysForNATS {
+ mapStringForNATS += fmt.Sprintf("%v: %v,", k, this.NATS[k])
+ }
+ mapStringForNATS += "}"
+ keysForSNS := make([]string, 0, len(this.SNS))
+ for k := range this.SNS {
+ keysForSNS = append(keysForSNS, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForSNS)
+ mapStringForSNS := "map[string]SNSEventSource{"
+ for _, k := range keysForSNS {
+ mapStringForSNS += fmt.Sprintf("%v: %v,", k, this.SNS[k])
+ }
+ mapStringForSNS += "}"
+ keysForSQS := make([]string, 0, len(this.SQS))
+ for k := range this.SQS {
+ keysForSQS = append(keysForSQS, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForSQS)
+ mapStringForSQS := "map[string]SQSEventSource{"
+ for _, k := range keysForSQS {
+ mapStringForSQS += fmt.Sprintf("%v: %v,", k, this.SQS[k])
+ }
+ mapStringForSQS += "}"
+ keysForPubSub := make([]string, 0, len(this.PubSub))
+ for k := range this.PubSub {
+ keysForPubSub = append(keysForPubSub, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForPubSub)
+ mapStringForPubSub := "map[string]PubSubEventSource{"
+ for _, k := range keysForPubSub {
+ mapStringForPubSub += fmt.Sprintf("%v: %v,", k, this.PubSub[k])
+ }
+ mapStringForPubSub += "}"
+ keysForGithub := make([]string, 0, len(this.Github))
+ for k := range this.Github {
+ keysForGithub = append(keysForGithub, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForGithub)
+ mapStringForGithub := "map[string]GithubEventSource{"
+ for _, k := range keysForGithub {
+ mapStringForGithub += fmt.Sprintf("%v: %v,", k, this.Github[k])
+ }
+ mapStringForGithub += "}"
+ keysForGitlab := make([]string, 0, len(this.Gitlab))
+ for k := range this.Gitlab {
+ keysForGitlab = append(keysForGitlab, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForGitlab)
+ mapStringForGitlab := "map[string]GitlabEventSource{"
+ for _, k := range keysForGitlab {
+ mapStringForGitlab += fmt.Sprintf("%v: %v,", k, this.Gitlab[k])
+ }
+ mapStringForGitlab += "}"
+ keysForHDFS := make([]string, 0, len(this.HDFS))
+ for k := range this.HDFS {
+ keysForHDFS = append(keysForHDFS, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForHDFS)
+ mapStringForHDFS := "map[string]HDFSEventSource{"
+ for _, k := range keysForHDFS {
+ mapStringForHDFS += fmt.Sprintf("%v: %v,", k, this.HDFS[k])
+ }
+ mapStringForHDFS += "}"
+ keysForSlack := make([]string, 0, len(this.Slack))
+ for k := range this.Slack {
+ keysForSlack = append(keysForSlack, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForSlack)
+ mapStringForSlack := "map[string]SlackEventSource{"
+ for _, k := range keysForSlack {
+ mapStringForSlack += fmt.Sprintf("%v: %v,", k, this.Slack[k])
+ }
+ mapStringForSlack += "}"
+ keysForStorageGrid := make([]string, 0, len(this.StorageGrid))
+ for k := range this.StorageGrid {
+ keysForStorageGrid = append(keysForStorageGrid, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForStorageGrid)
+ mapStringForStorageGrid := "map[string]StorageGridEventSource{"
+ for _, k := range keysForStorageGrid {
+ mapStringForStorageGrid += fmt.Sprintf("%v: %v,", k, this.StorageGrid[k])
+ }
+ mapStringForStorageGrid += "}"
+ keysForAzureEventsHub := make([]string, 0, len(this.AzureEventsHub))
+ for k := range this.AzureEventsHub {
+ keysForAzureEventsHub = append(keysForAzureEventsHub, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForAzureEventsHub)
+ mapStringForAzureEventsHub := "map[string]AzureEventsHubEventSource{"
+ for _, k := range keysForAzureEventsHub {
+ mapStringForAzureEventsHub += fmt.Sprintf("%v: %v,", k, this.AzureEventsHub[k])
+ }
+ mapStringForAzureEventsHub += "}"
+ keysForStripe := make([]string, 0, len(this.Stripe))
+ for k := range this.Stripe {
+ keysForStripe = append(keysForStripe, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForStripe)
+ mapStringForStripe := "map[string]StripeEventSource{"
+ for _, k := range keysForStripe {
+ mapStringForStripe += fmt.Sprintf("%v: %v,", k, this.Stripe[k])
+ }
+ mapStringForStripe += "}"
+ keysForEmitter := make([]string, 0, len(this.Emitter))
+ for k := range this.Emitter {
+ keysForEmitter = append(keysForEmitter, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForEmitter)
+ mapStringForEmitter := "map[string]EmitterEventSource{"
+ for _, k := range keysForEmitter {
+ mapStringForEmitter += fmt.Sprintf("%v: %v,", k, this.Emitter[k])
+ }
+ mapStringForEmitter += "}"
+ keysForRedis := make([]string, 0, len(this.Redis))
+ for k := range this.Redis {
+ keysForRedis = append(keysForRedis, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForRedis)
+ mapStringForRedis := "map[string]RedisEventSource{"
+ for _, k := range keysForRedis {
+ mapStringForRedis += fmt.Sprintf("%v: %v,", k, this.Redis[k])
+ }
+ mapStringForRedis += "}"
+ keysForNSQ := make([]string, 0, len(this.NSQ))
+ for k := range this.NSQ {
+ keysForNSQ = append(keysForNSQ, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForNSQ)
+ mapStringForNSQ := "map[string]NSQEventSource{"
+ for _, k := range keysForNSQ {
+ mapStringForNSQ += fmt.Sprintf("%v: %v,", k, this.NSQ[k])
+ }
+ mapStringForNSQ += "}"
+ keysForGeneric := make([]string, 0, len(this.Generic))
+ for k := range this.Generic {
+ keysForGeneric = append(keysForGeneric, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForGeneric)
+ mapStringForGeneric := "map[string]GenericEventSource{"
+ for _, k := range keysForGeneric {
+ mapStringForGeneric += fmt.Sprintf("%v: %v,", k, this.Generic[k])
+ }
+ mapStringForGeneric += "}"
+ s := strings.Join([]string{`&EventSourceSpec{`,
+ `Minio:` + mapStringForMinio + `,`,
+ `Calendar:` + mapStringForCalendar + `,`,
+ `File:` + mapStringForFile + `,`,
+ `Resource:` + mapStringForResource + `,`,
+ `Webhook:` + mapStringForWebhook + `,`,
+ `AMQP:` + mapStringForAMQP + `,`,
+ `Kafka:` + mapStringForKafka + `,`,
+ `MQTT:` + mapStringForMQTT + `,`,
+ `NATS:` + mapStringForNATS + `,`,
+ `SNS:` + mapStringForSNS + `,`,
+ `SQS:` + mapStringForSQS + `,`,
+ `PubSub:` + mapStringForPubSub + `,`,
+ `Github:` + mapStringForGithub + `,`,
+ `Gitlab:` + mapStringForGitlab + `,`,
+ `HDFS:` + mapStringForHDFS + `,`,
+ `Slack:` + mapStringForSlack + `,`,
+ `StorageGrid:` + mapStringForStorageGrid + `,`,
+ `AzureEventsHub:` + mapStringForAzureEventsHub + `,`,
+ `Stripe:` + mapStringForStripe + `,`,
+ `Emitter:` + mapStringForEmitter + `,`,
+ `Redis:` + mapStringForRedis + `,`,
+ `NSQ:` + mapStringForNSQ + `,`,
+ `Generic:` + mapStringForGeneric + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *EventSourceStatus) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&EventSourceStatus{`,
+ `CreatedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CreatedAt), "Time", "v11.Time", 1), `&`, ``, 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *FileEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&FileEventSource{`,
+ `EventType:` + fmt.Sprintf("%v", this.EventType) + `,`,
+ `WatchPathConfig:` + strings.Replace(strings.Replace(this.WatchPathConfig.String(), "WatchPathConfig", "WatchPathConfig", 1), `&`, ``, 1) + `,`,
+ `Polling:` + fmt.Sprintf("%v", this.Polling) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *GenericEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&GenericEventSource{`,
+ `Value:` + fmt.Sprintf("%v", this.Value) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *GithubEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&GithubEventSource{`,
+ `Id:` + fmt.Sprintf("%v", this.Id) + `,`,
+ `Webhook:` + strings.Replace(this.Webhook.String(), "WebhookContext", "WebhookContext", 1) + `,`,
+ `Owner:` + fmt.Sprintf("%v", this.Owner) + `,`,
+ `Repository:` + fmt.Sprintf("%v", this.Repository) + `,`,
+ `Events:` + fmt.Sprintf("%v", this.Events) + `,`,
+ `APIToken:` + strings.Replace(fmt.Sprintf("%v", this.APIToken), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `WebhookSecret:` + strings.Replace(fmt.Sprintf("%v", this.WebhookSecret), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `Insecure:` + fmt.Sprintf("%v", this.Insecure) + `,`,
+ `Active:` + fmt.Sprintf("%v", this.Active) + `,`,
+ `ContentType:` + fmt.Sprintf("%v", this.ContentType) + `,`,
+ `GithubBaseURL:` + fmt.Sprintf("%v", this.GithubBaseURL) + `,`,
+ `GithubUploadURL:` + fmt.Sprintf("%v", this.GithubUploadURL) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `DeleteHookOnFinish:` + fmt.Sprintf("%v", this.DeleteHookOnFinish) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *GitlabEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&GitlabEventSource{`,
+ `Webhook:` + strings.Replace(this.Webhook.String(), "WebhookContext", "WebhookContext", 1) + `,`,
+ `Events:` + fmt.Sprintf("%v", this.Events) + `,`,
+ `AccessToken:` + strings.Replace(fmt.Sprintf("%v", this.AccessToken), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `EnableSSLVerification:` + fmt.Sprintf("%v", this.EnableSSLVerification) + `,`,
+ `GitlabBaseURL:` + fmt.Sprintf("%v", this.GitlabBaseURL) + `,`,
+ `DeleteHookOnFinish:` + fmt.Sprintf("%v", this.DeleteHookOnFinish) + `,`,
+ `ProjectID:` + fmt.Sprintf("%v", this.ProjectID) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *HDFSEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&HDFSEventSource{`,
+ `WatchPathConfig:` + strings.Replace(strings.Replace(this.WatchPathConfig.String(), "WatchPathConfig", "WatchPathConfig", 1), `&`, ``, 1) + `,`,
+ `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
+ `CheckInterval:` + fmt.Sprintf("%v", this.CheckInterval) + `,`,
+ `Addresses:` + fmt.Sprintf("%v", this.Addresses) + `,`,
+ `HDFSUser:` + fmt.Sprintf("%v", this.HDFSUser) + `,`,
+ `KrbCCacheSecret:` + strings.Replace(fmt.Sprintf("%v", this.KrbCCacheSecret), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `KrbKeytabSecret:` + strings.Replace(fmt.Sprintf("%v", this.KrbKeytabSecret), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `KrbUsername:` + fmt.Sprintf("%v", this.KrbUsername) + `,`,
+ `KrbRealm:` + fmt.Sprintf("%v", this.KrbRealm) + `,`,
+ `KrbConfigConfigMap:` + strings.Replace(fmt.Sprintf("%v", this.KrbConfigConfigMap), "ConfigMapKeySelector", "v1.ConfigMapKeySelector", 1) + `,`,
+ `KrbServicePrincipalName:` + fmt.Sprintf("%v", this.KrbServicePrincipalName) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *KafkaEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&KafkaEventSource{`,
+ `URL:` + fmt.Sprintf("%v", this.URL) + `,`,
+ `Partition:` + fmt.Sprintf("%v", this.Partition) + `,`,
+ `Topic:` + fmt.Sprintf("%v", this.Topic) + `,`,
+ `ConnectionBackoff:` + strings.Replace(fmt.Sprintf("%v", this.ConnectionBackoff), "Backoff", "common.Backoff", 1) + `,`,
+ `TLS:` + strings.Replace(this.TLS.String(), "TLSConfig", "TLSConfig", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *MQTTEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&MQTTEventSource{`,
+ `URL:` + fmt.Sprintf("%v", this.URL) + `,`,
+ `Topic:` + fmt.Sprintf("%v", this.Topic) + `,`,
+ `ClientId:` + fmt.Sprintf("%v", this.ClientId) + `,`,
+ `ConnectionBackoff:` + strings.Replace(fmt.Sprintf("%v", this.ConnectionBackoff), "Backoff", "common.Backoff", 1) + `,`,
+ `JSONBody:` + fmt.Sprintf("%v", this.JSONBody) + `,`,
+ `TLS:` + strings.Replace(this.TLS.String(), "TLSConfig", "TLSConfig", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *NATSEventsSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&NATSEventsSource{`,
+ `URL:` + fmt.Sprintf("%v", this.URL) + `,`,
+ `Subject:` + fmt.Sprintf("%v", this.Subject) + `,`,
+ `ConnectionBackoff:` + strings.Replace(fmt.Sprintf("%v", this.ConnectionBackoff), "Backoff", "common.Backoff", 1) + `,`,
+ `JSONBody:` + fmt.Sprintf("%v", this.JSONBody) + `,`,
+ `TLS:` + strings.Replace(this.TLS.String(), "TLSConfig", "TLSConfig", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *NSQEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&NSQEventSource{`,
+ `HostAddress:` + fmt.Sprintf("%v", this.HostAddress) + `,`,
+ `Topic:` + fmt.Sprintf("%v", this.Topic) + `,`,
+ `Channel:` + fmt.Sprintf("%v", this.Channel) + `,`,
+ `ConnectionBackoff:` + strings.Replace(fmt.Sprintf("%v", this.ConnectionBackoff), "Backoff", "common.Backoff", 1) + `,`,
+ `JSONBody:` + fmt.Sprintf("%v", this.JSONBody) + `,`,
+ `TLS:` + strings.Replace(this.TLS.String(), "TLSConfig", "TLSConfig", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *PubSubEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&PubSubEventSource{`,
+ `ProjectID:` + fmt.Sprintf("%v", this.ProjectID) + `,`,
+ `TopicProjectID:` + fmt.Sprintf("%v", this.TopicProjectID) + `,`,
+ `Topic:` + fmt.Sprintf("%v", this.Topic) + `,`,
+ `CredentialsFile:` + fmt.Sprintf("%v", this.CredentialsFile) + `,`,
+ `EnableWorkflowIdentity:` + fmt.Sprintf("%v", this.EnableWorkflowIdentity) + `,`,
+ `DeleteSubscriptionOnFinish:` + fmt.Sprintf("%v", this.DeleteSubscriptionOnFinish) + `,`,
+ `JSONBody:` + fmt.Sprintf("%v", this.JSONBody) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *RedisEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&RedisEventSource{`,
+ `HostAddress:` + fmt.Sprintf("%v", this.HostAddress) + `,`,
+ `Password:` + strings.Replace(fmt.Sprintf("%v", this.Password), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `DB:` + fmt.Sprintf("%v", this.DB) + `,`,
+ `Channels:` + fmt.Sprintf("%v", this.Channels) + `,`,
+ `TLS:` + strings.Replace(this.TLS.String(), "TLSConfig", "TLSConfig", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *ResourceEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&ResourceEventSource{`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `Filter:` + strings.Replace(this.Filter.String(), "ResourceFilter", "ResourceFilter", 1) + `,`,
+ `GroupVersionResource:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.GroupVersionResource), "GroupVersionResource", "v11.GroupVersionResource", 1), `&`, ``, 1) + `,`,
+ `EventTypes:` + fmt.Sprintf("%v", this.EventTypes) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *ResourceFilter) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForLabels := "[]Selector{"
+ for _, f := range this.Labels {
+ repeatedStringForLabels += strings.Replace(strings.Replace(f.String(), "Selector", "Selector", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForLabels += "}"
+ repeatedStringForFields := "[]Selector{"
+ for _, f := range this.Fields {
+ repeatedStringForFields += strings.Replace(strings.Replace(f.String(), "Selector", "Selector", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForFields += "}"
+ s := strings.Join([]string{`&ResourceFilter{`,
+ `Prefix:` + fmt.Sprintf("%v", this.Prefix) + `,`,
+ `Labels:` + repeatedStringForLabels + `,`,
+ `Fields:` + repeatedStringForFields + `,`,
+ `CreatedBy:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CreatedBy), "Time", "v11.Time", 1), `&`, ``, 1) + `,`,
+ `AfterStart:` + fmt.Sprintf("%v", this.AfterStart) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *SNSEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&SNSEventSource{`,
+ `Webhook:` + strings.Replace(this.Webhook.String(), "WebhookContext", "WebhookContext", 1) + `,`,
+ `TopicArn:` + fmt.Sprintf("%v", this.TopicArn) + `,`,
+ `AccessKey:` + strings.Replace(fmt.Sprintf("%v", this.AccessKey), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `SecretKey:` + strings.Replace(fmt.Sprintf("%v", this.SecretKey), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `Region:` + fmt.Sprintf("%v", this.Region) + `,`,
+ `RoleARN:` + fmt.Sprintf("%v", this.RoleARN) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *SQSEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&SQSEventSource{`,
+ `AccessKey:` + strings.Replace(fmt.Sprintf("%v", this.AccessKey), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `SecretKey:` + strings.Replace(fmt.Sprintf("%v", this.SecretKey), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `Region:` + fmt.Sprintf("%v", this.Region) + `,`,
+ `Queue:` + fmt.Sprintf("%v", this.Queue) + `,`,
+ `WaitTimeSeconds:` + fmt.Sprintf("%v", this.WaitTimeSeconds) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `RoleARN:` + fmt.Sprintf("%v", this.RoleARN) + `,`,
+ `JSONBody:` + fmt.Sprintf("%v", this.JSONBody) + `,`,
+ `QueueAccountId:` + fmt.Sprintf("%v", this.QueueAccountId) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Selector) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&Selector{`,
+ `Key:` + fmt.Sprintf("%v", this.Key) + `,`,
+ `Operation:` + fmt.Sprintf("%v", this.Operation) + `,`,
+ `Value:` + fmt.Sprintf("%v", this.Value) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *SlackEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&SlackEventSource{`,
+ `SigningSecret:` + strings.Replace(fmt.Sprintf("%v", this.SigningSecret), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `Token:` + strings.Replace(fmt.Sprintf("%v", this.Token), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `Webhook:` + strings.Replace(this.Webhook.String(), "WebhookContext", "WebhookContext", 1) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *StorageGridEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&StorageGridEventSource{`,
+ `Webhook:` + strings.Replace(this.Webhook.String(), "WebhookContext", "WebhookContext", 1) + `,`,
+ `Events:` + fmt.Sprintf("%v", this.Events) + `,`,
+ `Filter:` + strings.Replace(this.Filter.String(), "StorageGridFilter", "StorageGridFilter", 1) + `,`,
+ `TopicArn:` + fmt.Sprintf("%v", this.TopicArn) + `,`,
+ `Bucket:` + fmt.Sprintf("%v", this.Bucket) + `,`,
+ `Region:` + fmt.Sprintf("%v", this.Region) + `,`,
+ `AuthToken:` + strings.Replace(fmt.Sprintf("%v", this.AuthToken), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `ApiURL:` + fmt.Sprintf("%v", this.ApiURL) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *StorageGridFilter) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&StorageGridFilter{`,
+ `Prefix:` + fmt.Sprintf("%v", this.Prefix) + `,`,
+ `Suffix:` + fmt.Sprintf("%v", this.Suffix) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *StripeEventSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&StripeEventSource{`,
+ `Webhook:` + strings.Replace(this.Webhook.String(), "WebhookContext", "WebhookContext", 1) + `,`,
+ `CreateWebhook:` + fmt.Sprintf("%v", this.CreateWebhook) + `,`,
+ `APIKey:` + strings.Replace(fmt.Sprintf("%v", this.APIKey), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `EventFilter:` + fmt.Sprintf("%v", this.EventFilter) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *TLSConfig) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&TLSConfig{`,
+ `CACertPath:` + fmt.Sprintf("%v", this.CACertPath) + `,`,
+ `ClientCertPath:` + fmt.Sprintf("%v", this.ClientCertPath) + `,`,
+ `ClientKeyPath:` + fmt.Sprintf("%v", this.ClientKeyPath) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *WatchPathConfig) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&WatchPathConfig{`,
+ `Directory:` + fmt.Sprintf("%v", this.Directory) + `,`,
+ `Path:` + fmt.Sprintf("%v", this.Path) + `,`,
+ `PathRegexp:` + fmt.Sprintf("%v", this.PathRegexp) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *WebhookContext) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&WebhookContext{`,
+ `Endpoint:` + fmt.Sprintf("%v", this.Endpoint) + `,`,
+ `Method:` + fmt.Sprintf("%v", this.Method) + `,`,
+ `Port:` + fmt.Sprintf("%v", this.Port) + `,`,
+ `URL:` + fmt.Sprintf("%v", this.URL) + `,`,
+ `ServerCertPath:` + fmt.Sprintf("%v", this.ServerCertPath) + `,`,
+ `ServerKeyPath:` + fmt.Sprintf("%v", this.ServerKeyPath) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func valueToStringGenerated(v interface{}) string {
+ rv := reflect.ValueOf(v)
+ if rv.IsNil() {
+ return "nil"
+ }
+ pv := reflect.Indirect(rv).Interface()
+ return fmt.Sprintf("*%v", pv)
+}
+func (m *AMQPEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: AMQPEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: AMQPEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.URL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ExchangeName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ExchangeName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ExchangeType", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ExchangeType = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field RoutingKey", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.RoutingKey = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ConnectionBackoff", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ConnectionBackoff == nil {
+ m.ConnectionBackoff = &common.Backoff{}
+ }
+ if err := m.ConnectionBackoff.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 6:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field JSONBody", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.JSONBody = bool(v != 0)
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.TLS == nil {
+ m.TLS = &TLSConfig{}
+ }
+ if err := m.TLS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *AzureEventsHubEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: AzureEventsHubEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: AzureEventsHubEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FQDN", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.FQDN = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SharedAccessKeyName", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SharedAccessKeyName == nil {
+ m.SharedAccessKeyName = &v1.SecretKeySelector{}
+ }
+ if err := m.SharedAccessKeyName.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SharedAccessKey", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SharedAccessKey == nil {
+ m.SharedAccessKey = &v1.SecretKeySelector{}
+ }
+ if err := m.SharedAccessKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HubName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.HubName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *CalendarEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: CalendarEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: CalendarEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Schedule = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Interval = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ExclusionDates", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ExclusionDates = append(m.ExclusionDates, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Timezone", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Timezone = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field UserPayload", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.UserPayload = append(m.UserPayload[:0], dAtA[iNdEx:postIndex]...)
+ if m.UserPayload == nil {
+ m.UserPayload = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *EmitterEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EmitterEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EmitterEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Broker", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Broker = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ChannelKey", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ChannelKey = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ChannelName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ChannelName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Username == nil {
+ m.Username = &v1.SecretKeySelector{}
+ }
+ if err := m.Username.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Password == nil {
+ m.Password = &v1.SecretKeySelector{}
+ }
+ if err := m.Password.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ConnectionBackoff", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ConnectionBackoff == nil {
+ m.ConnectionBackoff = &common.Backoff{}
+ }
+ if err := m.ConnectionBackoff.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 8:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field JSONBody", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.JSONBody = bool(v != 0)
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.TLS == nil {
+ m.TLS = &TLSConfig{}
+ }
+ if err := m.TLS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *EventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *EventSourceList) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EventSourceList: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EventSourceList: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Items = append(m.Items, EventSource{})
+ if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *EventSourceSpec) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EventSourceSpec: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EventSourceSpec: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Minio", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Minio == nil {
+ m.Minio = make(map[string]common.S3Artifact)
+ }
+ var mapkey string
+ mapvalue := &common.S3Artifact{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &common.S3Artifact{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Minio[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Calendar", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Calendar == nil {
+ m.Calendar = make(map[string]CalendarEventSource)
+ }
+ var mapkey string
+ mapvalue := &CalendarEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &CalendarEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Calendar[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field File", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.File == nil {
+ m.File = make(map[string]FileEventSource)
+ }
+ var mapkey string
+ mapvalue := &FileEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &FileEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.File[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Resource == nil {
+ m.Resource = make(map[string]ResourceEventSource)
+ }
+ var mapkey string
+ mapvalue := &ResourceEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &ResourceEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Resource[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Webhook", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Webhook == nil {
+ m.Webhook = make(map[string]WebhookContext)
+ }
+ var mapkey string
+ mapvalue := &WebhookContext{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &WebhookContext{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Webhook[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AMQP", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.AMQP == nil {
+ m.AMQP = make(map[string]AMQPEventSource)
+ }
+ var mapkey string
+ mapvalue := &AMQPEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &AMQPEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.AMQP[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Kafka", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Kafka == nil {
+ m.Kafka = make(map[string]KafkaEventSource)
+ }
+ var mapkey string
+ mapvalue := &KafkaEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &KafkaEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Kafka[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field MQTT", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.MQTT == nil {
+ m.MQTT = make(map[string]MQTTEventSource)
+ }
+ var mapkey string
+ mapvalue := &MQTTEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &MQTTEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.MQTT[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NATS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.NATS == nil {
+ m.NATS = make(map[string]NATSEventsSource)
+ }
+ var mapkey string
+ mapvalue := &NATSEventsSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &NATSEventsSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.NATS[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 10:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SNS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SNS == nil {
+ m.SNS = make(map[string]SNSEventSource)
+ }
+ var mapkey string
+ mapvalue := &SNSEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &SNSEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.SNS[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 11:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SQS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SQS == nil {
+ m.SQS = make(map[string]SQSEventSource)
+ }
+ var mapkey string
+ mapvalue := &SQSEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &SQSEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.SQS[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 12:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PubSub", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.PubSub == nil {
+ m.PubSub = make(map[string]PubSubEventSource)
+ }
+ var mapkey string
+ mapvalue := &PubSubEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &PubSubEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.PubSub[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 13:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Github", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Github == nil {
+ m.Github = make(map[string]GithubEventSource)
+ }
+ var mapkey string
+ mapvalue := &GithubEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &GithubEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Github[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 14:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Gitlab", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Gitlab == nil {
+ m.Gitlab = make(map[string]GitlabEventSource)
+ }
+ var mapkey string
+ mapvalue := &GitlabEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &GitlabEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Gitlab[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 15:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HDFS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.HDFS == nil {
+ m.HDFS = make(map[string]HDFSEventSource)
+ }
+ var mapkey string
+ mapvalue := &HDFSEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &HDFSEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.HDFS[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 16:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Slack", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Slack == nil {
+ m.Slack = make(map[string]SlackEventSource)
+ }
+ var mapkey string
+ mapvalue := &SlackEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &SlackEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Slack[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 17:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field StorageGrid", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.StorageGrid == nil {
+ m.StorageGrid = make(map[string]StorageGridEventSource)
+ }
+ var mapkey string
+ mapvalue := &StorageGridEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &StorageGridEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.StorageGrid[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 18:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AzureEventsHub", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.AzureEventsHub == nil {
+ m.AzureEventsHub = make(map[string]AzureEventsHubEventSource)
+ }
+ var mapkey string
+ mapvalue := &AzureEventsHubEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &AzureEventsHubEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.AzureEventsHub[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 19:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Stripe", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Stripe == nil {
+ m.Stripe = make(map[string]StripeEventSource)
+ }
+ var mapkey string
+ mapvalue := &StripeEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &StripeEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Stripe[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 20:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Emitter", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Emitter == nil {
+ m.Emitter = make(map[string]EmitterEventSource)
+ }
+ var mapkey string
+ mapvalue := &EmitterEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &EmitterEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Emitter[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 21:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Redis", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Redis == nil {
+ m.Redis = make(map[string]RedisEventSource)
+ }
+ var mapkey string
+ mapvalue := &RedisEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &RedisEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Redis[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 22:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NSQ", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.NSQ == nil {
+ m.NSQ = make(map[string]NSQEventSource)
+ }
+ var mapkey string
+ mapvalue := &NSQEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &NSQEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.NSQ[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 23:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Generic", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Generic == nil {
+ m.Generic = make(map[string]GenericEventSource)
+ }
+ var mapkey string
+ mapvalue := &GenericEventSource{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &GenericEventSource{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Generic[mapkey] = *mapvalue
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *EventSourceStatus) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EventSourceStatus: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EventSourceStatus: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.CreatedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *FileEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: FileEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: FileEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field EventType", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.EventType = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field WatchPathConfig", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.WatchPathConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Polling", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.Polling = bool(v != 0)
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *GenericEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: GenericEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: GenericEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Value = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *GithubEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: GithubEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: GithubEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
+ }
+ m.Id = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Id |= int64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Webhook", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Webhook == nil {
+ m.Webhook = &WebhookContext{}
+ }
+ if err := m.Webhook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Owner = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Repository", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Repository = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Events = append(m.Events, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field APIToken", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.APIToken == nil {
+ m.APIToken = &v1.SecretKeySelector{}
+ }
+ if err := m.APIToken.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field WebhookSecret", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.WebhookSecret == nil {
+ m.WebhookSecret = &v1.SecretKeySelector{}
+ }
+ if err := m.WebhookSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 8:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Insecure", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.Insecure = bool(v != 0)
+ case 9:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.Active = bool(v != 0)
+ case 10:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ContentType", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ContentType = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 11:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field GithubBaseURL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.GithubBaseURL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 12:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field GithubUploadURL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.GithubUploadURL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 13:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 14:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DeleteHookOnFinish", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.DeleteHookOnFinish = bool(v != 0)
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *GitlabEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: GitlabEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: GitlabEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Webhook", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Webhook == nil {
+ m.Webhook = &WebhookContext{}
+ }
+ if err := m.Webhook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Events = append(m.Events, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AccessToken", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.AccessToken == nil {
+ m.AccessToken = &v1.SecretKeySelector{}
+ }
+ if err := m.AccessToken.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field EnableSSLVerification", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.EnableSSLVerification = bool(v != 0)
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field GitlabBaseURL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.GitlabBaseURL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 8:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DeleteHookOnFinish", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.DeleteHookOnFinish = bool(v != 0)
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ProjectID", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ProjectID = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *HDFSEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: HDFSEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: HDFSEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field WatchPathConfig", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.WatchPathConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Type = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CheckInterval", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.CheckInterval = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Addresses = append(m.Addresses, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HDFSUser", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.HDFSUser = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field KrbCCacheSecret", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.KrbCCacheSecret == nil {
+ m.KrbCCacheSecret = &v1.SecretKeySelector{}
+ }
+ if err := m.KrbCCacheSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field KrbKeytabSecret", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.KrbKeytabSecret == nil {
+ m.KrbKeytabSecret = &v1.SecretKeySelector{}
+ }
+ if err := m.KrbKeytabSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field KrbUsername", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.KrbUsername = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field KrbRealm", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.KrbRealm = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 10:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field KrbConfigConfigMap", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.KrbConfigConfigMap == nil {
+ m.KrbConfigConfigMap = &v1.ConfigMapKeySelector{}
+ }
+ if err := m.KrbConfigConfigMap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 11:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field KrbServicePrincipalName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.KrbServicePrincipalName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 12:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *KafkaEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: KafkaEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: KafkaEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.URL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Partition = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Topic = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ConnectionBackoff", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ConnectionBackoff == nil {
+ m.ConnectionBackoff = &common.Backoff{}
+ }
+ if err := m.ConnectionBackoff.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.TLS == nil {
+ m.TLS = &TLSConfig{}
+ }
+ if err := m.TLS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *MQTTEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: MQTTEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: MQTTEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.URL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Topic = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ClientId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ConnectionBackoff", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ConnectionBackoff == nil {
+ m.ConnectionBackoff = &common.Backoff{}
+ }
+ if err := m.ConnectionBackoff.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field JSONBody", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.JSONBody = bool(v != 0)
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.TLS == nil {
+ m.TLS = &TLSConfig{}
+ }
+ if err := m.TLS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *NATSEventsSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: NATSEventsSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: NATSEventsSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.URL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Subject = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ConnectionBackoff", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ConnectionBackoff == nil {
+ m.ConnectionBackoff = &common.Backoff{}
+ }
+ if err := m.ConnectionBackoff.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field JSONBody", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.JSONBody = bool(v != 0)
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.TLS == nil {
+ m.TLS = &TLSConfig{}
+ }
+ if err := m.TLS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *NSQEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: NSQEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: NSQEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HostAddress", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.HostAddress = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Topic = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Channel = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ConnectionBackoff", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ConnectionBackoff == nil {
+ m.ConnectionBackoff = &common.Backoff{}
+ }
+ if err := m.ConnectionBackoff.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field JSONBody", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.JSONBody = bool(v != 0)
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.TLS == nil {
+ m.TLS = &TLSConfig{}
+ }
+ if err := m.TLS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *PubSubEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: PubSubEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: PubSubEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ProjectID", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ProjectID = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TopicProjectID", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.TopicProjectID = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Topic = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CredentialsFile", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.CredentialsFile = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field EnableWorkflowIdentity", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.EnableWorkflowIdentity = bool(v != 0)
+ case 6:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DeleteSubscriptionOnFinish", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.DeleteSubscriptionOnFinish = bool(v != 0)
+ case 7:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field JSONBody", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.JSONBody = bool(v != 0)
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *RedisEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: RedisEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: RedisEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HostAddress", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.HostAddress = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Password == nil {
+ m.Password = &v1.SecretKeySelector{}
+ }
+ if err := m.Password.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DB", wireType)
+ }
+ m.DB = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.DB |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Channels", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Channels = append(m.Channels, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.TLS == nil {
+ m.TLS = &TLSConfig{}
+ }
+ if err := m.TLS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *ResourceEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: ResourceEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: ResourceEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Filter == nil {
+ m.Filter = &ResourceFilter{}
+ }
+ if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field GroupVersionResource", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.GroupVersionResource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field EventTypes", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.EventTypes = append(m.EventTypes, ResourceEventType(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *ResourceFilter) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: ResourceFilter: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: ResourceFilter: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Prefix = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Labels = append(m.Labels, Selector{})
+ if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Fields = append(m.Fields, Selector{})
+ if err := m.Fields[len(m.Fields)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CreatedBy", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.CreatedBy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AfterStart", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.AfterStart = bool(v != 0)
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *SNSEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: SNSEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: SNSEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Webhook", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Webhook == nil {
+ m.Webhook = &WebhookContext{}
+ }
+ if err := m.Webhook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TopicArn", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.TopicArn = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AccessKey", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.AccessKey == nil {
+ m.AccessKey = &v1.SecretKeySelector{}
+ }
+ if err := m.AccessKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SecretKey", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SecretKey == nil {
+ m.SecretKey = &v1.SecretKeySelector{}
+ }
+ if err := m.SecretKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Region = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field RoleARN", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.RoleARN = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *SQSEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: SQSEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: SQSEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AccessKey", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.AccessKey == nil {
+ m.AccessKey = &v1.SecretKeySelector{}
+ }
+ if err := m.AccessKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SecretKey", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SecretKey == nil {
+ m.SecretKey = &v1.SecretKeySelector{}
+ }
+ if err := m.SecretKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Region = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Queue = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field WaitTimeSeconds", wireType)
+ }
+ m.WaitTimeSeconds = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.WaitTimeSeconds |= int64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field RoleARN", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.RoleARN = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 8:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field JSONBody", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.JSONBody = bool(v != 0)
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field QueueAccountId", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.QueueAccountId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Selector) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Selector: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Selector: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Key = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Operation = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Value = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *SlackEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: SlackEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: SlackEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SigningSecret", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SigningSecret == nil {
+ m.SigningSecret = &v1.SecretKeySelector{}
+ }
+ if err := m.SigningSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Token == nil {
+ m.Token = &v1.SecretKeySelector{}
+ }
+ if err := m.Token.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Webhook", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Webhook == nil {
+ m.Webhook = &WebhookContext{}
+ }
+ if err := m.Webhook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *StorageGridEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: StorageGridEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: StorageGridEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Webhook", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Webhook == nil {
+ m.Webhook = &WebhookContext{}
+ }
+ if err := m.Webhook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Events = append(m.Events, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Filter == nil {
+ m.Filter = &StorageGridFilter{}
+ }
+ if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TopicArn", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.TopicArn = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Bucket", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Bucket = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Region = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AuthToken", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.AuthToken == nil {
+ m.AuthToken = &v1.SecretKeySelector{}
+ }
+ if err := m.AuthToken.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ApiURL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ApiURL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *StorageGridFilter) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: StorageGridFilter: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: StorageGridFilter: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Prefix = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Suffix", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Suffix = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *StripeEventSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: StripeEventSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: StripeEventSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Webhook", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Webhook == nil {
+ m.Webhook = &WebhookContext{}
+ }
+ if err := m.Webhook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CreateWebhook", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.CreateWebhook = bool(v != 0)
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field APIKey", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.APIKey == nil {
+ m.APIKey = &v1.SecretKeySelector{}
+ }
+ if err := m.APIKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field EventFilter", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.EventFilter = append(m.EventFilter, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *TLSConfig) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: TLSConfig: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: TLSConfig: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CACertPath", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.CACertPath = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ClientCertPath", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ClientCertPath = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ClientKeyPath", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ClientKeyPath = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *WatchPathConfig) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: WatchPathConfig: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: WatchPathConfig: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Directory", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Directory = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Path = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PathRegexp", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.PathRegexp = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *WebhookContext) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: WebhookContext: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: WebhookContext: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Endpoint = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Method = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Port = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.URL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServerCertPath", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServerCertPath = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServerKeyPath", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServerKeyPath = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func skipGenerated(dAtA []byte) (n int, err error) {
+ l := len(dAtA)
+ iNdEx := 0
+ depth := 0
+ for iNdEx < l {
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= (uint64(b) & 0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ wireType := int(wire & 0x7)
+ switch wireType {
+ case 0:
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ iNdEx++
+ if dAtA[iNdEx-1] < 0x80 {
+ break
+ }
+ }
+ case 1:
+ iNdEx += 8
+ case 2:
+ var length int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ length |= (int(b) & 0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if length < 0 {
+ return 0, ErrInvalidLengthGenerated
+ }
+ iNdEx += length
+ case 3:
+ depth++
+ case 4:
+ if depth == 0 {
+ return 0, ErrUnexpectedEndOfGroupGenerated
+ }
+ depth--
+ case 5:
+ iNdEx += 4
+ default:
+ return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
+ }
+ if iNdEx < 0 {
+ return 0, ErrInvalidLengthGenerated
+ }
+ if depth == 0 {
+ return iNdEx, nil
+ }
+ }
+ return 0, io.ErrUnexpectedEOF
+}
+
+var (
+ ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
+ ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
+ ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
+)
diff --git a/pkg/apis/eventsource/v1alpha1/generated.proto b/pkg/apis/eventsource/v1alpha1/generated.proto
new file mode 100644
index 0000000000..f6f9b14261
--- /dev/null
+++ b/pkg/apis/eventsource/v1alpha1/generated.proto
@@ -0,0 +1,763 @@
+/*
+Copyright 2020 BlackRock, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+// This file was autogenerated by go-to-protobuf. Do not edit it manually!
+
+syntax = 'proto2';
+
+package github.com.argoproj.argo_events.pkg.apis.eventsource.v1alpha1;
+
+import "github.com/argoproj/argo-events/pkg/apis/common/generated.proto";
+import "k8s.io/api/core/v1/generated.proto";
+import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
+import "k8s.io/apimachinery/pkg/runtime/generated.proto";
+import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
+
+// Package-wide variables from generator "generated".
+option go_package = "v1alpha1";
+
+// AMQPEventSource refers to an event-source for AMQP stream events
+message AMQPEventSource {
+ // URL for rabbitmq service
+ optional string url = 1;
+
+ // ExchangeName is the exchange name
+ // For more information, visit https://www.rabbitmq.com/tutorials/amqp-concepts.html
+ optional string exchangeName = 2;
+
+ // ExchangeType is rabbitmq exchange type
+ optional string exchangeType = 3;
+
+ // Routing key for bindings
+ optional string routingKey = 4;
+
+ // Backoff holds parameters applied to connection.
+ // +optional
+ optional github.com.argoproj.argo_events.pkg.apis.common.Backoff connectionBackoff = 5;
+
+ // JSONBody specifies that all event body payload coming from this
+ // source will be JSON
+ // +optional
+ optional bool jsonBody = 6;
+
+ // TLS configuration for the amqp client.
+ // +optional
+ optional TLSConfig tls = 7;
+}
+
+// AzureEventsHubEventSource describes the event source for azure events hub
+// More info at https://docs.microsoft.com/en-us/azure/event-hubs/
+message AzureEventsHubEventSource {
+ // FQDN of the EventHubs namespace you created
+ // More info at https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-get-connection-string
+ optional string fqdn = 1;
+
+ // SharedAccessKeyName is the name you chose for your application's SAS keys
+ optional k8s.io.api.core.v1.SecretKeySelector sharedAccessKeyName = 2;
+
+ // SharedAccessKey is the the generated value of the key
+ optional k8s.io.api.core.v1.SecretKeySelector sharedAccessKey = 3;
+
+ // Event Hub path/name
+ optional string hubName = 4;
+
+ // Namespace refers to Kubernetes namespace which is used to retrieve the shared access key and name from.
+ // +optional
+ optional string namespace = 5;
+}
+
+// CalendarEventSource describes a time based dependency. One of the fields (schedule, interval, or recurrence) must be passed.
+// Schedule takes precedence over interval; interval takes precedence over recurrence
+message CalendarEventSource {
+ // Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron
+ optional string schedule = 1;
+
+ // Interval is a string that describes an interval duration, e.g. 1s, 30m, 2h...
+ optional string interval = 2;
+
+ repeated string exclusionDates = 3;
+
+ // Timezone in which to run the schedule
+ // +optional
+ optional string timezone = 4;
+
+ // UserPayload will be sent to sensor as extra data once the event is triggered
+ // +optional
+ optional bytes userPayload = 5;
+}
+
+// EmitterEventSource describes the event source for emitter
+// More info at https://emitter.io/develop/getting-started/
+message EmitterEventSource {
+ // Broker URI to connect to.
+ optional string broker = 1;
+
+ // ChannelKey refers to the channel key
+ optional string channelKey = 2;
+
+ // ChannelName refers to the channel name
+ optional string channelName = 3;
+
+ // Namespace to use to retrieve the channel key and optional username/password
+ // +optional
+ optional string namespace = 4;
+
+ // Username to use to connect to broker
+ // +optional
+ optional k8s.io.api.core.v1.SecretKeySelector username = 5;
+
+ // Password to use to connect to broker
+ // +optional
+ optional k8s.io.api.core.v1.SecretKeySelector password = 6;
+
+ // Backoff holds parameters applied to connection.
+ // +optional
+ optional github.com.argoproj.argo_events.pkg.apis.common.Backoff connectionBackoff = 7;
+
+ // JSONBody specifies that all event body payload coming from this
+ // source will be JSON
+ // +optional
+ optional bool jsonBody = 8;
+
+ // TLS configuration for the emitter client.
+ // +optional
+ optional TLSConfig tls = 9;
+}
+
+// EventSource is the definition of a eventsource resource
+// +genclient
+// +kubebuilder:resource:shortName=es
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+// +k8s:openapi-gen=true
+message EventSource {
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
+
+ optional EventSourceStatus status = 2;
+
+ optional EventSourceSpec spec = 3;
+}
+
+// EventSourceList is the list of eventsource resources
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+message EventSourceList {
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
+
+ repeated EventSource items = 2;
+}
+
+// EventSourceSpec refers to specification of event-source resource
+message EventSourceSpec {
+ // Minio event sources
+ map minio = 1;
+
+ // Calendar event sources
+ map calendar = 2;
+
+ // File event sources
+ map file = 3;
+
+ // Resource event sources
+ map resource = 4;
+
+ // Webhook event sources
+ map webhook = 5;
+
+ // AMQP event sources
+ map amqp = 6;
+
+ // Kafka event sources
+ map kafka = 7;
+
+ // MQTT event sources
+ map mqtt = 8;
+
+ // NATS event sources
+ map nats = 9;
+
+ // SNS event sources
+ map sns = 10;
+
+ // SQS event sources
+ map sqs = 11;
+
+ // PubSub eevnt sources
+ map pubSub = 12;
+
+ // Github event sources
+ map github = 13;
+
+ // Gitlab event sources
+ map gitlab = 14;
+
+ // HDFS event sources
+ map hdfs = 15;
+
+ // Slack event sources
+ map slack = 16;
+
+ // StorageGrid event sources
+ map storageGrid = 17;
+
+ // AzureEventsHub event sources
+ map azureEventsHub = 18;
+
+ // Stripe event sources
+ map stripe = 19;
+
+ // Emitter event source
+ map emitter = 20;
+
+ // Redis event source
+ map redis = 21;
+
+ // NSQ event source
+ map nsq = 22;
+
+ // Generic event source
+ map generic = 23;
+}
+
+// EventSourceStatus holds the status of the event-source resource
+message EventSourceStatus {
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.Time createdAt = 1;
+}
+
+// FileEventSource describes an event-source for file related events.
+message FileEventSource {
+ // Type of file operations to watch
+ // Refer https://github.com/fsnotify/fsnotify/blob/master/fsnotify.go for more information
+ optional string eventType = 1;
+
+ // WatchPathConfig contains configuration about the file path to watch
+ optional WatchPathConfig watchPathConfig = 2;
+
+ // Use polling instead of inotify
+ optional bool polling = 3;
+}
+
+// GenericEventSource refers to a generic event source. It can be used to implement a custom event source.
+message GenericEventSource {
+ // Value of the event source
+ optional string value = 1;
+}
+
+// GithubEventSource refers to event-source for github related events
+message GithubEventSource {
+ // Id is the webhook's id
+ optional int64 id = 1;
+
+ // Webhook refers to the configuration required to run a http server
+ optional WebhookContext webhook = 2;
+
+ // Owner refers to GitHub owner name i.e. argoproj
+ optional string owner = 3;
+
+ // Repository refers to GitHub repo name i.e. argo-events
+ optional string repository = 4;
+
+ repeated string events = 5;
+
+ // APIToken refers to a K8s secret containing github api token
+ optional k8s.io.api.core.v1.SecretKeySelector apiToken = 6;
+
+ // WebhookSecret refers to K8s secret containing GitHub webhook secret
+ // https://developer.github.com/webhooks/securing/
+ // +optional
+ optional k8s.io.api.core.v1.SecretKeySelector webhookSecret = 7;
+
+ // Insecure tls verification
+ optional bool insecure = 8;
+
+ // Active refers to status of the webhook for event deliveries.
+ // https://developer.github.com/webhooks/creating/#active
+ // +optional
+ optional bool active = 9;
+
+ // ContentType of the event delivery
+ optional string contentType = 10;
+
+ // GitHub base URL (for GitHub Enterprise)
+ // +optional
+ optional string githubBaseURL = 11;
+
+ // GitHub upload URL (for GitHub Enterprise)
+ // +optional
+ optional string githubUploadURL = 12;
+
+ // Namespace refers to Kubernetes namespace which is used to retrieve webhook secret and api token from.
+ // +optional
+ optional string namespace = 13;
+
+ // DeleteHookOnFinish determines whether to delete the GitHub hook for the repository once the event source is stopped.
+ // +optional
+ optional bool deleteHookOnFinish = 14;
+}
+
+// GitlabEventSource refers to event-source related to Gitlab events
+message GitlabEventSource {
+ // Webhook holds configuration to run a http server
+ optional WebhookContext webhook = 1;
+
+ // ProjectID is the id of project for which integration needs to setup
+ optional string projectID = 9;
+
+ // Events are gitlab event to listen to.
+ // Refer https://github.com/xanzy/go-gitlab/blob/bf34eca5d13a9f4c3f501d8a97b8ac226d55e4d9/projects.go#L794.
+ repeated string events = 3;
+
+ // AccessToken is reference to k8 secret which holds the gitlab api access information
+ optional k8s.io.api.core.v1.SecretKeySelector accessToken = 4;
+
+ // EnableSSLVerification to enable ssl verification
+ // +optional
+ optional bool enableSSLVerification = 5;
+
+ // GitlabBaseURL is the base URL for API requests to a custom endpoint
+ optional string gitlabBaseURL = 6;
+
+ // DeleteHookOnFinish determines whether to delete the GitLab hook for the project once the event source is stopped.
+ // +optional
+ optional bool deleteHookOnFinish = 8;
+}
+
+// HDFSEventSource refers to event-source for HDFS related events
+message HDFSEventSource {
+ optional WatchPathConfig watchPathConfig = 1;
+
+ // Type of file operations to watch
+ optional string type = 2;
+
+ // CheckInterval is a string that describes an interval duration to check the directory state, e.g. 1s, 30m, 2h... (defaults to 1m)
+ optional string checkInterval = 3;
+
+ repeated string addresses = 4;
+
+ // HDFSUser is the user to access HDFS file system.
+ // It is ignored if either ccache or keytab is used.
+ optional string hdfsUser = 5;
+
+ // KrbCCacheSecret is the secret selector for Kerberos ccache
+ // Either ccache or keytab can be set to use Kerberos.
+ optional k8s.io.api.core.v1.SecretKeySelector krbCCacheSecret = 6;
+
+ // KrbKeytabSecret is the secret selector for Kerberos keytab
+ // Either ccache or keytab can be set to use Kerberos.
+ optional k8s.io.api.core.v1.SecretKeySelector krbKeytabSecret = 7;
+
+ // KrbUsername is the Kerberos username used with Kerberos keytab
+ // It must be set if keytab is used.
+ optional string krbUsername = 8;
+
+ // KrbRealm is the Kerberos realm used with Kerberos keytab
+ // It must be set if keytab is used.
+ optional string krbRealm = 9;
+
+ // KrbConfig is the configmap selector for Kerberos config as string
+ // It must be set if either ccache or keytab is used.
+ optional k8s.io.api.core.v1.ConfigMapKeySelector krbConfigConfigMap = 10;
+
+ // KrbServicePrincipalName is the principal name of Kerberos service
+ // It must be set if either ccache or keytab is used.
+ optional string krbServicePrincipalName = 11;
+
+ // Namespace refers to Kubernetes namespace which is used to retrieve cache secret and ket tab secret from.
+ // +optional
+ optional string namespace = 12;
+}
+
+// KafkaEventSource refers to event-source for Kafka related events
+message KafkaEventSource {
+ // URL to kafka cluster
+ optional string url = 1;
+
+ // Partition name
+ optional string partition = 2;
+
+ // Topic name
+ optional string topic = 3;
+
+ // Backoff holds parameters applied to connection.
+ optional github.com.argoproj.argo_events.pkg.apis.common.Backoff connectionBackoff = 4;
+
+ // TLS configuration for the kafka client.
+ // +optional
+ optional TLSConfig tls = 5;
+}
+
+// MQTTEventSource refers to event-source for MQTT related events
+message MQTTEventSource {
+ // URL to connect to broker
+ optional string url = 1;
+
+ // Topic name
+ optional string topic = 2;
+
+ // ClientID is the id of the client
+ optional string clientId = 3;
+
+ // ConnectionBackoff holds backoff applied to connection.
+ optional github.com.argoproj.argo_events.pkg.apis.common.Backoff connectionBackoff = 4;
+
+ // JSONBody specifies that all event body payload coming from this
+ // source will be JSON
+ // +optional
+ optional bool jsonBody = 5;
+
+ // TLS configuration for the mqtt client.
+ // +optional
+ optional TLSConfig tls = 6;
+}
+
+// NATSEventSource refers to event-source for NATS related events
+message NATSEventsSource {
+ // URL to connect to NATS cluster
+ optional string url = 1;
+
+ // Subject holds the name of the subject onto which messages are published
+ optional string subject = 2;
+
+ // ConnectionBackoff holds backoff applied to connection.
+ optional github.com.argoproj.argo_events.pkg.apis.common.Backoff connectionBackoff = 3;
+
+ // JSONBody specifies that all event body payload coming from this
+ // source will be JSON
+ // +optional
+ optional bool jsonBody = 4;
+
+ // TLS configuration for the nats client.
+ // +optional
+ optional TLSConfig tls = 5;
+}
+
+// NSQEventSource describes the event source for NSQ PubSub
+// More info at https://godoc.org/github.com/nsqio/go-nsq
+message NSQEventSource {
+ // HostAddress is the address of the host for NSQ lookup
+ optional string hostAddress = 1;
+
+ // Topic to subscribe to.
+ optional string topic = 2;
+
+ // Channel used for subscription
+ optional string channel = 3;
+
+ // Backoff holds parameters applied to connection.
+ // +optional
+ optional github.com.argoproj.argo_events.pkg.apis.common.Backoff connectionBackoff = 4;
+
+ // JSONBody specifies that all event body payload coming from this
+ // source will be JSON
+ // +optional
+ optional bool jsonBody = 5;
+
+ // TLS configuration for the nsq client.
+ // +optional
+ optional TLSConfig tls = 6;
+}
+
+// PubSubEventSource refers to event-source for GCP PubSub related events.
+message PubSubEventSource {
+ // ProjectID is the unique identifier for your project on GCP
+ optional string projectID = 1;
+
+ // TopicProjectID identifies the project where the topic should exist or be created
+ // (assumed to be the same as ProjectID by default)
+ optional string topicProjectID = 2;
+
+ // Topic on which a subscription will be created
+ optional string topic = 3;
+
+ // CredentialsFile is the file that contains credentials to authenticate for GCP
+ optional string credentialsFile = 4;
+
+ // EnableWorkflowIdentity determines if your project authenticates to GCP with WorkflowIdentity or CredentialsFile.
+ // If true, authentication is done with WorkflowIdentity. If false or omitted, authentication is done with CredentialsFile.
+ // +optional
+ optional bool enableWorkflowIdentity = 5;
+
+ // DeleteSubscriptionOnFinish determines whether to delete the GCP PubSub subscription once the event source is stopped.
+ // +optional
+ optional bool deleteSubscriptionOnFinish = 6;
+
+ // JSONBody specifies that all event body payload coming from this
+ // source will be JSON
+ // +optional
+ optional bool jsonBody = 7;
+}
+
+// RedisEventSource describes an event source for the Redis PubSub.
+// More info at https://godoc.org/github.com/go-redis/redis#example-PubSub
+message RedisEventSource {
+ // HostAddress refers to the address of the Redis host/server
+ optional string hostAddress = 1;
+
+ // Password required for authentication if any.
+ // +optional
+ optional k8s.io.api.core.v1.SecretKeySelector password = 2;
+
+ // Namespace to use to retrieve the password from. It should only be specified if password is declared
+ // +optional
+ optional string namespace = 3;
+
+ // DB to use. If not specified, default DB 0 will be used.
+ // +optional
+ optional int32 db = 4;
+
+ repeated string channels = 5;
+
+ // TLS configuration for the redis client.
+ // +optional
+ optional TLSConfig tls = 6;
+}
+
+// ResourceEventSource refers to a event-source for K8s resource related events.
+message ResourceEventSource {
+ // Namespace where resource is deployed
+ optional string namespace = 1;
+
+ // Filter is applied on the metadata of the resource
+ // If you apply filter, then the internal event informer will only monitor objects that pass the filter.
+ // +optional
+ optional ResourceFilter filter = 2;
+
+ // Group of the resource
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource groupVersionResource = 3;
+
+ // EventTypes is the list of event type to watch.
+ // Possible values are - ADD, UPDATE and DELETE.
+ repeated string eventTypes = 4;
+}
+
+// ResourceFilter contains K8 ObjectMeta information to further filter resource event objects
+message ResourceFilter {
+ // Prefix filter is applied on the resource name.
+ // +optional
+ optional string prefix = 1;
+
+ // Labels provide listing options to K8s API to watch resource/s.
+ // Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/label-selectors/ for more info.
+ // +optional
+ repeated Selector labels = 2;
+
+ // Fields provide listing options to K8s API to watch resource/s.
+ // Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/ for more info.
+ // +optional
+ repeated Selector fields = 3;
+
+ // If resource is created before the specified time then the event is treated as valid.
+ // +optional
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.Time createdBy = 4;
+
+ // If the resource is created after the start time then the event is treated as valid.
+ // +optional
+ optional bool afterStart = 5;
+}
+
+// SNSEventSource refers to event-source for AWS SNS related events
+message SNSEventSource {
+ // Webhook configuration for http server
+ optional WebhookContext webhook = 1;
+
+ // TopicArn
+ optional string topicArn = 2;
+
+ // AccessKey refers K8 secret containing aws access key
+ optional k8s.io.api.core.v1.SecretKeySelector accessKey = 3;
+
+ // SecretKey refers K8 secret containing aws secret key
+ optional k8s.io.api.core.v1.SecretKeySelector secretKey = 4;
+
+ // Namespace refers to Kubernetes namespace to read access related secret from.
+ // +optional
+ optional string namespace = 5;
+
+ // Region is AWS region
+ optional string region = 6;
+
+ // RoleARN is the Amazon Resource Name (ARN) of the role to assume.
+ // +optional
+ optional string roleARN = 7;
+}
+
+// SQSEventSource refers to event-source for AWS SQS related events
+message SQSEventSource {
+ // AccessKey refers K8 secret containing aws access key
+ optional k8s.io.api.core.v1.SecretKeySelector accessKey = 1;
+
+ // SecretKey refers K8 secret containing aws secret key
+ optional k8s.io.api.core.v1.SecretKeySelector secretKey = 2;
+
+ // Region is AWS region
+ optional string region = 3;
+
+ // Queue is AWS SQS queue to listen to for messages
+ optional string queue = 4;
+
+ // WaitTimeSeconds is The duration (in seconds) for which the call waits for a message to arrive
+ // in the queue before returning.
+ optional int64 waitTimeSeconds = 5;
+
+ // Namespace refers to Kubernetes namespace to read access related secret from.
+ // +optional
+ optional string namespace = 6;
+
+ // RoleARN is the Amazon Resource Name (ARN) of the role to assume.
+ // +optional
+ optional string roleARN = 7;
+
+ // JSONBody specifies that all event body payload coming from this
+ // source will be JSON
+ // +optional
+ optional bool jsonBody = 8;
+
+ // QueueAccountId is the ID of the account that created the queue to monitor
+ // +optional
+ optional string queueAccountId = 9;
+}
+
+// Selector represents conditional operation to select K8s objects.
+message Selector {
+ // Key name
+ optional string key = 1;
+
+ // Supported operations like ==, !=, <=, >= etc.
+ // Defaults to ==.
+ // Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors for more info.
+ // +optional
+ optional string operation = 2;
+
+ // Value
+ optional string value = 3;
+}
+
+// SlackEventSource refers to event-source for Slack related events
+message SlackEventSource {
+ // Slack App signing secret
+ optional k8s.io.api.core.v1.SecretKeySelector signingSecret = 1;
+
+ // Token for URL verification handshake
+ optional k8s.io.api.core.v1.SecretKeySelector token = 2;
+
+ // Webhook holds configuration for a REST endpoint
+ optional WebhookContext webhook = 3;
+
+ // Namespace refers to Kubernetes namespace which is used to retrieve token and signing secret from.
+ // +optional
+ optional string namespace = 4;
+}
+
+// StorageGridEventSource refers to event-source for StorageGrid related events
+message StorageGridEventSource {
+ // Webhook holds configuration for a REST endpoint
+ optional WebhookContext webhook = 1;
+
+ repeated string events = 2;
+
+ // Filter on object key which caused the notification.
+ optional StorageGridFilter filter = 3;
+
+ // TopicArn
+ optional string topicArn = 4;
+
+ // Name of the bucket to register notifications for.
+ optional string bucket = 5;
+
+ // S3 region.
+ // Defaults to us-east-1
+ // +optional
+ optional string region = 6;
+
+ // Auth token for storagegrid api
+ optional k8s.io.api.core.v1.SecretKeySelector authToken = 7;
+
+ // ApiURL is the url of the storagegrid api.
+ optional string apiURL = 8;
+}
+
+// Filter represents filters to apply to bucket notifications for specifying constraints on objects
+// +k8s:openapi-gen=true
+message StorageGridFilter {
+ optional string prefix = 1;
+
+ optional string suffix = 2;
+}
+
+// StripeEventSource describes the event source for stripe webhook notifications
+// More info at https://stripe.com/docs/webhooks
+message StripeEventSource {
+ // Webhook holds configuration for a REST endpoint
+ optional WebhookContext webhook = 1;
+
+ // CreateWebhook if specified creates a new webhook programmatically.
+ // +optional
+ optional bool createWebhook = 2;
+
+ // APIKey refers to K8s secret that holds Stripe API key. Used only if CreateWebhook is enabled.
+ // +optional
+ optional k8s.io.api.core.v1.SecretKeySelector apiKey = 3;
+
+ // Namespace to retrieve the APIKey secret from. Must be specified in order to read API key from APIKey K8s secret.
+ // +optional
+ optional string namespace = 4;
+
+ repeated string eventFilter = 5;
+}
+
+// TLSConfig refers to TLS configuration for a client.
+message TLSConfig {
+ // CACertPath refers the file path that contains the CA cert.
+ optional string caCertPath = 1;
+
+ // ClientCertPath refers the file path that contains client cert.
+ optional string clientCertPath = 2;
+
+ // ClientKeyPath refers the file path that contains client key.
+ optional string clientKeyPath = 3;
+}
+
+message WatchPathConfig {
+ // Directory to watch for events
+ optional string directory = 1;
+
+ // Path is relative path of object to watch with respect to the directory
+ optional string path = 2;
+
+ // PathRegexp is regexp of relative path of object to watch with respect to the directory
+ optional string pathRegexp = 3;
+}
+
+// WebhookContext holds a general purpose REST API context
+message WebhookContext {
+ // REST API endpoint
+ optional string endpoint = 1;
+
+ // Method is HTTP request method that indicates the desired action to be performed for a given resource.
+ // See RFC7231 Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
+ optional string method = 2;
+
+ // Port on which HTTP server is listening for incoming events.
+ optional string port = 3;
+
+ // URL is the url of the server.
+ optional string url = 4;
+
+ // ServerCertPath refers the file that contains the cert.
+ optional string serverCertPath = 5;
+
+ // ServerKeyPath refers the file that contains private key
+ optional string serverKeyPath = 6;
+}
+
diff --git a/pkg/apis/eventsource/v1alpha1/openapi_generated.go b/pkg/apis/eventsource/v1alpha1/openapi_generated.go
index 9e4b483b75..50c19ea518 100644
--- a/pkg/apis/eventsource/v1alpha1/openapi_generated.go
+++ b/pkg/apis/eventsource/v1alpha1/openapi_generated.go
@@ -58,6 +58,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridFilter": schema_pkg_apis_eventsource_v1alpha1_StorageGridFilter(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StripeEventSource": schema_pkg_apis_eventsource_v1alpha1_StripeEventSource(ref),
"github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.TLSConfig": schema_pkg_apis_eventsource_v1alpha1_TLSConfig(ref),
+ "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WatchPathConfig": schema_pkg_apis_eventsource_v1alpha1_WatchPathConfig(ref),
+ "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext": schema_pkg_apis_eventsource_v1alpha1_WebhookContext(ref),
}
}
@@ -99,7 +101,7 @@ func schema_pkg_apis_eventsource_v1alpha1_AMQPEventSource(ref common.ReferenceCa
"connectionBackoff": {
SchemaProps: spec.SchemaProps{
Description: "Backoff holds parameters applied to connection.",
- Ref: ref("github.com/argoproj/argo-events/common.Backoff"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
},
},
"jsonBody": {
@@ -120,7 +122,7 @@ func schema_pkg_apis_eventsource_v1alpha1_AMQPEventSource(ref common.ReferenceCa
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.TLSConfig"},
+ "github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.TLSConfig"},
}
}
@@ -165,7 +167,7 @@ func schema_pkg_apis_eventsource_v1alpha1_AzureEventsHubEventSource(ref common.R
},
},
},
- Required: []string{"fqdn", "sharedAccessKeyName", "sharedAccessKey", "hubName"},
+ Required: []string{"fqdn", "hubName"},
},
},
Dependencies: []string{
@@ -195,14 +197,8 @@ func schema_pkg_apis_eventsource_v1alpha1_CalendarEventSource(ref common.Referen
},
},
"exclusionDates": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "string",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "ExclusionDates defines the list of DATE-TIME exceptions for recurring events.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -284,7 +280,7 @@ func schema_pkg_apis_eventsource_v1alpha1_EmitterEventSource(ref common.Referenc
"connectionBackoff": {
SchemaProps: spec.SchemaProps{
Description: "Backoff holds parameters applied to connection.",
- Ref: ref("github.com/argoproj/argo-events/common.Backoff"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
},
},
"jsonBody": {
@@ -305,7 +301,7 @@ func schema_pkg_apis_eventsource_v1alpha1_EmitterEventSource(ref common.Referenc
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.TLSConfig", "k8s.io/api/core/v1.SecretKeySelector"},
+ "github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.TLSConfig", "k8s.io/api/core/v1.SecretKeySelector"},
}
}
@@ -381,11 +377,6 @@ func schema_pkg_apis_eventsource_v1alpha1_EventSourceList(ref common.ReferenceCa
},
},
"items": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "eventsource",
- },
- },
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
@@ -477,7 +468,7 @@ func schema_pkg_apis_eventsource_v1alpha1_EventSourceSpec(ref common.ReferenceCa
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
- Ref: ref("github.com/argoproj/argo-events/gateways/server/common/webhook.Context"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
},
},
},
@@ -735,19 +726,11 @@ func schema_pkg_apis_eventsource_v1alpha1_EventSourceSpec(ref common.ReferenceCa
},
},
},
- "type": {
- SchemaProps: spec.SchemaProps{
- Description: "Type of the event source",
- Type: []string{"string"},
- Format: "",
- },
- },
},
- Required: []string{"type"},
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/gateways/server/common/webhook.Context", "github.com/argoproj/argo-events/pkg/apis/common.S3Artifact", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AzureEventsHubEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.CalendarEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EmitterEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.FileEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GenericEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GithubEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GitlabEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.HDFSEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.KafkaEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.MQTTEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NATSEventsSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NSQEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.PubSubEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.RedisEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ResourceEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SNSEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SQSEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SlackEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StripeEventSource"},
+ "github.com/argoproj/argo-events/pkg/apis/common.S3Artifact", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AMQPEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.AzureEventsHubEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.CalendarEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.EmitterEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.FileEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GenericEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GithubEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.GitlabEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.HDFSEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.KafkaEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.MQTTEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NATSEventsSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.NSQEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.PubSubEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.RedisEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.ResourceEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SNSEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SQSEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.SlackEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StripeEventSource", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"},
}
}
@@ -788,7 +771,7 @@ func schema_pkg_apis_eventsource_v1alpha1_FileEventSource(ref common.ReferenceCa
"watchPathConfig": {
SchemaProps: spec.SchemaProps{
Description: "WatchPathConfig contains configuration about the file path to watch",
- Ref: ref("github.com/argoproj/argo-events/gateways/server/common/fsevent.WatchPathConfig"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WatchPathConfig"),
},
},
"polling": {
@@ -803,7 +786,7 @@ func schema_pkg_apis_eventsource_v1alpha1_FileEventSource(ref common.ReferenceCa
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/gateways/server/common/fsevent.WatchPathConfig"},
+ "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WatchPathConfig"},
}
}
@@ -845,7 +828,7 @@ func schema_pkg_apis_eventsource_v1alpha1_GithubEventSource(ref common.Reference
"webhook": {
SchemaProps: spec.SchemaProps{
Description: "Webhook refers to the configuration required to run a http server",
- Ref: ref("github.com/argoproj/argo-events/gateways/server/common/webhook.Context"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
},
},
"owner": {
@@ -863,14 +846,8 @@ func schema_pkg_apis_eventsource_v1alpha1_GithubEventSource(ref common.Reference
},
},
"events": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "string",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Events refer to Github events to subscribe to which the gateway will subscribe",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -943,11 +920,11 @@ func schema_pkg_apis_eventsource_v1alpha1_GithubEventSource(ref common.Reference
},
},
},
- Required: []string{"id", "webhook", "owner", "repository", "events", "apiToken"},
+ Required: []string{"id", "owner", "repository", "events"},
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/gateways/server/common/webhook.Context", "k8s.io/api/core/v1.SecretKeySelector"},
+ "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext", "k8s.io/api/core/v1.SecretKeySelector"},
}
}
@@ -961,7 +938,7 @@ func schema_pkg_apis_eventsource_v1alpha1_GitlabEventSource(ref common.Reference
"webhook": {
SchemaProps: spec.SchemaProps{
Description: "Webhook holds configuration to run a http server",
- Ref: ref("github.com/argoproj/argo-events/gateways/server/common/webhook.Context"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
},
},
"projectID": {
@@ -1013,11 +990,11 @@ func schema_pkg_apis_eventsource_v1alpha1_GitlabEventSource(ref common.Reference
},
},
},
- Required: []string{"webhook", "projectID", "events", "accessToken", "gitlabBaseURL"},
+ Required: []string{"projectID", "events", "gitlabBaseURL"},
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/gateways/server/common/webhook.Context", "k8s.io/api/core/v1.SecretKeySelector"},
+ "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext", "k8s.io/api/core/v1.SecretKeySelector"},
}
}
@@ -1064,14 +1041,8 @@ func schema_pkg_apis_eventsource_v1alpha1_HDFSEventSource(ref common.ReferenceCa
},
},
"addresses": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "string",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Addresses is accessible addresses of HDFS name nodes",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1175,7 +1146,7 @@ func schema_pkg_apis_eventsource_v1alpha1_KafkaEventSource(ref common.ReferenceC
"connectionBackoff": {
SchemaProps: spec.SchemaProps{
Description: "Backoff holds parameters applied to connection.",
- Ref: ref("github.com/argoproj/argo-events/common.Backoff"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
},
},
"tls": {
@@ -1189,7 +1160,7 @@ func schema_pkg_apis_eventsource_v1alpha1_KafkaEventSource(ref common.ReferenceC
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.TLSConfig"},
+ "github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.TLSConfig"},
}
}
@@ -1224,7 +1195,7 @@ func schema_pkg_apis_eventsource_v1alpha1_MQTTEventSource(ref common.ReferenceCa
"connectionBackoff": {
SchemaProps: spec.SchemaProps{
Description: "ConnectionBackoff holds backoff applied to connection.",
- Ref: ref("github.com/argoproj/argo-events/common.Backoff"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
},
},
"jsonBody": {
@@ -1245,7 +1216,7 @@ func schema_pkg_apis_eventsource_v1alpha1_MQTTEventSource(ref common.ReferenceCa
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.TLSConfig"},
+ "github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.TLSConfig"},
}
}
@@ -1273,7 +1244,7 @@ func schema_pkg_apis_eventsource_v1alpha1_NATSEventsSource(ref common.ReferenceC
"connectionBackoff": {
SchemaProps: spec.SchemaProps{
Description: "ConnectionBackoff holds backoff applied to connection.",
- Ref: ref("github.com/argoproj/argo-events/common.Backoff"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
},
},
"jsonBody": {
@@ -1294,7 +1265,7 @@ func schema_pkg_apis_eventsource_v1alpha1_NATSEventsSource(ref common.ReferenceC
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.TLSConfig"},
+ "github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.TLSConfig"},
}
}
@@ -1329,7 +1300,7 @@ func schema_pkg_apis_eventsource_v1alpha1_NSQEventSource(ref common.ReferenceCal
"connectionBackoff": {
SchemaProps: spec.SchemaProps{
Description: "Backoff holds parameters applied to connection.",
- Ref: ref("github.com/argoproj/argo-events/common.Backoff"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
},
},
"jsonBody": {
@@ -1350,7 +1321,7 @@ func schema_pkg_apis_eventsource_v1alpha1_NSQEventSource(ref common.ReferenceCal
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.TLSConfig"},
+ "github.com/argoproj/argo-events/pkg/apis/common.Backoff", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.TLSConfig"},
}
}
@@ -1391,7 +1362,7 @@ func schema_pkg_apis_eventsource_v1alpha1_PubSubEventSource(ref common.Reference
},
"enableWorkflowIdentity": {
SchemaProps: spec.SchemaProps{
- Description: "EnableWorkflowIdentity determines if your project authenticates to GCP with WorkflowIdentity or CredentialsFile. If true, authentication is done with WorkflowIdentity. If false or omited, authentication is done with CredentialsFile.",
+ Description: "EnableWorkflowIdentity determines if your project authenticates to GCP with WorkflowIdentity or CredentialsFile. If true, authentication is done with WorkflowIdentity. If false or omitted, authentication is done with CredentialsFile.",
Type: []string{"boolean"},
Format: "",
},
@@ -1452,14 +1423,8 @@ func schema_pkg_apis_eventsource_v1alpha1_RedisEventSource(ref common.ReferenceC
},
},
"channels": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "string",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Channels to subscribe to listen events.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1617,7 +1582,7 @@ func schema_pkg_apis_eventsource_v1alpha1_SNSEventSource(ref common.ReferenceCal
"webhook": {
SchemaProps: spec.SchemaProps{
Description: "Webhook configuration for http server",
- Ref: ref("github.com/argoproj/argo-events/gateways/server/common/webhook.Context"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
},
},
"topicArn": {
@@ -1661,11 +1626,11 @@ func schema_pkg_apis_eventsource_v1alpha1_SNSEventSource(ref common.ReferenceCal
},
},
},
- Required: []string{"webhook", "topicArn", "region"},
+ Required: []string{"topicArn", "region"},
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/gateways/server/common/webhook.Context", "k8s.io/api/core/v1.SecretKeySelector"},
+ "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext", "k8s.io/api/core/v1.SecretKeySelector"},
}
}
@@ -1803,7 +1768,7 @@ func schema_pkg_apis_eventsource_v1alpha1_SlackEventSource(ref common.ReferenceC
"webhook": {
SchemaProps: spec.SchemaProps{
Description: "Webhook holds configuration for a REST endpoint",
- Ref: ref("github.com/argoproj/argo-events/gateways/server/common/webhook.Context"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
},
},
"namespace": {
@@ -1814,11 +1779,10 @@ func schema_pkg_apis_eventsource_v1alpha1_SlackEventSource(ref common.ReferenceC
},
},
},
- Required: []string{"webhook"},
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/gateways/server/common/webhook.Context", "k8s.io/api/core/v1.SecretKeySelector"},
+ "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext", "k8s.io/api/core/v1.SecretKeySelector"},
}
}
@@ -1832,18 +1796,12 @@ func schema_pkg_apis_eventsource_v1alpha1_StorageGridEventSource(ref common.Refe
"webhook": {
SchemaProps: spec.SchemaProps{
Description: "Webhook holds configuration for a REST endpoint",
- Ref: ref("github.com/argoproj/argo-events/gateways/server/common/webhook.Context"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
},
},
"events": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "string",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Events are s3 bucket notification events. For more information on s3 notifications, follow https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations Note that storage grid notifications do not contain `s3:`",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1895,11 +1853,11 @@ func schema_pkg_apis_eventsource_v1alpha1_StorageGridEventSource(ref common.Refe
},
},
},
- Required: []string{"webhook", "topicArn", "bucket", "authToken", "apiURL"},
+ Required: []string{"topicArn", "bucket", "authToken", "apiURL"},
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/gateways/server/common/webhook.Context", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridFilter", "k8s.io/api/core/v1.SecretKeySelector"},
+ "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.StorageGridFilter", "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext", "k8s.io/api/core/v1.SecretKeySelector"},
}
}
@@ -1939,7 +1897,7 @@ func schema_pkg_apis_eventsource_v1alpha1_StripeEventSource(ref common.Reference
"webhook": {
SchemaProps: spec.SchemaProps{
Description: "Webhook holds configuration for a REST endpoint",
- Ref: ref("github.com/argoproj/argo-events/gateways/server/common/webhook.Context"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext"),
},
},
"createWebhook": {
@@ -1963,14 +1921,8 @@ func schema_pkg_apis_eventsource_v1alpha1_StripeEventSource(ref common.Reference
},
},
"eventFilter": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "string",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "EventFilter describes the type of events to listen to. If not specified, all types of events will be processed. More info at https://stripe.com/docs/api/events/list",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1982,11 +1934,10 @@ func schema_pkg_apis_eventsource_v1alpha1_StripeEventSource(ref common.Reference
},
},
},
- Required: []string{"webhook"},
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/gateways/server/common/webhook.Context", "k8s.io/api/core/v1.SecretKeySelector"},
+ "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1.WebhookContext", "k8s.io/api/core/v1.SecretKeySelector"},
}
}
@@ -2024,3 +1975,93 @@ func schema_pkg_apis_eventsource_v1alpha1_TLSConfig(ref common.ReferenceCallback
},
}
}
+
+func schema_pkg_apis_eventsource_v1alpha1_WatchPathConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
+ return common.OpenAPIDefinition{
+ Schema: spec.Schema{
+ SchemaProps: spec.SchemaProps{
+ Type: []string{"object"},
+ Properties: map[string]spec.Schema{
+ "directory": {
+ SchemaProps: spec.SchemaProps{
+ Description: "Directory to watch for events",
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
+ "path": {
+ SchemaProps: spec.SchemaProps{
+ Description: "Path is relative path of object to watch with respect to the directory",
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
+ "pathRegexp": {
+ SchemaProps: spec.SchemaProps{
+ Description: "PathRegexp is regexp of relative path of object to watch with respect to the directory",
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
+ },
+ Required: []string{"directory"},
+ },
+ },
+ }
+}
+
+func schema_pkg_apis_eventsource_v1alpha1_WebhookContext(ref common.ReferenceCallback) common.OpenAPIDefinition {
+ return common.OpenAPIDefinition{
+ Schema: spec.Schema{
+ SchemaProps: spec.SchemaProps{
+ Description: "WebhookContext holds a general purpose REST API context",
+ Type: []string{"object"},
+ Properties: map[string]spec.Schema{
+ "endpoint": {
+ SchemaProps: spec.SchemaProps{
+ Description: "REST API endpoint",
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
+ "method": {
+ SchemaProps: spec.SchemaProps{
+ Description: "Method is HTTP request method that indicates the desired action to be performed for a given resource. See RFC7231 Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content",
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
+ "port": {
+ SchemaProps: spec.SchemaProps{
+ Description: "Port on which HTTP server is listening for incoming events.",
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
+ "url": {
+ SchemaProps: spec.SchemaProps{
+ Description: "URL is the url of the server.",
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
+ "serverCertPath": {
+ SchemaProps: spec.SchemaProps{
+ Description: "ServerCertPath refers the file that contains the cert.",
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
+ "serverKeyPath": {
+ SchemaProps: spec.SchemaProps{
+ Description: "ServerKeyPath refers the file that contains private key",
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
+ },
+ Required: []string{"endpoint", "method", "port", "url"},
+ },
+ },
+ }
+}
diff --git a/pkg/apis/eventsource/v1alpha1/types.go b/pkg/apis/eventsource/v1alpha1/types.go
index 49674efdf7..e78341647a 100644
--- a/pkg/apis/eventsource/v1alpha1/types.go
+++ b/pkg/apis/eventsource/v1alpha1/types.go
@@ -18,23 +18,22 @@ package v1alpha1
import (
"encoding/json"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/gateways/server/common/fsevent"
- "github.com/argoproj/argo-events/gateways/server/common/webhook"
- apicommon "github.com/argoproj/argo-events/pkg/apis/common"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
+ apicommon "github.com/argoproj/argo-events/pkg/apis/common"
)
// EventSource is the definition of a eventsource resource
// +genclient
+// +kubebuilder:resource:shortName=es
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
type EventSource struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
Status EventSourceStatus `json:"status" protobuf:"bytes,2,opt,name=status"`
- Spec *EventSourceSpec `json:"spec" protobuf:"bytes,3,opt,name=spec"`
+ Spec EventSourceSpec `json:"spec" protobuf:"bytes,3,opt,name=spec"`
}
// EventSourceList is the list of eventsource resources
@@ -42,89 +41,87 @@ type EventSource struct {
type EventSourceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
- // +listType=eventsource
- Items []EventSource `json:"items" protobuf:"bytes,2,opt,name=items"`
+
+ Items []EventSource `json:"items" protobuf:"bytes,2,rep,name=items"`
}
// EventSourceSpec refers to specification of event-source resource
type EventSourceSpec struct {
// Minio event sources
- Minio map[string]apicommon.S3Artifact `json:"minio,omitempty" protobuf:"bytes,1,opt,name=minio"`
+ Minio map[string]apicommon.S3Artifact `json:"minio,omitempty" protobuf:"bytes,1,rep,name=minio"`
// Calendar event sources
- Calendar map[string]CalendarEventSource `json:"calendar,omitempty" protobuf:"bytes,2,opt,name=calendar"`
+ Calendar map[string]CalendarEventSource `json:"calendar,omitempty" protobuf:"bytes,2,rep,name=calendar"`
// File event sources
- File map[string]FileEventSource `json:"file,omitempty" protobuf:"bytes,3,opt,name=file"`
+ File map[string]FileEventSource `json:"file,omitempty" protobuf:"bytes,3,rep,name=file"`
// Resource event sources
- Resource map[string]ResourceEventSource `json:"resource,omitempty" protobuf:"bytes,4,opt,name=resource"`
+ Resource map[string]ResourceEventSource `json:"resource,omitempty" protobuf:"bytes,4,rep,name=resource"`
// Webhook event sources
- Webhook map[string]webhook.Context `json:"webhook,omitempty" protobuf:"bytes,5,opt,name=webhook"`
+ Webhook map[string]WebhookContext `json:"webhook,omitempty" protobuf:"bytes,5,rep,name=webhook"`
// AMQP event sources
- AMQP map[string]AMQPEventSource `json:"amqp,omitempty" protobuf:"bytes,6,opt,name=amqp"`
+ AMQP map[string]AMQPEventSource `json:"amqp,omitempty" protobuf:"bytes,6,rep,name=amqp"`
// Kafka event sources
- Kafka map[string]KafkaEventSource `json:"kafka,omitempty" protobuf:"bytes,7,opt,name=kafka"`
+ Kafka map[string]KafkaEventSource `json:"kafka,omitempty" protobuf:"bytes,7,rep,name=kafka"`
// MQTT event sources
- MQTT map[string]MQTTEventSource `json:"mqtt,omitempty" protobuf:"bytes,8,opt,name=mqtt"`
+ MQTT map[string]MQTTEventSource `json:"mqtt,omitempty" protobuf:"bytes,8,rep,name=mqtt"`
// NATS event sources
- NATS map[string]NATSEventsSource `json:"nats,omitempty" protobuf:"bytes,9,opt,name=nats"`
+ NATS map[string]NATSEventsSource `json:"nats,omitempty" protobuf:"bytes,9,rep,name=nats"`
// SNS event sources
- SNS map[string]SNSEventSource `json:"sns,omitempty" protobuf:"bytes,10,opt,name=sns"`
+ SNS map[string]SNSEventSource `json:"sns,omitempty" protobuf:"bytes,10,rep,name=sns"`
// SQS event sources
- SQS map[string]SQSEventSource `json:"sqs,omitempty" protobuf:"bytes,11,opt,name=sqs"`
+ SQS map[string]SQSEventSource `json:"sqs,omitempty" protobuf:"bytes,11,rep,name=sqs"`
// PubSub eevnt sources
- PubSub map[string]PubSubEventSource `json:"pubSub,omitempty" protobuf:"bytes,12,opt,name=pubSub"`
+ PubSub map[string]PubSubEventSource `json:"pubSub,omitempty" protobuf:"bytes,12,rep,name=pubSub"`
// Github event sources
- Github map[string]GithubEventSource `json:"github,omitempty" protobuf:"bytes,13,opt,name=github"`
+ Github map[string]GithubEventSource `json:"github,omitempty" protobuf:"bytes,13,rep,name=github"`
// Gitlab event sources
- Gitlab map[string]GitlabEventSource `json:"gitlab,omitempty" protobuf:"bytes,14,opt,name=gitlab"`
+ Gitlab map[string]GitlabEventSource `json:"gitlab,omitempty" protobuf:"bytes,14,rep,name=gitlab"`
// HDFS event sources
- HDFS map[string]HDFSEventSource `json:"hdfs,omitempty" protobuf:"bytes,15,opt,name=hdfs"`
+ HDFS map[string]HDFSEventSource `json:"hdfs,omitempty" protobuf:"bytes,15,rep,name=hdfs"`
// Slack event sources
- Slack map[string]SlackEventSource `json:"slack,omitempty" protobuf:"bytes,16,opt,name=slack"`
+ Slack map[string]SlackEventSource `json:"slack,omitempty" protobuf:"bytes,16,rep,name=slack"`
// StorageGrid event sources
- StorageGrid map[string]StorageGridEventSource `json:"storageGrid,omitempty" protobuf:"bytes,17,opt,name=storageGrid"`
+ StorageGrid map[string]StorageGridEventSource `json:"storageGrid,omitempty" protobuf:"bytes,17,rep,name=storageGrid"`
// AzureEventsHub event sources
- AzureEventsHub map[string]AzureEventsHubEventSource `json:"azureEventsHub,omitempty" protobuf:"bytes,18,opt,name=azureEventsHub"`
+ AzureEventsHub map[string]AzureEventsHubEventSource `json:"azureEventsHub,omitempty" protobuf:"bytes,18,rep,name=azureEventsHub"`
// Stripe event sources
- Stripe map[string]StripeEventSource `json:"stripe,omitempty" protobuf:"bytes,19,opt,name=stripe"`
+ Stripe map[string]StripeEventSource `json:"stripe,omitempty" protobuf:"bytes,19,rep,name=stripe"`
// Emitter event source
- Emitter map[string]EmitterEventSource `json:"emitter,omitempty" protobuf:"bytes,20,opt,name=emitter"`
+ Emitter map[string]EmitterEventSource `json:"emitter,omitempty" protobuf:"bytes,20,rep,name=emitter"`
// Redis event source
- Redis map[string]RedisEventSource `json:"redis,omitempty" protobuf:"bytes,21,opt,name=redis"`
+ Redis map[string]RedisEventSource `json:"redis,omitempty" protobuf:"bytes,21,rep,name=redis"`
// NSQ event source
- NSQ map[string]NSQEventSource `json:"nsq,omitempty" protobuf:"bytes,22,opt,name=nsq"`
+ NSQ map[string]NSQEventSource `json:"nsq,omitempty" protobuf:"bytes,22,rep,name=nsq"`
// Generic event source
- Generic map[string]GenericEventSource `json:"generic,omitempty" protobuf:"bytes,23,opt,name=generic"`
- // Type of the event source
- Type apicommon.EventSourceType `json:"type" protobuf:"bytes,24,name=type"`
+ Generic map[string]GenericEventSource `json:"generic,omitempty" protobuf:"bytes,23,rep,name=generic"`
}
// CalendarEventSource describes a time based dependency. One of the fields (schedule, interval, or recurrence) must be passed.
// Schedule takes precedence over interval; interval takes precedence over recurrence
type CalendarEventSource struct {
// Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron
- Schedule string `json:"schedule" protobuf:"bytes,1,name=schedule"`
+ Schedule string `json:"schedule" protobuf:"bytes,1,opt,name=schedule"`
// Interval is a string that describes an interval duration, e.g. 1s, 30m, 2h...
- Interval string `json:"interval" protobuf:"bytes,2,name=interval"`
+ Interval string `json:"interval" protobuf:"bytes,2,opt,name=interval"`
// ExclusionDates defines the list of DATE-TIME exceptions for recurring events.
- // +listType=string
- ExclusionDates []string `json:"exclusionDates,omitempty" protobuf:"bytes,3,opt,name=exclusionDates"`
+
+ ExclusionDates []string `json:"exclusionDates,omitempty" protobuf:"bytes,3,rep,name=exclusionDates"`
// Timezone in which to run the schedule
// +optional
Timezone string `json:"timezone,omitempty" protobuf:"bytes,4,opt,name=timezone"`
// UserPayload will be sent to sensor as extra data once the event is triggered
// +optional
- UserPayload *json.RawMessage `json:"userPayload,omitempty" protobuf:"bytes,5,opt,name=userPayload"`
+ UserPayload json.RawMessage `json:"userPayload,omitempty" protobuf:"bytes,5,opt,name=userPayload,casttype=encoding/json.RawMessage"`
}
// FileEventSource describes an event-source for file related events.
type FileEventSource struct {
// Type of file operations to watch
// Refer https://github.com/fsnotify/fsnotify/blob/master/fsnotify.go for more information
- EventType string `json:"eventType" protobuf:"bytes,1,name=eventType"`
+ EventType string `json:"eventType" protobuf:"bytes,1,opt,name=eventType"`
// WatchPathConfig contains configuration about the file path to watch
- WatchPathConfig fsevent.WatchPathConfig `json:"watchPathConfig" protobuf:"bytes,2,name=watchPathConfig"`
+ WatchPathConfig WatchPathConfig `json:"watchPathConfig" protobuf:"bytes,2,opt,name=watchPathConfig"`
// Use polling instead of inotify
- Polling bool `json:"polling,omitempty" protobuf:"bytes,3,opt,name=polling"`
+ Polling bool `json:"polling,omitempty" protobuf:"varint,3,opt,name=polling"`
}
// ResourceEventType is the type of event for the K8s resource mutation
@@ -140,16 +137,16 @@ const (
// ResourceEventSource refers to a event-source for K8s resource related events.
type ResourceEventSource struct {
// Namespace where resource is deployed
- Namespace string `json:"namespace" protobuf:"bytes,1,name=namespace"`
+ Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"`
// Filter is applied on the metadata of the resource
// If you apply filter, then the internal event informer will only monitor objects that pass the filter.
// +optional
Filter *ResourceFilter `json:"filter,omitempty" protobuf:"bytes,2,opt,name=filter"`
// Group of the resource
- metav1.GroupVersionResource `json:",inline"`
+ metav1.GroupVersionResource `json:",inline" protobuf:"bytes,3,opt,name=groupVersionResource"`
// EventTypes is the list of event type to watch.
// Possible values are - ADD, UPDATE and DELETE.
- EventTypes []ResourceEventType `json:"eventTypes" protobuf:"bytes,3,name=eventTypes"`
+ EventTypes []ResourceEventType `json:"eventTypes" protobuf:"bytes,4,rep,name=eventTypes,casttype=ResourceEventType"`
}
// ResourceFilter contains K8 ObjectMeta information to further filter resource event objects
@@ -160,50 +157,50 @@ type ResourceFilter struct {
// Labels provide listing options to K8s API to watch resource/s.
// Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/label-selectors/ for more info.
// +optional
- Labels []Selector `json:"labels,omitempty" protobuf:"bytes,2,opt,name=labels"`
+ Labels []Selector `json:"labels,omitempty" protobuf:"bytes,2,rep,name=labels"`
// Fields provide listing options to K8s API to watch resource/s.
// Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/ for more info.
// +optional
- Fields []Selector `json:"fields,omitempty" protobuf:"bytes,3,opt,name=fields"`
+ Fields []Selector `json:"fields,omitempty" protobuf:"bytes,3,rep,name=fields"`
// If resource is created before the specified time then the event is treated as valid.
// +optional
CreatedBy metav1.Time `json:"createdBy,omitempty" protobuf:"bytes,4,opt,name=createdBy"`
// If the resource is created after the start time then the event is treated as valid.
// +optional
- AfterStart bool `json:"afterStart,omitempty" protobuf:"bytes,5,opt,name=afterStart"`
+ AfterStart bool `json:"afterStart,omitempty" protobuf:"varint,5,opt,name=afterStart"`
}
// Selector represents conditional operation to select K8s objects.
type Selector struct {
// Key name
- Key string `json:"key" protobuf:"bytes,1,name=key"`
+ Key string `json:"key" protobuf:"bytes,1,opt,name=key"`
// Supported operations like ==, !=, <=, >= etc.
// Defaults to ==.
// Refer https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors for more info.
// +optional
Operation string `json:"operation,omitempty" protobuf:"bytes,2,opt,name=operation"`
// Value
- Value string `json:"value" protobuf:"bytes,3,name=value"`
+ Value string `json:"value" protobuf:"bytes,3,opt,name=value"`
}
// AMQPEventSource refers to an event-source for AMQP stream events
type AMQPEventSource struct {
// URL for rabbitmq service
- URL string `json:"url" protobuf:"bytes,1,name=url"`
+ URL string `json:"url" protobuf:"bytes,1,opt,name=url"`
// ExchangeName is the exchange name
// For more information, visit https://www.rabbitmq.com/tutorials/amqp-concepts.html
- ExchangeName string `json:"exchangeName" protobuf:"bytes,2,name=exchangeName"`
+ ExchangeName string `json:"exchangeName" protobuf:"bytes,2,opt,name=exchangeName"`
// ExchangeType is rabbitmq exchange type
- ExchangeType string `json:"exchangeType" protobuf:"bytes,3,name=exchangeType"`
+ ExchangeType string `json:"exchangeType" protobuf:"bytes,3,opt,name=exchangeType"`
// Routing key for bindings
- RoutingKey string `json:"routingKey" protobuf:"bytes,4,name=routingKey"`
+ RoutingKey string `json:"routingKey" protobuf:"bytes,4,opt,name=routingKey"`
// Backoff holds parameters applied to connection.
// +optional
- ConnectionBackoff *common.Backoff `json:"connectionBackoff,omitempty" protobuf:"bytes,5,opt,name=connectionBackoff"`
+ ConnectionBackoff *apicommon.Backoff `json:"connectionBackoff,omitempty" protobuf:"bytes,5,opt,name=connectionBackoff"`
// JSONBody specifies that all event body payload coming from this
// source will be JSON
// +optional
- JSONBody bool `json:"jsonBody,omitempty" protobuf:"bytes,6,opt,name=jsonBody"`
+ JSONBody bool `json:"jsonBody,omitempty" protobuf:"varint,6,opt,name=jsonBody"`
// TLS configuration for the amqp client.
// +optional
TLS *TLSConfig `json:"tls,omitempty" protobuf:"bytes,7,opt,name=tls"`
@@ -212,13 +209,13 @@ type AMQPEventSource struct {
// KafkaEventSource refers to event-source for Kafka related events
type KafkaEventSource struct {
// URL to kafka cluster
- URL string `json:"url" protobuf:"bytes,1,name=url"`
+ URL string `json:"url" protobuf:"bytes,1,opt,name=url"`
// Partition name
- Partition string `json:"partition" protobuf:"bytes,2,name=partition"`
+ Partition string `json:"partition" protobuf:"bytes,2,opt,name=partition"`
// Topic name
- Topic string `json:"topic" protobuf:"bytes,3,name=topic"`
+ Topic string `json:"topic" protobuf:"bytes,3,opt,name=topic"`
// Backoff holds parameters applied to connection.
- ConnectionBackoff *common.Backoff `json:"connectionBackoff,omitempty" protobuf:"bytes,4,opt,name=connectionBackoff"`
+ ConnectionBackoff *apicommon.Backoff `json:"connectionBackoff,omitempty" protobuf:"bytes,4,opt,name=connectionBackoff"`
// TLS configuration for the kafka client.
// +optional
TLS *TLSConfig `json:"tls,omitempty" protobuf:"bytes,5,opt,name=tls"`
@@ -227,17 +224,17 @@ type KafkaEventSource struct {
// MQTTEventSource refers to event-source for MQTT related events
type MQTTEventSource struct {
// URL to connect to broker
- URL string `json:"url" protobuf:"bytes,1,name=url"`
+ URL string `json:"url" protobuf:"bytes,1,opt,name=url"`
// Topic name
- Topic string `json:"topic" protobuf:"bytes,2,name=topic"`
+ Topic string `json:"topic" protobuf:"bytes,2,opt,name=topic"`
// ClientID is the id of the client
- ClientId string `json:"clientId" protobuf:"bytes,3,name=clientId"`
+ ClientId string `json:"clientId" protobuf:"bytes,3,opt,name=clientId"`
// ConnectionBackoff holds backoff applied to connection.
- ConnectionBackoff *common.Backoff `json:"connectionBackoff,omitempty" protobuf:"bytes,4,opt,name=connectionBackoff"`
+ ConnectionBackoff *apicommon.Backoff `json:"connectionBackoff,omitempty" protobuf:"bytes,4,opt,name=connectionBackoff"`
// JSONBody specifies that all event body payload coming from this
// source will be JSON
// +optional
- JSONBody bool `json:"jsonBody,omitempty" protobuf:"bytes,5,opt,name=jsonBody"`
+ JSONBody bool `json:"jsonBody,omitempty" protobuf:"varint,5,opt,name=jsonBody"`
// TLS configuration for the mqtt client.
// +optional
TLS *TLSConfig `json:"tls,omitempty" protobuf:"bytes,6,opt,name=tls"`
@@ -246,15 +243,15 @@ type MQTTEventSource struct {
// NATSEventSource refers to event-source for NATS related events
type NATSEventsSource struct {
// URL to connect to NATS cluster
- URL string `json:"url" protobuf:"bytes,1,name=url"`
+ URL string `json:"url" protobuf:"bytes,1,opt,name=url"`
// Subject holds the name of the subject onto which messages are published
- Subject string `json:"subject" protobuf:"bytes,2,name=2"`
+ Subject string `json:"subject" protobuf:"bytes,2,opt,name=subject"`
// ConnectionBackoff holds backoff applied to connection.
- ConnectionBackoff *common.Backoff `json:"connectionBackoff,omitempty" protobuf:"bytes,3,opt,name=connectionBackoff"`
+ ConnectionBackoff *apicommon.Backoff `json:"connectionBackoff,omitempty" protobuf:"bytes,3,opt,name=connectionBackoff"`
// JSONBody specifies that all event body payload coming from this
// source will be JSON
// +optional
- JSONBody bool `json:"jsonBody,omitempty" protobuf:"bytes,4,opt,name=jsonBody"`
+ JSONBody bool `json:"jsonBody,omitempty" protobuf:"varint,4,opt,name=jsonBody"`
// TLS configuration for the nats client.
// +optional
TLS *TLSConfig `json:"tls,omitempty" protobuf:"bytes,5,opt,name=tls"`
@@ -263,9 +260,9 @@ type NATSEventsSource struct {
// SNSEventSource refers to event-source for AWS SNS related events
type SNSEventSource struct {
// Webhook configuration for http server
- Webhook *webhook.Context `json:"webhook" protobuf:"bytes,1,name=webhook"`
+ Webhook *WebhookContext `json:"webhook,omitempty" protobuf:"bytes,1,opt,name=webhook"`
// TopicArn
- TopicArn string `json:"topicArn" protobuf:"bytes,2,name=topicArn"`
+ TopicArn string `json:"topicArn" protobuf:"bytes,2,opt,name=topicArn"`
// AccessKey refers K8 secret containing aws access key
AccessKey *corev1.SecretKeySelector `json:"accessKey,omitempty" protobuf:"bytes,3,opt,name=accessKey"`
// SecretKey refers K8 secret containing aws secret key
@@ -274,10 +271,10 @@ type SNSEventSource struct {
// +optional
Namespace string `json:"namespace,omitempty" protobuf:"bytes,5,opt,name=namespace"`
// Region is AWS region
- Region string `json:"region" protobuf:"bytes,6,name=region"`
+ Region string `json:"region" protobuf:"bytes,6,opt,name=region"`
// RoleARN is the Amazon Resource Name (ARN) of the role to assume.
// +optional
- RoleARN string `json:"roleARN,omitempty" protobuf:"bytes,6,opt,name=roleARN"`
+ RoleARN string `json:"roleARN,omitempty" protobuf:"bytes,7,opt,name=roleARN"`
}
// SQSEventSource refers to event-source for AWS SQS related events
@@ -285,14 +282,14 @@ type SQSEventSource struct {
// AccessKey refers K8 secret containing aws access key
AccessKey *corev1.SecretKeySelector `json:"accessKey,omitempty" protobuf:"bytes,1,opt,name=accessKey"`
// SecretKey refers K8 secret containing aws secret key
- SecretKey *corev1.SecretKeySelector `json:"secretKey,omitempty" protobuf:"bytes,2,opt,name=accessKey"`
+ SecretKey *corev1.SecretKeySelector `json:"secretKey,omitempty" protobuf:"bytes,2,opt,name=secretKey"`
// Region is AWS region
- Region string `json:"region" protobuf:"bytes,3,name=region"`
+ Region string `json:"region" protobuf:"bytes,3,opt,name=region"`
// Queue is AWS SQS queue to listen to for messages
- Queue string `json:"queue" protobuf:"bytes,4,name=queue"`
+ Queue string `json:"queue" protobuf:"bytes,4,opt,name=queue"`
// WaitTimeSeconds is The duration (in seconds) for which the call waits for a message to arrive
// in the queue before returning.
- WaitTimeSeconds int64 `json:"waitTimeSeconds" protobuf:"bytes,5,name=waitTimeSeconds"`
+ WaitTimeSeconds int64 `json:"waitTimeSeconds" protobuf:"varint,5,opt,name=waitTimeSeconds"`
// Namespace refers to Kubernetes namespace to read access related secret from.
// +optional
Namespace string `json:"namespace,omitempty" protobuf:"bytes,6,opt,name=namespace"`
@@ -302,7 +299,7 @@ type SQSEventSource struct {
// JSONBody specifies that all event body payload coming from this
// source will be JSON
// +optional
- JSONBody bool `json:"jsonBody,omitempty" protobuf:"bytes,8,opt,name=jsonBody"`
+ JSONBody bool `json:"jsonBody,omitempty" protobuf:"varint,8,opt,name=jsonBody"`
// QueueAccountId is the ID of the account that created the queue to monitor
// +optional
QueueAccountId string `json:"queueAccountId,omitempty" protobuf:"bytes,9,opt,name=queueAccountId"`
@@ -311,52 +308,52 @@ type SQSEventSource struct {
// PubSubEventSource refers to event-source for GCP PubSub related events.
type PubSubEventSource struct {
// ProjectID is the unique identifier for your project on GCP
- ProjectID string `json:"projectID" protobuf:"bytes,1,name=projectID"`
+ ProjectID string `json:"projectID" protobuf:"bytes,1,opt,name=projectID"`
// TopicProjectID identifies the project where the topic should exist or be created
// (assumed to be the same as ProjectID by default)
- TopicProjectID string `json:"topicProjectID" protobuf:"bytes,2,name=topicProjectID"`
+ TopicProjectID string `json:"topicProjectID" protobuf:"bytes,2,opt,name=topicProjectID"`
// Topic on which a subscription will be created
- Topic string `json:"topic" protobuf:"bytes,3,name=topic"`
+ Topic string `json:"topic" protobuf:"bytes,3,opt,name=topic"`
// CredentialsFile is the file that contains credentials to authenticate for GCP
- CredentialsFile string `json:"credentialsFile" protobuf:"bytes,4,name=credentialsFile"`
+ CredentialsFile string `json:"credentialsFile" protobuf:"bytes,4,opt,name=credentialsFile"`
// EnableWorkflowIdentity determines if your project authenticates to GCP with WorkflowIdentity or CredentialsFile.
// If true, authentication is done with WorkflowIdentity. If false or omitted, authentication is done with CredentialsFile.
// +optional
- EnableWorkflowIdentity bool `json:"enableWorkflowIdentity,omitempty" protobuf:"bytes,5,opt,name=enableWorkflowIdentity"`
+ EnableWorkflowIdentity bool `json:"enableWorkflowIdentity,omitempty" protobuf:"varint,5,opt,name=enableWorkflowIdentity"`
// DeleteSubscriptionOnFinish determines whether to delete the GCP PubSub subscription once the event source is stopped.
// +optional
- DeleteSubscriptionOnFinish bool `json:"deleteSubscriptionOnFinish,omitempty" protobuf:"bytes,6,opt,name=deleteSubscriptionOnFinish"`
+ DeleteSubscriptionOnFinish bool `json:"deleteSubscriptionOnFinish,omitempty" protobuf:"varint,6,opt,name=deleteSubscriptionOnFinish"`
// JSONBody specifies that all event body payload coming from this
// source will be JSON
// +optional
- JSONBody bool `json:"jsonBody,omitempty" protobuf:"bytes,8,opt,name=jsonBody"`
+ JSONBody bool `json:"jsonBody,omitempty" protobuf:"varint,7,opt,name=jsonBody"`
}
// GithubEventSource refers to event-source for github related events
type GithubEventSource struct {
// Id is the webhook's id
- Id int64 `json:"id" protobuf:"bytes,1,name=id"`
+ Id int64 `json:"id" protobuf:"varint,1,opt,name=id"`
// Webhook refers to the configuration required to run a http server
- Webhook *webhook.Context `json:"webhook" protobuf:"bytes,2,name=webhook"`
+ Webhook *WebhookContext `json:"webhook,omitempty" protobuf:"bytes,2,opt,name=webhook"`
// Owner refers to GitHub owner name i.e. argoproj
- Owner string `json:"owner" protobuf:"bytes,3,name=owner"`
+ Owner string `json:"owner" protobuf:"bytes,3,opt,name=owner"`
// Repository refers to GitHub repo name i.e. argo-events
- Repository string `json:"repository" protobuf:"bytes,4,name=repository"`
+ Repository string `json:"repository" protobuf:"bytes,4,opt,name=repository"`
// Events refer to Github events to subscribe to which the gateway will subscribe
- // +listType=string
+
Events []string `json:"events" protobuf:"bytes,5,rep,name=events"`
// APIToken refers to a K8s secret containing github api token
- APIToken *corev1.SecretKeySelector `json:"apiToken"`
+ APIToken *corev1.SecretKeySelector `json:"apiToken,omitempty" protobuf:"bytes,6,opt,name=apiToken"`
// WebhookSecret refers to K8s secret containing GitHub webhook secret
// https://developer.github.com/webhooks/securing/
// +optional
WebhookSecret *corev1.SecretKeySelector `json:"webhookSecret,omitempty" protobuf:"bytes,7,opt,name=webhookSecret"`
// Insecure tls verification
- Insecure bool `json:"insecure,omitempty" protobuf:"bytes,8,opt,name=insecure"`
+ Insecure bool `json:"insecure,omitempty" protobuf:"varint,8,opt,name=insecure"`
// Active refers to status of the webhook for event deliveries.
// https://developer.github.com/webhooks/creating/#active
// +optional
- Active bool `json:"active,omitempty" protobuf:"bytes,9,opt,name=active"`
+ Active bool `json:"active,omitempty" protobuf:"varint,9,opt,name=active"`
// ContentType of the event delivery
ContentType string `json:"contentType,omitempty" protobuf:"bytes,10,opt,name=contentType"`
// GitHub base URL (for GitHub Enterprise)
@@ -367,67 +364,67 @@ type GithubEventSource struct {
GithubUploadURL string `json:"githubUploadURL,omitempty" protobuf:"bytes,12,opt,name=githubUploadURL"`
// Namespace refers to Kubernetes namespace which is used to retrieve webhook secret and api token from.
// +optional
- Namespace string `json:"namespace,omitempty" protobuf:"bytes,13.opt,name=namespace"`
+ Namespace string `json:"namespace,omitempty" protobuf:"bytes,13,opt,name=namespace"`
// DeleteHookOnFinish determines whether to delete the GitHub hook for the repository once the event source is stopped.
// +optional
- DeleteHookOnFinish bool `json:"deleteHookOnFinish,omitempty" protobuf:"bytes,14,opt,name=deleteHookOnFinish"`
+ DeleteHookOnFinish bool `json:"deleteHookOnFinish,omitempty" protobuf:"varint,14,opt,name=deleteHookOnFinish"`
}
// GitlabEventSource refers to event-source related to Gitlab events
type GitlabEventSource struct {
// Webhook holds configuration to run a http server
- Webhook *webhook.Context `json:"webhook" protobuf:"bytes,1,name=webhook"`
+ Webhook *WebhookContext `json:"webhook,omitempty" protobuf:"bytes,1,opt,name=webhook"`
// ProjectID is the id of project for which integration needs to setup
- ProjectID string `json:"projectID" protobuf:"bytes,2,name=projectID"`
+ ProjectID string `json:"projectID" protobuf:"bytes,9,opt,name=projectID"`
// Events are gitlab event to listen to.
// Refer https://github.com/xanzy/go-gitlab/blob/bf34eca5d13a9f4c3f501d8a97b8ac226d55e4d9/projects.go#L794.
- Events []string `json:"events" protobuf:"bytes,3,name=events"`
+ Events []string `json:"events" protobuf:"bytes,3,opt,name=events"`
// AccessToken is reference to k8 secret which holds the gitlab api access information
- AccessToken *corev1.SecretKeySelector `json:"accessToken" protobuf:"bytes,4,name=accessToken"`
+ AccessToken *corev1.SecretKeySelector `json:"accessToken,omitempty" protobuf:"bytes,4,opt,name=accessToken"`
// EnableSSLVerification to enable ssl verification
// +optional
- EnableSSLVerification bool `json:"enableSSLVerification,omitempty" protobuf:"bytes,5,opt,name=enableSSLVerification"`
+ EnableSSLVerification bool `json:"enableSSLVerification,omitempty" protobuf:"varint,5,opt,name=enableSSLVerification"`
// GitlabBaseURL is the base URL for API requests to a custom endpoint
- GitlabBaseURL string `json:"gitlabBaseURL" protobuf:"bytes,6,name=gitlabBaseURL"`
+ GitlabBaseURL string `json:"gitlabBaseURL" protobuf:"bytes,6,opt,name=gitlabBaseURL"`
// DeleteHookOnFinish determines whether to delete the GitLab hook for the project once the event source is stopped.
// +optional
- DeleteHookOnFinish bool `json:"deleteHookOnFinish,omitempty" protobuf:"bytes,7,opt,name=deleteHookOnFinish"`
+ DeleteHookOnFinish bool `json:"deleteHookOnFinish,omitempty" protobuf:"varint,8,opt,name=deleteHookOnFinish"`
}
// HDFSEventSource refers to event-source for HDFS related events
type HDFSEventSource struct {
- fsevent.WatchPathConfig `json:",inline"`
+ WatchPathConfig `json:",inline" protobuf:"bytes,1,opt,name=watchPathConfig"`
// Type of file operations to watch
- Type string `json:"type"`
+ Type string `json:"type" protobuf:"bytes,2,opt,name=type"`
// CheckInterval is a string that describes an interval duration to check the directory state, e.g. 1s, 30m, 2h... (defaults to 1m)
- CheckInterval string `json:"checkInterval,omitempty"`
+ CheckInterval string `json:"checkInterval,omitempty" protobuf:"bytes,3,opt,name=checkInterval"`
// Addresses is accessible addresses of HDFS name nodes
- // +listType=string
- Addresses []string `json:"addresses"`
+
+ Addresses []string `json:"addresses" protobuf:"bytes,4,rep,name=addresses"`
// HDFSUser is the user to access HDFS file system.
// It is ignored if either ccache or keytab is used.
- HDFSUser string `json:"hdfsUser,omitempty"`
+ HDFSUser string `json:"hdfsUser,omitempty" protobuf:"bytes,5,opt,name=hdfsUser"`
// KrbCCacheSecret is the secret selector for Kerberos ccache
// Either ccache or keytab can be set to use Kerberos.
- KrbCCacheSecret *corev1.SecretKeySelector `json:"krbCCacheSecret,omitempty"`
+ KrbCCacheSecret *corev1.SecretKeySelector `json:"krbCCacheSecret,omitempty" protobuf:"bytes,6,opt,name=krbCCacheSecret"`
// KrbKeytabSecret is the secret selector for Kerberos keytab
// Either ccache or keytab can be set to use Kerberos.
- KrbKeytabSecret *corev1.SecretKeySelector `json:"krbKeytabSecret,omitempty"`
+ KrbKeytabSecret *corev1.SecretKeySelector `json:"krbKeytabSecret,omitempty" protobuf:"bytes,7,opt,name=krbKeytabSecret"`
// KrbUsername is the Kerberos username used with Kerberos keytab
// It must be set if keytab is used.
- KrbUsername string `json:"krbUsername,omitempty"`
+ KrbUsername string `json:"krbUsername,omitempty" protobuf:"bytes,8,opt,name=krbUsername"`
// KrbRealm is the Kerberos realm used with Kerberos keytab
// It must be set if keytab is used.
- KrbRealm string `json:"krbRealm,omitempty"`
+ KrbRealm string `json:"krbRealm,omitempty" protobuf:"bytes,9,opt,name=krbRealm"`
// KrbConfig is the configmap selector for Kerberos config as string
// It must be set if either ccache or keytab is used.
- KrbConfigConfigMap *corev1.ConfigMapKeySelector `json:"krbConfigConfigMap,omitempty"`
+ KrbConfigConfigMap *corev1.ConfigMapKeySelector `json:"krbConfigConfigMap,omitempty" protobuf:"bytes,10,opt,name=krbConfigConfigMap"`
// KrbServicePrincipalName is the principal name of Kerberos service
// It must be set if either ccache or keytab is used.
- KrbServicePrincipalName string `json:"krbServicePrincipalName,omitempty"`
+ KrbServicePrincipalName string `json:"krbServicePrincipalName,omitempty" protobuf:"bytes,11,opt,name=krbServicePrincipalName"`
// Namespace refers to Kubernetes namespace which is used to retrieve cache secret and ket tab secret from.
// +optional
- Namespace string `json:"namespace,omitempty" protobuf:"bytes,1,opt,name=namespace"`
+ Namespace string `json:"namespace,omitempty" protobuf:"bytes,12,opt,name=namespace"`
}
// SlackEventSource refers to event-source for Slack related events
@@ -435,23 +432,23 @@ type SlackEventSource struct {
// Slack App signing secret
SigningSecret *corev1.SecretKeySelector `json:"signingSecret,omitempty" protobuf:"bytes,1,opt,name=signingSecret"`
// Token for URL verification handshake
- Token *corev1.SecretKeySelector `json:"token,omitempty" protobuf:"bytes,2,name=token"`
+ Token *corev1.SecretKeySelector `json:"token,omitempty" protobuf:"bytes,2,opt,name=token"`
// Webhook holds configuration for a REST endpoint
- Webhook *webhook.Context `json:"webhook" protobuf:"bytes,3,name=webhook"`
+ Webhook *WebhookContext `json:"webhook,omitempty" protobuf:"bytes,3,opt,name=webhook"`
// Namespace refers to Kubernetes namespace which is used to retrieve token and signing secret from.
// +optional
- Namespace string `json:"namespace,omitempty" protobuf:"bytes,4.opt,name=namespace"`
+ Namespace string `json:"namespace,omitempty" protobuf:"bytes,4,opt,name=namespace"`
}
// StorageGridEventSource refers to event-source for StorageGrid related events
type StorageGridEventSource struct {
// Webhook holds configuration for a REST endpoint
- Webhook *webhook.Context `json:"webhook" protobuf:"bytes,1,name=webhook"`
+ Webhook *WebhookContext `json:"webhook,omitempty" protobuf:"bytes,1,opt,name=webhook"`
// Events are s3 bucket notification events.
// For more information on s3 notifications, follow https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations
// Note that storage grid notifications do not contain `s3:`
- // +listType=string
- Events []string `json:"events,omitempty" protobuf:"bytes,2,opt,name=events"`
+
+ Events []string `json:"events,omitempty" protobuf:"bytes,2,rep,name=events"`
// Filter on object key which caused the notification.
Filter *StorageGridFilter `json:"filter,omitempty" protobuf:"bytes,3,opt,name=filter"`
// TopicArn
@@ -471,8 +468,8 @@ type StorageGridEventSource struct {
// Filter represents filters to apply to bucket notifications for specifying constraints on objects
// +k8s:openapi-gen=true
type StorageGridFilter struct {
- Prefix string `json:"prefix"`
- Suffix string `json:"suffix"`
+ Prefix string `json:"prefix" protobuf:"bytes,1,opt,name=prefix"`
+ Suffix string `json:"suffix" protobuf:"bytes,2,opt,name=suffix"`
}
// AzureEventsHubEventSource describes the event source for azure events hub
@@ -480,13 +477,13 @@ type StorageGridFilter struct {
type AzureEventsHubEventSource struct {
// FQDN of the EventHubs namespace you created
// More info at https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-get-connection-string
- FQDN string `json:"fqdn" protobuf:"bytes,1,name=fqdn"`
+ FQDN string `json:"fqdn" protobuf:"bytes,1,opt,name=fqdn"`
// SharedAccessKeyName is the name you chose for your application's SAS keys
- SharedAccessKeyName *corev1.SecretKeySelector `json:"sharedAccessKeyName" protobuf:"bytes,2,name=sharedAccessKeyName"`
+ SharedAccessKeyName *corev1.SecretKeySelector `json:"sharedAccessKeyName,omitempty" protobuf:"bytes,2,opt,name=sharedAccessKeyName"`
// SharedAccessKey is the the generated value of the key
- SharedAccessKey *corev1.SecretKeySelector `json:"sharedAccessKey" protobuf:"bytes,3,name=sharedAccessKey"`
+ SharedAccessKey *corev1.SecretKeySelector `json:"sharedAccessKey,omitempty" protobuf:"bytes,3,opt,name=sharedAccessKey"`
// Event Hub path/name
- HubName string `json:"hubName" protobuf:"bytes,4,name=hubName"`
+ HubName string `json:"hubName" protobuf:"bytes,4,opt,name=hubName"`
// Namespace refers to Kubernetes namespace which is used to retrieve the shared access key and name from.
// +optional
Namespace string `json:"namespace,omitempty" protobuf:"bytes,5,opt,name=namespace"`
@@ -496,10 +493,10 @@ type AzureEventsHubEventSource struct {
// More info at https://stripe.com/docs/webhooks
type StripeEventSource struct {
// Webhook holds configuration for a REST endpoint
- Webhook *webhook.Context `json:"webhook" protobuf:"bytes,1,name=webhook"`
+ Webhook *WebhookContext `json:"webhook,omitempty" protobuf:"bytes,1,opt,name=webhook"`
// CreateWebhook if specified creates a new webhook programmatically.
// +optional
- CreateWebhook bool `json:"createWebhook,omitempty" protobuf:"bytes,2,opt,name=createWebhook"`
+ CreateWebhook bool `json:"createWebhook,omitempty" protobuf:"varint,2,opt,name=createWebhook"`
// APIKey refers to K8s secret that holds Stripe API key. Used only if CreateWebhook is enabled.
// +optional
APIKey *corev1.SecretKeySelector `json:"apiKey,omitempty" protobuf:"bytes,3,opt,name=apiKey"`
@@ -509,7 +506,7 @@ type StripeEventSource struct {
// EventFilter describes the type of events to listen to. If not specified, all types of events will be processed.
// More info at https://stripe.com/docs/api/events/list
// +optional
- // +listType=string
+
EventFilter []string `json:"eventFilter,omitempty" protobuf:"bytes,5,rep,name=eventFilter"`
}
@@ -517,11 +514,11 @@ type StripeEventSource struct {
// More info at https://emitter.io/develop/getting-started/
type EmitterEventSource struct {
// Broker URI to connect to.
- Broker string `json:"broker" protobuf:"bytes,1,name=broker"`
+ Broker string `json:"broker" protobuf:"bytes,1,opt,name=broker"`
// ChannelKey refers to the channel key
- ChannelKey string `json:"channelKey" protobuf:"bytes,2,name=channelKey"`
+ ChannelKey string `json:"channelKey" protobuf:"bytes,2,opt,name=channelKey"`
// ChannelName refers to the channel name
- ChannelName string `json:"channelName" protobuf:"bytes,3,name=channelName"`
+ ChannelName string `json:"channelName" protobuf:"bytes,3,opt,name=channelName"`
// Namespace to use to retrieve the channel key and optional username/password
// +optional
Namespace string `json:"namespace,omitempty" protobuf:"bytes,4,opt,name=namespace"`
@@ -533,11 +530,11 @@ type EmitterEventSource struct {
Password *corev1.SecretKeySelector `json:"password,omitempty" protobuf:"bytes,6,opt,name=password"`
// Backoff holds parameters applied to connection.
// +optional
- ConnectionBackoff *common.Backoff `json:"connectionBackoff,omitempty" protobuf:"bytes,7,opt,name=connectionBackoff"`
+ ConnectionBackoff *apicommon.Backoff `json:"connectionBackoff,omitempty" protobuf:"bytes,7,opt,name=connectionBackoff"`
// JSONBody specifies that all event body payload coming from this
// source will be JSON
// +optional
- JSONBody bool `json:"jsonBody,omitempty" protobuf:"bytes,8,opt,name=jsonBody"`
+ JSONBody bool `json:"jsonBody,omitempty" protobuf:"varint,8,opt,name=jsonBody"`
// TLS configuration for the emitter client.
// +optional
TLS *TLSConfig `json:"tls,omitempty" protobuf:"bytes,9,opt,name=tls"`
@@ -547,7 +544,7 @@ type EmitterEventSource struct {
// More info at https://godoc.org/github.com/go-redis/redis#example-PubSub
type RedisEventSource struct {
// HostAddress refers to the address of the Redis host/server
- HostAddress string `json:"hostAddress" protobuf:"bytes,1,name=hostAddress"`
+ HostAddress string `json:"hostAddress" protobuf:"bytes,1,opt,name=hostAddress"`
// Password required for authentication if any.
// +optional
Password *corev1.SecretKeySelector `json:"password,omitempty" protobuf:"bytes,2,opt,name=password"`
@@ -556,10 +553,10 @@ type RedisEventSource struct {
Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"`
// DB to use. If not specified, default DB 0 will be used.
// +optional
- DB int `json:"db,omitempty" protobuf:"bytes,4,opt,name=db"`
+ DB int32 `json:"db,omitempty" protobuf:"varint,4,opt,name=db"`
// Channels to subscribe to listen events.
- // +listType=string
- Channels []string `json:"channels" protobuf:"bytes,5,name=channels"`
+
+ Channels []string `json:"channels" protobuf:"bytes,5,rep,name=channels"`
// TLS configuration for the redis client.
// +optional
TLS *TLSConfig `json:"tls,omitempty" protobuf:"bytes,6,opt,name=tls"`
@@ -569,18 +566,18 @@ type RedisEventSource struct {
// More info at https://godoc.org/github.com/nsqio/go-nsq
type NSQEventSource struct {
// HostAddress is the address of the host for NSQ lookup
- HostAddress string `json:"hostAddress" protobuf:"bytes,1,name=hostAddress"`
+ HostAddress string `json:"hostAddress" protobuf:"bytes,1,opt,name=hostAddress"`
// Topic to subscribe to.
- Topic string `json:"topic" protobuf:"bytes,2,name=topic"`
+ Topic string `json:"topic" protobuf:"bytes,2,opt,name=topic"`
// Channel used for subscription
- Channel string `json:"channel" protobuf:"bytes,3,name=channel"`
+ Channel string `json:"channel" protobuf:"bytes,3,opt,name=channel"`
// Backoff holds parameters applied to connection.
// +optional
- ConnectionBackoff *common.Backoff `json:"connectionBackoff,omitempty" protobuf:"bytes,4,opt,name=connectionBackoff"`
+ ConnectionBackoff *apicommon.Backoff `json:"connectionBackoff,omitempty" protobuf:"bytes,4,opt,name=connectionBackoff"`
// JSONBody specifies that all event body payload coming from this
// source will be JSON
// +optional
- JSONBody bool `json:"jsonBody,omitempty" protobuf:"bytes,5,opt,name=jsonBody"`
+ JSONBody bool `json:"jsonBody,omitempty" protobuf:"varint,5,opt,name=jsonBody"`
// TLS configuration for the nsq client.
// +optional
TLS *TLSConfig `json:"tls,omitempty" protobuf:"bytes,6,opt,name=tls"`
@@ -589,17 +586,17 @@ type NSQEventSource struct {
// GenericEventSource refers to a generic event source. It can be used to implement a custom event source.
type GenericEventSource struct {
// Value of the event source
- Value string `json:"value" protobuf:"bytes,1,name=value"`
+ Value string `json:"value" protobuf:"bytes,1,opt,name=value"`
}
// TLSConfig refers to TLS configuration for a client.
type TLSConfig struct {
// CACertPath refers the file path that contains the CA cert.
- CACertPath string `json:"caCertPath" protobuf:"bytes,1,name=caCertPath"`
+ CACertPath string `json:"caCertPath" protobuf:"bytes,1,opt,name=caCertPath"`
// ClientCertPath refers the file path that contains client cert.
- ClientCertPath string `json:"clientCertPath" protobuf:"bytes,2,name=clientCertPath"`
+ ClientCertPath string `json:"clientCertPath" protobuf:"bytes,2,opt,name=clientCertPath"`
// ClientKeyPath refers the file path that contains client key.
- ClientKeyPath string `json:"clientKeyPath" protobuf:"bytes,3,name=clientKeyPath"`
+ ClientKeyPath string `json:"clientKeyPath" protobuf:"bytes,3,opt,name=clientKeyPath"`
}
// EventSourceStatus holds the status of the event-source resource
diff --git a/pkg/apis/eventsource/v1alpha1/validate.go b/pkg/apis/eventsource/v1alpha1/validate.go
index fa344431c8..e7b59faaba 100644
--- a/pkg/apis/eventsource/v1alpha1/validate.go
+++ b/pkg/apis/eventsource/v1alpha1/validate.go
@@ -24,9 +24,6 @@ func ValidateEventSource(eventSource *EventSource) error {
if eventSource == nil {
return errors.New("event source can't be nil")
}
- if eventSource.Spec == nil {
- return errors.New("event source specification can't be nil")
- }
return nil
}
diff --git a/pkg/apis/eventsource/v1alpha1/webhook_context.go b/pkg/apis/eventsource/v1alpha1/webhook_context.go
new file mode 100644
index 0000000000..cd7e3d3f30
--- /dev/null
+++ b/pkg/apis/eventsource/v1alpha1/webhook_context.go
@@ -0,0 +1,18 @@
+package v1alpha1
+
+// WebhookContext holds a general purpose REST API context
+type WebhookContext struct {
+ // REST API endpoint
+ Endpoint string `json:"endpoint" protobuf:"bytes,1,opt,name=endpoint"`
+ // Method is HTTP request method that indicates the desired action to be performed for a given resource.
+ // See RFC7231 Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
+ Method string `json:"method" protobuf:"bytes,2,opt,name=method"`
+ // Port on which HTTP server is listening for incoming events.
+ Port string `json:"port" protobuf:"bytes,3,opt,name=port"`
+ // URL is the url of the server.
+ URL string `json:"url" protobuf:"bytes,4,opt,name=url"`
+ // ServerCertPath refers the file that contains the cert.
+ ServerCertPath string `json:"serverCertPath,omitempty" protobuf:"bytes,5,opt,name=serverCertPath"`
+ // ServerKeyPath refers the file that contains private key
+ ServerKeyPath string `json:"serverKeyPath,omitempty" protobuf:"bytes,6,opt,name=serverKeyPath"`
+}
diff --git a/pkg/apis/eventsource/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/eventsource/v1alpha1/zz_generated.deepcopy.go
index ad004cbbd9..d1d5d8646b 100644
--- a/pkg/apis/eventsource/v1alpha1/zz_generated.deepcopy.go
+++ b/pkg/apis/eventsource/v1alpha1/zz_generated.deepcopy.go
@@ -23,9 +23,7 @@ package v1alpha1
import (
json "encoding/json"
- common "github.com/argoproj/argo-events/common"
- webhook "github.com/argoproj/argo-events/gateways/server/common/webhook"
- apiscommon "github.com/argoproj/argo-events/pkg/apis/common"
+ common "github.com/argoproj/argo-events/pkg/apis/common"
v1 "k8s.io/api/core/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)
@@ -36,7 +34,7 @@ func (in *AMQPEventSource) DeepCopyInto(out *AMQPEventSource) {
if in.ConnectionBackoff != nil {
in, out := &in.ConnectionBackoff, &out.ConnectionBackoff
*out = new(common.Backoff)
- **out = **in
+ (*in).DeepCopyInto(*out)
}
if in.TLS != nil {
in, out := &in.TLS, &out.TLS
@@ -92,12 +90,8 @@ func (in *CalendarEventSource) DeepCopyInto(out *CalendarEventSource) {
}
if in.UserPayload != nil {
in, out := &in.UserPayload, &out.UserPayload
- *out = new(json.RawMessage)
- if **in != nil {
- in, out := *in, *out
- *out = make([]byte, len(*in))
- copy(*out, *in)
- }
+ *out = make(json.RawMessage, len(*in))
+ copy(*out, *in)
}
return
}
@@ -128,7 +122,7 @@ func (in *EmitterEventSource) DeepCopyInto(out *EmitterEventSource) {
if in.ConnectionBackoff != nil {
in, out := &in.ConnectionBackoff, &out.ConnectionBackoff
*out = new(common.Backoff)
- **out = **in
+ (*in).DeepCopyInto(*out)
}
if in.TLS != nil {
in, out := &in.TLS, &out.TLS
@@ -154,11 +148,7 @@ func (in *EventSource) DeepCopyInto(out *EventSource) {
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Status.DeepCopyInto(&out.Status)
- if in.Spec != nil {
- in, out := &in.Spec, &out.Spec
- *out = new(EventSourceSpec)
- (*in).DeepCopyInto(*out)
- }
+ in.Spec.DeepCopyInto(&out.Spec)
return
}
@@ -218,7 +208,7 @@ func (in *EventSourceSpec) DeepCopyInto(out *EventSourceSpec) {
*out = *in
if in.Minio != nil {
in, out := &in.Minio, &out.Minio
- *out = make(map[string]apiscommon.S3Artifact, len(*in))
+ *out = make(map[string]common.S3Artifact, len(*in))
for key, val := range *in {
(*out)[key] = *val.DeepCopy()
}
@@ -246,7 +236,7 @@ func (in *EventSourceSpec) DeepCopyInto(out *EventSourceSpec) {
}
if in.Webhook != nil {
in, out := &in.Webhook, &out.Webhook
- *out = make(map[string]webhook.Context, len(*in))
+ *out = make(map[string]WebhookContext, len(*in))
for key, val := range *in {
(*out)[key] = val
}
@@ -445,7 +435,7 @@ func (in *GithubEventSource) DeepCopyInto(out *GithubEventSource) {
*out = *in
if in.Webhook != nil {
in, out := &in.Webhook, &out.Webhook
- *out = new(webhook.Context)
+ *out = new(WebhookContext)
**out = **in
}
if in.Events != nil {
@@ -481,7 +471,7 @@ func (in *GitlabEventSource) DeepCopyInto(out *GitlabEventSource) {
*out = *in
if in.Webhook != nil {
in, out := &in.Webhook, &out.Webhook
- *out = new(webhook.Context)
+ *out = new(WebhookContext)
**out = **in
}
if in.Events != nil {
@@ -550,7 +540,7 @@ func (in *KafkaEventSource) DeepCopyInto(out *KafkaEventSource) {
if in.ConnectionBackoff != nil {
in, out := &in.ConnectionBackoff, &out.ConnectionBackoff
*out = new(common.Backoff)
- **out = **in
+ (*in).DeepCopyInto(*out)
}
if in.TLS != nil {
in, out := &in.TLS, &out.TLS
@@ -576,7 +566,7 @@ func (in *MQTTEventSource) DeepCopyInto(out *MQTTEventSource) {
if in.ConnectionBackoff != nil {
in, out := &in.ConnectionBackoff, &out.ConnectionBackoff
*out = new(common.Backoff)
- **out = **in
+ (*in).DeepCopyInto(*out)
}
if in.TLS != nil {
in, out := &in.TLS, &out.TLS
@@ -602,7 +592,7 @@ func (in *NATSEventsSource) DeepCopyInto(out *NATSEventsSource) {
if in.ConnectionBackoff != nil {
in, out := &in.ConnectionBackoff, &out.ConnectionBackoff
*out = new(common.Backoff)
- **out = **in
+ (*in).DeepCopyInto(*out)
}
if in.TLS != nil {
in, out := &in.TLS, &out.TLS
@@ -628,7 +618,7 @@ func (in *NSQEventSource) DeepCopyInto(out *NSQEventSource) {
if in.ConnectionBackoff != nil {
in, out := &in.ConnectionBackoff, &out.ConnectionBackoff
*out = new(common.Backoff)
- **out = **in
+ (*in).DeepCopyInto(*out)
}
if in.TLS != nil {
in, out := &in.TLS, &out.TLS
@@ -754,7 +744,7 @@ func (in *SNSEventSource) DeepCopyInto(out *SNSEventSource) {
*out = *in
if in.Webhook != nil {
in, out := &in.Webhook, &out.Webhook
- *out = new(webhook.Context)
+ *out = new(WebhookContext)
**out = **in
}
if in.AccessKey != nil {
@@ -837,7 +827,7 @@ func (in *SlackEventSource) DeepCopyInto(out *SlackEventSource) {
}
if in.Webhook != nil {
in, out := &in.Webhook, &out.Webhook
- *out = new(webhook.Context)
+ *out = new(WebhookContext)
**out = **in
}
return
@@ -858,7 +848,7 @@ func (in *StorageGridEventSource) DeepCopyInto(out *StorageGridEventSource) {
*out = *in
if in.Webhook != nil {
in, out := &in.Webhook, &out.Webhook
- *out = new(webhook.Context)
+ *out = new(WebhookContext)
**out = **in
}
if in.Events != nil {
@@ -910,7 +900,7 @@ func (in *StripeEventSource) DeepCopyInto(out *StripeEventSource) {
*out = *in
if in.Webhook != nil {
in, out := &in.Webhook, &out.Webhook
- *out = new(webhook.Context)
+ *out = new(WebhookContext)
**out = **in
}
if in.APIKey != nil {
@@ -951,3 +941,35 @@ func (in *TLSConfig) DeepCopy() *TLSConfig {
in.DeepCopyInto(out)
return out
}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *WatchPathConfig) DeepCopyInto(out *WatchPathConfig) {
+ *out = *in
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WatchPathConfig.
+func (in *WatchPathConfig) DeepCopy() *WatchPathConfig {
+ if in == nil {
+ return nil
+ }
+ out := new(WatchPathConfig)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *WebhookContext) DeepCopyInto(out *WebhookContext) {
+ *out = *in
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookContext.
+func (in *WebhookContext) DeepCopy() *WebhookContext {
+ if in == nil {
+ return nil
+ }
+ out := new(WebhookContext)
+ in.DeepCopyInto(out)
+ return out
+}
diff --git a/pkg/apis/gateway/v1alpha1/generated.pb.go b/pkg/apis/gateway/v1alpha1/generated.pb.go
new file mode 100644
index 0000000000..a3aff67916
--- /dev/null
+++ b/pkg/apis/gateway/v1alpha1/generated.pb.go
@@ -0,0 +1,4265 @@
+/*
+Copyright 2020 BlackRock, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// source: github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1/generated.proto
+
+package v1alpha1
+
+import (
+ fmt "fmt"
+
+ github_com_argoproj_argo_events_pkg_apis_common "github.com/argoproj/argo-events/pkg/apis/common"
+
+ io "io"
+
+ proto "github.com/gogo/protobuf/proto"
+ github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
+ v11 "k8s.io/api/core/v1"
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
+ math "math"
+ math_bits "math/bits"
+ reflect "reflect"
+ strings "strings"
+)
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ = proto.Marshal
+var _ = fmt.Errorf
+var _ = math.Inf
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the proto package it is being compiled against.
+// A compilation error at this line likely means your copy of the
+// proto package needs to be updated.
+const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
+
+func (m *EventSourceRef) Reset() { *m = EventSourceRef{} }
+func (*EventSourceRef) ProtoMessage() {}
+func (*EventSourceRef) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ba11c13056ce1980, []int{0}
+}
+func (m *EventSourceRef) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EventSourceRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *EventSourceRef) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventSourceRef.Merge(m, src)
+}
+func (m *EventSourceRef) XXX_Size() int {
+ return m.Size()
+}
+func (m *EventSourceRef) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventSourceRef.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EventSourceRef proto.InternalMessageInfo
+
+func (m *Gateway) Reset() { *m = Gateway{} }
+func (*Gateway) ProtoMessage() {}
+func (*Gateway) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ba11c13056ce1980, []int{1}
+}
+func (m *Gateway) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Gateway) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Gateway) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Gateway.Merge(m, src)
+}
+func (m *Gateway) XXX_Size() int {
+ return m.Size()
+}
+func (m *Gateway) XXX_DiscardUnknown() {
+ xxx_messageInfo_Gateway.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Gateway proto.InternalMessageInfo
+
+func (m *GatewayList) Reset() { *m = GatewayList{} }
+func (*GatewayList) ProtoMessage() {}
+func (*GatewayList) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ba11c13056ce1980, []int{2}
+}
+func (m *GatewayList) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *GatewayList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *GatewayList) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_GatewayList.Merge(m, src)
+}
+func (m *GatewayList) XXX_Size() int {
+ return m.Size()
+}
+func (m *GatewayList) XXX_DiscardUnknown() {
+ xxx_messageInfo_GatewayList.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_GatewayList proto.InternalMessageInfo
+
+func (m *GatewayResource) Reset() { *m = GatewayResource{} }
+func (*GatewayResource) ProtoMessage() {}
+func (*GatewayResource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ba11c13056ce1980, []int{3}
+}
+func (m *GatewayResource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *GatewayResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *GatewayResource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_GatewayResource.Merge(m, src)
+}
+func (m *GatewayResource) XXX_Size() int {
+ return m.Size()
+}
+func (m *GatewayResource) XXX_DiscardUnknown() {
+ xxx_messageInfo_GatewayResource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_GatewayResource proto.InternalMessageInfo
+
+func (m *GatewaySpec) Reset() { *m = GatewaySpec{} }
+func (*GatewaySpec) ProtoMessage() {}
+func (*GatewaySpec) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ba11c13056ce1980, []int{4}
+}
+func (m *GatewaySpec) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *GatewaySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *GatewaySpec) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_GatewaySpec.Merge(m, src)
+}
+func (m *GatewaySpec) XXX_Size() int {
+ return m.Size()
+}
+func (m *GatewaySpec) XXX_DiscardUnknown() {
+ xxx_messageInfo_GatewaySpec.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_GatewaySpec proto.InternalMessageInfo
+
+func (m *GatewayStatus) Reset() { *m = GatewayStatus{} }
+func (*GatewayStatus) ProtoMessage() {}
+func (*GatewayStatus) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ba11c13056ce1980, []int{5}
+}
+func (m *GatewayStatus) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *GatewayStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *GatewayStatus) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_GatewayStatus.Merge(m, src)
+}
+func (m *GatewayStatus) XXX_Size() int {
+ return m.Size()
+}
+func (m *GatewayStatus) XXX_DiscardUnknown() {
+ xxx_messageInfo_GatewayStatus.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_GatewayStatus proto.InternalMessageInfo
+
+func (m *Metadata) Reset() { *m = Metadata{} }
+func (*Metadata) ProtoMessage() {}
+func (*Metadata) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ba11c13056ce1980, []int{6}
+}
+func (m *Metadata) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Metadata) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Metadata.Merge(m, src)
+}
+func (m *Metadata) XXX_Size() int {
+ return m.Size()
+}
+func (m *Metadata) XXX_DiscardUnknown() {
+ xxx_messageInfo_Metadata.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Metadata proto.InternalMessageInfo
+
+func (m *NATSSubscriber) Reset() { *m = NATSSubscriber{} }
+func (*NATSSubscriber) ProtoMessage() {}
+func (*NATSSubscriber) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ba11c13056ce1980, []int{7}
+}
+func (m *NATSSubscriber) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *NATSSubscriber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *NATSSubscriber) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_NATSSubscriber.Merge(m, src)
+}
+func (m *NATSSubscriber) XXX_Size() int {
+ return m.Size()
+}
+func (m *NATSSubscriber) XXX_DiscardUnknown() {
+ xxx_messageInfo_NATSSubscriber.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_NATSSubscriber proto.InternalMessageInfo
+
+func (m *NodeStatus) Reset() { *m = NodeStatus{} }
+func (*NodeStatus) ProtoMessage() {}
+func (*NodeStatus) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ba11c13056ce1980, []int{8}
+}
+func (m *NodeStatus) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *NodeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *NodeStatus) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_NodeStatus.Merge(m, src)
+}
+func (m *NodeStatus) XXX_Size() int {
+ return m.Size()
+}
+func (m *NodeStatus) XXX_DiscardUnknown() {
+ xxx_messageInfo_NodeStatus.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_NodeStatus proto.InternalMessageInfo
+
+func (m *Service) Reset() { *m = Service{} }
+func (*Service) ProtoMessage() {}
+func (*Service) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ba11c13056ce1980, []int{9}
+}
+func (m *Service) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Service) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Service.Merge(m, src)
+}
+func (m *Service) XXX_Size() int {
+ return m.Size()
+}
+func (m *Service) XXX_DiscardUnknown() {
+ xxx_messageInfo_Service.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Service proto.InternalMessageInfo
+
+func (m *Subscribers) Reset() { *m = Subscribers{} }
+func (*Subscribers) ProtoMessage() {}
+func (*Subscribers) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ba11c13056ce1980, []int{10}
+}
+func (m *Subscribers) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Subscribers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Subscribers) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Subscribers.Merge(m, src)
+}
+func (m *Subscribers) XXX_Size() int {
+ return m.Size()
+}
+func (m *Subscribers) XXX_DiscardUnknown() {
+ xxx_messageInfo_Subscribers.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Subscribers proto.InternalMessageInfo
+
+func (m *Template) Reset() { *m = Template{} }
+func (*Template) ProtoMessage() {}
+func (*Template) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ba11c13056ce1980, []int{11}
+}
+func (m *Template) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Template) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Template) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Template.Merge(m, src)
+}
+func (m *Template) XXX_Size() int {
+ return m.Size()
+}
+func (m *Template) XXX_DiscardUnknown() {
+ xxx_messageInfo_Template.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Template proto.InternalMessageInfo
+
+func init() {
+ proto.RegisterType((*EventSourceRef)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.EventSourceRef")
+ proto.RegisterType((*Gateway)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.Gateway")
+ proto.RegisterType((*GatewayList)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.GatewayList")
+ proto.RegisterType((*GatewayResource)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.GatewayResource")
+ proto.RegisterType((*GatewaySpec)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.GatewaySpec")
+ proto.RegisterType((*GatewayStatus)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.GatewayStatus")
+ proto.RegisterMapType((map[string]NodeStatus)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.GatewayStatus.NodesEntry")
+ proto.RegisterType((*Metadata)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.Metadata")
+ proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.Metadata.AnnotationsEntry")
+ proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.Metadata.LabelsEntry")
+ proto.RegisterType((*NATSSubscriber)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.NATSSubscriber")
+ proto.RegisterType((*NodeStatus)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.NodeStatus")
+ proto.RegisterType((*Service)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.Service")
+ proto.RegisterType((*Subscribers)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.Subscribers")
+ proto.RegisterType((*Template)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.Template")
+}
+
+func init() {
+ proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1/generated.proto", fileDescriptor_ba11c13056ce1980)
+}
+
+var fileDescriptor_ba11c13056ce1980 = []byte{
+ // 1440 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcf, 0x6f, 0x1b, 0xc5,
+ 0x17, 0xcf, 0x3a, 0x76, 0x6c, 0x8f, 0x9b, 0xa4, 0xdf, 0xe9, 0x17, 0xc9, 0x32, 0xc5, 0xae, 0x7c,
+ 0x40, 0x05, 0xa9, 0xeb, 0x36, 0x02, 0xd4, 0x82, 0x00, 0xc5, 0x49, 0x4a, 0x53, 0x35, 0x69, 0x34,
+ 0x76, 0x41, 0xa2, 0x48, 0x74, 0xb2, 0x9e, 0xd8, 0xdb, 0x78, 0x77, 0x96, 0x9d, 0x59, 0xb7, 0x3e,
+ 0xc1, 0x85, 0x13, 0x08, 0x71, 0xe4, 0xc2, 0x91, 0xbf, 0x02, 0x21, 0x8e, 0xf4, 0xc0, 0xa1, 0x07,
+ 0x0e, 0x3d, 0x59, 0xd4, 0xfc, 0x17, 0x3d, 0xa1, 0x99, 0x9d, 0xd9, 0x59, 0x3b, 0x0e, 0x4d, 0xe3,
+ 0x9c, 0xbc, 0xf3, 0xe6, 0xcd, 0xe7, 0xf3, 0x66, 0xde, 0x4f, 0x83, 0xed, 0xae, 0xcb, 0x7b, 0xd1,
+ 0xbe, 0xed, 0x50, 0xaf, 0x81, 0xc3, 0x2e, 0x0d, 0x42, 0xfa, 0x50, 0x7e, 0x5c, 0x21, 0x03, 0xe2,
+ 0x73, 0xd6, 0x08, 0x0e, 0xbb, 0x0d, 0x1c, 0xb8, 0xac, 0xd1, 0xc5, 0x9c, 0x3c, 0xc2, 0xc3, 0xc6,
+ 0xe0, 0x1a, 0xee, 0x07, 0x3d, 0x7c, 0xad, 0xd1, 0x25, 0x3e, 0x09, 0x31, 0x27, 0x1d, 0x3b, 0x08,
+ 0x29, 0xa7, 0xf0, 0x86, 0x81, 0xb2, 0x35, 0x94, 0xfc, 0xf8, 0x32, 0x86, 0xb2, 0x83, 0xc3, 0xae,
+ 0x2d, 0xa0, 0x6c, 0x05, 0x65, 0x6b, 0xa8, 0xca, 0xc7, 0x27, 0xb6, 0xc2, 0xa1, 0x9e, 0x47, 0xfd,
+ 0x69, 0xee, 0xca, 0x95, 0x14, 0x40, 0x97, 0x76, 0x69, 0x43, 0x8a, 0xf7, 0xa3, 0x03, 0xb9, 0x92,
+ 0x0b, 0xf9, 0xa5, 0xd4, 0xeb, 0x87, 0xd7, 0x99, 0xed, 0x52, 0x01, 0xd9, 0x70, 0x68, 0x48, 0x1a,
+ 0x83, 0x23, 0xd7, 0xa9, 0xbc, 0x63, 0x74, 0x3c, 0xec, 0xf4, 0x5c, 0x9f, 0x84, 0x43, 0x63, 0x87,
+ 0x47, 0x38, 0x9e, 0x75, 0xaa, 0x71, 0xdc, 0xa9, 0x30, 0xf2, 0xb9, 0xeb, 0x91, 0x23, 0x07, 0xde,
+ 0x7b, 0xd9, 0x01, 0xe6, 0xf4, 0x88, 0x87, 0xa7, 0xcf, 0xd5, 0x1d, 0xb0, 0xb2, 0x25, 0xde, 0xa6,
+ 0x45, 0xa3, 0xd0, 0x21, 0x88, 0x1c, 0xc0, 0x4b, 0x20, 0xeb, 0x63, 0x8f, 0x94, 0xad, 0x4b, 0xd6,
+ 0xe5, 0x62, 0xf3, 0xdc, 0x93, 0x51, 0x6d, 0x61, 0x3c, 0xaa, 0x65, 0x77, 0xb1, 0x47, 0x90, 0xdc,
+ 0x81, 0x0d, 0x50, 0x14, 0xbf, 0x2c, 0xc0, 0x0e, 0x29, 0x67, 0xa4, 0xda, 0xff, 0x94, 0x5a, 0x71,
+ 0x57, 0x6f, 0x20, 0xa3, 0x53, 0xff, 0x23, 0x03, 0xf2, 0x9f, 0xc4, 0xce, 0x82, 0x0f, 0x40, 0x41,
+ 0x5c, 0xba, 0x83, 0x39, 0x96, 0x14, 0xa5, 0xb5, 0xab, 0x76, 0x6c, 0xbb, 0x9d, 0xb6, 0xdd, 0x78,
+ 0x59, 0x68, 0xdb, 0x83, 0x6b, 0xf6, 0xdd, 0xfd, 0x87, 0xc4, 0xe1, 0x3b, 0x84, 0xe3, 0x26, 0x54,
+ 0x6c, 0xc0, 0xc8, 0x50, 0x82, 0x0a, 0x03, 0xb0, 0xc4, 0x38, 0xe6, 0x11, 0x93, 0xb6, 0x95, 0xd6,
+ 0x6e, 0xd9, 0xa7, 0x8e, 0x28, 0x5b, 0x59, 0xdd, 0x92, 0x78, 0xcd, 0x15, 0xc5, 0xbb, 0x14, 0xaf,
+ 0x91, 0xe2, 0x81, 0x3d, 0x90, 0x65, 0x01, 0x71, 0xca, 0x8b, 0x92, 0xef, 0xe6, 0x19, 0xf0, 0x05,
+ 0xc4, 0x31, 0x4f, 0x2f, 0x56, 0x48, 0x32, 0xd4, 0xff, 0xb2, 0x40, 0x49, 0xe9, 0xdc, 0x71, 0x19,
+ 0x87, 0x5f, 0x1c, 0x79, 0x4d, 0xfb, 0x64, 0xaf, 0x29, 0x4e, 0xcb, 0xb7, 0x3c, 0xaf, 0x58, 0x0a,
+ 0x5a, 0x92, 0x7a, 0xc9, 0x2e, 0xc8, 0xb9, 0x9c, 0x78, 0xe2, 0x21, 0x17, 0x2f, 0x97, 0xd6, 0x9a,
+ 0xf3, 0x5f, 0xac, 0xb9, 0xac, 0xe8, 0x72, 0xdb, 0x02, 0x18, 0xc5, 0xf8, 0xf5, 0x3f, 0x2d, 0xb0,
+ 0xaa, 0x34, 0x10, 0x61, 0x32, 0x14, 0xe1, 0x03, 0x00, 0x3a, 0x24, 0xe8, 0xd3, 0xa1, 0x47, 0x7c,
+ 0x7e, 0xea, 0x50, 0x59, 0x11, 0x61, 0xb2, 0x99, 0xe0, 0xa0, 0x14, 0x26, 0xfc, 0x0c, 0xe4, 0x19,
+ 0x09, 0x07, 0xae, 0x8a, 0xe2, 0xd3, 0xc0, 0x97, 0xc6, 0xa3, 0x5a, 0xbe, 0x15, 0x83, 0x20, 0x8d,
+ 0x56, 0xff, 0x35, 0x97, 0x78, 0x49, 0xf8, 0x0e, 0x7e, 0x05, 0x0a, 0x9c, 0x78, 0x41, 0x1f, 0x73,
+ 0xa2, 0x2e, 0xb2, 0x31, 0xc7, 0x53, 0xb6, 0x15, 0x94, 0x71, 0x9d, 0x96, 0xa0, 0x84, 0x06, 0x7e,
+ 0x6b, 0x81, 0x15, 0x32, 0x91, 0xd8, 0xea, 0x8e, 0xdb, 0x73, 0x30, 0x4f, 0x56, 0x8a, 0x26, 0x1c,
+ 0x8f, 0x6a, 0x53, 0xd5, 0x03, 0x4d, 0x91, 0x42, 0x07, 0x64, 0xf9, 0x30, 0x20, 0x32, 0x35, 0x8a,
+ 0xcd, 0xbb, 0x3a, 0xa4, 0xdb, 0xc3, 0x80, 0xbc, 0x18, 0xd5, 0x5e, 0xb5, 0x60, 0xa7, 0x2d, 0x10,
+ 0x10, 0x48, 0x82, 0x43, 0xd7, 0x38, 0x32, 0x2b, 0x2f, 0x39, 0x4f, 0xa4, 0x2a, 0x6f, 0xce, 0x76,
+ 0x2d, 0x1c, 0x82, 0x12, 0x8b, 0xf6, 0x99, 0x13, 0xba, 0xfb, 0x24, 0x64, 0xe5, 0xdc, 0xdc, 0x19,
+ 0xdf, 0x32, 0x68, 0xcd, 0xd5, 0xf1, 0xa8, 0x56, 0x4a, 0x09, 0x50, 0x9a, 0x0b, 0x7e, 0x00, 0x96,
+ 0x83, 0x90, 0x3a, 0x84, 0x31, 0x1a, 0xee, 0xd1, 0x90, 0x97, 0x97, 0xe4, 0x9b, 0xbe, 0xa6, 0xde,
+ 0x74, 0x79, 0x2f, 0xbd, 0x89, 0x26, 0x75, 0xe1, 0x5b, 0x20, 0x1f, 0x92, 0xa0, 0xef, 0x3a, 0xb8,
+ 0x9c, 0xbf, 0x64, 0x5d, 0xce, 0x35, 0x57, 0xd5, 0xb1, 0x3c, 0x8a, 0xc5, 0x48, 0xef, 0xd7, 0x7f,
+ 0xcb, 0x82, 0xe5, 0x89, 0xba, 0x07, 0xaf, 0x82, 0x5c, 0xd0, 0xc3, 0x4c, 0xf7, 0x84, 0x8a, 0xce,
+ 0xe1, 0x3d, 0x21, 0x7c, 0x21, 0xaa, 0x3e, 0xed, 0x10, 0xb9, 0x40, 0xb1, 0x22, 0xbc, 0x0f, 0x8a,
+ 0x8c, 0xe3, 0x90, 0x93, 0xce, 0x3a, 0x57, 0x81, 0xf7, 0xf6, 0xc9, 0x92, 0xab, 0xed, 0x7a, 0xc4,
+ 0xb4, 0x93, 0x96, 0x06, 0x41, 0x06, 0x4f, 0xdc, 0xc5, 0x23, 0x8c, 0xe1, 0xae, 0x0e, 0xab, 0xe4,
+ 0x2e, 0x3b, 0xb1, 0x18, 0xe9, 0x7d, 0xf8, 0x18, 0xe4, 0x7c, 0xda, 0x21, 0xac, 0x9c, 0x95, 0x15,
+ 0xac, 0x75, 0x56, 0xad, 0xc0, 0x16, 0x37, 0x66, 0x5b, 0x3e, 0x0f, 0x53, 0x25, 0x4d, 0xca, 0x50,
+ 0x4c, 0x08, 0x1f, 0x81, 0x62, 0xa8, 0x4a, 0x99, 0x0e, 0x93, 0xdb, 0xf3, 0xb3, 0xeb, 0xea, 0xd8,
+ 0x5c, 0x16, 0xaf, 0xa3, 0x57, 0x0c, 0x19, 0xae, 0xca, 0xd7, 0x00, 0x18, 0xe3, 0xe0, 0x79, 0xb0,
+ 0x78, 0x48, 0x86, 0xb1, 0xe3, 0x90, 0xf8, 0x84, 0xf7, 0x41, 0x6e, 0x80, 0xfb, 0x91, 0xae, 0x79,
+ 0x5b, 0x73, 0x18, 0x25, 0x78, 0x54, 0x2b, 0x8c, 0x31, 0xdf, 0xcf, 0x5c, 0xb7, 0xea, 0xdf, 0x2f,
+ 0x82, 0xc2, 0x8e, 0x6e, 0x21, 0xdf, 0x59, 0xa0, 0x84, 0x7d, 0x9f, 0x72, 0xcc, 0x5d, 0xea, 0xb3,
+ 0xb2, 0x25, 0xfd, 0xd0, 0x9e, 0x83, 0x54, 0x43, 0xdb, 0xeb, 0x06, 0x36, 0x76, 0xc4, 0x05, 0xe5,
+ 0x88, 0x52, 0x6a, 0x07, 0xa5, 0xd9, 0xe1, 0x23, 0xb0, 0xd4, 0xc7, 0xfb, 0xa4, 0xaf, 0x3b, 0xda,
+ 0xdd, 0xb3, 0xb0, 0xe3, 0x8e, 0x44, 0x8c, 0x4d, 0x48, 0x26, 0x84, 0x58, 0x88, 0x14, 0x5d, 0xe5,
+ 0x23, 0x70, 0x7e, 0xda, 0xdc, 0x19, 0xae, 0xf9, 0x7f, 0xda, 0x35, 0xc5, 0xd4, 0x9b, 0x56, 0x6e,
+ 0x80, 0x52, 0x8a, 0xe6, 0x55, 0x8e, 0xd6, 0x7f, 0xb0, 0xc0, 0xca, 0xee, 0x7a, 0xbb, 0x65, 0xea,
+ 0x8a, 0x18, 0xe0, 0x44, 0x3d, 0x23, 0xe1, 0x3d, 0x74, 0x47, 0xe5, 0xb4, 0xc9, 0x38, 0xbd, 0x81,
+ 0x8c, 0x8e, 0xc8, 0x38, 0x16, 0xc9, 0xae, 0xa7, 0xe6, 0xbd, 0x24, 0xe3, 0x5a, 0xb1, 0x18, 0xe9,
+ 0xfd, 0x64, 0x7c, 0x5c, 0x3c, 0x6e, 0x7c, 0xac, 0xff, 0xb2, 0x18, 0x47, 0xa8, 0x2a, 0x2e, 0x15,
+ 0x90, 0x71, 0x3b, 0xca, 0x0a, 0xa0, 0xd4, 0x33, 0xdb, 0x9b, 0x28, 0xe3, 0x76, 0x12, 0xb0, 0xcc,
+ 0xb1, 0xb3, 0xe8, 0xbb, 0xa0, 0xd4, 0x71, 0x59, 0xd0, 0xc7, 0xc3, 0x5d, 0xc3, 0x9a, 0x04, 0xc2,
+ 0xa6, 0xd9, 0x42, 0x69, 0x3d, 0x53, 0xd1, 0xb2, 0x27, 0xad, 0x68, 0x0f, 0xd2, 0x15, 0x2d, 0xce,
+ 0xe7, 0xc6, 0xc9, 0x2a, 0xda, 0x8e, 0xeb, 0x84, 0xf4, 0xd5, 0xca, 0xda, 0xd2, 0x4b, 0xca, 0x9a,
+ 0x03, 0x40, 0x14, 0x74, 0x30, 0x27, 0x02, 0x56, 0x16, 0xf4, 0x53, 0x58, 0x93, 0x4c, 0xd1, 0xf7,
+ 0x12, 0x28, 0x94, 0x82, 0xad, 0xff, 0x6e, 0x01, 0xdd, 0xff, 0xe0, 0x26, 0xc8, 0x05, 0x34, 0xe4,
+ 0x3a, 0x7f, 0x6b, 0x29, 0x2e, 0x5b, 0xfc, 0xf3, 0x11, 0xc8, 0x4a, 0x57, 0xb4, 0x1b, 0x53, 0x13,
+ 0xc5, 0x8a, 0xa1, 0xf8, 0xb0, 0x88, 0x3b, 0xa7, 0x1f, 0x31, 0x4e, 0xc2, 0xed, 0xbd, 0xe9, 0x3f,
+ 0x0e, 0x1b, 0x7a, 0x03, 0x19, 0x1d, 0xf8, 0xe1, 0xc4, 0x60, 0xfd, 0x5f, 0xac, 0x72, 0x62, 0x2e,
+ 0x4c, 0x4d, 0xcb, 0x3f, 0x59, 0x20, 0xdd, 0x4e, 0xe1, 0x45, 0x90, 0xed, 0x71, 0x1e, 0xc8, 0x4b,
+ 0x14, 0x63, 0xed, 0x5b, 0xed, 0xf6, 0x1e, 0x92, 0x52, 0x78, 0x28, 0x82, 0x8d, 0xeb, 0xd2, 0x30,
+ 0xcf, 0x9c, 0x34, 0x99, 0x6e, 0xa9, 0xb8, 0x5d, 0x6f, 0xb7, 0x90, 0x24, 0xa9, 0xff, 0x9c, 0x03,
+ 0xc9, 0xd8, 0x26, 0xe6, 0xc3, 0xa9, 0x29, 0x7e, 0xe3, 0x0c, 0x0a, 0x93, 0x99, 0x0f, 0xb5, 0x24,
+ 0x35, 0xda, 0xdf, 0x06, 0x50, 0x8d, 0x34, 0xeb, 0x8e, 0x43, 0x23, 0x9f, 0xef, 0x9a, 0x3c, 0xd3,
+ 0xd9, 0x00, 0x5b, 0x47, 0x34, 0xd0, 0x8c, 0x53, 0xf0, 0x36, 0x28, 0x3a, 0xd4, 0xe7, 0x58, 0x44,
+ 0x9c, 0x72, 0xd5, 0x1b, 0xb3, 0x5c, 0xb5, 0xa1, 0x95, 0xe2, 0xee, 0x95, 0x2c, 0x91, 0x39, 0x0e,
+ 0xb7, 0x40, 0x7e, 0x40, 0xfb, 0x91, 0x97, 0xb4, 0xec, 0xca, 0x2c, 0xa4, 0x4f, 0xa5, 0x8a, 0x49,
+ 0x90, 0x78, 0xcd, 0x90, 0x3e, 0x0b, 0x09, 0x58, 0x65, 0xc4, 0x89, 0x42, 0x97, 0x0f, 0x05, 0x0d,
+ 0x79, 0xac, 0x73, 0xf6, 0xcd, 0x59, 0x70, 0x7b, 0xb4, 0xd3, 0x9a, 0xd4, 0x6e, 0x5e, 0x18, 0x8f,
+ 0x6a, 0xab, 0x53, 0x42, 0x34, 0x8d, 0x09, 0x6f, 0x82, 0x02, 0x3e, 0x38, 0x70, 0x7d, 0x97, 0x0f,
+ 0x65, 0xce, 0x96, 0xd6, 0x2e, 0xce, 0xc2, 0x5f, 0x57, 0x3a, 0xcd, 0x73, 0xc2, 0x1b, 0x7a, 0x85,
+ 0x92, 0xb3, 0xf0, 0x1e, 0x28, 0x71, 0xda, 0x17, 0x7f, 0xcc, 0x65, 0x93, 0xcc, 0xcb, 0x9b, 0x57,
+ 0x67, 0x41, 0xb5, 0x13, 0x35, 0x53, 0xe5, 0x8c, 0x8c, 0xa1, 0x34, 0x0e, 0xbc, 0xa1, 0xd2, 0xa7,
+ 0x20, 0x4d, 0x7b, 0xfd, 0xb8, 0xab, 0xcf, 0x48, 0x9d, 0xa6, 0xfd, 0xe4, 0x79, 0x75, 0xe1, 0xe9,
+ 0xf3, 0xea, 0xc2, 0xb3, 0xe7, 0xd5, 0x85, 0x6f, 0xc6, 0x55, 0xeb, 0xc9, 0xb8, 0x6a, 0x3d, 0x1d,
+ 0x57, 0xad, 0x67, 0xe3, 0xaa, 0xf5, 0xf7, 0xb8, 0x6a, 0xfd, 0xf8, 0x4f, 0x75, 0xe1, 0xf3, 0x82,
+ 0x0e, 0xba, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb2, 0x76, 0x7d, 0x54, 0x01, 0x12, 0x00, 0x00,
+}
+
+func (m *EventSourceRef) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EventSourceRef) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EventSourceRef) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *Gateway) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Gateway) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Gateway) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ {
+ size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ {
+ size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ {
+ size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *GatewayList) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *GatewayList) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *GatewayList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Items) > 0 {
+ for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ {
+ size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *GatewayResource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *GatewayResource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *GatewayResource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Service != nil {
+ {
+ size, err := m.Service.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.Deployment != nil {
+ {
+ size, err := m.Deployment.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *GatewaySpec) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *GatewaySpec) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *GatewaySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i = encodeVarintGenerated(dAtA, i, uint64(m.Replica))
+ i--
+ dAtA[i] = 0x38
+ i -= len(m.ProcessorPort)
+ copy(dAtA[i:], m.ProcessorPort)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ProcessorPort)))
+ i--
+ dAtA[i] = 0x32
+ if m.Subscribers != nil {
+ {
+ size, err := m.Subscribers.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ if m.Service != nil {
+ {
+ size, err := m.Service.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ i -= len(m.Type)
+ copy(dAtA[i:], m.Type)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
+ i--
+ dAtA[i] = 0x1a
+ if m.EventSourceRef != nil {
+ {
+ size, err := m.EventSourceRef.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ {
+ size, err := m.Template.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *GatewayStatus) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *GatewayStatus) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *GatewayStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Resources != nil {
+ {
+ size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ if len(m.Nodes) > 0 {
+ keysForNodes := make([]string, 0, len(m.Nodes))
+ for k := range m.Nodes {
+ keysForNodes = append(keysForNodes, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForNodes)
+ for iNdEx := len(keysForNodes) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Nodes[string(keysForNodes[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForNodes[iNdEx])
+ copy(dAtA[i:], keysForNodes[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForNodes[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ i -= len(m.Message)
+ copy(dAtA[i:], m.Message)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
+ i--
+ dAtA[i] = 0x1a
+ {
+ size, err := m.StartedAt.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Phase)
+ copy(dAtA[i:], m.Phase)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *Metadata) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Metadata) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Labels) > 0 {
+ keysForLabels := make([]string, 0, len(m.Labels))
+ for k := range m.Labels {
+ keysForLabels = append(keysForLabels, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
+ for iNdEx := len(keysForLabels) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Labels[string(keysForLabels[iNdEx])]
+ baseI := i
+ i -= len(v)
+ copy(dAtA[i:], v)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForLabels[iNdEx])
+ copy(dAtA[i:], keysForLabels[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForLabels[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if len(m.Annotations) > 0 {
+ keysForAnnotations := make([]string, 0, len(m.Annotations))
+ for k := range m.Annotations {
+ keysForAnnotations = append(keysForAnnotations, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
+ for iNdEx := len(keysForAnnotations) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Annotations[string(keysForAnnotations[iNdEx])]
+ baseI := i
+ i -= len(v)
+ copy(dAtA[i:], v)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForAnnotations[iNdEx])
+ copy(dAtA[i:], keysForAnnotations[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAnnotations[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *NATSSubscriber) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *NATSSubscriber) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *NATSSubscriber) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Subject)
+ copy(dAtA[i:], m.Subject)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Subject)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.ServerURL)
+ copy(dAtA[i:], m.ServerURL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServerURL)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *NodeStatus) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *NodeStatus) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *NodeStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ {
+ size, err := m.UpdateTime.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ i -= len(m.Message)
+ copy(dAtA[i:], m.Message)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
+ i--
+ dAtA[i] = 0x32
+ {
+ size, err := m.StartedAt.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ i -= len(m.Phase)
+ copy(dAtA[i:], m.Phase)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase)))
+ i--
+ dAtA[i] = 0x22
+ i -= len(m.DisplayName)
+ copy(dAtA[i:], m.DisplayName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.DisplayName)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.ID)
+ copy(dAtA[i:], m.ID)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *Service) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Service) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Service) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Spec != nil {
+ {
+ size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ i -= len(m.ClusterIP)
+ copy(dAtA[i:], m.ClusterIP)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClusterIP)))
+ i--
+ dAtA[i] = 0x12
+ if len(m.Ports) > 0 {
+ for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *Subscribers) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Subscribers) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Subscribers) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.NATS) > 0 {
+ for iNdEx := len(m.NATS) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.NATS[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if len(m.HTTP) > 0 {
+ for iNdEx := len(m.HTTP) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.HTTP[iNdEx])
+ copy(dAtA[i:], m.HTTP[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.HTTP[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *Template) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Template) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Template) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Spec != nil {
+ {
+ size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x42
+ }
+ if len(m.Tolerations) > 0 {
+ for iNdEx := len(m.Tolerations) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Tolerations[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ }
+ }
+ if m.Affinity != nil {
+ {
+ size, err := m.Affinity.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ if m.SecurityContext != nil {
+ {
+ size, err := m.SecurityContext.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ if len(m.Volumes) > 0 {
+ for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Volumes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ if m.Container != nil {
+ {
+ size, err := m.Container.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ i -= len(m.ServiceAccountName)
+ copy(dAtA[i:], m.ServiceAccountName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceAccountName)))
+ i--
+ dAtA[i] = 0x12
+ {
+ size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
+ offset -= sovGenerated(v)
+ base := offset
+ for v >= 1<<7 {
+ dAtA[offset] = uint8(v&0x7f | 0x80)
+ v >>= 7
+ offset++
+ }
+ dAtA[offset] = uint8(v)
+ return base
+}
+func (m *EventSourceRef) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Name)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *Gateway) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.ObjectMeta.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.Status.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.Spec.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *GatewayList) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.ListMeta.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Items) > 0 {
+ for _, e := range m.Items {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *GatewayResource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Deployment != nil {
+ l = m.Deployment.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Service != nil {
+ l = m.Service.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *GatewaySpec) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.Template.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.EventSourceRef != nil {
+ l = m.EventSourceRef.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Type)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Service != nil {
+ l = m.Service.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Subscribers != nil {
+ l = m.Subscribers.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.ProcessorPort)
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 1 + sovGenerated(uint64(m.Replica))
+ return n
+}
+
+func (m *GatewayStatus) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Phase)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.StartedAt.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Message)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Nodes) > 0 {
+ for k, v := range m.Nodes {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if m.Resources != nil {
+ l = m.Resources.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *Metadata) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Annotations) > 0 {
+ for k, v := range m.Annotations {
+ _ = k
+ _ = v
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.Labels) > 0 {
+ for k, v := range m.Labels {
+ _ = k
+ _ = v
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ return n
+}
+
+func (m *NATSSubscriber) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ServerURL)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Subject)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Name)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *NodeStatus) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ID)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Name)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.DisplayName)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Phase)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.StartedAt.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Message)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.UpdateTime.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *Service) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Ports) > 0 {
+ for _, e := range m.Ports {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ l = len(m.ClusterIP)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Spec != nil {
+ l = m.Spec.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *Subscribers) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.HTTP) > 0 {
+ for _, s := range m.HTTP {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if len(m.NATS) > 0 {
+ for _, e := range m.NATS {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *Template) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.Metadata.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ServiceAccountName)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Container != nil {
+ l = m.Container.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if len(m.Volumes) > 0 {
+ for _, e := range m.Volumes {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if m.SecurityContext != nil {
+ l = m.SecurityContext.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Affinity != nil {
+ l = m.Affinity.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if len(m.Tolerations) > 0 {
+ for _, e := range m.Tolerations {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if m.Spec != nil {
+ l = m.Spec.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func sovGenerated(x uint64) (n int) {
+ return (math_bits.Len64(x|1) + 6) / 7
+}
+func sozGenerated(x uint64) (n int) {
+ return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
+}
+func (this *EventSourceRef) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&EventSourceRef{`,
+ `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Gateway) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&Gateway{`,
+ `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
+ `Status:` + strings.Replace(strings.Replace(this.Status.String(), "GatewayStatus", "GatewayStatus", 1), `&`, ``, 1) + `,`,
+ `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "GatewaySpec", "GatewaySpec", 1), `&`, ``, 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *GatewayList) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForItems := "[]Gateway{"
+ for _, f := range this.Items {
+ repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Gateway", "Gateway", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForItems += "}"
+ s := strings.Join([]string{`&GatewayList{`,
+ `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
+ `Items:` + repeatedStringForItems + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *GatewayResource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&GatewayResource{`,
+ `Deployment:` + strings.Replace(fmt.Sprintf("%v", this.Deployment), "ObjectMeta", "v1.ObjectMeta", 1) + `,`,
+ `Service:` + strings.Replace(fmt.Sprintf("%v", this.Service), "ObjectMeta", "v1.ObjectMeta", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *GatewaySpec) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&GatewaySpec{`,
+ `Template:` + strings.Replace(strings.Replace(this.Template.String(), "Template", "Template", 1), `&`, ``, 1) + `,`,
+ `EventSourceRef:` + strings.Replace(this.EventSourceRef.String(), "EventSourceRef", "EventSourceRef", 1) + `,`,
+ `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
+ `Service:` + strings.Replace(this.Service.String(), "Service", "Service", 1) + `,`,
+ `Subscribers:` + strings.Replace(this.Subscribers.String(), "Subscribers", "Subscribers", 1) + `,`,
+ `ProcessorPort:` + fmt.Sprintf("%v", this.ProcessorPort) + `,`,
+ `Replica:` + fmt.Sprintf("%v", this.Replica) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *GatewayStatus) String() string {
+ if this == nil {
+ return "nil"
+ }
+ keysForNodes := make([]string, 0, len(this.Nodes))
+ for k := range this.Nodes {
+ keysForNodes = append(keysForNodes, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForNodes)
+ mapStringForNodes := "map[string]NodeStatus{"
+ for _, k := range keysForNodes {
+ mapStringForNodes += fmt.Sprintf("%v: %v,", k, this.Nodes[k])
+ }
+ mapStringForNodes += "}"
+ s := strings.Join([]string{`&GatewayStatus{`,
+ `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`,
+ `StartedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.StartedAt), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
+ `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
+ `Nodes:` + mapStringForNodes + `,`,
+ `Resources:` + strings.Replace(this.Resources.String(), "GatewayResource", "GatewayResource", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Metadata) String() string {
+ if this == nil {
+ return "nil"
+ }
+ keysForAnnotations := make([]string, 0, len(this.Annotations))
+ for k := range this.Annotations {
+ keysForAnnotations = append(keysForAnnotations, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
+ mapStringForAnnotations := "map[string]string{"
+ for _, k := range keysForAnnotations {
+ mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
+ }
+ mapStringForAnnotations += "}"
+ keysForLabels := make([]string, 0, len(this.Labels))
+ for k := range this.Labels {
+ keysForLabels = append(keysForLabels, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
+ mapStringForLabels := "map[string]string{"
+ for _, k := range keysForLabels {
+ mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
+ }
+ mapStringForLabels += "}"
+ s := strings.Join([]string{`&Metadata{`,
+ `Annotations:` + mapStringForAnnotations + `,`,
+ `Labels:` + mapStringForLabels + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *NATSSubscriber) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&NATSSubscriber{`,
+ `ServerURL:` + fmt.Sprintf("%v", this.ServerURL) + `,`,
+ `Subject:` + fmt.Sprintf("%v", this.Subject) + `,`,
+ `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *NodeStatus) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&NodeStatus{`,
+ `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
+ `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
+ `DisplayName:` + fmt.Sprintf("%v", this.DisplayName) + `,`,
+ `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`,
+ `StartedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.StartedAt), "MicroTime", "v1.MicroTime", 1), `&`, ``, 1) + `,`,
+ `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
+ `UpdateTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UpdateTime), "MicroTime", "v1.MicroTime", 1), `&`, ``, 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Service) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForPorts := "[]ServicePort{"
+ for _, f := range this.Ports {
+ repeatedStringForPorts += fmt.Sprintf("%v", f) + ","
+ }
+ repeatedStringForPorts += "}"
+ s := strings.Join([]string{`&Service{`,
+ `Ports:` + repeatedStringForPorts + `,`,
+ `ClusterIP:` + fmt.Sprintf("%v", this.ClusterIP) + `,`,
+ `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "ServiceSpec", "v11.ServiceSpec", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Subscribers) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForNATS := "[]NATSSubscriber{"
+ for _, f := range this.NATS {
+ repeatedStringForNATS += strings.Replace(strings.Replace(f.String(), "NATSSubscriber", "NATSSubscriber", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForNATS += "}"
+ s := strings.Join([]string{`&Subscribers{`,
+ `HTTP:` + fmt.Sprintf("%v", this.HTTP) + `,`,
+ `NATS:` + repeatedStringForNATS + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Template) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForVolumes := "[]Volume{"
+ for _, f := range this.Volumes {
+ repeatedStringForVolumes += fmt.Sprintf("%v", f) + ","
+ }
+ repeatedStringForVolumes += "}"
+ repeatedStringForTolerations := "[]Toleration{"
+ for _, f := range this.Tolerations {
+ repeatedStringForTolerations += fmt.Sprintf("%v", f) + ","
+ }
+ repeatedStringForTolerations += "}"
+ s := strings.Join([]string{`&Template{`,
+ `Metadata:` + strings.Replace(strings.Replace(this.Metadata.String(), "Metadata", "Metadata", 1), `&`, ``, 1) + `,`,
+ `ServiceAccountName:` + fmt.Sprintf("%v", this.ServiceAccountName) + `,`,
+ `Container:` + strings.Replace(fmt.Sprintf("%v", this.Container), "Container", "v11.Container", 1) + `,`,
+ `Volumes:` + repeatedStringForVolumes + `,`,
+ `SecurityContext:` + strings.Replace(fmt.Sprintf("%v", this.SecurityContext), "PodSecurityContext", "v11.PodSecurityContext", 1) + `,`,
+ `Affinity:` + strings.Replace(fmt.Sprintf("%v", this.Affinity), "Affinity", "v11.Affinity", 1) + `,`,
+ `Tolerations:` + repeatedStringForTolerations + `,`,
+ `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "PodSpec", "v11.PodSpec", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func valueToStringGenerated(v interface{}) string {
+ rv := reflect.ValueOf(v)
+ if rv.IsNil() {
+ return "nil"
+ }
+ pv := reflect.Indirect(rv).Interface()
+ return fmt.Sprintf("*%v", pv)
+}
+func (m *EventSourceRef) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EventSourceRef: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EventSourceRef: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Gateway) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Gateway: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Gateway: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *GatewayList) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: GatewayList: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: GatewayList: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Items = append(m.Items, Gateway{})
+ if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *GatewayResource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: GatewayResource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: GatewayResource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Deployment", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Deployment == nil {
+ m.Deployment = &v1.ObjectMeta{}
+ }
+ if err := m.Deployment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Service == nil {
+ m.Service = &v1.ObjectMeta{}
+ }
+ if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *GatewaySpec) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: GatewaySpec: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: GatewaySpec: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field EventSourceRef", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.EventSourceRef == nil {
+ m.EventSourceRef = &EventSourceRef{}
+ }
+ if err := m.EventSourceRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Type = github_com_argoproj_argo_events_pkg_apis_common.EventSourceType(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Service == nil {
+ m.Service = &Service{}
+ }
+ if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Subscribers", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Subscribers == nil {
+ m.Subscribers = &Subscribers{}
+ }
+ if err := m.Subscribers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ProcessorPort", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ProcessorPort = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Replica", wireType)
+ }
+ m.Replica = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Replica |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *GatewayStatus) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: GatewayStatus: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: GatewayStatus: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Phase = NodePhase(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.StartedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Message = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Nodes == nil {
+ m.Nodes = make(map[string]NodeStatus)
+ }
+ var mapkey string
+ mapvalue := &NodeStatus{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &NodeStatus{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Nodes[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Resources == nil {
+ m.Resources = &GatewayResource{}
+ }
+ if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Metadata) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Metadata: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Annotations == nil {
+ m.Annotations = make(map[string]string)
+ }
+ var mapkey string
+ var mapvalue string
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var stringLenmapvalue uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapvalue |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapvalue := int(stringLenmapvalue)
+ if intStringLenmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
+ if postStringIndexmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapvalue > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
+ iNdEx = postStringIndexmapvalue
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Annotations[mapkey] = mapvalue
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Labels == nil {
+ m.Labels = make(map[string]string)
+ }
+ var mapkey string
+ var mapvalue string
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var stringLenmapvalue uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapvalue |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapvalue := int(stringLenmapvalue)
+ if intStringLenmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
+ if postStringIndexmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapvalue > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
+ iNdEx = postStringIndexmapvalue
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Labels[mapkey] = mapvalue
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *NATSSubscriber) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: NATSSubscriber: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: NATSSubscriber: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServerURL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServerURL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Subject = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *NodeStatus) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: NodeStatus: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: NodeStatus: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ID = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.DisplayName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Phase = NodePhase(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.StartedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Message = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field UpdateTime", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.UpdateTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Service) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Service: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Service: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Ports = append(m.Ports, v11.ServicePort{})
+ if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ClusterIP", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ClusterIP = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Spec == nil {
+ m.Spec = &v11.ServiceSpec{}
+ }
+ if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Subscribers) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Subscribers: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Subscribers: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HTTP", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.HTTP = append(m.HTTP, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NATS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.NATS = append(m.NATS, NATSSubscriber{})
+ if err := m.NATS[len(m.NATS)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Template) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Template: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Template: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServiceAccountName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Container == nil {
+ m.Container = &v11.Container{}
+ }
+ if err := m.Container.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Volumes = append(m.Volumes, v11.Volume{})
+ if err := m.Volumes[len(m.Volumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SecurityContext == nil {
+ m.SecurityContext = &v11.PodSecurityContext{}
+ }
+ if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Affinity", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Affinity == nil {
+ m.Affinity = &v11.Affinity{}
+ }
+ if err := m.Affinity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Tolerations", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Tolerations = append(m.Tolerations, v11.Toleration{})
+ if err := m.Tolerations[len(m.Tolerations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Spec == nil {
+ m.Spec = &v11.PodSpec{}
+ }
+ if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func skipGenerated(dAtA []byte) (n int, err error) {
+ l := len(dAtA)
+ iNdEx := 0
+ depth := 0
+ for iNdEx < l {
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= (uint64(b) & 0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ wireType := int(wire & 0x7)
+ switch wireType {
+ case 0:
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ iNdEx++
+ if dAtA[iNdEx-1] < 0x80 {
+ break
+ }
+ }
+ case 1:
+ iNdEx += 8
+ case 2:
+ var length int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ length |= (int(b) & 0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if length < 0 {
+ return 0, ErrInvalidLengthGenerated
+ }
+ iNdEx += length
+ case 3:
+ depth++
+ case 4:
+ if depth == 0 {
+ return 0, ErrUnexpectedEndOfGroupGenerated
+ }
+ depth--
+ case 5:
+ iNdEx += 4
+ default:
+ return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
+ }
+ if iNdEx < 0 {
+ return 0, ErrInvalidLengthGenerated
+ }
+ if depth == 0 {
+ return iNdEx, nil
+ }
+ }
+ return 0, io.ErrUnexpectedEOF
+}
+
+var (
+ ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
+ ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
+ ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
+)
diff --git a/pkg/apis/gateway/v1alpha1/generated.proto b/pkg/apis/gateway/v1alpha1/generated.proto
new file mode 100644
index 0000000000..d4d2157274
--- /dev/null
+++ b/pkg/apis/gateway/v1alpha1/generated.proto
@@ -0,0 +1,235 @@
+/*
+Copyright 2020 BlackRock, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+// This file was autogenerated by go-to-protobuf. Do not edit it manually!
+
+syntax = 'proto2';
+
+package github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1;
+
+import "github.com/argoproj/argo-events/pkg/apis/common/generated.proto";
+import "k8s.io/api/core/v1/generated.proto";
+import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
+import "k8s.io/apimachinery/pkg/runtime/generated.proto";
+import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
+
+// Package-wide variables from generator "generated".
+option go_package = "v1alpha1";
+
+// EventSourceRef holds information about the EventSourceRef custom resource
+message EventSourceRef {
+ // Name of the event source
+ optional string name = 1;
+
+ // Namespace of the event source
+ // Default value is the namespace where referencing gateway is deployed
+ // +optional
+ optional string namespace = 2;
+}
+
+// Gateway is the definition of a gateway resource
+// +genclient
+// +kubebuilder:resource:shortName=gw
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+// +k8s:openapi-gen=true
+message Gateway {
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
+
+ optional GatewayStatus status = 2;
+
+ optional GatewaySpec spec = 3;
+}
+
+// GatewayList is the list of Gateway resources
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+message GatewayList {
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
+
+ repeated Gateway items = 2;
+}
+
+// GatewayResource holds the metadata about the gateway resources
+message GatewayResource {
+ // Metadata of the deployment for the gateway
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta deployment = 1;
+
+ // Metadata of the service for the gateway
+ // +optional
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta service = 2;
+}
+
+// GatewaySpec represents gateway specifications
+message GatewaySpec {
+ // Template is the pod specification for the gateway
+ // +optional
+ optional Template template = 1;
+
+ // EventSourceRef refers to event-source that stores event source configurations for the gateway
+ optional EventSourceRef eventSourceRef = 2;
+
+ // Type is the type of gateway. Used as metadata.
+ optional string type = 3;
+
+ // Service is the specifications of the service to expose the gateway
+ // +optional
+ optional Service service = 4;
+
+ // +optional
+ optional Subscribers subscribers = 5;
+
+ // Port on which the gateway event source processor is running on.
+ optional string processorPort = 6;
+
+ // Replica is the gateway deployment replicas
+ optional int32 replica = 7;
+}
+
+// GatewayStatus contains information about the status of a gateway.
+message GatewayStatus {
+ // Phase is the high-level summary of the gateway
+ optional string phase = 1;
+
+ // StartedAt is the time at which this gateway was initiated
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 2;
+
+ // Message is a human readable string indicating details about a gateway in its phase
+ optional string message = 3;
+
+ // Nodes is a mapping between a node ID and the node's status
+ // it records the states for the configurations of gateway.
+ map nodes = 4;
+
+ // Resources refers to the metadata about the gateway resources
+ optional GatewayResource resources = 5;
+}
+
+// Metadata holds the annotations and labels of a gateway pod
+message Metadata {
+ map annotations = 1;
+
+ map labels = 2;
+}
+
+// NATSSubscriber holds the context of subscriber over NATS.
+message NATSSubscriber {
+ // ServerURL refers to the NATS server URL.
+ optional string serverURL = 1;
+
+ // Subject refers to the NATS subject name.
+ optional string subject = 2;
+
+ // Name of the subscription. Must be unique.
+ optional string name = 3;
+}
+
+// NodeStatus describes the status for an individual node in the gateway configurations.
+// A single node can represent one configuration.
+message NodeStatus {
+ // ID is a unique identifier of a node within a sensor
+ // It is a hash of the node name
+ optional string id = 1;
+
+ // Name is a unique name in the node tree used to generate the node ID
+ optional string name = 2;
+
+ // DisplayName is the human readable representation of the node
+ optional string displayName = 3;
+
+ // Phase of the node
+ optional string phase = 4;
+
+ // StartedAt is the time at which this node started
+ // +k8s:openapi-gen=false
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime startedAt = 5;
+
+ // Message store data or something to save for configuration
+ optional string message = 6;
+
+ // UpdateTime is the time when node(gateway configuration) was updated
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime updateTime = 7;
+}
+
+// Service holds the service information gateway exposes
+message Service {
+ // The list of ports that are exposed by this ClusterIP service.
+ // +patchMergeKey=port
+ // +patchStrategy=merge
+ // +listType=map
+ // +listMapKey=port
+ // +listMapKey=protocol
+ repeated k8s.io.api.core.v1.ServicePort ports = 1;
+
+ // clusterIP is the IP address of the service and is usually assigned
+ // randomly by the master. If an address is specified manually and is not in
+ // use by others, it will be allocated to the service; otherwise, creation
+ // of the service will fail. This field can not be changed through updates.
+ // Valid values are "None", empty string (""), or a valid IP address. "None"
+ // can be specified for headless services when proxying is not required.
+ // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
+ // +optional
+ optional string clusterIP = 2;
+
+ // Spec holds the gateway service spec.
+ // DEPRECATED: Use Ports to declare the ports to be exposed.
+ optional k8s.io.api.core.v1.ServiceSpec spec = 3;
+}
+
+message Subscribers {
+ // +optional
+ repeated string http = 1;
+
+ // +optional
+ repeated NATSSubscriber nats = 2;
+}
+
+// Template holds the information of a Gateway deployment template
+message Template {
+ // Metdata sets the pods's metadata, i.e. annotations and labels
+ optional Metadata metadata = 1;
+
+ // ServiceAccountName is the name of the ServiceAccount to use to run gateway pod.
+ // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
+ // +optional
+ optional string serviceAccountName = 2;
+
+ // Container is the main container image to run in the gateway pod
+ // +optional
+ optional k8s.io.api.core.v1.Container container = 3;
+
+ // Volumes is a list of volumes that can be mounted by containers in a workflow.
+ // +patchStrategy=merge
+ // +patchMergeKey=name
+ // +optional
+ repeated k8s.io.api.core.v1.Volume volumes = 4;
+
+ // SecurityContext holds pod-level security attributes and common container settings.
+ // Optional: Defaults to empty. See type description for default values of each field.
+ // +optional
+ optional k8s.io.api.core.v1.PodSecurityContext securityContext = 5;
+
+ // If specified, the pod's scheduling constraints
+ // +optional
+ optional k8s.io.api.core.v1.Affinity affinity = 6;
+
+ // If specified, the pod's tolerations.
+ // +optional
+ repeated k8s.io.api.core.v1.Toleration tolerations = 7;
+
+ // Spec holds the gateway deployment spec.
+ // DEPRECATED: Use Container instead.
+ optional k8s.io.api.core.v1.PodSpec spec = 8;
+}
+
diff --git a/pkg/apis/gateway/v1alpha1/openapi_generated.go b/pkg/apis/gateway/v1alpha1/openapi_generated.go
index 9d3bf7ca66..de7643ba1f 100644
--- a/pkg/apis/gateway/v1alpha1/openapi_generated.go
+++ b/pkg/apis/gateway/v1alpha1/openapi_generated.go
@@ -144,11 +144,6 @@ func schema_pkg_apis_gateway_v1alpha1_GatewayList(ref common.ReferenceCallback)
},
},
"items": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "items",
- },
- },
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
@@ -189,7 +184,6 @@ func schema_pkg_apis_gateway_v1alpha1_GatewayResource(ref common.ReferenceCallba
},
},
},
- Required: []string{"deployment"},
},
},
Dependencies: []string{
@@ -230,14 +224,8 @@ func schema_pkg_apis_gateway_v1alpha1_GatewaySpec(ref common.ReferenceCallback)
},
},
"subscribers": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "subscribers",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Subscribers holds the contexts of the subscribers/sinks to send events to.",
- Ref: ref("github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1.Subscribers"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1.Subscribers"),
},
},
"processorPort": {
@@ -311,7 +299,7 @@ func schema_pkg_apis_gateway_v1alpha1_GatewayStatus(ref common.ReferenceCallback
},
},
},
- Required: []string{"phase", "resources"},
+ Required: []string{"phase"},
},
},
Dependencies: []string{
@@ -511,14 +499,8 @@ func schema_pkg_apis_gateway_v1alpha1_Subscribers(ref common.ReferenceCallback)
Type: []string{"object"},
Properties: map[string]spec.Schema{
"http": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "string",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "HTTP subscribers are HTTP endpoints to send events to.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -530,14 +512,8 @@ func schema_pkg_apis_gateway_v1alpha1_Subscribers(ref common.ReferenceCallback)
},
},
"nats": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "NATSSubscriber",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "NATS refers to the subscribers over NATS protocol.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
diff --git a/pkg/apis/gateway/v1alpha1/types.go b/pkg/apis/gateway/v1alpha1/types.go
index c7f4b5efd6..e1add68c58 100644
--- a/pkg/apis/gateway/v1alpha1/types.go
+++ b/pkg/apis/gateway/v1alpha1/types.go
@@ -36,6 +36,7 @@ const (
// Gateway is the definition of a gateway resource
// +genclient
+// +kubebuilder:resource:shortName=gw
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
type Gateway struct {
@@ -50,8 +51,8 @@ type Gateway struct {
type GatewayList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
- // +listType=items
- Items []Gateway `json:"items" protobuf:"bytes,2,opt,name=items"`
+
+ Items []Gateway `json:"items" protobuf:"bytes,2,rep,name=items"`
}
// GatewaySpec represents gateway specifications
@@ -62,18 +63,18 @@ type GatewaySpec struct {
// EventSourceRef refers to event-source that stores event source configurations for the gateway
EventSourceRef *EventSourceRef `json:"eventSourceRef,omitempty" protobuf:"bytes,2,opt,name=eventSourceRef"`
// Type is the type of gateway. Used as metadata.
- Type apicommon.EventSourceType `json:"type" protobuf:"bytes,3,opt,name=type"`
+ Type apicommon.EventSourceType `json:"type" protobuf:"bytes,3,opt,name=type,casttype=github.com/argoproj/argo-events/pkg/apis/common.EventSourceType"`
// Service is the specifications of the service to expose the gateway
// +optional
Service *Service `json:"service,omitempty" protobuf:"bytes,4,opt,name=service"`
// Subscribers holds the contexts of the subscribers/sinks to send events to.
- // +listType=subscribers
+
// +optional
Subscribers *Subscribers `json:"subscribers,omitempty" protobuf:"bytes,5,opt,name=subscribers"`
// Port on which the gateway event source processor is running on.
ProcessorPort string `json:"processorPort" protobuf:"bytes,6,opt,name=processorPort"`
// Replica is the gateway deployment replicas
- Replica int `json:"replica,omitempty" protobuf:"bytes,9,opt,name=replica"`
+ Replica int32 `json:"replica,omitempty" protobuf:"varint,7,opt,name=replica"`
}
// Template holds the information of a Gateway deployment template
@@ -91,7 +92,7 @@ type Template struct {
// +patchStrategy=merge
// +patchMergeKey=name
// +optional
- Volumes []corev1.Volume `json:"volumes,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,4,opt,name=volumes"`
+ Volumes []corev1.Volume `json:"volumes,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,4,rep,name=volumes"`
// SecurityContext holds pod-level security attributes and common container settings.
// Optional: Defaults to empty. See type description for default values of each field.
// +optional
@@ -101,7 +102,7 @@ type Template struct {
Affinity *corev1.Affinity `json:"affinity,omitempty" protobuf:"bytes,6,opt,name=affinity"`
// If specified, the pod's tolerations.
// +optional
- Tolerations []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,7,opt,name=tolerations"`
+ Tolerations []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,7,rep,name=tolerations"`
// Spec holds the gateway deployment spec.
// DEPRECATED: Use Container instead.
Spec *corev1.PodSpec `json:"spec,omitempty" protobuf:"bytes,8,opt,name=spec"`
@@ -109,8 +110,8 @@ type Template struct {
// Metadata holds the annotations and labels of a gateway pod
type Metadata struct {
- Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,1,opt,name=annotations"`
- Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,2,opt,name=labels"`
+ Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,1,rep,name=annotations"`
+ Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,2,rep,name=labels"`
}
// Service holds the service information gateway exposes
@@ -138,29 +139,29 @@ type Service struct {
type Subscribers struct {
// HTTP subscribers are HTTP endpoints to send events to.
- // +listType=string
+
// +optional
- HTTP []string `json:"http,omitempty" protobuf:"bytes,1,opt,name=http"`
+ HTTP []string `json:"http,omitempty" protobuf:"bytes,1,rep,name=http"`
// NATS refers to the subscribers over NATS protocol.
- // +listType=NATSSubscriber
+
// +optional
- NATS []NATSSubscriber `json:"nats,omitempty" protobuf:"bytes,2,opt,name=nats"`
+ NATS []NATSSubscriber `json:"nats,omitempty" protobuf:"bytes,2,rep,name=nats"`
}
// NATSSubscriber holds the context of subscriber over NATS.
type NATSSubscriber struct {
// ServerURL refers to the NATS server URL.
- ServerURL string `json:"serverURL" protobuf:"bytes,1,name=serverURL"`
+ ServerURL string `json:"serverURL" protobuf:"bytes,1,opt,name=serverURL"`
// Subject refers to the NATS subject name.
- Subject string `json:"subject" protobuf:"bytes,2,name=subject"`
+ Subject string `json:"subject" protobuf:"bytes,2,opt,name=subject"`
// Name of the subscription. Must be unique.
- Name string `json:"name" protobuf:"bytes,3,name=name"`
+ Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
}
// EventSourceRef holds information about the EventSourceRef custom resource
type EventSourceRef struct {
// Name of the event source
- Name string `json:"name" protobuf:"bytes,1,name=name"`
+ Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
// Namespace of the event source
// Default value is the namespace where referencing gateway is deployed
// +optional
@@ -170,7 +171,7 @@ type EventSourceRef struct {
// GatewayResource holds the metadata about the gateway resources
type GatewayResource struct {
// Metadata of the deployment for the gateway
- Deployment *metav1.ObjectMeta `json:"deployment" protobuf:"bytes,1,name=deployment"`
+ Deployment *metav1.ObjectMeta `json:"deployment,omitempty" protobuf:"bytes,1,opt,name=deployment"`
// Metadata of the service for the gateway
// +optional
Service *metav1.ObjectMeta `json:"service,omitempty" protobuf:"bytes,2,opt,name=service"`
@@ -179,16 +180,16 @@ type GatewayResource struct {
// GatewayStatus contains information about the status of a gateway.
type GatewayStatus struct {
// Phase is the high-level summary of the gateway
- Phase NodePhase `json:"phase" protobuf:"bytes,1,opt,name=phase"`
+ Phase NodePhase `json:"phase" protobuf:"bytes,1,opt,name=phase,casttype=NodePhase"`
// StartedAt is the time at which this gateway was initiated
StartedAt metav1.Time `json:"startedAt,omitempty" protobuf:"bytes,2,opt,name=startedAt"`
// Message is a human readable string indicating details about a gateway in its phase
- Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"`
+ Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"`
// Nodes is a mapping between a node ID and the node's status
// it records the states for the configurations of gateway.
- Nodes map[string]NodeStatus `json:"nodes,omitempty" protobuf:"bytes,5,rep,name=nodes"`
+ Nodes map[string]NodeStatus `json:"nodes,omitempty" protobuf:"bytes,4,rep,name=nodes"`
// Resources refers to the metadata about the gateway resources
- Resources *GatewayResource `json:"resources" protobuf:"bytes,6,opt,name=resources"`
+ Resources *GatewayResource `json:"resources,omitempty" protobuf:"bytes,5,opt,name=resources"`
}
// NodeStatus describes the status for an individual node in the gateway configurations.
@@ -198,16 +199,16 @@ type NodeStatus struct {
// It is a hash of the node name
ID string `json:"id" protobuf:"bytes,1,opt,name=id"`
// Name is a unique name in the node tree used to generate the node ID
- Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
+ Name string `json:"name" protobuf:"bytes,2,opt,name=name"`
// DisplayName is the human readable representation of the node
- DisplayName string `json:"displayName" protobuf:"bytes,5,opt,name=displayName"`
+ DisplayName string `json:"displayName" protobuf:"bytes,3,opt,name=displayName"`
// Phase of the node
- Phase NodePhase `json:"phase" protobuf:"bytes,6,opt,name=phase"`
+ Phase NodePhase `json:"phase" protobuf:"bytes,4,opt,name=phase,casttype=NodePhase"`
// StartedAt is the time at which this node started
// +k8s:openapi-gen=false
- StartedAt metav1.MicroTime `json:"startedAt,omitempty" protobuf:"bytes,7,opt,name=startedAt"`
+ StartedAt metav1.MicroTime `json:"startedAt,omitempty" protobuf:"bytes,5,opt,name=startedAt"`
// Message store data or something to save for configuration
- Message string `json:"message,omitempty" protobuf:"bytes,8,opt,name=message"`
+ Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"`
// UpdateTime is the time when node(gateway configuration) was updated
- UpdateTime metav1.MicroTime `json:"updateTime,omitempty" protobuf:"bytes,9,opt,name=updateTime"`
+ UpdateTime metav1.MicroTime `json:"updateTime,omitempty" protobuf:"bytes,7,opt,name=updateTime"`
}
diff --git a/pkg/apis/sensor/v1alpha1/generated.pb.go b/pkg/apis/sensor/v1alpha1/generated.pb.go
new file mode 100644
index 0000000000..2d2bcd205d
--- /dev/null
+++ b/pkg/apis/sensor/v1alpha1/generated.pb.go
@@ -0,0 +1,15413 @@
+/*
+Copyright 2020 BlackRock, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// source: github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1/generated.proto
+
+package v1alpha1
+
+import (
+ fmt "fmt"
+
+ common "github.com/argoproj/argo-events/pkg/apis/common"
+
+ io "io"
+
+ proto "github.com/gogo/protobuf/proto"
+ github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
+ v1 "k8s.io/api/core/v1"
+ v11 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
+ math "math"
+ math_bits "math/bits"
+ reflect "reflect"
+ strings "strings"
+
+ k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types"
+)
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ = proto.Marshal
+var _ = fmt.Errorf
+var _ = math.Inf
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the proto package it is being compiled against.
+// A compilation error at this line likely means your copy of the
+// proto package needs to be updated.
+const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
+
+func (m *AWSLambdaTrigger) Reset() { *m = AWSLambdaTrigger{} }
+func (*AWSLambdaTrigger) ProtoMessage() {}
+func (*AWSLambdaTrigger) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{0}
+}
+func (m *AWSLambdaTrigger) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *AWSLambdaTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *AWSLambdaTrigger) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_AWSLambdaTrigger.Merge(m, src)
+}
+func (m *AWSLambdaTrigger) XXX_Size() int {
+ return m.Size()
+}
+func (m *AWSLambdaTrigger) XXX_DiscardUnknown() {
+ xxx_messageInfo_AWSLambdaTrigger.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_AWSLambdaTrigger proto.InternalMessageInfo
+
+func (m *ArgoWorkflowTrigger) Reset() { *m = ArgoWorkflowTrigger{} }
+func (*ArgoWorkflowTrigger) ProtoMessage() {}
+func (*ArgoWorkflowTrigger) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{1}
+}
+func (m *ArgoWorkflowTrigger) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *ArgoWorkflowTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *ArgoWorkflowTrigger) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_ArgoWorkflowTrigger.Merge(m, src)
+}
+func (m *ArgoWorkflowTrigger) XXX_Size() int {
+ return m.Size()
+}
+func (m *ArgoWorkflowTrigger) XXX_DiscardUnknown() {
+ xxx_messageInfo_ArgoWorkflowTrigger.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_ArgoWorkflowTrigger proto.InternalMessageInfo
+
+func (m *ArtifactLocation) Reset() { *m = ArtifactLocation{} }
+func (*ArtifactLocation) ProtoMessage() {}
+func (*ArtifactLocation) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{2}
+}
+func (m *ArtifactLocation) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *ArtifactLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *ArtifactLocation) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_ArtifactLocation.Merge(m, src)
+}
+func (m *ArtifactLocation) XXX_Size() int {
+ return m.Size()
+}
+func (m *ArtifactLocation) XXX_DiscardUnknown() {
+ xxx_messageInfo_ArtifactLocation.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_ArtifactLocation proto.InternalMessageInfo
+
+func (m *BasicAuth) Reset() { *m = BasicAuth{} }
+func (*BasicAuth) ProtoMessage() {}
+func (*BasicAuth) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{3}
+}
+func (m *BasicAuth) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *BasicAuth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *BasicAuth) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_BasicAuth.Merge(m, src)
+}
+func (m *BasicAuth) XXX_Size() int {
+ return m.Size()
+}
+func (m *BasicAuth) XXX_DiscardUnknown() {
+ xxx_messageInfo_BasicAuth.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_BasicAuth proto.InternalMessageInfo
+
+func (m *ConfigmapArtifact) Reset() { *m = ConfigmapArtifact{} }
+func (*ConfigmapArtifact) ProtoMessage() {}
+func (*ConfigmapArtifact) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{4}
+}
+func (m *ConfigmapArtifact) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *ConfigmapArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *ConfigmapArtifact) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_ConfigmapArtifact.Merge(m, src)
+}
+func (m *ConfigmapArtifact) XXX_Size() int {
+ return m.Size()
+}
+func (m *ConfigmapArtifact) XXX_DiscardUnknown() {
+ xxx_messageInfo_ConfigmapArtifact.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_ConfigmapArtifact proto.InternalMessageInfo
+
+func (m *CustomTrigger) Reset() { *m = CustomTrigger{} }
+func (*CustomTrigger) ProtoMessage() {}
+func (*CustomTrigger) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{5}
+}
+func (m *CustomTrigger) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *CustomTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *CustomTrigger) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_CustomTrigger.Merge(m, src)
+}
+func (m *CustomTrigger) XXX_Size() int {
+ return m.Size()
+}
+func (m *CustomTrigger) XXX_DiscardUnknown() {
+ xxx_messageInfo_CustomTrigger.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_CustomTrigger proto.InternalMessageInfo
+
+func (m *DataFilter) Reset() { *m = DataFilter{} }
+func (*DataFilter) ProtoMessage() {}
+func (*DataFilter) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{6}
+}
+func (m *DataFilter) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *DataFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *DataFilter) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_DataFilter.Merge(m, src)
+}
+func (m *DataFilter) XXX_Size() int {
+ return m.Size()
+}
+func (m *DataFilter) XXX_DiscardUnknown() {
+ xxx_messageInfo_DataFilter.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_DataFilter proto.InternalMessageInfo
+
+func (m *DependencyGroup) Reset() { *m = DependencyGroup{} }
+func (*DependencyGroup) ProtoMessage() {}
+func (*DependencyGroup) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{7}
+}
+func (m *DependencyGroup) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *DependencyGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *DependencyGroup) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_DependencyGroup.Merge(m, src)
+}
+func (m *DependencyGroup) XXX_Size() int {
+ return m.Size()
+}
+func (m *DependencyGroup) XXX_DiscardUnknown() {
+ xxx_messageInfo_DependencyGroup.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_DependencyGroup proto.InternalMessageInfo
+
+func (m *Event) Reset() { *m = Event{} }
+func (*Event) ProtoMessage() {}
+func (*Event) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{8}
+}
+func (m *Event) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Event) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Event.Merge(m, src)
+}
+func (m *Event) XXX_Size() int {
+ return m.Size()
+}
+func (m *Event) XXX_DiscardUnknown() {
+ xxx_messageInfo_Event.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Event proto.InternalMessageInfo
+
+func (m *EventContext) Reset() { *m = EventContext{} }
+func (*EventContext) ProtoMessage() {}
+func (*EventContext) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{9}
+}
+func (m *EventContext) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EventContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *EventContext) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventContext.Merge(m, src)
+}
+func (m *EventContext) XXX_Size() int {
+ return m.Size()
+}
+func (m *EventContext) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventContext.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EventContext proto.InternalMessageInfo
+
+func (m *EventDependency) Reset() { *m = EventDependency{} }
+func (*EventDependency) ProtoMessage() {}
+func (*EventDependency) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{10}
+}
+func (m *EventDependency) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EventDependency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *EventDependency) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventDependency.Merge(m, src)
+}
+func (m *EventDependency) XXX_Size() int {
+ return m.Size()
+}
+func (m *EventDependency) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventDependency.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EventDependency proto.InternalMessageInfo
+
+func (m *EventDependencyFilter) Reset() { *m = EventDependencyFilter{} }
+func (*EventDependencyFilter) ProtoMessage() {}
+func (*EventDependencyFilter) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{11}
+}
+func (m *EventDependencyFilter) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EventDependencyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *EventDependencyFilter) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventDependencyFilter.Merge(m, src)
+}
+func (m *EventDependencyFilter) XXX_Size() int {
+ return m.Size()
+}
+func (m *EventDependencyFilter) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventDependencyFilter.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EventDependencyFilter proto.InternalMessageInfo
+
+func (m *FileArtifact) Reset() { *m = FileArtifact{} }
+func (*FileArtifact) ProtoMessage() {}
+func (*FileArtifact) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{12}
+}
+func (m *FileArtifact) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *FileArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *FileArtifact) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_FileArtifact.Merge(m, src)
+}
+func (m *FileArtifact) XXX_Size() int {
+ return m.Size()
+}
+func (m *FileArtifact) XXX_DiscardUnknown() {
+ xxx_messageInfo_FileArtifact.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_FileArtifact proto.InternalMessageInfo
+
+func (m *GitArtifact) Reset() { *m = GitArtifact{} }
+func (*GitArtifact) ProtoMessage() {}
+func (*GitArtifact) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{13}
+}
+func (m *GitArtifact) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *GitArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *GitArtifact) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_GitArtifact.Merge(m, src)
+}
+func (m *GitArtifact) XXX_Size() int {
+ return m.Size()
+}
+func (m *GitArtifact) XXX_DiscardUnknown() {
+ xxx_messageInfo_GitArtifact.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_GitArtifact proto.InternalMessageInfo
+
+func (m *GitCreds) Reset() { *m = GitCreds{} }
+func (*GitCreds) ProtoMessage() {}
+func (*GitCreds) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{14}
+}
+func (m *GitCreds) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *GitCreds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *GitCreds) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_GitCreds.Merge(m, src)
+}
+func (m *GitCreds) XXX_Size() int {
+ return m.Size()
+}
+func (m *GitCreds) XXX_DiscardUnknown() {
+ xxx_messageInfo_GitCreds.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_GitCreds proto.InternalMessageInfo
+
+func (m *GitRemoteConfig) Reset() { *m = GitRemoteConfig{} }
+func (*GitRemoteConfig) ProtoMessage() {}
+func (*GitRemoteConfig) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{15}
+}
+func (m *GitRemoteConfig) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *GitRemoteConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *GitRemoteConfig) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_GitRemoteConfig.Merge(m, src)
+}
+func (m *GitRemoteConfig) XXX_Size() int {
+ return m.Size()
+}
+func (m *GitRemoteConfig) XXX_DiscardUnknown() {
+ xxx_messageInfo_GitRemoteConfig.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_GitRemoteConfig proto.InternalMessageInfo
+
+func (m *HTTPSubscription) Reset() { *m = HTTPSubscription{} }
+func (*HTTPSubscription) ProtoMessage() {}
+func (*HTTPSubscription) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{16}
+}
+func (m *HTTPSubscription) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *HTTPSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *HTTPSubscription) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_HTTPSubscription.Merge(m, src)
+}
+func (m *HTTPSubscription) XXX_Size() int {
+ return m.Size()
+}
+func (m *HTTPSubscription) XXX_DiscardUnknown() {
+ xxx_messageInfo_HTTPSubscription.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_HTTPSubscription proto.InternalMessageInfo
+
+func (m *HTTPTrigger) Reset() { *m = HTTPTrigger{} }
+func (*HTTPTrigger) ProtoMessage() {}
+func (*HTTPTrigger) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{17}
+}
+func (m *HTTPTrigger) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *HTTPTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *HTTPTrigger) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_HTTPTrigger.Merge(m, src)
+}
+func (m *HTTPTrigger) XXX_Size() int {
+ return m.Size()
+}
+func (m *HTTPTrigger) XXX_DiscardUnknown() {
+ xxx_messageInfo_HTTPTrigger.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_HTTPTrigger proto.InternalMessageInfo
+
+func (m *K8SResourcePolicy) Reset() { *m = K8SResourcePolicy{} }
+func (*K8SResourcePolicy) ProtoMessage() {}
+func (*K8SResourcePolicy) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{18}
+}
+func (m *K8SResourcePolicy) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *K8SResourcePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *K8SResourcePolicy) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_K8SResourcePolicy.Merge(m, src)
+}
+func (m *K8SResourcePolicy) XXX_Size() int {
+ return m.Size()
+}
+func (m *K8SResourcePolicy) XXX_DiscardUnknown() {
+ xxx_messageInfo_K8SResourcePolicy.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_K8SResourcePolicy proto.InternalMessageInfo
+
+func (m *KafkaTrigger) Reset() { *m = KafkaTrigger{} }
+func (*KafkaTrigger) ProtoMessage() {}
+func (*KafkaTrigger) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{19}
+}
+func (m *KafkaTrigger) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *KafkaTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *KafkaTrigger) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_KafkaTrigger.Merge(m, src)
+}
+func (m *KafkaTrigger) XXX_Size() int {
+ return m.Size()
+}
+func (m *KafkaTrigger) XXX_DiscardUnknown() {
+ xxx_messageInfo_KafkaTrigger.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_KafkaTrigger proto.InternalMessageInfo
+
+func (m *NATSSubscription) Reset() { *m = NATSSubscription{} }
+func (*NATSSubscription) ProtoMessage() {}
+func (*NATSSubscription) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{20}
+}
+func (m *NATSSubscription) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *NATSSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *NATSSubscription) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_NATSSubscription.Merge(m, src)
+}
+func (m *NATSSubscription) XXX_Size() int {
+ return m.Size()
+}
+func (m *NATSSubscription) XXX_DiscardUnknown() {
+ xxx_messageInfo_NATSSubscription.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_NATSSubscription proto.InternalMessageInfo
+
+func (m *NATSTrigger) Reset() { *m = NATSTrigger{} }
+func (*NATSTrigger) ProtoMessage() {}
+func (*NATSTrigger) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{21}
+}
+func (m *NATSTrigger) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *NATSTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *NATSTrigger) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_NATSTrigger.Merge(m, src)
+}
+func (m *NATSTrigger) XXX_Size() int {
+ return m.Size()
+}
+func (m *NATSTrigger) XXX_DiscardUnknown() {
+ xxx_messageInfo_NATSTrigger.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_NATSTrigger proto.InternalMessageInfo
+
+func (m *NodeStatus) Reset() { *m = NodeStatus{} }
+func (*NodeStatus) ProtoMessage() {}
+func (*NodeStatus) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{22}
+}
+func (m *NodeStatus) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *NodeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *NodeStatus) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_NodeStatus.Merge(m, src)
+}
+func (m *NodeStatus) XXX_Size() int {
+ return m.Size()
+}
+func (m *NodeStatus) XXX_DiscardUnknown() {
+ xxx_messageInfo_NodeStatus.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_NodeStatus proto.InternalMessageInfo
+
+func (m *OpenWhiskTrigger) Reset() { *m = OpenWhiskTrigger{} }
+func (*OpenWhiskTrigger) ProtoMessage() {}
+func (*OpenWhiskTrigger) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{23}
+}
+func (m *OpenWhiskTrigger) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *OpenWhiskTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *OpenWhiskTrigger) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_OpenWhiskTrigger.Merge(m, src)
+}
+func (m *OpenWhiskTrigger) XXX_Size() int {
+ return m.Size()
+}
+func (m *OpenWhiskTrigger) XXX_DiscardUnknown() {
+ xxx_messageInfo_OpenWhiskTrigger.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_OpenWhiskTrigger proto.InternalMessageInfo
+
+func (m *Sensor) Reset() { *m = Sensor{} }
+func (*Sensor) ProtoMessage() {}
+func (*Sensor) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{24}
+}
+func (m *Sensor) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Sensor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Sensor) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Sensor.Merge(m, src)
+}
+func (m *Sensor) XXX_Size() int {
+ return m.Size()
+}
+func (m *Sensor) XXX_DiscardUnknown() {
+ xxx_messageInfo_Sensor.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Sensor proto.InternalMessageInfo
+
+func (m *SensorList) Reset() { *m = SensorList{} }
+func (*SensorList) ProtoMessage() {}
+func (*SensorList) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{25}
+}
+func (m *SensorList) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *SensorList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *SensorList) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_SensorList.Merge(m, src)
+}
+func (m *SensorList) XXX_Size() int {
+ return m.Size()
+}
+func (m *SensorList) XXX_DiscardUnknown() {
+ xxx_messageInfo_SensorList.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_SensorList proto.InternalMessageInfo
+
+func (m *SensorResources) Reset() { *m = SensorResources{} }
+func (*SensorResources) ProtoMessage() {}
+func (*SensorResources) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{26}
+}
+func (m *SensorResources) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *SensorResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *SensorResources) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_SensorResources.Merge(m, src)
+}
+func (m *SensorResources) XXX_Size() int {
+ return m.Size()
+}
+func (m *SensorResources) XXX_DiscardUnknown() {
+ xxx_messageInfo_SensorResources.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_SensorResources proto.InternalMessageInfo
+
+func (m *SensorSpec) Reset() { *m = SensorSpec{} }
+func (*SensorSpec) ProtoMessage() {}
+func (*SensorSpec) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{27}
+}
+func (m *SensorSpec) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *SensorSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *SensorSpec) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_SensorSpec.Merge(m, src)
+}
+func (m *SensorSpec) XXX_Size() int {
+ return m.Size()
+}
+func (m *SensorSpec) XXX_DiscardUnknown() {
+ xxx_messageInfo_SensorSpec.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_SensorSpec proto.InternalMessageInfo
+
+func (m *SensorStatus) Reset() { *m = SensorStatus{} }
+func (*SensorStatus) ProtoMessage() {}
+func (*SensorStatus) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{28}
+}
+func (m *SensorStatus) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *SensorStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *SensorStatus) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_SensorStatus.Merge(m, src)
+}
+func (m *SensorStatus) XXX_Size() int {
+ return m.Size()
+}
+func (m *SensorStatus) XXX_DiscardUnknown() {
+ xxx_messageInfo_SensorStatus.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_SensorStatus proto.InternalMessageInfo
+
+func (m *SlackTrigger) Reset() { *m = SlackTrigger{} }
+func (*SlackTrigger) ProtoMessage() {}
+func (*SlackTrigger) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{29}
+}
+func (m *SlackTrigger) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *SlackTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *SlackTrigger) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_SlackTrigger.Merge(m, src)
+}
+func (m *SlackTrigger) XXX_Size() int {
+ return m.Size()
+}
+func (m *SlackTrigger) XXX_DiscardUnknown() {
+ xxx_messageInfo_SlackTrigger.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_SlackTrigger proto.InternalMessageInfo
+
+func (m *StandardK8STrigger) Reset() { *m = StandardK8STrigger{} }
+func (*StandardK8STrigger) ProtoMessage() {}
+func (*StandardK8STrigger) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{30}
+}
+func (m *StandardK8STrigger) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *StandardK8STrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *StandardK8STrigger) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_StandardK8STrigger.Merge(m, src)
+}
+func (m *StandardK8STrigger) XXX_Size() int {
+ return m.Size()
+}
+func (m *StandardK8STrigger) XXX_DiscardUnknown() {
+ xxx_messageInfo_StandardK8STrigger.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_StandardK8STrigger proto.InternalMessageInfo
+
+func (m *StatusPolicy) Reset() { *m = StatusPolicy{} }
+func (*StatusPolicy) ProtoMessage() {}
+func (*StatusPolicy) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{31}
+}
+func (m *StatusPolicy) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *StatusPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *StatusPolicy) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_StatusPolicy.Merge(m, src)
+}
+func (m *StatusPolicy) XXX_Size() int {
+ return m.Size()
+}
+func (m *StatusPolicy) XXX_DiscardUnknown() {
+ xxx_messageInfo_StatusPolicy.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_StatusPolicy proto.InternalMessageInfo
+
+func (m *Subscription) Reset() { *m = Subscription{} }
+func (*Subscription) ProtoMessage() {}
+func (*Subscription) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{32}
+}
+func (m *Subscription) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Subscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Subscription) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Subscription.Merge(m, src)
+}
+func (m *Subscription) XXX_Size() int {
+ return m.Size()
+}
+func (m *Subscription) XXX_DiscardUnknown() {
+ xxx_messageInfo_Subscription.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Subscription proto.InternalMessageInfo
+
+func (m *TLSConfig) Reset() { *m = TLSConfig{} }
+func (*TLSConfig) ProtoMessage() {}
+func (*TLSConfig) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{33}
+}
+func (m *TLSConfig) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *TLSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *TLSConfig) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_TLSConfig.Merge(m, src)
+}
+func (m *TLSConfig) XXX_Size() int {
+ return m.Size()
+}
+func (m *TLSConfig) XXX_DiscardUnknown() {
+ xxx_messageInfo_TLSConfig.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_TLSConfig proto.InternalMessageInfo
+
+func (m *Template) Reset() { *m = Template{} }
+func (*Template) ProtoMessage() {}
+func (*Template) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{34}
+}
+func (m *Template) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Template) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Template) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Template.Merge(m, src)
+}
+func (m *Template) XXX_Size() int {
+ return m.Size()
+}
+func (m *Template) XXX_DiscardUnknown() {
+ xxx_messageInfo_Template.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Template proto.InternalMessageInfo
+
+func (m *TimeFilter) Reset() { *m = TimeFilter{} }
+func (*TimeFilter) ProtoMessage() {}
+func (*TimeFilter) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{35}
+}
+func (m *TimeFilter) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *TimeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *TimeFilter) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_TimeFilter.Merge(m, src)
+}
+func (m *TimeFilter) XXX_Size() int {
+ return m.Size()
+}
+func (m *TimeFilter) XXX_DiscardUnknown() {
+ xxx_messageInfo_TimeFilter.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_TimeFilter proto.InternalMessageInfo
+
+func (m *Trigger) Reset() { *m = Trigger{} }
+func (*Trigger) ProtoMessage() {}
+func (*Trigger) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{36}
+}
+func (m *Trigger) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Trigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *Trigger) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Trigger.Merge(m, src)
+}
+func (m *Trigger) XXX_Size() int {
+ return m.Size()
+}
+func (m *Trigger) XXX_DiscardUnknown() {
+ xxx_messageInfo_Trigger.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Trigger proto.InternalMessageInfo
+
+func (m *TriggerParameter) Reset() { *m = TriggerParameter{} }
+func (*TriggerParameter) ProtoMessage() {}
+func (*TriggerParameter) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{37}
+}
+func (m *TriggerParameter) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *TriggerParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *TriggerParameter) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_TriggerParameter.Merge(m, src)
+}
+func (m *TriggerParameter) XXX_Size() int {
+ return m.Size()
+}
+func (m *TriggerParameter) XXX_DiscardUnknown() {
+ xxx_messageInfo_TriggerParameter.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_TriggerParameter proto.InternalMessageInfo
+
+func (m *TriggerParameterSource) Reset() { *m = TriggerParameterSource{} }
+func (*TriggerParameterSource) ProtoMessage() {}
+func (*TriggerParameterSource) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{38}
+}
+func (m *TriggerParameterSource) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *TriggerParameterSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *TriggerParameterSource) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_TriggerParameterSource.Merge(m, src)
+}
+func (m *TriggerParameterSource) XXX_Size() int {
+ return m.Size()
+}
+func (m *TriggerParameterSource) XXX_DiscardUnknown() {
+ xxx_messageInfo_TriggerParameterSource.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_TriggerParameterSource proto.InternalMessageInfo
+
+func (m *TriggerPolicy) Reset() { *m = TriggerPolicy{} }
+func (*TriggerPolicy) ProtoMessage() {}
+func (*TriggerPolicy) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{39}
+}
+func (m *TriggerPolicy) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *TriggerPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *TriggerPolicy) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_TriggerPolicy.Merge(m, src)
+}
+func (m *TriggerPolicy) XXX_Size() int {
+ return m.Size()
+}
+func (m *TriggerPolicy) XXX_DiscardUnknown() {
+ xxx_messageInfo_TriggerPolicy.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_TriggerPolicy proto.InternalMessageInfo
+
+func (m *TriggerSwitch) Reset() { *m = TriggerSwitch{} }
+func (*TriggerSwitch) ProtoMessage() {}
+func (*TriggerSwitch) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{40}
+}
+func (m *TriggerSwitch) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *TriggerSwitch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *TriggerSwitch) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_TriggerSwitch.Merge(m, src)
+}
+func (m *TriggerSwitch) XXX_Size() int {
+ return m.Size()
+}
+func (m *TriggerSwitch) XXX_DiscardUnknown() {
+ xxx_messageInfo_TriggerSwitch.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_TriggerSwitch proto.InternalMessageInfo
+
+func (m *TriggerTemplate) Reset() { *m = TriggerTemplate{} }
+func (*TriggerTemplate) ProtoMessage() {}
+func (*TriggerTemplate) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{41}
+}
+func (m *TriggerTemplate) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *TriggerTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *TriggerTemplate) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_TriggerTemplate.Merge(m, src)
+}
+func (m *TriggerTemplate) XXX_Size() int {
+ return m.Size()
+}
+func (m *TriggerTemplate) XXX_DiscardUnknown() {
+ xxx_messageInfo_TriggerTemplate.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_TriggerTemplate proto.InternalMessageInfo
+
+func (m *URLArtifact) Reset() { *m = URLArtifact{} }
+func (*URLArtifact) ProtoMessage() {}
+func (*URLArtifact) Descriptor() ([]byte, []int) {
+ return fileDescriptor_6c4bded897df1f16, []int{42}
+}
+func (m *URLArtifact) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *URLArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+}
+func (m *URLArtifact) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_URLArtifact.Merge(m, src)
+}
+func (m *URLArtifact) XXX_Size() int {
+ return m.Size()
+}
+func (m *URLArtifact) XXX_DiscardUnknown() {
+ xxx_messageInfo_URLArtifact.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_URLArtifact proto.InternalMessageInfo
+
+func init() {
+ proto.RegisterType((*AWSLambdaTrigger)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.AWSLambdaTrigger")
+ proto.RegisterType((*ArgoWorkflowTrigger)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.ArgoWorkflowTrigger")
+ proto.RegisterType((*ArtifactLocation)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.ArtifactLocation")
+ proto.RegisterType((*BasicAuth)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.BasicAuth")
+ proto.RegisterType((*ConfigmapArtifact)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.ConfigmapArtifact")
+ proto.RegisterType((*CustomTrigger)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.CustomTrigger")
+ proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.CustomTrigger.SpecEntry")
+ proto.RegisterType((*DataFilter)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.DataFilter")
+ proto.RegisterType((*DependencyGroup)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.DependencyGroup")
+ proto.RegisterType((*Event)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.Event")
+ proto.RegisterType((*EventContext)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.EventContext")
+ proto.RegisterType((*EventDependency)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.EventDependency")
+ proto.RegisterType((*EventDependencyFilter)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.EventDependencyFilter")
+ proto.RegisterType((*FileArtifact)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.FileArtifact")
+ proto.RegisterType((*GitArtifact)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.GitArtifact")
+ proto.RegisterType((*GitCreds)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.GitCreds")
+ proto.RegisterType((*GitRemoteConfig)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.GitRemoteConfig")
+ proto.RegisterType((*HTTPSubscription)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.HTTPSubscription")
+ proto.RegisterType((*HTTPTrigger)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.HTTPTrigger")
+ proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.HTTPTrigger.HeadersEntry")
+ proto.RegisterType((*K8SResourcePolicy)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.K8SResourcePolicy")
+ proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.K8SResourcePolicy.LabelsEntry")
+ proto.RegisterType((*KafkaTrigger)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.KafkaTrigger")
+ proto.RegisterType((*NATSSubscription)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.NATSSubscription")
+ proto.RegisterType((*NATSTrigger)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.NATSTrigger")
+ proto.RegisterType((*NodeStatus)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.NodeStatus")
+ proto.RegisterType((*OpenWhiskTrigger)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.OpenWhiskTrigger")
+ proto.RegisterType((*Sensor)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.Sensor")
+ proto.RegisterType((*SensorList)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.SensorList")
+ proto.RegisterType((*SensorResources)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.SensorResources")
+ proto.RegisterType((*SensorSpec)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.SensorSpec")
+ proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.SensorSpec.ServiceAnnotationsEntry")
+ proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.SensorSpec.ServiceLabelsEntry")
+ proto.RegisterType((*SensorStatus)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.SensorStatus")
+ proto.RegisterMapType((map[string]NodeStatus)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.SensorStatus.NodesEntry")
+ proto.RegisterType((*SlackTrigger)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.SlackTrigger")
+ proto.RegisterType((*StandardK8STrigger)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.StandardK8STrigger")
+ proto.RegisterType((*StatusPolicy)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.StatusPolicy")
+ proto.RegisterType((*Subscription)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.Subscription")
+ proto.RegisterType((*TLSConfig)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.TLSConfig")
+ proto.RegisterType((*Template)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.Template")
+ proto.RegisterType((*TimeFilter)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.TimeFilter")
+ proto.RegisterType((*Trigger)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.Trigger")
+ proto.RegisterType((*TriggerParameter)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.TriggerParameter")
+ proto.RegisterType((*TriggerParameterSource)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.TriggerParameterSource")
+ proto.RegisterType((*TriggerPolicy)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.TriggerPolicy")
+ proto.RegisterType((*TriggerSwitch)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.TriggerSwitch")
+ proto.RegisterType((*TriggerTemplate)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.TriggerTemplate")
+ proto.RegisterType((*URLArtifact)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.URLArtifact")
+}
+
+func init() {
+ proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1/generated.proto", fileDescriptor_6c4bded897df1f16)
+}
+
+var fileDescriptor_6c4bded897df1f16 = []byte{
+ // 4009 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x3b, 0x4d, 0x6f, 0x24, 0xc7,
+ 0x75, 0x3b, 0x5f, 0xe4, 0xcc, 0xe3, 0xac, 0xc8, 0x2d, 0x69, 0x6d, 0x8a, 0x96, 0xc8, 0x45, 0x1b,
+ 0x71, 0x64, 0xc3, 0x1e, 0x4a, 0x2b, 0x39, 0xa1, 0x64, 0x20, 0x16, 0x67, 0xc8, 0xfd, 0x22, 0x77,
+ 0x49, 0x57, 0x73, 0xb5, 0x80, 0x63, 0xc4, 0xdb, 0xec, 0xa9, 0x99, 0x69, 0xb1, 0xa7, 0xbb, 0xd3,
+ 0x55, 0xc3, 0xf5, 0x00, 0x89, 0x13, 0x40, 0xc8, 0x21, 0x48, 0x00, 0x27, 0xb0, 0x7e, 0x44, 0x0e,
+ 0x81, 0xef, 0x01, 0x02, 0x04, 0x08, 0x12, 0x44, 0x87, 0x1c, 0x9c, 0x43, 0x00, 0x9f, 0x88, 0x88,
+ 0x3e, 0xe4, 0x90, 0x00, 0xb9, 0xe4, 0xb4, 0x17, 0x07, 0xf5, 0xd5, 0x5d, 0xdd, 0x33, 0xbb, 0x3b,
+ 0xc3, 0x5e, 0x53, 0x01, 0x7c, 0x9b, 0x79, 0xef, 0xd5, 0x7b, 0xf5, 0xf1, 0xbe, 0xab, 0x1a, 0xee,
+ 0xf4, 0x3d, 0x36, 0x18, 0x1d, 0xb7, 0xdc, 0x70, 0xb8, 0xe9, 0xc4, 0xfd, 0x30, 0x8a, 0xc3, 0x8f,
+ 0xc5, 0x8f, 0x6f, 0x91, 0x53, 0x12, 0x30, 0xba, 0x19, 0x9d, 0xf4, 0x37, 0x9d, 0xc8, 0xa3, 0x9b,
+ 0x94, 0x04, 0x34, 0x8c, 0x37, 0x4f, 0xdf, 0x71, 0xfc, 0x68, 0xe0, 0xbc, 0xb3, 0xd9, 0x27, 0x01,
+ 0x89, 0x1d, 0x46, 0xba, 0xad, 0x28, 0x0e, 0x59, 0x88, 0xb6, 0x52, 0x4e, 0x2d, 0xcd, 0x49, 0xfc,
+ 0xf8, 0xa1, 0xe4, 0xd4, 0x8a, 0x4e, 0xfa, 0x2d, 0xce, 0xa9, 0x25, 0x39, 0xb5, 0x34, 0xa7, 0xb5,
+ 0xef, 0xce, 0x3c, 0x07, 0x37, 0x1c, 0x0e, 0xc3, 0x20, 0x2f, 0x7a, 0xed, 0x5b, 0x06, 0x83, 0x7e,
+ 0xd8, 0x0f, 0x37, 0x05, 0xf8, 0x78, 0xd4, 0x13, 0xff, 0xc4, 0x1f, 0xf1, 0x4b, 0x91, 0x5b, 0x27,
+ 0x5b, 0xb4, 0xe5, 0x85, 0x9c, 0xe5, 0xa6, 0x1b, 0xc6, 0x64, 0xf3, 0x74, 0x62, 0x35, 0x6b, 0xef,
+ 0xa5, 0x34, 0x43, 0xc7, 0x1d, 0x78, 0x01, 0x89, 0xc7, 0xe9, 0x3c, 0x86, 0x84, 0x39, 0xd3, 0x46,
+ 0x6d, 0x3e, 0x6b, 0x54, 0x3c, 0x0a, 0x98, 0x37, 0x24, 0x13, 0x03, 0x7e, 0xe7, 0x45, 0x03, 0xa8,
+ 0x3b, 0x20, 0x43, 0x27, 0x3f, 0xce, 0xfa, 0xa7, 0x2a, 0xac, 0x6c, 0x3f, 0xb2, 0xf7, 0x9d, 0xe1,
+ 0x71, 0xd7, 0x39, 0x8a, 0xbd, 0x7e, 0x9f, 0xc4, 0x68, 0x0b, 0x9a, 0xbd, 0x51, 0xe0, 0x32, 0x2f,
+ 0x0c, 0x1e, 0x38, 0x43, 0xb2, 0x5a, 0xba, 0x51, 0x7a, 0xab, 0xd1, 0x7e, 0xed, 0xb3, 0xb3, 0x8d,
+ 0x2b, 0xe7, 0x67, 0x1b, 0xcd, 0x5b, 0x06, 0x0e, 0x67, 0x28, 0x11, 0x86, 0x86, 0xe3, 0xba, 0x84,
+ 0xd2, 0x3d, 0x32, 0x5e, 0x2d, 0xdf, 0x28, 0xbd, 0xb5, 0x74, 0xf3, 0xb7, 0x5a, 0x72, 0x6a, 0xfc,
+ 0xc8, 0x5a, 0x7c, 0x97, 0x5a, 0xa7, 0xef, 0xb4, 0x6c, 0xe2, 0xc6, 0x84, 0xed, 0x91, 0xb1, 0x4d,
+ 0x7c, 0xe2, 0xb2, 0x30, 0x6e, 0x5f, 0x3d, 0x3f, 0xdb, 0x68, 0x6c, 0xeb, 0xb1, 0x38, 0x65, 0xc3,
+ 0x79, 0x52, 0x4d, 0xbe, 0x5a, 0x99, 0x9b, 0x67, 0x02, 0xc6, 0x29, 0x1b, 0xb4, 0x09, 0x8d, 0xc0,
+ 0x19, 0x12, 0x1a, 0x39, 0x2e, 0x59, 0xad, 0x8a, 0xe5, 0x5d, 0x53, 0xcb, 0x6b, 0x3c, 0xd0, 0x08,
+ 0x9c, 0xd2, 0xa0, 0xaf, 0xc1, 0x42, 0x4c, 0xfa, 0x5e, 0x18, 0xac, 0xd6, 0x04, 0xf5, 0x2b, 0x8a,
+ 0x7a, 0x01, 0x0b, 0x28, 0x56, 0x58, 0x34, 0x82, 0xc5, 0xc8, 0x19, 0xfb, 0xa1, 0xd3, 0x5d, 0x5d,
+ 0xb8, 0x51, 0x79, 0x6b, 0xe9, 0xe6, 0xbd, 0xd6, 0x45, 0xd5, 0xb9, 0xa5, 0x8e, 0xe3, 0xd0, 0x89,
+ 0x9d, 0x21, 0x61, 0x24, 0x6e, 0x2f, 0x2b, 0xa1, 0x8b, 0x87, 0x52, 0x04, 0xd6, 0xb2, 0xd0, 0x8f,
+ 0x01, 0x22, 0x4d, 0x46, 0x57, 0x17, 0x5f, 0xba, 0x64, 0xa4, 0x24, 0x43, 0x02, 0xa2, 0xd8, 0x90,
+ 0x68, 0x9d, 0x55, 0xe0, 0xd5, 0xed, 0xb8, 0x1f, 0x3e, 0x0a, 0xe3, 0x93, 0x9e, 0x1f, 0x3e, 0xd1,
+ 0x9a, 0x14, 0xc0, 0x02, 0x0d, 0x47, 0xb1, 0x2b, 0x75, 0xa8, 0xd0, 0x9c, 0xb6, 0x63, 0xe6, 0xf5,
+ 0x1c, 0x97, 0xed, 0x87, 0xae, 0xc3, 0xf5, 0xad, 0x0d, 0x7c, 0xfb, 0x6d, 0xc1, 0x1d, 0x2b, 0x29,
+ 0xe8, 0x0e, 0x34, 0xc2, 0x88, 0x2b, 0x38, 0x3f, 0xa9, 0xb2, 0x38, 0xa9, 0x6f, 0xe8, 0x73, 0x3d,
+ 0xd0, 0x88, 0xa7, 0x67, 0x1b, 0xd7, 0xcd, 0xc9, 0x26, 0x08, 0x9c, 0x0e, 0xce, 0xed, 0x68, 0xe5,
+ 0xb2, 0x77, 0x14, 0xfd, 0x65, 0x09, 0x5e, 0xeb, 0xc7, 0xe1, 0x28, 0xfa, 0x88, 0xc4, 0x94, 0xcf,
+ 0x8d, 0xa8, 0x8d, 0xac, 0x8a, 0x8d, 0xfc, 0xc0, 0xb0, 0x80, 0xc4, 0xe0, 0x53, 0xf1, 0xdc, 0xaf,
+ 0x70, 0x9b, 0xb8, 0x3d, 0x85, 0x43, 0xfb, 0x0d, 0x25, 0xfa, 0xb5, 0x69, 0x58, 0x3c, 0x55, 0xaa,
+ 0xf5, 0x69, 0x0d, 0x56, 0xf2, 0x27, 0x80, 0x6c, 0x28, 0xd3, 0x77, 0xd5, 0xc9, 0x7e, 0x67, 0xf6,
+ 0xbd, 0x91, 0xce, 0xb7, 0x65, 0xbf, 0xab, 0x19, 0xb6, 0x17, 0xce, 0xcf, 0x36, 0xca, 0xf6, 0xbb,
+ 0xb8, 0x4c, 0xdf, 0x45, 0x16, 0x2c, 0x78, 0x81, 0xef, 0x05, 0x44, 0x9d, 0x9f, 0x38, 0xe6, 0xbb,
+ 0x02, 0x82, 0x15, 0x06, 0x75, 0xa1, 0xda, 0xf3, 0x7c, 0xa2, 0xbc, 0xc1, 0xad, 0x8b, 0x1f, 0xcb,
+ 0x2d, 0xcf, 0x27, 0xc9, 0x2c, 0xea, 0xe7, 0x67, 0x1b, 0x55, 0x0e, 0xc1, 0x82, 0x3b, 0x7a, 0x0c,
+ 0x95, 0x51, 0xec, 0xab, 0x0d, 0xdf, 0xbd, 0xb8, 0x90, 0x87, 0x78, 0x3f, 0x91, 0xb1, 0x78, 0x7e,
+ 0xb6, 0x51, 0x79, 0x88, 0xf7, 0x31, 0x67, 0x8d, 0x7e, 0x04, 0x0d, 0x37, 0x0c, 0x7a, 0x5e, 0x7f,
+ 0xe8, 0x44, 0xc2, 0xb1, 0x2c, 0xdd, 0xdc, 0xbb, 0xb8, 0x9c, 0x8e, 0x66, 0x95, 0x48, 0x13, 0x0e,
+ 0x30, 0x01, 0xe3, 0x54, 0x18, 0x5f, 0x5b, 0xdf, 0x63, 0xab, 0x0b, 0x45, 0xd7, 0x76, 0xdb, 0x63,
+ 0xd9, 0xb5, 0xdd, 0xf6, 0x18, 0xe6, 0xac, 0x91, 0x0b, 0xf5, 0x58, 0xeb, 0xec, 0xa2, 0x10, 0xf3,
+ 0xfe, 0xdc, 0x2a, 0x92, 0xa8, 0x6c, 0xf3, 0xfc, 0x6c, 0xa3, 0x9e, 0xa8, 0x68, 0xc2, 0xd8, 0x3a,
+ 0x2b, 0x41, 0xa3, 0xed, 0x50, 0xcf, 0xdd, 0x1e, 0xb1, 0x01, 0x3a, 0x80, 0xfa, 0x88, 0x92, 0x38,
+ 0xd0, 0x31, 0x6b, 0xe6, 0x40, 0x21, 0xd8, 0x3f, 0x54, 0x43, 0x71, 0xc2, 0x84, 0x33, 0x8c, 0x1c,
+ 0x4a, 0x9f, 0x84, 0x71, 0x77, 0xbe, 0x68, 0x26, 0x18, 0x1e, 0xaa, 0xa1, 0x38, 0x61, 0x92, 0x8d,
+ 0x3b, 0x95, 0x17, 0xc7, 0x1d, 0xeb, 0xcf, 0x4a, 0x70, 0x6d, 0xe2, 0x5c, 0xd1, 0x0d, 0xa8, 0x06,
+ 0x69, 0x60, 0x6e, 0x2a, 0x0e, 0x55, 0x11, 0x90, 0x05, 0x26, 0x2b, 0xa8, 0x3c, 0x43, 0x80, 0x7b,
+ 0x13, 0x2a, 0x27, 0x2a, 0xbe, 0x36, 0xda, 0x4b, 0x8a, 0xb4, 0xc2, 0xc3, 0x26, 0x87, 0x5b, 0x3f,
+ 0xad, 0xc1, 0xd5, 0xce, 0x88, 0xb2, 0x70, 0xa8, 0x5d, 0xfb, 0x26, 0x0f, 0xcb, 0xf1, 0x29, 0x89,
+ 0x1f, 0xe2, 0x7d, 0x35, 0x91, 0x44, 0x82, 0xad, 0x11, 0x38, 0xa5, 0xe1, 0x21, 0x94, 0x12, 0x77,
+ 0x14, 0xcb, 0xf9, 0xd4, 0xd3, 0x10, 0x6a, 0x0b, 0x28, 0x56, 0x58, 0x9e, 0x7d, 0xb8, 0x24, 0x66,
+ 0xdc, 0x10, 0x0f, 0x1d, 0x36, 0x50, 0x53, 0x4a, 0xb2, 0x8f, 0x8e, 0x81, 0xc3, 0x19, 0x4a, 0x74,
+ 0x0f, 0x90, 0x14, 0xc7, 0x57, 0x78, 0x70, 0x4a, 0xe2, 0xd8, 0xeb, 0xea, 0xf0, 0xbe, 0xa6, 0xc6,
+ 0x23, 0x7b, 0x82, 0x02, 0x4f, 0x19, 0x85, 0x28, 0x54, 0x69, 0x44, 0xdc, 0xd5, 0x9a, 0xf0, 0xfc,
+ 0xdf, 0x2b, 0x60, 0x95, 0xe6, 0xae, 0xb5, 0xec, 0x88, 0xb8, 0xbb, 0x01, 0x8b, 0xc7, 0xe9, 0xa9,
+ 0x71, 0x10, 0x16, 0xc2, 0x72, 0x41, 0x67, 0xe1, 0xd2, 0x83, 0x8e, 0x91, 0xbd, 0x2c, 0x5e, 0x5e,
+ 0xf6, 0xb2, 0xf6, 0xbb, 0xd0, 0x48, 0xf6, 0x05, 0xad, 0x48, 0x45, 0x14, 0x1a, 0x25, 0x74, 0x0f,
+ 0xbd, 0x06, 0xb5, 0x53, 0xc7, 0x1f, 0x29, 0x3d, 0xc6, 0xf2, 0xcf, 0x07, 0xe5, 0xad, 0x92, 0xf5,
+ 0x0f, 0x25, 0x80, 0x1d, 0x87, 0x39, 0xb7, 0x3c, 0x9f, 0x91, 0x98, 0x9b, 0x45, 0xc4, 0x35, 0x26,
+ 0x67, 0x16, 0x42, 0x53, 0x04, 0x06, 0x7d, 0x13, 0xaa, 0x6c, 0x1c, 0x69, 0x8b, 0x58, 0xd5, 0x14,
+ 0x47, 0xe3, 0x88, 0x3c, 0x3d, 0xdb, 0xa8, 0xdf, 0xb3, 0x0f, 0x1e, 0xf0, 0xdf, 0x58, 0x50, 0xa1,
+ 0x0d, 0x2d, 0x98, 0x87, 0xff, 0x46, 0xbb, 0x71, 0x7e, 0xb6, 0x51, 0xfb, 0x88, 0x03, 0xd4, 0x1c,
+ 0xd0, 0x87, 0x00, 0x6e, 0x38, 0xe4, 0x1b, 0xc8, 0xc2, 0x58, 0x29, 0xda, 0x0d, 0xbd, 0xc7, 0x9d,
+ 0x04, 0xf3, 0x34, 0xf3, 0x0f, 0x1b, 0x63, 0x2c, 0x0f, 0x96, 0x77, 0x48, 0x44, 0x82, 0x2e, 0x09,
+ 0xdc, 0xb1, 0x88, 0xc7, 0x33, 0x18, 0xf7, 0x7b, 0xd0, 0xec, 0xea, 0x41, 0x1e, 0xa1, 0xab, 0x65,
+ 0x31, 0xbd, 0x15, 0x6e, 0x1d, 0x3b, 0x06, 0x1c, 0x67, 0xa8, 0xac, 0x4f, 0x4b, 0x50, 0xdb, 0xe5,
+ 0x87, 0x86, 0x86, 0xb0, 0xe8, 0x86, 0x01, 0x23, 0x3f, 0x62, 0xca, 0x4d, 0x16, 0x88, 0xa0, 0x82,
+ 0x63, 0x47, 0x72, 0x6b, 0x2f, 0xf1, 0xe3, 0x55, 0x7f, 0xb0, 0x96, 0x81, 0xde, 0x80, 0x6a, 0xd7,
+ 0x61, 0x8e, 0xd8, 0xf4, 0xa6, 0x8c, 0xb2, 0xfc, 0xd0, 0xb0, 0x80, 0x5a, 0xff, 0x59, 0x86, 0xa6,
+ 0xc9, 0x04, 0xad, 0x41, 0xd9, 0xeb, 0xaa, 0xd5, 0x83, 0x5a, 0x7d, 0xf9, 0xee, 0x0e, 0x2e, 0x7b,
+ 0x5d, 0xe1, 0x43, 0x64, 0x48, 0x29, 0x67, 0xd3, 0xf0, 0x5c, 0x1e, 0xf8, 0x6d, 0x58, 0xe2, 0x06,
+ 0x75, 0x2a, 0xb3, 0x18, 0xe5, 0x42, 0x5e, 0x55, 0xc4, 0x4b, 0x5c, 0xd9, 0x74, 0x82, 0x63, 0xd2,
+ 0xf1, 0xad, 0x17, 0xea, 0x51, 0xcd, 0x6e, 0xbd, 0xa1, 0x12, 0xdb, 0xb0, 0xcc, 0x67, 0x2d, 0xe6,
+ 0x1a, 0x30, 0x8e, 0x50, 0x05, 0xc1, 0x97, 0x15, 0xf1, 0xf2, 0x4e, 0x16, 0x8d, 0xf3, 0xf4, 0xe8,
+ 0xeb, 0xb0, 0x48, 0x47, 0xc7, 0x1f, 0x13, 0x57, 0x86, 0xdf, 0x46, 0x6a, 0x18, 0xb6, 0x04, 0x63,
+ 0x8d, 0x47, 0xfb, 0x50, 0xe5, 0xc5, 0x9b, 0x8a, 0x9f, 0xdf, 0x98, 0x2d, 0xe7, 0x3b, 0xf2, 0x86,
+ 0xc4, 0x98, 0xbb, 0xc7, 0xd5, 0x86, 0x73, 0xb1, 0x7e, 0x5a, 0x86, 0x65, 0xb1, 0xd3, 0xa9, 0xc6,
+ 0xcd, 0xa0, 0x6c, 0xdf, 0x86, 0xa5, 0xbe, 0xc3, 0xc8, 0x13, 0x67, 0x2c, 0x6a, 0xc1, 0x72, 0x76,
+ 0x2b, 0x6f, 0xa7, 0x28, 0x6c, 0xd2, 0xf1, 0xf0, 0x20, 0x54, 0x47, 0x0c, 0xca, 0x45, 0xba, 0x5d,
+ 0x8d, 0xc0, 0x29, 0x0d, 0x3a, 0x85, 0xc5, 0x9e, 0x30, 0x63, 0xaa, 0x32, 0xae, 0x83, 0x82, 0x4a,
+ 0x99, 0xae, 0x52, 0xba, 0x07, 0xa9, 0x9d, 0xf2, 0x37, 0xc5, 0x5a, 0x98, 0xf5, 0xbf, 0x65, 0xb8,
+ 0x3e, 0x95, 0x7e, 0x86, 0xbd, 0x39, 0x56, 0xe7, 0x23, 0x73, 0x83, 0x9d, 0x02, 0xce, 0xd2, 0x1b,
+ 0x12, 0x35, 0xcb, 0x7a, 0xf6, 0xd4, 0x4c, 0x63, 0xad, 0x5c, 0x82, 0xb1, 0xf6, 0x94, 0xb1, 0x56,
+ 0x85, 0xff, 0x2f, 0xb0, 0xa4, 0xd4, 0x2f, 0xa7, 0x5b, 0x67, 0x98, 0xfd, 0xdb, 0xd0, 0x34, 0x93,
+ 0xef, 0x17, 0xfb, 0x6e, 0xeb, 0xef, 0xaa, 0xb0, 0x64, 0xa4, 0x9b, 0x3c, 0x63, 0xe1, 0xe9, 0x79,
+ 0x29, 0x9b, 0xb1, 0x24, 0xb9, 0xf5, 0xef, 0xc1, 0x2b, 0xae, 0x1f, 0x06, 0x64, 0xc7, 0x8b, 0x45,
+ 0x4e, 0x36, 0x56, 0xaa, 0xfb, 0x25, 0x45, 0xf9, 0x4a, 0x27, 0x83, 0xc5, 0x39, 0x6a, 0xe4, 0x42,
+ 0xcd, 0x8d, 0x49, 0x97, 0xaa, 0x5d, 0x6f, 0x17, 0xca, 0x91, 0x3b, 0x9c, 0x93, 0x0c, 0x20, 0xe2,
+ 0x27, 0x96, 0xbc, 0xe7, 0xef, 0x43, 0xdc, 0x04, 0xa0, 0x74, 0xb0, 0x47, 0xc6, 0x22, 0x35, 0x92,
+ 0xae, 0x27, 0x89, 0xea, 0xb6, 0x7d, 0x47, 0x61, 0xb0, 0x41, 0x85, 0xbe, 0x09, 0xf5, 0x9e, 0x4e,
+ 0xa6, 0xa4, 0xc7, 0x59, 0x51, 0x23, 0xea, 0x49, 0x22, 0x95, 0x50, 0x70, 0x17, 0x7b, 0x1c, 0x3b,
+ 0x81, 0x3b, 0x10, 0x5e, 0xc7, 0x70, 0xb1, 0x6d, 0x01, 0xc5, 0x0a, 0xcb, 0xb7, 0x9f, 0x39, 0xfd,
+ 0xd5, 0x7a, 0x76, 0xfb, 0x8f, 0x9c, 0x3e, 0xe6, 0x70, 0x8e, 0x8e, 0x49, 0x6f, 0xb5, 0x91, 0x45,
+ 0x63, 0xd2, 0xc3, 0x1c, 0x8e, 0x86, 0xb0, 0x10, 0x93, 0x61, 0xc8, 0xc8, 0x2a, 0x88, 0xed, 0xbd,
+ 0x5b, 0x68, 0x7b, 0xb1, 0x60, 0x25, 0xf3, 0x64, 0x59, 0x30, 0x4a, 0x08, 0x56, 0x42, 0xac, 0xbf,
+ 0x2d, 0x41, 0x5d, 0x1f, 0xc3, 0xff, 0xff, 0x32, 0xc1, 0xfa, 0x1e, 0x2c, 0xe7, 0x56, 0x35, 0x83,
+ 0x33, 0x7a, 0x03, 0xaa, 0xa3, 0xd8, 0xd7, 0xd9, 0x80, 0x70, 0x23, 0x0f, 0xf1, 0xbe, 0x8d, 0x05,
+ 0xd4, 0x7a, 0x0f, 0x56, 0xee, 0x1c, 0x1d, 0x1d, 0xda, 0xa3, 0x63, 0xea, 0xc6, 0x5e, 0xc4, 0x54,
+ 0xb8, 0x8b, 0xc2, 0x58, 0x26, 0x01, 0x35, 0xc3, 0xe6, 0xc2, 0x98, 0x61, 0x81, 0xb1, 0x3e, 0x59,
+ 0x80, 0x25, 0x3e, 0x4c, 0x27, 0xfd, 0x2f, 0xb0, 0x39, 0x23, 0x7f, 0x2c, 0x5f, 0x62, 0xf7, 0xeb,
+ 0x0f, 0xa0, 0xc2, 0x7c, 0x6d, 0xa8, 0x9d, 0x02, 0x22, 0xf7, 0x6d, 0xa5, 0x43, 0xa2, 0x94, 0x3d,
+ 0xda, 0xb7, 0x31, 0x67, 0xcc, 0x4d, 0x62, 0x48, 0xd8, 0x20, 0xec, 0x2a, 0x13, 0x4d, 0x4c, 0xe2,
+ 0xbe, 0x80, 0x62, 0x85, 0xcd, 0xa5, 0xef, 0xb5, 0x4b, 0x4f, 0xdf, 0xbf, 0x0e, 0x8b, 0x3c, 0x64,
+ 0x84, 0x23, 0x99, 0x59, 0x54, 0xd2, 0x2d, 0x3b, 0x92, 0x60, 0xac, 0xf1, 0x28, 0x82, 0xc6, 0xb1,
+ 0xae, 0x9b, 0x55, 0x7a, 0x51, 0x60, 0xe3, 0x92, 0x12, 0x5c, 0x76, 0x1c, 0x92, 0xbf, 0x38, 0x15,
+ 0x82, 0xfe, 0x18, 0x16, 0x07, 0xc4, 0xe9, 0xf2, 0x9d, 0xa9, 0x8b, 0x9d, 0xc1, 0x17, 0x97, 0x67,
+ 0xa8, 0x64, 0xeb, 0x8e, 0x64, 0x2a, 0x8b, 0xaa, 0x64, 0xc1, 0x0a, 0x8a, 0xb5, 0xcc, 0xb5, 0x0f,
+ 0xa0, 0x69, 0x52, 0xce, 0x55, 0x66, 0xfc, 0x79, 0x05, 0xae, 0xed, 0x6d, 0xd9, 0xba, 0xff, 0x70,
+ 0x18, 0xfa, 0x9e, 0x3b, 0x46, 0x7f, 0x02, 0x0b, 0xbe, 0x73, 0x4c, 0x7c, 0xba, 0x5a, 0x12, 0xeb,
+ 0x79, 0x74, 0xf1, 0xf5, 0x4c, 0x30, 0x6f, 0xed, 0x0b, 0xce, 0x72, 0x51, 0x89, 0xba, 0x49, 0x20,
+ 0x56, 0x62, 0x91, 0x0b, 0x8b, 0xc7, 0x8e, 0x7b, 0x12, 0xf6, 0x7a, 0xca, 0xeb, 0x6c, 0xcd, 0xdd,
+ 0x60, 0x69, 0xcb, 0xf1, 0xe9, 0xbe, 0x29, 0x00, 0xd6, 0x9c, 0x91, 0x0d, 0xd7, 0x49, 0x1c, 0x87,
+ 0xf1, 0x41, 0xa0, 0x50, 0x4a, 0x95, 0x84, 0xb5, 0xd5, 0xdb, 0x6f, 0xaa, 0x81, 0xd7, 0x77, 0xa7,
+ 0x11, 0xe1, 0xe9, 0x63, 0xd7, 0xde, 0x87, 0x25, 0x63, 0x81, 0x73, 0x9d, 0xc5, 0x3f, 0xd7, 0xa0,
+ 0xb9, 0xe7, 0xf4, 0x4e, 0x9c, 0x19, 0x5d, 0xd2, 0x57, 0xa1, 0xc6, 0xc2, 0xc8, 0x73, 0x55, 0xf4,
+ 0xbf, 0xaa, 0x08, 0x6a, 0x47, 0x1c, 0x88, 0x25, 0x8e, 0x87, 0xe1, 0xc8, 0x89, 0x99, 0xc7, 0x74,
+ 0xb1, 0x50, 0x4b, 0xc3, 0xf0, 0xa1, 0x46, 0xe0, 0x94, 0x26, 0x67, 0xe9, 0xd5, 0x4b, 0xb7, 0xf4,
+ 0x2d, 0x68, 0xc6, 0xe4, 0x0f, 0x47, 0x5e, 0x4c, 0xba, 0xdb, 0xee, 0x09, 0x15, 0x89, 0x40, 0x2d,
+ 0xed, 0x91, 0x60, 0x03, 0x87, 0x33, 0x94, 0x3c, 0x19, 0xe0, 0xe5, 0x67, 0x4c, 0x28, 0x15, 0x4e,
+ 0xa2, 0x9e, 0x26, 0x03, 0x1d, 0x05, 0xc7, 0x09, 0x05, 0x4f, 0xa2, 0x7a, 0xfe, 0x88, 0x0e, 0x6e,
+ 0x71, 0x1e, 0x3c, 0x35, 0x16, 0xbe, 0xa2, 0x96, 0x26, 0x51, 0xb7, 0x32, 0x58, 0x9c, 0xa3, 0xd6,
+ 0x9e, 0xb9, 0xfe, 0xeb, 0xf2, 0xcc, 0x46, 0xc0, 0x69, 0x5c, 0x62, 0xc0, 0xd9, 0x86, 0xe5, 0x44,
+ 0x17, 0xbc, 0xa0, 0xbf, 0x47, 0xc6, 0x22, 0x8d, 0x31, 0xaa, 0xc0, 0xc3, 0x2c, 0x1a, 0xe7, 0xe9,
+ 0xad, 0x00, 0x56, 0x1e, 0x6c, 0x1f, 0xd9, 0x99, 0x78, 0x3c, 0x77, 0x4b, 0xcd, 0x28, 0x25, 0xcb,
+ 0xcf, 0x2f, 0x25, 0xad, 0x9f, 0x55, 0x60, 0x89, 0x0b, 0x9c, 0xd1, 0x6c, 0x66, 0xe7, 0x6c, 0x9e,
+ 0x41, 0xe5, 0x0b, 0xbb, 0xf2, 0xba, 0x7c, 0x13, 0x54, 0xaa, 0x5d, 0xfb, 0x35, 0xa9, 0xb6, 0xf5,
+ 0xab, 0x1a, 0xc0, 0x83, 0xb0, 0x4b, 0x6c, 0xe6, 0xb0, 0x11, 0x7d, 0x6e, 0x57, 0x44, 0xe7, 0x86,
+ 0xe5, 0xe7, 0x15, 0xf1, 0x5d, 0x8f, 0x46, 0xbe, 0x2a, 0xe2, 0x73, 0xfd, 0x90, 0x9d, 0x14, 0x85,
+ 0x4d, 0xba, 0xa4, 0x5d, 0x56, 0x9d, 0xde, 0x2e, 0xe3, 0xd3, 0x33, 0x7a, 0x23, 0x6f, 0x43, 0x2d,
+ 0x1a, 0x38, 0x54, 0x77, 0x44, 0x74, 0xc7, 0xb5, 0x76, 0xc8, 0x81, 0x4f, 0x79, 0x45, 0x13, 0x76,
+ 0x89, 0xf8, 0x83, 0x25, 0x21, 0x7a, 0x0c, 0x0d, 0xca, 0x9c, 0x98, 0x91, 0xee, 0xb6, 0xbe, 0x8b,
+ 0xd8, 0x9c, 0xad, 0xc9, 0x71, 0xdf, 0x73, 0xe3, 0x50, 0x74, 0x3a, 0x52, 0x0b, 0xd1, 0x9c, 0x70,
+ 0xca, 0x14, 0xf5, 0x60, 0x89, 0x3b, 0x33, 0x9f, 0x48, 0x19, 0x8b, 0x17, 0x93, 0x91, 0xec, 0x54,
+ 0x27, 0xe5, 0x85, 0x4d, 0xc6, 0xdc, 0x5e, 0x86, 0x84, 0x52, 0xa7, 0x4f, 0x54, 0x45, 0x94, 0x28,
+ 0xee, 0x7d, 0x09, 0xc6, 0x1a, 0x8f, 0x1e, 0x43, 0x4d, 0xe8, 0x84, 0xa8, 0x8d, 0x96, 0x6e, 0x7e,
+ 0xb7, 0x60, 0x39, 0x2f, 0xab, 0x4a, 0xf1, 0x13, 0x4b, 0xc6, 0x7c, 0x5b, 0x47, 0x51, 0xd7, 0x91,
+ 0x4b, 0x86, 0x82, 0xdb, 0xfa, 0x50, 0x73, 0xc2, 0x29, 0x53, 0xe4, 0x02, 0xc4, 0x84, 0x86, 0xfe,
+ 0xa9, 0x10, 0xb1, 0x74, 0x31, 0x11, 0x89, 0x85, 0xe1, 0x84, 0x15, 0x36, 0xd8, 0x5a, 0x3f, 0xa9,
+ 0xc2, 0xca, 0x41, 0x44, 0x82, 0x47, 0x03, 0x8f, 0x9e, 0x68, 0xbf, 0x75, 0x03, 0xaa, 0x83, 0x90,
+ 0xb2, 0x7c, 0x1d, 0x74, 0x27, 0xa4, 0x0c, 0x0b, 0x0c, 0x3f, 0x0a, 0xdd, 0xf7, 0xcb, 0xb9, 0x2e,
+ 0xdd, 0xf3, 0xd3, 0xf8, 0xb9, 0xaf, 0x63, 0xc4, 0xfb, 0x86, 0x11, 0x1b, 0x1c, 0x85, 0x27, 0x24,
+ 0x50, 0x6d, 0xaa, 0xb9, 0xde, 0x37, 0xe8, 0xb1, 0x38, 0x65, 0xc3, 0x4b, 0x7a, 0x27, 0x7d, 0x6b,
+ 0x91, 0x2b, 0xe9, 0xb7, 0xd3, 0x97, 0x16, 0x06, 0xd5, 0x6f, 0xea, 0x33, 0x83, 0x7f, 0x2c, 0xc3,
+ 0x82, 0x2d, 0x98, 0xa0, 0xc7, 0x50, 0xe7, 0x1a, 0x25, 0x7a, 0x55, 0xb2, 0x88, 0x7f, 0x7b, 0x36,
+ 0xfd, 0x3b, 0x10, 0x51, 0xeb, 0x3e, 0x61, 0x4e, 0x2a, 0x2e, 0x85, 0xe1, 0x84, 0x2b, 0xea, 0xa9,
+ 0x1b, 0xa0, 0xc2, 0xcd, 0x3d, 0x39, 0x63, 0x3b, 0x22, 0xee, 0xd4, 0x4b, 0x9f, 0x00, 0x16, 0xa8,
+ 0xf0, 0xf1, 0xc5, 0xfb, 0x7b, 0x4a, 0x92, 0xe0, 0x66, 0xf4, 0xc6, 0xc5, 0x7f, 0xac, 0xa4, 0x58,
+ 0xff, 0x56, 0x02, 0x90, 0x84, 0xfb, 0x1e, 0x65, 0xe8, 0x07, 0x13, 0x1b, 0xd9, 0x9a, 0x6d, 0x23,
+ 0xf9, 0x68, 0xb1, 0x8d, 0x49, 0x02, 0xa9, 0x21, 0xc6, 0x26, 0x12, 0xa8, 0x79, 0x8c, 0x0c, 0xa9,
+ 0xea, 0x07, 0x7c, 0x58, 0x74, 0x6d, 0x69, 0x02, 0x7f, 0x97, 0xb3, 0xc5, 0x92, 0xbb, 0xf5, 0xaf,
+ 0x25, 0x58, 0x96, 0x04, 0xba, 0x8e, 0xa2, 0xe8, 0x31, 0x40, 0x97, 0x44, 0x7e, 0x38, 0x1e, 0x72,
+ 0x67, 0x7b, 0x51, 0x1d, 0x79, 0x85, 0xeb, 0xc7, 0x4e, 0xc2, 0x07, 0x1b, 0x3c, 0xd1, 0x23, 0x58,
+ 0xe4, 0xb9, 0x98, 0xe7, 0xea, 0x0e, 0xf0, 0xfc, 0xec, 0x45, 0x13, 0xd6, 0x96, 0x4c, 0xb0, 0xe6,
+ 0x66, 0xfd, 0x4b, 0x43, 0x1f, 0x11, 0xd7, 0x13, 0xf4, 0x49, 0x29, 0x77, 0xe1, 0x23, 0x0b, 0xce,
+ 0xbb, 0x2f, 0xad, 0x41, 0x9e, 0x56, 0x0e, 0xcf, 0xbe, 0x3f, 0x42, 0x21, 0xd4, 0x99, 0x34, 0x58,
+ 0x7d, 0x9a, 0xdb, 0x85, 0x4d, 0x3f, 0xd5, 0x1d, 0x05, 0xa0, 0x38, 0x11, 0x82, 0x22, 0xa8, 0x33,
+ 0x32, 0x8c, 0x7c, 0x87, 0x91, 0xe2, 0x4d, 0xd8, 0x23, 0xc5, 0xc9, 0x90, 0xa8, 0x20, 0x38, 0x91,
+ 0x82, 0xfe, 0x08, 0x9a, 0xd4, 0x48, 0xc8, 0x95, 0x87, 0x2f, 0x62, 0x90, 0x06, 0x37, 0x79, 0x41,
+ 0x67, 0x42, 0x70, 0x46, 0x1a, 0x0f, 0x5c, 0xae, 0x17, 0xbb, 0x23, 0x8f, 0xa9, 0x28, 0x90, 0x38,
+ 0xe2, 0x8e, 0x04, 0x63, 0x8d, 0x47, 0x3f, 0x29, 0xc1, 0x4a, 0x37, 0x7b, 0x6f, 0xa8, 0xef, 0x8b,
+ 0x0b, 0x68, 0x45, 0xee, 0x26, 0x32, 0x49, 0xf8, 0x56, 0x72, 0x08, 0x8a, 0x27, 0x84, 0xa3, 0x7b,
+ 0x80, 0x54, 0xad, 0x7f, 0xcb, 0xf1, 0x7c, 0xd2, 0xc5, 0xe1, 0x28, 0xe8, 0x8a, 0x7c, 0xab, 0x9e,
+ 0xde, 0xbd, 0xef, 0x4e, 0x50, 0xe0, 0x29, 0xa3, 0xd0, 0xa7, 0x25, 0xb8, 0xaa, 0x4c, 0x41, 0xb6,
+ 0x09, 0x54, 0xc7, 0xe8, 0xd1, 0xcb, 0xf0, 0xc1, 0x2d, 0xdb, 0xe4, 0x2c, 0x3b, 0x2c, 0xd7, 0xd5,
+ 0x04, 0xaf, 0x66, 0x70, 0x38, 0x3b, 0x09, 0xf4, 0x37, 0x25, 0xf9, 0xbe, 0xc0, 0x73, 0xc9, 0x76,
+ 0x10, 0x84, 0x4c, 0x3c, 0x82, 0xa2, 0xaa, 0xf0, 0xfc, 0xc1, 0xcb, 0x9c, 0x9b, 0xc1, 0x5e, 0x4e,
+ 0x30, 0xf3, 0x7a, 0x21, 0x4b, 0x80, 0xa7, 0xcc, 0x69, 0xed, 0x43, 0x40, 0x93, 0xcb, 0x9c, 0xa7,
+ 0xcf, 0xb2, 0xb6, 0x0b, 0x5f, 0x7e, 0xc6, 0x64, 0xe6, 0x6a, 0xd7, 0xfc, 0x6c, 0x11, 0x9a, 0x66,
+ 0x54, 0x4a, 0x8b, 0x84, 0xd2, 0xac, 0x45, 0xc2, 0xef, 0x9b, 0x45, 0x42, 0x79, 0xee, 0x9b, 0xd0,
+ 0xe7, 0xd7, 0x07, 0x4e, 0xb6, 0x3e, 0xa8, 0xcc, 0xcd, 0x7e, 0xae, 0xd2, 0xa0, 0xfa, 0x82, 0xd2,
+ 0xe0, 0x14, 0x6a, 0x41, 0xd8, 0x25, 0xb4, 0xf8, 0xab, 0x13, 0x73, 0xcf, 0x5b, 0x7c, 0x4b, 0x95,
+ 0x22, 0x25, 0xe1, 0x53, 0xc0, 0xb0, 0x14, 0x87, 0x6e, 0xc3, 0x35, 0xe5, 0x75, 0x3b, 0x63, 0xd7,
+ 0x27, 0x9d, 0x70, 0x14, 0xc8, 0x7a, 0xac, 0xd6, 0x7e, 0x5d, 0x0d, 0xb8, 0x76, 0x94, 0x27, 0xc0,
+ 0x93, 0x63, 0xd0, 0x0f, 0x01, 0x99, 0x40, 0x29, 0x5f, 0x5d, 0x24, 0x6d, 0x6a, 0x1d, 0x3e, 0x9a,
+ 0xa0, 0x78, 0x9a, 0xe3, 0xcf, 0xa1, 0x04, 0x4f, 0x61, 0x85, 0xfa, 0x70, 0xd5, 0x77, 0x28, 0x13,
+ 0x20, 0xbe, 0xff, 0xaa, 0xb5, 0x34, 0xcf, 0x89, 0x25, 0xc6, 0xbe, 0x6f, 0x32, 0xc2, 0x59, 0xbe,
+ 0xe8, 0x14, 0x1a, 0xfa, 0x95, 0x19, 0x55, 0x95, 0xda, 0xdd, 0xa2, 0xc7, 0x91, 0xe4, 0x26, 0xb2,
+ 0x1a, 0x48, 0xfe, 0xe2, 0x54, 0xd4, 0xda, 0x8f, 0x65, 0xd5, 0xff, 0x4c, 0x53, 0xfb, 0xbe, 0x69,
+ 0x6a, 0x85, 0xd2, 0xd2, 0xb4, 0xb9, 0x60, 0x1a, 0xec, 0x7f, 0x97, 0xa1, 0x69, 0xfb, 0x8e, 0x9b,
+ 0x14, 0x5c, 0xd9, 0x9c, 0xbf, 0x74, 0xe9, 0x7d, 0x96, 0x87, 0x00, 0x54, 0xcc, 0x47, 0xd4, 0x5c,
+ 0x73, 0x5d, 0xaf, 0x89, 0xdc, 0xcd, 0x4e, 0x06, 0x63, 0x83, 0xd1, 0xfc, 0xa5, 0x1f, 0x8f, 0xce,
+ 0x03, 0x27, 0x08, 0x88, 0x9f, 0x37, 0xe3, 0x8e, 0x04, 0x63, 0x8d, 0x37, 0x2d, 0xbe, 0xf6, 0x7c,
+ 0x8b, 0xb7, 0x7e, 0x55, 0x05, 0x64, 0x33, 0x27, 0xe8, 0x3a, 0x71, 0x77, 0x6f, 0x2b, 0xe9, 0xce,
+ 0x3d, 0xf3, 0xf5, 0x6f, 0xe9, 0x8b, 0x78, 0xfd, 0x6b, 0x3c, 0xe3, 0x2e, 0x5f, 0xca, 0x33, 0xee,
+ 0x07, 0xe6, 0x33, 0x6e, 0x79, 0x38, 0x6f, 0x4f, 0x7b, 0xc6, 0xfd, 0x95, 0xbd, 0xd1, 0x31, 0x89,
+ 0x03, 0xc2, 0x08, 0xd5, 0x73, 0x9d, 0xe1, 0x31, 0xf7, 0xe5, 0xf7, 0x0a, 0x7b, 0x70, 0x35, 0x72,
+ 0x98, 0x3b, 0xb0, 0x59, 0xec, 0x30, 0xd2, 0x1f, 0x2b, 0xb5, 0xf8, 0x50, 0x7b, 0xa2, 0x43, 0x13,
+ 0xf9, 0xf4, 0x6c, 0xe3, 0xb7, 0x9f, 0xf5, 0x35, 0x07, 0x1b, 0x47, 0x84, 0xb6, 0x04, 0xb9, 0x68,
+ 0xbc, 0x65, 0xd9, 0xa2, 0x9b, 0x00, 0xbe, 0x77, 0x4a, 0x0e, 0xd2, 0xd7, 0x45, 0xf5, 0x74, 0x6e,
+ 0xfb, 0x09, 0x06, 0x1b, 0x54, 0xd6, 0x26, 0x34, 0xa5, 0x17, 0x50, 0xd7, 0x5a, 0x1b, 0x50, 0x73,
+ 0x7c, 0x3f, 0x7c, 0x22, 0x4c, 0xbd, 0x26, 0xbb, 0x4b, 0xdb, 0x1c, 0x80, 0x25, 0xdc, 0x3a, 0x2f,
+ 0x41, 0x26, 0x8b, 0x45, 0x03, 0xa8, 0x0e, 0x18, 0x8b, 0x8a, 0x3f, 0xf1, 0xcf, 0x5f, 0x50, 0xcb,
+ 0x4b, 0x6c, 0x0e, 0xc5, 0x42, 0x02, 0x97, 0x14, 0x38, 0x8c, 0x16, 0xd7, 0xc2, 0x7c, 0xeb, 0x5d,
+ 0x4a, 0xe2, 0x50, 0x2c, 0x24, 0x58, 0x7f, 0x5f, 0x82, 0x46, 0xd2, 0x99, 0xe5, 0xfb, 0xea, 0x3a,
+ 0x1d, 0x12, 0xb3, 0xc3, 0xf4, 0x89, 0x4a, 0xb2, 0xaf, 0x9d, 0x6d, 0x8d, 0xc1, 0x06, 0x95, 0x7c,
+ 0x7f, 0xe2, 0x91, 0x80, 0x25, 0xe3, 0x26, 0xde, 0x9f, 0x98, 0x58, 0x9c, 0xa3, 0x46, 0xdf, 0x81,
+ 0xab, 0x12, 0xa2, 0x1f, 0x7b, 0x48, 0x3b, 0x48, 0xa2, 0x57, 0xc7, 0x44, 0xe2, 0x2c, 0xad, 0xf5,
+ 0x17, 0x15, 0x48, 0xea, 0x1b, 0xfd, 0x2c, 0x96, 0xa7, 0x72, 0xae, 0xcb, 0xc3, 0xb4, 0xf1, 0x51,
+ 0xcf, 0x44, 0x62, 0x99, 0x52, 0xe0, 0x29, 0xa3, 0xd0, 0x3d, 0xf1, 0x62, 0x9d, 0x39, 0x5c, 0x25,
+ 0xd5, 0x31, 0xbc, 0x39, 0xcd, 0x19, 0x77, 0x34, 0x51, 0xf2, 0x06, 0x5d, 0xfe, 0xc5, 0xe9, 0x70,
+ 0xb4, 0x0b, 0x8b, 0xa7, 0xa1, 0x3f, 0x1a, 0x12, 0xfd, 0x7d, 0xc5, 0xda, 0x34, 0x4e, 0x1f, 0x09,
+ 0x12, 0xa3, 0x89, 0x27, 0x87, 0x60, 0x3d, 0x16, 0x11, 0x58, 0x16, 0x2f, 0x87, 0x3d, 0x36, 0x56,
+ 0xaf, 0x99, 0x54, 0xdd, 0xf6, 0xb5, 0x69, 0xec, 0x0e, 0xc3, 0xae, 0x9d, 0xa5, 0x6e, 0xbf, 0x7a,
+ 0x7e, 0xb6, 0xb1, 0x9c, 0x03, 0xe2, 0x3c, 0x4f, 0xf4, 0x7e, 0xf2, 0x20, 0x98, 0xf3, 0xfe, 0xca,
+ 0xb3, 0x78, 0x47, 0xc4, 0x95, 0xca, 0x94, 0x76, 0x78, 0x2c, 0x1b, 0x20, 0x7d, 0xe0, 0x85, 0xbe,
+ 0x0a, 0x35, 0x91, 0x7f, 0xaa, 0x13, 0x48, 0x32, 0x32, 0x91, 0x9f, 0x62, 0x89, 0x43, 0x37, 0xa0,
+ 0x4a, 0x59, 0x18, 0xe5, 0x5b, 0xfa, 0x36, 0x0b, 0x23, 0x2c, 0x30, 0xd6, 0x7f, 0x95, 0x61, 0x51,
+ 0x87, 0x0b, 0x6a, 0x54, 0xca, 0xa5, 0xa2, 0xb9, 0x8a, 0x62, 0x9a, 0x14, 0xcc, 0xcd, 0x67, 0x14,
+ 0xcb, 0x59, 0xa7, 0x5a, 0xbe, 0x74, 0xa7, 0x7a, 0x02, 0x0b, 0x91, 0x70, 0x59, 0x2a, 0x6b, 0xbf,
+ 0x5d, 0x5c, 0xb6, 0x60, 0x27, 0x23, 0x92, 0xfc, 0x8d, 0x95, 0x08, 0xeb, 0x7f, 0x4a, 0xb0, 0x92,
+ 0x9f, 0x21, 0x3a, 0x81, 0x0a, 0x8d, 0x5d, 0xb5, 0xe3, 0x87, 0x2f, 0x6f, 0xe9, 0x32, 0x1a, 0xca,
+ 0xfb, 0x20, 0x3b, 0x76, 0x31, 0x97, 0xc2, 0x35, 0xa2, 0x4b, 0x28, 0xcb, 0x6b, 0xc4, 0x0e, 0xa1,
+ 0x0c, 0x0b, 0x0c, 0xda, 0x9f, 0x8c, 0x9a, 0xad, 0x69, 0x51, 0xf3, 0xf5, 0xbc, 0xbc, 0x69, 0x31,
+ 0xd3, 0xfa, 0xf7, 0x32, 0x7c, 0x69, 0xfa, 0xc4, 0xb8, 0x6b, 0x4b, 0xeb, 0x7f, 0xc3, 0x99, 0x24,
+ 0xae, 0x6d, 0x27, 0x83, 0xc5, 0x39, 0x6a, 0xe1, 0x4e, 0xa5, 0x55, 0xe9, 0xcf, 0x04, 0x4d, 0x77,
+ 0x9a, 0x60, 0xb0, 0x41, 0x85, 0xb6, 0x61, 0x59, 0xfd, 0x3b, 0x32, 0x7b, 0x42, 0xc6, 0x95, 0x6b,
+ 0x27, 0x8b, 0xc6, 0x79, 0x7a, 0x9e, 0x96, 0x75, 0x1d, 0xe6, 0x70, 0x99, 0xb9, 0x0c, 0x6e, 0x47,
+ 0x82, 0xb1, 0xc6, 0xa3, 0x2d, 0x68, 0xf2, 0x9f, 0x89, 0xa8, 0x5a, 0xf6, 0x1b, 0x84, 0x1d, 0x03,
+ 0x87, 0x33, 0x94, 0xe9, 0x9b, 0x71, 0xf9, 0xd2, 0x6e, 0xe2, 0xcd, 0xb8, 0xf5, 0xcb, 0x12, 0x5c,
+ 0xcd, 0xe8, 0x1b, 0xea, 0x41, 0xe5, 0x64, 0x8b, 0x2a, 0x35, 0xda, 0x7b, 0x89, 0xaf, 0x48, 0xa4,
+ 0x06, 0xed, 0x6d, 0x51, 0xcc, 0x05, 0xa0, 0x8f, 0x93, 0x46, 0x73, 0xb9, 0x70, 0x5f, 0xcb, 0xc8,
+ 0x18, 0x54, 0x06, 0x97, 0x6d, 0x32, 0xef, 0x26, 0x8b, 0xb4, 0x9f, 0x78, 0xcc, 0x1d, 0xa0, 0xd7,
+ 0xa1, 0xe2, 0x04, 0x63, 0x91, 0x54, 0x34, 0xe4, 0xbc, 0xb6, 0x83, 0x31, 0xe6, 0x30, 0x81, 0xf2,
+ 0x7d, 0xf5, 0x6e, 0x4d, 0xa2, 0x7c, 0x1f, 0x73, 0x98, 0xf5, 0xd7, 0x0d, 0x58, 0xce, 0xf9, 0xa3,
+ 0x19, 0x5e, 0xc2, 0x9d, 0xc0, 0x02, 0x15, 0x52, 0xd5, 0x42, 0x8b, 0x7b, 0x06, 0xb9, 0x08, 0xb5,
+ 0x52, 0xf1, 0x1b, 0x2b, 0x11, 0xa8, 0x2f, 0x4f, 0x4f, 0xfa, 0xa0, 0xfd, 0x42, 0x5b, 0x9a, 0xab,
+ 0x02, 0x72, 0xc7, 0xf7, 0x49, 0x09, 0x9a, 0x8e, 0xf1, 0xd9, 0xa2, 0x8a, 0x72, 0xf7, 0x8b, 0xe4,
+ 0xe2, 0x13, 0x5f, 0x6c, 0xca, 0x26, 0xa5, 0x89, 0xc0, 0x19, 0xa1, 0xc8, 0x55, 0xc9, 0x5e, 0xad,
+ 0xe8, 0x97, 0x63, 0xc6, 0x1b, 0xae, 0x89, 0x3c, 0xef, 0x09, 0x34, 0x9c, 0x27, 0x54, 0x7e, 0x94,
+ 0xac, 0xee, 0x85, 0x8b, 0x94, 0x1c, 0xb9, 0xef, 0x9b, 0xd5, 0x5d, 0x9c, 0x86, 0xe2, 0x54, 0x16,
+ 0x8a, 0x61, 0xc1, 0x15, 0xdf, 0xeb, 0xa8, 0x9b, 0xe2, 0xdb, 0x2f, 0xe9, 0xbb, 0x9f, 0xf6, 0x35,
+ 0x91, 0xb2, 0x99, 0x20, 0xac, 0x24, 0xa1, 0x3e, 0xd4, 0x4e, 0x9c, 0xde, 0x89, 0xa3, 0x5a, 0x19,
+ 0x05, 0xac, 0xd2, 0x7c, 0x17, 0x25, 0x3d, 0x8f, 0x80, 0x60, 0xc9, 0x9f, 0x1f, 0x9d, 0xc8, 0x9e,
+ 0x1b, 0x45, 0x8f, 0xce, 0x78, 0x47, 0x92, 0x4f, 0x9c, 0xf9, 0x6a, 0x44, 0x95, 0xad, 0xee, 0x9d,
+ 0x8b, 0xf8, 0x18, 0xa3, 0x0b, 0x21, 0x57, 0x23, 0x20, 0x58, 0xf2, 0xe7, 0x3a, 0x12, 0xea, 0xcb,
+ 0x61, 0x75, 0x03, 0x5d, 0x40, 0x47, 0xf2, 0xf7, 0xcc, 0x52, 0x47, 0x12, 0x28, 0x4e, 0x65, 0x59,
+ 0x2e, 0x2c, 0x19, 0x5f, 0x74, 0xce, 0xf0, 0xd1, 0xd1, 0x4d, 0x80, 0x53, 0x12, 0x7b, 0xbd, 0x31,
+ 0xcf, 0xed, 0xd5, 0xc7, 0x6f, 0x49, 0xb8, 0xfb, 0x28, 0xc1, 0x60, 0x83, 0xaa, 0xdd, 0xfa, 0xec,
+ 0xf3, 0xf5, 0x2b, 0x3f, 0xff, 0x7c, 0xfd, 0xca, 0x2f, 0x3e, 0x5f, 0xbf, 0xf2, 0xa7, 0xe7, 0xeb,
+ 0xa5, 0xcf, 0xce, 0xd7, 0x4b, 0x3f, 0x3f, 0x5f, 0x2f, 0xfd, 0xe2, 0x7c, 0xbd, 0xf4, 0x1f, 0xe7,
+ 0xeb, 0xa5, 0xbf, 0xfa, 0xe5, 0xfa, 0x95, 0xef, 0xd7, 0xf5, 0xfc, 0xff, 0x2f, 0x00, 0x00, 0xff,
+ 0xff, 0x83, 0x03, 0x4a, 0xd5, 0x7f, 0x41, 0x00, 0x00,
+}
+
+func (m *AWSLambdaTrigger) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *AWSLambdaTrigger) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *AWSLambdaTrigger) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Parameters) > 0 {
+ for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ }
+ }
+ if len(m.Payload) > 0 {
+ for iNdEx := len(m.Payload) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Payload[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ }
+ i -= len(m.Region)
+ copy(dAtA[i:], m.Region)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Region)))
+ i--
+ dAtA[i] = 0x2a
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x22
+ if m.SecretKey != nil {
+ {
+ size, err := m.SecretKey.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.AccessKey != nil {
+ {
+ size, err := m.AccessKey.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ i -= len(m.FunctionName)
+ copy(dAtA[i:], m.FunctionName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.FunctionName)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *ArgoWorkflowTrigger) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *ArgoWorkflowTrigger) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *ArgoWorkflowTrigger) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ {
+ size, err := m.GroupVersionResource.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ if len(m.Parameters) > 0 {
+ for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ i -= len(m.Operation)
+ copy(dAtA[i:], m.Operation)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operation)))
+ i--
+ dAtA[i] = 0x12
+ if m.Source != nil {
+ {
+ size, err := m.Source.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *ArtifactLocation) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *ArtifactLocation) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *ArtifactLocation) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Resource != nil {
+ {
+ size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ }
+ if m.Git != nil {
+ {
+ size, err := m.Git.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ if m.Configmap != nil {
+ {
+ size, err := m.Configmap.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ if m.URL != nil {
+ {
+ size, err := m.URL.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ if m.File != nil {
+ {
+ size, err := m.File.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.Inline != nil {
+ i -= len(*m.Inline)
+ copy(dAtA[i:], *m.Inline)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Inline)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.S3 != nil {
+ {
+ size, err := m.S3.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *BasicAuth) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *BasicAuth) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *BasicAuth) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x1a
+ if m.Password != nil {
+ {
+ size, err := m.Password.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.Username != nil {
+ {
+ size, err := m.Username.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *ConfigmapArtifact) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *ConfigmapArtifact) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *ConfigmapArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Key)
+ copy(dAtA[i:], m.Key)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *CustomTrigger) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *CustomTrigger) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *CustomTrigger) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Payload) > 0 {
+ for iNdEx := len(m.Payload) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Payload[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ }
+ }
+ if len(m.Parameters) > 0 {
+ for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ }
+ if len(m.Spec) > 0 {
+ keysForSpec := make([]string, 0, len(m.Spec))
+ for k := range m.Spec {
+ keysForSpec = append(keysForSpec, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForSpec)
+ for iNdEx := len(keysForSpec) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Spec[string(keysForSpec[iNdEx])]
+ baseI := i
+ i -= len(v)
+ copy(dAtA[i:], v)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForSpec[iNdEx])
+ copy(dAtA[i:], keysForSpec[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForSpec[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x2a
+ }
+ }
+ i -= len(m.ServerNameOverride)
+ copy(dAtA[i:], m.ServerNameOverride)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServerNameOverride)))
+ i--
+ dAtA[i] = 0x22
+ i -= len(m.CertFilePath)
+ copy(dAtA[i:], m.CertFilePath)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.CertFilePath)))
+ i--
+ dAtA[i] = 0x1a
+ i--
+ if m.Secure {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x10
+ i -= len(m.ServerURL)
+ copy(dAtA[i:], m.ServerURL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServerURL)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *DataFilter) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *DataFilter) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *DataFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Comparator)
+ copy(dAtA[i:], m.Comparator)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Comparator)))
+ i--
+ dAtA[i] = 0x22
+ if len(m.Value) > 0 {
+ for iNdEx := len(m.Value) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.Value[iNdEx])
+ copy(dAtA[i:], m.Value[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value[iNdEx])))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ i -= len(m.Type)
+ copy(dAtA[i:], m.Type)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Path)
+ copy(dAtA[i:], m.Path)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *DependencyGroup) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *DependencyGroup) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *DependencyGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Dependencies) > 0 {
+ for iNdEx := len(m.Dependencies) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.Dependencies[iNdEx])
+ copy(dAtA[i:], m.Dependencies[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Dependencies[iNdEx])))
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *Event) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Event) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Data != nil {
+ i -= len(m.Data)
+ copy(dAtA[i:], m.Data)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Data)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.Context != nil {
+ {
+ size, err := m.Context.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *EventContext) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EventContext) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EventContext) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ {
+ size, err := m.Time.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ i -= len(m.Subject)
+ copy(dAtA[i:], m.Subject)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Subject)))
+ i--
+ dAtA[i] = 0x32
+ i -= len(m.DataContentType)
+ copy(dAtA[i:], m.DataContentType)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.DataContentType)))
+ i--
+ dAtA[i] = 0x2a
+ i -= len(m.Type)
+ copy(dAtA[i:], m.Type)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
+ i--
+ dAtA[i] = 0x22
+ i -= len(m.SpecVersion)
+ copy(dAtA[i:], m.SpecVersion)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.SpecVersion)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Source)
+ copy(dAtA[i:], m.Source)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Source)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.ID)
+ copy(dAtA[i:], m.ID)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *EventDependency) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EventDependency) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EventDependency) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Filters != nil {
+ {
+ size, err := m.Filters.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ i -= len(m.EventName)
+ copy(dAtA[i:], m.EventName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.EventName)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.GatewayName)
+ copy(dAtA[i:], m.GatewayName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.GatewayName)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *EventDependencyFilter) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EventDependencyFilter) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EventDependencyFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Data) > 0 {
+ for iNdEx := len(m.Data) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Data[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ if m.Context != nil {
+ {
+ size, err := m.Context.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.Time != nil {
+ {
+ size, err := m.Time.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *FileArtifact) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *FileArtifact) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *FileArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Path)
+ copy(dAtA[i:], m.Path)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *GitArtifact) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *GitArtifact) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *GitArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Remote != nil {
+ {
+ size, err := m.Remote.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x52
+ }
+ i -= len(m.Ref)
+ copy(dAtA[i:], m.Ref)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Ref)))
+ i--
+ dAtA[i] = 0x4a
+ i -= len(m.Tag)
+ copy(dAtA[i:], m.Tag)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Tag)))
+ i--
+ dAtA[i] = 0x42
+ i -= len(m.Branch)
+ copy(dAtA[i:], m.Branch)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Branch)))
+ i--
+ dAtA[i] = 0x3a
+ i -= len(m.FilePath)
+ copy(dAtA[i:], m.FilePath)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.FilePath)))
+ i--
+ dAtA[i] = 0x32
+ i -= len(m.SSHKeyPath)
+ copy(dAtA[i:], m.SSHKeyPath)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.SSHKeyPath)))
+ i--
+ dAtA[i] = 0x2a
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x22
+ if m.Creds != nil {
+ {
+ size, err := m.Creds.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ i -= len(m.CloneDirectory)
+ copy(dAtA[i:], m.CloneDirectory)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.CloneDirectory)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.URL)
+ copy(dAtA[i:], m.URL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *GitCreds) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *GitCreds) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *GitCreds) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Password != nil {
+ {
+ size, err := m.Password.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.Username != nil {
+ {
+ size, err := m.Username.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *GitRemoteConfig) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *GitRemoteConfig) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *GitRemoteConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.URLS) > 0 {
+ for iNdEx := len(m.URLS) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.URLS[iNdEx])
+ copy(dAtA[i:], m.URLS[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.URLS[iNdEx])))
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *HTTPSubscription) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *HTTPSubscription) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HTTPSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i = encodeVarintGenerated(dAtA, i, uint64(m.Port))
+ i--
+ dAtA[i] = 0x8
+ return len(dAtA) - i, nil
+}
+
+func (m *HTTPTrigger) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *HTTPTrigger) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HTTPTrigger) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Headers) > 0 {
+ keysForHeaders := make([]string, 0, len(m.Headers))
+ for k := range m.Headers {
+ keysForHeaders = append(keysForHeaders, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForHeaders)
+ for iNdEx := len(keysForHeaders) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Headers[string(keysForHeaders[iNdEx])]
+ baseI := i
+ i -= len(v)
+ copy(dAtA[i:], v)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForHeaders[iNdEx])
+ copy(dAtA[i:], keysForHeaders[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForHeaders[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x42
+ }
+ }
+ if m.BasicAuth != nil {
+ {
+ size, err := m.BasicAuth.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ }
+ i = encodeVarintGenerated(dAtA, i, uint64(m.Timeout))
+ i--
+ dAtA[i] = 0x30
+ if len(m.Parameters) > 0 {
+ for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ }
+ i -= len(m.Method)
+ copy(dAtA[i:], m.Method)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Method)))
+ i--
+ dAtA[i] = 0x22
+ if m.TLS != nil {
+ {
+ size, err := m.TLS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(m.Payload) > 0 {
+ for iNdEx := len(m.Payload) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Payload[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ i -= len(m.URL)
+ copy(dAtA[i:], m.URL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *K8SResourcePolicy) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *K8SResourcePolicy) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *K8SResourcePolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i--
+ if m.ErrorOnBackoffTimeout {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x18
+ {
+ size, err := m.Backoff.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ if len(m.Labels) > 0 {
+ keysForLabels := make([]string, 0, len(m.Labels))
+ for k := range m.Labels {
+ keysForLabels = append(keysForLabels, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
+ for iNdEx := len(keysForLabels) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Labels[string(keysForLabels[iNdEx])]
+ baseI := i
+ i -= len(v)
+ copy(dAtA[i:], v)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForLabels[iNdEx])
+ copy(dAtA[i:], keysForLabels[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForLabels[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *KafkaTrigger) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *KafkaTrigger) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *KafkaTrigger) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.PartitioningKey)
+ copy(dAtA[i:], m.PartitioningKey)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.PartitioningKey)))
+ i--
+ dAtA[i] = 0x52
+ if len(m.Payload) > 0 {
+ for iNdEx := len(m.Payload) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Payload[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x4a
+ }
+ }
+ if m.TLS != nil {
+ {
+ size, err := m.TLS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x42
+ }
+ i = encodeVarintGenerated(dAtA, i, uint64(m.FlushFrequency))
+ i--
+ dAtA[i] = 0x38
+ i--
+ if m.Compress {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x30
+ i = encodeVarintGenerated(dAtA, i, uint64(m.RequiredAcks))
+ i--
+ dAtA[i] = 0x28
+ if len(m.Parameters) > 0 {
+ for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ i = encodeVarintGenerated(dAtA, i, uint64(m.Partition))
+ i--
+ dAtA[i] = 0x18
+ i -= len(m.Topic)
+ copy(dAtA[i:], m.Topic)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Topic)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.URL)
+ copy(dAtA[i:], m.URL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *NATSSubscription) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *NATSSubscription) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *NATSSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Subject)
+ copy(dAtA[i:], m.Subject)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Subject)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.ServerURL)
+ copy(dAtA[i:], m.ServerURL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServerURL)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *NATSTrigger) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *NATSTrigger) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *NATSTrigger) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.TLS != nil {
+ {
+ size, err := m.TLS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ if len(m.Parameters) > 0 {
+ for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ if len(m.Payload) > 0 {
+ for iNdEx := len(m.Payload) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Payload[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ i -= len(m.Subject)
+ copy(dAtA[i:], m.Subject)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Subject)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.URL)
+ copy(dAtA[i:], m.URL)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *NodeStatus) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *NodeStatus) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *NodeStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ {
+ size, err := m.ResolvedAt.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x5a
+ {
+ size, err := m.UpdatedAt.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x52
+ if m.Event != nil {
+ {
+ size, err := m.Event.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x4a
+ }
+ i -= len(m.Message)
+ copy(dAtA[i:], m.Message)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
+ i--
+ dAtA[i] = 0x42
+ {
+ size, err := m.CompletedAt.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ {
+ size, err := m.StartedAt.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ i -= len(m.Phase)
+ copy(dAtA[i:], m.Phase)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase)))
+ i--
+ dAtA[i] = 0x2a
+ i -= len(m.Type)
+ copy(dAtA[i:], m.Type)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
+ i--
+ dAtA[i] = 0x22
+ i -= len(m.DisplayName)
+ copy(dAtA[i:], m.DisplayName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.DisplayName)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.ID)
+ copy(dAtA[i:], m.ID)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *OpenWhiskTrigger) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *OpenWhiskTrigger) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *OpenWhiskTrigger) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Parameters) > 0 {
+ for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ }
+ }
+ if len(m.Payload) > 0 {
+ for iNdEx := len(m.Payload) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Payload[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ }
+ i -= len(m.ActionName)
+ copy(dAtA[i:], m.ActionName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ActionName)))
+ i--
+ dAtA[i] = 0x2a
+ if m.AuthToken != nil {
+ {
+ size, err := m.AuthToken.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Version)
+ copy(dAtA[i:], m.Version)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Host)
+ copy(dAtA[i:], m.Host)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Host)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *Sensor) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Sensor) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Sensor) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ {
+ size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ {
+ size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ {
+ size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *SensorList) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *SensorList) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *SensorList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Items) > 0 {
+ for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ {
+ size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *SensorResources) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *SensorResources) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *SensorResources) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Service != nil {
+ {
+ size, err := m.Service.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.Deployment != nil {
+ {
+ size, err := m.Deployment.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *SensorSpec) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *SensorSpec) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *SensorSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.ServiceAnnotations) > 0 {
+ keysForServiceAnnotations := make([]string, 0, len(m.ServiceAnnotations))
+ for k := range m.ServiceAnnotations {
+ keysForServiceAnnotations = append(keysForServiceAnnotations, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForServiceAnnotations)
+ for iNdEx := len(keysForServiceAnnotations) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.ServiceAnnotations[string(keysForServiceAnnotations[iNdEx])]
+ baseI := i
+ i -= len(v)
+ copy(dAtA[i:], v)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForServiceAnnotations[iNdEx])
+ copy(dAtA[i:], keysForServiceAnnotations[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForServiceAnnotations[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x4a
+ }
+ }
+ if len(m.ServiceLabels) > 0 {
+ keysForServiceLabels := make([]string, 0, len(m.ServiceLabels))
+ for k := range m.ServiceLabels {
+ keysForServiceLabels = append(keysForServiceLabels, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForServiceLabels)
+ for iNdEx := len(keysForServiceLabels) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.ServiceLabels[string(keysForServiceLabels[iNdEx])]
+ baseI := i
+ i -= len(v)
+ copy(dAtA[i:], v)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForServiceLabels[iNdEx])
+ copy(dAtA[i:], keysForServiceLabels[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForServiceLabels[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x42
+ }
+ }
+ i--
+ if m.ErrorOnFailedRound {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x38
+ if len(m.DependencyGroups) > 0 {
+ for iNdEx := len(m.DependencyGroups) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.DependencyGroups[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ }
+ i -= len(m.Circuit)
+ copy(dAtA[i:], m.Circuit)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Circuit)))
+ i--
+ dAtA[i] = 0x2a
+ if m.Subscription != nil {
+ {
+ size, err := m.Subscription.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ {
+ size, err := m.Template.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ if len(m.Triggers) > 0 {
+ for iNdEx := len(m.Triggers) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Triggers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if len(m.Dependencies) > 0 {
+ for iNdEx := len(m.Dependencies) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Dependencies[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *SensorStatus) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *SensorStatus) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *SensorStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Resources != nil {
+ {
+ size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x4a
+ }
+ {
+ size, err := m.LastCycleTime.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x42
+ i -= len(m.TriggerCycleStatus)
+ copy(dAtA[i:], m.TriggerCycleStatus)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.TriggerCycleStatus)))
+ i--
+ dAtA[i] = 0x3a
+ i = encodeVarintGenerated(dAtA, i, uint64(m.TriggerCycleCount))
+ i--
+ dAtA[i] = 0x30
+ if len(m.Nodes) > 0 {
+ keysForNodes := make([]string, 0, len(m.Nodes))
+ for k := range m.Nodes {
+ keysForNodes = append(keysForNodes, string(k))
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForNodes)
+ for iNdEx := len(keysForNodes) - 1; iNdEx >= 0; iNdEx-- {
+ v := m.Nodes[string(keysForNodes[iNdEx])]
+ baseI := i
+ {
+ size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(keysForNodes[iNdEx])
+ copy(dAtA[i:], keysForNodes[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(keysForNodes[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x2a
+ }
+ }
+ i -= len(m.Message)
+ copy(dAtA[i:], m.Message)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
+ i--
+ dAtA[i] = 0x22
+ {
+ size, err := m.CompletedAt.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ {
+ size, err := m.StartedAt.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Phase)
+ copy(dAtA[i:], m.Phase)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *SlackTrigger) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *SlackTrigger) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *SlackTrigger) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Message)
+ copy(dAtA[i:], m.Message)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
+ i--
+ dAtA[i] = 0x2a
+ i -= len(m.Channel)
+ copy(dAtA[i:], m.Channel)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Channel)))
+ i--
+ dAtA[i] = 0x22
+ i -= len(m.Namespace)
+ copy(dAtA[i:], m.Namespace)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
+ i--
+ dAtA[i] = 0x1a
+ if m.SlackToken != nil {
+ {
+ size, err := m.SlackToken.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(m.Parameters) > 0 {
+ for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *StandardK8STrigger) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *StandardK8STrigger) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *StandardK8STrigger) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i--
+ if m.LiveObject {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x30
+ i -= len(m.PatchStrategy)
+ copy(dAtA[i:], m.PatchStrategy)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.PatchStrategy)))
+ i--
+ dAtA[i] = 0x2a
+ if len(m.Parameters) > 0 {
+ for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ i -= len(m.Operation)
+ copy(dAtA[i:], m.Operation)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operation)))
+ i--
+ dAtA[i] = 0x1a
+ if m.Source != nil {
+ {
+ size, err := m.Source.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ {
+ size, err := m.GroupVersionResource.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *StatusPolicy) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *StatusPolicy) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *StatusPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.Allow) > 0 {
+ for iNdEx := len(m.Allow) - 1; iNdEx >= 0; iNdEx-- {
+ i = encodeVarintGenerated(dAtA, i, uint64(m.Allow[iNdEx]))
+ i--
+ dAtA[i] = 0x8
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *Subscription) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Subscription) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Subscription) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.NATS != nil {
+ {
+ size, err := m.NATS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.HTTP != nil {
+ {
+ size, err := m.HTTP.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *TLSConfig) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *TLSConfig) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *TLSConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.ClientKeyPath)
+ copy(dAtA[i:], m.ClientKeyPath)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClientKeyPath)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.ClientCertPath)
+ copy(dAtA[i:], m.ClientCertPath)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClientCertPath)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.CACertPath)
+ copy(dAtA[i:], m.CACertPath)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.CACertPath)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *Template) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Template) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Template) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Spec != nil {
+ {
+ size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ if m.SecurityContext != nil {
+ {
+ size, err := m.SecurityContext.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(m.Volumes) > 0 {
+ for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Volumes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if m.Container != nil {
+ {
+ size, err := m.Container.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ i -= len(m.ServiceAccountName)
+ copy(dAtA[i:], m.ServiceAccountName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceAccountName)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *TimeFilter) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *TimeFilter) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *TimeFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Stop)
+ copy(dAtA[i:], m.Stop)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Stop)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.Start)
+ copy(dAtA[i:], m.Start)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Start)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *Trigger) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Trigger) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Trigger) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Policy != nil {
+ {
+ size, err := m.Policy.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(m.Parameters) > 0 {
+ for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if m.Template != nil {
+ {
+ size, err := m.Template.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *TriggerParameter) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *TriggerParameter) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *TriggerParameter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i -= len(m.Operation)
+ copy(dAtA[i:], m.Operation)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operation)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.Dest)
+ copy(dAtA[i:], m.Dest)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Dest)))
+ i--
+ dAtA[i] = 0x12
+ if m.Src != nil {
+ {
+ size, err := m.Src.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *TriggerParameterSource) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *TriggerParameterSource) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *TriggerParameterSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Value != nil {
+ i -= len(*m.Value)
+ copy(dAtA[i:], *m.Value)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Value)))
+ i--
+ dAtA[i] = 0x32
+ }
+ i -= len(m.DataTemplate)
+ copy(dAtA[i:], m.DataTemplate)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.DataTemplate)))
+ i--
+ dAtA[i] = 0x2a
+ i -= len(m.DataKey)
+ copy(dAtA[i:], m.DataKey)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.DataKey)))
+ i--
+ dAtA[i] = 0x22
+ i -= len(m.ContextTemplate)
+ copy(dAtA[i:], m.ContextTemplate)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContextTemplate)))
+ i--
+ dAtA[i] = 0x1a
+ i -= len(m.ContextKey)
+ copy(dAtA[i:], m.ContextKey)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContextKey)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(m.DependencyName)
+ copy(dAtA[i:], m.DependencyName)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.DependencyName)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *TriggerPolicy) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *TriggerPolicy) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *TriggerPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Status != nil {
+ {
+ size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.K8s != nil {
+ {
+ size, err := m.K8s.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *TriggerSwitch) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *TriggerSwitch) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *TriggerSwitch) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.All) > 0 {
+ for iNdEx := len(m.All) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.All[iNdEx])
+ copy(dAtA[i:], m.All[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.All[iNdEx])))
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if len(m.Any) > 0 {
+ for iNdEx := len(m.Any) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.Any[iNdEx])
+ copy(dAtA[i:], m.Any[iNdEx])
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Any[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *TriggerTemplate) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *TriggerTemplate) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *TriggerTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.OpenWhisk != nil {
+ {
+ size, err := m.OpenWhisk.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x5a
+ }
+ if m.Slack != nil {
+ {
+ size, err := m.Slack.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x52
+ }
+ if m.NATS != nil {
+ {
+ size, err := m.NATS.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x4a
+ }
+ if m.Kafka != nil {
+ {
+ size, err := m.Kafka.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x42
+ }
+ if m.CustomTrigger != nil {
+ {
+ size, err := m.CustomTrigger.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ }
+ if m.AWSLambda != nil {
+ {
+ size, err := m.AWSLambda.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ if m.HTTP != nil {
+ {
+ size, err := m.HTTP.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ if m.ArgoWorkflow != nil {
+ {
+ size, err := m.ArgoWorkflow.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ if m.K8s != nil {
+ {
+ size, err := m.K8s.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.Switch != nil {
+ {
+ size, err := m.Switch.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintGenerated(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *URLArtifact) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *URLArtifact) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *URLArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ i--
+ if m.VerifyCert {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x10
+ i -= len(m.Path)
+ copy(dAtA[i:], m.Path)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
+ offset -= sovGenerated(v)
+ base := offset
+ for v >= 1<<7 {
+ dAtA[offset] = uint8(v&0x7f | 0x80)
+ v >>= 7
+ offset++
+ }
+ dAtA[offset] = uint8(v)
+ return base
+}
+func (m *AWSLambdaTrigger) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.FunctionName)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.AccessKey != nil {
+ l = m.AccessKey.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.SecretKey != nil {
+ l = m.SecretKey.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Region)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Payload) > 0 {
+ for _, e := range m.Payload {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if len(m.Parameters) > 0 {
+ for _, e := range m.Parameters {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *ArgoWorkflowTrigger) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Source != nil {
+ l = m.Source.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Operation)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Parameters) > 0 {
+ for _, e := range m.Parameters {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ l = m.GroupVersionResource.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *ArtifactLocation) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.S3 != nil {
+ l = m.S3.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Inline != nil {
+ l = len(*m.Inline)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.File != nil {
+ l = m.File.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.URL != nil {
+ l = m.URL.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Configmap != nil {
+ l = m.Configmap.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Git != nil {
+ l = m.Git.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Resource != nil {
+ l = m.Resource.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *BasicAuth) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Username != nil {
+ l = m.Username.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Password != nil {
+ l = m.Password.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *ConfigmapArtifact) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Name)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Key)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *CustomTrigger) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ServerURL)
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 2
+ l = len(m.CertFilePath)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ServerNameOverride)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Spec) > 0 {
+ for k, v := range m.Spec {
+ _ = k
+ _ = v
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.Parameters) > 0 {
+ for _, e := range m.Parameters {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if len(m.Payload) > 0 {
+ for _, e := range m.Payload {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *DataFilter) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Path)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Type)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Value) > 0 {
+ for _, s := range m.Value {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ l = len(m.Comparator)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *DependencyGroup) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Name)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Dependencies) > 0 {
+ for _, s := range m.Dependencies {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *Event) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Context != nil {
+ l = m.Context.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Data != nil {
+ l = len(m.Data)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *EventContext) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ID)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Source)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.SpecVersion)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Type)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.DataContentType)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Subject)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.Time.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *EventDependency) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Name)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.GatewayName)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.EventName)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Filters != nil {
+ l = m.Filters.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *EventDependencyFilter) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Name)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Time != nil {
+ l = m.Time.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Context != nil {
+ l = m.Context.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if len(m.Data) > 0 {
+ for _, e := range m.Data {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *FileArtifact) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Path)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *GitArtifact) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.URL)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.CloneDirectory)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Creds != nil {
+ l = m.Creds.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.SSHKeyPath)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.FilePath)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Branch)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Tag)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Ref)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Remote != nil {
+ l = m.Remote.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *GitCreds) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Username != nil {
+ l = m.Username.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Password != nil {
+ l = m.Password.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *GitRemoteConfig) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Name)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.URLS) > 0 {
+ for _, s := range m.URLS {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *HTTPSubscription) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ n += 1 + sovGenerated(uint64(m.Port))
+ return n
+}
+
+func (m *HTTPTrigger) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.URL)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Payload) > 0 {
+ for _, e := range m.Payload {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if m.TLS != nil {
+ l = m.TLS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Method)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Parameters) > 0 {
+ for _, e := range m.Parameters {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ n += 1 + sovGenerated(uint64(m.Timeout))
+ if m.BasicAuth != nil {
+ l = m.BasicAuth.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if len(m.Headers) > 0 {
+ for k, v := range m.Headers {
+ _ = k
+ _ = v
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ return n
+}
+
+func (m *K8SResourcePolicy) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Labels) > 0 {
+ for k, v := range m.Labels {
+ _ = k
+ _ = v
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ l = m.Backoff.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 2
+ return n
+}
+
+func (m *KafkaTrigger) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.URL)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Topic)
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 1 + sovGenerated(uint64(m.Partition))
+ if len(m.Parameters) > 0 {
+ for _, e := range m.Parameters {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ n += 1 + sovGenerated(uint64(m.RequiredAcks))
+ n += 2
+ n += 1 + sovGenerated(uint64(m.FlushFrequency))
+ if m.TLS != nil {
+ l = m.TLS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if len(m.Payload) > 0 {
+ for _, e := range m.Payload {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ l = len(m.PartitioningKey)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *NATSSubscription) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ServerURL)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Subject)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *NATSTrigger) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.URL)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Subject)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Payload) > 0 {
+ for _, e := range m.Payload {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if len(m.Parameters) > 0 {
+ for _, e := range m.Parameters {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if m.TLS != nil {
+ l = m.TLS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *NodeStatus) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ID)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Name)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.DisplayName)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Type)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Phase)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.StartedAt.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.CompletedAt.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Message)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Event != nil {
+ l = m.Event.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = m.UpdatedAt.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.ResolvedAt.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *OpenWhiskTrigger) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Host)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Version)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.AuthToken != nil {
+ l = m.AuthToken.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.ActionName)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Payload) > 0 {
+ for _, e := range m.Payload {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if len(m.Parameters) > 0 {
+ for _, e := range m.Parameters {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *Sensor) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.ObjectMeta.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.Spec.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.Status.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *SensorList) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.ListMeta.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Items) > 0 {
+ for _, e := range m.Items {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *SensorResources) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Deployment != nil {
+ l = m.Deployment.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Service != nil {
+ l = m.Service.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *SensorSpec) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Dependencies) > 0 {
+ for _, e := range m.Dependencies {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if len(m.Triggers) > 0 {
+ for _, e := range m.Triggers {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ l = m.Template.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Subscription != nil {
+ l = m.Subscription.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Circuit)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.DependencyGroups) > 0 {
+ for _, e := range m.DependencyGroups {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ n += 2
+ if len(m.ServiceLabels) > 0 {
+ for k, v := range m.ServiceLabels {
+ _ = k
+ _ = v
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ if len(m.ServiceAnnotations) > 0 {
+ for k, v := range m.ServiceAnnotations {
+ _ = k
+ _ = v
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ return n
+}
+
+func (m *SensorStatus) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Phase)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.StartedAt.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.CompletedAt.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Message)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Nodes) > 0 {
+ for k, v := range m.Nodes {
+ _ = k
+ _ = v
+ l = v.Size()
+ mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
+ n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
+ }
+ }
+ n += 1 + sovGenerated(uint64(m.TriggerCycleCount))
+ l = len(m.TriggerCycleStatus)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = m.LastCycleTime.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Resources != nil {
+ l = m.Resources.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *SlackTrigger) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Parameters) > 0 {
+ for _, e := range m.Parameters {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if m.SlackToken != nil {
+ l = m.SlackToken.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Namespace)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Channel)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Message)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *StandardK8STrigger) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.GroupVersionResource.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Source != nil {
+ l = m.Source.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Operation)
+ n += 1 + l + sovGenerated(uint64(l))
+ if len(m.Parameters) > 0 {
+ for _, e := range m.Parameters {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ l = len(m.PatchStrategy)
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 2
+ return n
+}
+
+func (m *StatusPolicy) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Allow) > 0 {
+ for _, e := range m.Allow {
+ n += 1 + sovGenerated(uint64(e))
+ }
+ }
+ return n
+}
+
+func (m *Subscription) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.HTTP != nil {
+ l = m.HTTP.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.NATS != nil {
+ l = m.NATS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *TLSConfig) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.CACertPath)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ClientCertPath)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ClientKeyPath)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *Template) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ServiceAccountName)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Container != nil {
+ l = m.Container.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if len(m.Volumes) > 0 {
+ for _, e := range m.Volumes {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if m.SecurityContext != nil {
+ l = m.SecurityContext.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Spec != nil {
+ l = m.Spec.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *TimeFilter) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Start)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Stop)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *Trigger) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Template != nil {
+ l = m.Template.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if len(m.Parameters) > 0 {
+ for _, e := range m.Parameters {
+ l = e.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if m.Policy != nil {
+ l = m.Policy.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *TriggerParameter) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Src != nil {
+ l = m.Src.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ l = len(m.Dest)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.Operation)
+ n += 1 + l + sovGenerated(uint64(l))
+ return n
+}
+
+func (m *TriggerParameterSource) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.DependencyName)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ContextKey)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ContextTemplate)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.DataKey)
+ n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.DataTemplate)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Value != nil {
+ l = len(*m.Value)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *TriggerPolicy) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.K8s != nil {
+ l = m.K8s.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Status != nil {
+ l = m.Status.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *TriggerSwitch) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Any) > 0 {
+ for _, s := range m.Any {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ if len(m.All) > 0 {
+ for _, s := range m.All {
+ l = len(s)
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *TriggerTemplate) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Name)
+ n += 1 + l + sovGenerated(uint64(l))
+ if m.Switch != nil {
+ l = m.Switch.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.K8s != nil {
+ l = m.K8s.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.ArgoWorkflow != nil {
+ l = m.ArgoWorkflow.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.HTTP != nil {
+ l = m.HTTP.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.AWSLambda != nil {
+ l = m.AWSLambda.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.CustomTrigger != nil {
+ l = m.CustomTrigger.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Kafka != nil {
+ l = m.Kafka.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.NATS != nil {
+ l = m.NATS.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.Slack != nil {
+ l = m.Slack.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ if m.OpenWhisk != nil {
+ l = m.OpenWhisk.Size()
+ n += 1 + l + sovGenerated(uint64(l))
+ }
+ return n
+}
+
+func (m *URLArtifact) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Path)
+ n += 1 + l + sovGenerated(uint64(l))
+ n += 2
+ return n
+}
+
+func sovGenerated(x uint64) (n int) {
+ return (math_bits.Len64(x|1) + 6) / 7
+}
+func sozGenerated(x uint64) (n int) {
+ return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
+}
+func (this *AWSLambdaTrigger) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForPayload := "[]TriggerParameter{"
+ for _, f := range this.Payload {
+ repeatedStringForPayload += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForPayload += "}"
+ repeatedStringForParameters := "[]TriggerParameter{"
+ for _, f := range this.Parameters {
+ repeatedStringForParameters += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForParameters += "}"
+ s := strings.Join([]string{`&AWSLambdaTrigger{`,
+ `FunctionName:` + fmt.Sprintf("%v", this.FunctionName) + `,`,
+ `AccessKey:` + strings.Replace(fmt.Sprintf("%v", this.AccessKey), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `SecretKey:` + strings.Replace(fmt.Sprintf("%v", this.SecretKey), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `Region:` + fmt.Sprintf("%v", this.Region) + `,`,
+ `Payload:` + repeatedStringForPayload + `,`,
+ `Parameters:` + repeatedStringForParameters + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *ArgoWorkflowTrigger) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForParameters := "[]TriggerParameter{"
+ for _, f := range this.Parameters {
+ repeatedStringForParameters += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForParameters += "}"
+ s := strings.Join([]string{`&ArgoWorkflowTrigger{`,
+ `Source:` + strings.Replace(this.Source.String(), "ArtifactLocation", "ArtifactLocation", 1) + `,`,
+ `Operation:` + fmt.Sprintf("%v", this.Operation) + `,`,
+ `Parameters:` + repeatedStringForParameters + `,`,
+ `GroupVersionResource:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.GroupVersionResource), "GroupVersionResource", "v11.GroupVersionResource", 1), `&`, ``, 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *ArtifactLocation) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&ArtifactLocation{`,
+ `S3:` + strings.Replace(fmt.Sprintf("%v", this.S3), "S3Artifact", "common.S3Artifact", 1) + `,`,
+ `Inline:` + valueToStringGenerated(this.Inline) + `,`,
+ `File:` + strings.Replace(this.File.String(), "FileArtifact", "FileArtifact", 1) + `,`,
+ `URL:` + strings.Replace(this.URL.String(), "URLArtifact", "URLArtifact", 1) + `,`,
+ `Configmap:` + strings.Replace(this.Configmap.String(), "ConfigmapArtifact", "ConfigmapArtifact", 1) + `,`,
+ `Git:` + strings.Replace(this.Git.String(), "GitArtifact", "GitArtifact", 1) + `,`,
+ `Resource:` + strings.Replace(fmt.Sprintf("%v", this.Resource), "Resource", "common.Resource", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *BasicAuth) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&BasicAuth{`,
+ `Username:` + strings.Replace(fmt.Sprintf("%v", this.Username), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `Password:` + strings.Replace(fmt.Sprintf("%v", this.Password), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *ConfigmapArtifact) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&ConfigmapArtifact{`,
+ `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `Key:` + fmt.Sprintf("%v", this.Key) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *CustomTrigger) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForParameters := "[]TriggerParameter{"
+ for _, f := range this.Parameters {
+ repeatedStringForParameters += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForParameters += "}"
+ repeatedStringForPayload := "[]TriggerParameter{"
+ for _, f := range this.Payload {
+ repeatedStringForPayload += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForPayload += "}"
+ keysForSpec := make([]string, 0, len(this.Spec))
+ for k := range this.Spec {
+ keysForSpec = append(keysForSpec, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForSpec)
+ mapStringForSpec := "map[string]string{"
+ for _, k := range keysForSpec {
+ mapStringForSpec += fmt.Sprintf("%v: %v,", k, this.Spec[k])
+ }
+ mapStringForSpec += "}"
+ s := strings.Join([]string{`&CustomTrigger{`,
+ `ServerURL:` + fmt.Sprintf("%v", this.ServerURL) + `,`,
+ `Secure:` + fmt.Sprintf("%v", this.Secure) + `,`,
+ `CertFilePath:` + fmt.Sprintf("%v", this.CertFilePath) + `,`,
+ `ServerNameOverride:` + fmt.Sprintf("%v", this.ServerNameOverride) + `,`,
+ `Spec:` + mapStringForSpec + `,`,
+ `Parameters:` + repeatedStringForParameters + `,`,
+ `Payload:` + repeatedStringForPayload + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *DataFilter) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&DataFilter{`,
+ `Path:` + fmt.Sprintf("%v", this.Path) + `,`,
+ `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
+ `Value:` + fmt.Sprintf("%v", this.Value) + `,`,
+ `Comparator:` + fmt.Sprintf("%v", this.Comparator) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *DependencyGroup) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&DependencyGroup{`,
+ `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
+ `Dependencies:` + fmt.Sprintf("%v", this.Dependencies) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Event) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&Event{`,
+ `Context:` + strings.Replace(this.Context.String(), "EventContext", "EventContext", 1) + `,`,
+ `Data:` + valueToStringGenerated(this.Data) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *EventContext) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&EventContext{`,
+ `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
+ `Source:` + fmt.Sprintf("%v", this.Source) + `,`,
+ `SpecVersion:` + fmt.Sprintf("%v", this.SpecVersion) + `,`,
+ `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
+ `DataContentType:` + fmt.Sprintf("%v", this.DataContentType) + `,`,
+ `Subject:` + fmt.Sprintf("%v", this.Subject) + `,`,
+ `Time:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Time), "Time", "v11.Time", 1), `&`, ``, 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *EventDependency) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&EventDependency{`,
+ `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
+ `GatewayName:` + fmt.Sprintf("%v", this.GatewayName) + `,`,
+ `EventName:` + fmt.Sprintf("%v", this.EventName) + `,`,
+ `Filters:` + strings.Replace(this.Filters.String(), "EventDependencyFilter", "EventDependencyFilter", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *EventDependencyFilter) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForData := "[]DataFilter{"
+ for _, f := range this.Data {
+ repeatedStringForData += strings.Replace(strings.Replace(f.String(), "DataFilter", "DataFilter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForData += "}"
+ s := strings.Join([]string{`&EventDependencyFilter{`,
+ `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
+ `Time:` + strings.Replace(this.Time.String(), "TimeFilter", "TimeFilter", 1) + `,`,
+ `Context:` + strings.Replace(this.Context.String(), "EventContext", "EventContext", 1) + `,`,
+ `Data:` + repeatedStringForData + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *FileArtifact) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&FileArtifact{`,
+ `Path:` + fmt.Sprintf("%v", this.Path) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *GitArtifact) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&GitArtifact{`,
+ `URL:` + fmt.Sprintf("%v", this.URL) + `,`,
+ `CloneDirectory:` + fmt.Sprintf("%v", this.CloneDirectory) + `,`,
+ `Creds:` + strings.Replace(this.Creds.String(), "GitCreds", "GitCreds", 1) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `SSHKeyPath:` + fmt.Sprintf("%v", this.SSHKeyPath) + `,`,
+ `FilePath:` + fmt.Sprintf("%v", this.FilePath) + `,`,
+ `Branch:` + fmt.Sprintf("%v", this.Branch) + `,`,
+ `Tag:` + fmt.Sprintf("%v", this.Tag) + `,`,
+ `Ref:` + fmt.Sprintf("%v", this.Ref) + `,`,
+ `Remote:` + strings.Replace(this.Remote.String(), "GitRemoteConfig", "GitRemoteConfig", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *GitCreds) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&GitCreds{`,
+ `Username:` + strings.Replace(fmt.Sprintf("%v", this.Username), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `Password:` + strings.Replace(fmt.Sprintf("%v", this.Password), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *GitRemoteConfig) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&GitRemoteConfig{`,
+ `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
+ `URLS:` + fmt.Sprintf("%v", this.URLS) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *HTTPSubscription) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&HTTPSubscription{`,
+ `Port:` + fmt.Sprintf("%v", this.Port) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *HTTPTrigger) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForPayload := "[]TriggerParameter{"
+ for _, f := range this.Payload {
+ repeatedStringForPayload += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForPayload += "}"
+ repeatedStringForParameters := "[]TriggerParameter{"
+ for _, f := range this.Parameters {
+ repeatedStringForParameters += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForParameters += "}"
+ keysForHeaders := make([]string, 0, len(this.Headers))
+ for k := range this.Headers {
+ keysForHeaders = append(keysForHeaders, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForHeaders)
+ mapStringForHeaders := "map[string]string{"
+ for _, k := range keysForHeaders {
+ mapStringForHeaders += fmt.Sprintf("%v: %v,", k, this.Headers[k])
+ }
+ mapStringForHeaders += "}"
+ s := strings.Join([]string{`&HTTPTrigger{`,
+ `URL:` + fmt.Sprintf("%v", this.URL) + `,`,
+ `Payload:` + repeatedStringForPayload + `,`,
+ `TLS:` + strings.Replace(this.TLS.String(), "TLSConfig", "TLSConfig", 1) + `,`,
+ `Method:` + fmt.Sprintf("%v", this.Method) + `,`,
+ `Parameters:` + repeatedStringForParameters + `,`,
+ `Timeout:` + fmt.Sprintf("%v", this.Timeout) + `,`,
+ `BasicAuth:` + strings.Replace(this.BasicAuth.String(), "BasicAuth", "BasicAuth", 1) + `,`,
+ `Headers:` + mapStringForHeaders + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *K8SResourcePolicy) String() string {
+ if this == nil {
+ return "nil"
+ }
+ keysForLabels := make([]string, 0, len(this.Labels))
+ for k := range this.Labels {
+ keysForLabels = append(keysForLabels, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
+ mapStringForLabels := "map[string]string{"
+ for _, k := range keysForLabels {
+ mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
+ }
+ mapStringForLabels += "}"
+ s := strings.Join([]string{`&K8SResourcePolicy{`,
+ `Labels:` + mapStringForLabels + `,`,
+ `Backoff:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Backoff), "Backoff", "common.Backoff", 1), `&`, ``, 1) + `,`,
+ `ErrorOnBackoffTimeout:` + fmt.Sprintf("%v", this.ErrorOnBackoffTimeout) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *KafkaTrigger) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForParameters := "[]TriggerParameter{"
+ for _, f := range this.Parameters {
+ repeatedStringForParameters += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForParameters += "}"
+ repeatedStringForPayload := "[]TriggerParameter{"
+ for _, f := range this.Payload {
+ repeatedStringForPayload += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForPayload += "}"
+ s := strings.Join([]string{`&KafkaTrigger{`,
+ `URL:` + fmt.Sprintf("%v", this.URL) + `,`,
+ `Topic:` + fmt.Sprintf("%v", this.Topic) + `,`,
+ `Partition:` + fmt.Sprintf("%v", this.Partition) + `,`,
+ `Parameters:` + repeatedStringForParameters + `,`,
+ `RequiredAcks:` + fmt.Sprintf("%v", this.RequiredAcks) + `,`,
+ `Compress:` + fmt.Sprintf("%v", this.Compress) + `,`,
+ `FlushFrequency:` + fmt.Sprintf("%v", this.FlushFrequency) + `,`,
+ `TLS:` + strings.Replace(this.TLS.String(), "TLSConfig", "TLSConfig", 1) + `,`,
+ `Payload:` + repeatedStringForPayload + `,`,
+ `PartitioningKey:` + fmt.Sprintf("%v", this.PartitioningKey) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *NATSSubscription) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&NATSSubscription{`,
+ `ServerURL:` + fmt.Sprintf("%v", this.ServerURL) + `,`,
+ `Subject:` + fmt.Sprintf("%v", this.Subject) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *NATSTrigger) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForPayload := "[]TriggerParameter{"
+ for _, f := range this.Payload {
+ repeatedStringForPayload += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForPayload += "}"
+ repeatedStringForParameters := "[]TriggerParameter{"
+ for _, f := range this.Parameters {
+ repeatedStringForParameters += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForParameters += "}"
+ s := strings.Join([]string{`&NATSTrigger{`,
+ `URL:` + fmt.Sprintf("%v", this.URL) + `,`,
+ `Subject:` + fmt.Sprintf("%v", this.Subject) + `,`,
+ `Payload:` + repeatedStringForPayload + `,`,
+ `Parameters:` + repeatedStringForParameters + `,`,
+ `TLS:` + strings.Replace(this.TLS.String(), "TLSConfig", "TLSConfig", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *NodeStatus) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&NodeStatus{`,
+ `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
+ `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
+ `DisplayName:` + fmt.Sprintf("%v", this.DisplayName) + `,`,
+ `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
+ `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`,
+ `StartedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.StartedAt), "MicroTime", "v11.MicroTime", 1), `&`, ``, 1) + `,`,
+ `CompletedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CompletedAt), "MicroTime", "v11.MicroTime", 1), `&`, ``, 1) + `,`,
+ `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
+ `Event:` + strings.Replace(this.Event.String(), "Event", "Event", 1) + `,`,
+ `UpdatedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UpdatedAt), "MicroTime", "v11.MicroTime", 1), `&`, ``, 1) + `,`,
+ `ResolvedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ResolvedAt), "MicroTime", "v11.MicroTime", 1), `&`, ``, 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *OpenWhiskTrigger) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForPayload := "[]TriggerParameter{"
+ for _, f := range this.Payload {
+ repeatedStringForPayload += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForPayload += "}"
+ repeatedStringForParameters := "[]TriggerParameter{"
+ for _, f := range this.Parameters {
+ repeatedStringForParameters += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForParameters += "}"
+ s := strings.Join([]string{`&OpenWhiskTrigger{`,
+ `Host:` + fmt.Sprintf("%v", this.Host) + `,`,
+ `Version:` + fmt.Sprintf("%v", this.Version) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `AuthToken:` + strings.Replace(fmt.Sprintf("%v", this.AuthToken), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `ActionName:` + fmt.Sprintf("%v", this.ActionName) + `,`,
+ `Payload:` + repeatedStringForPayload + `,`,
+ `Parameters:` + repeatedStringForParameters + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Sensor) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&Sensor{`,
+ `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`,
+ `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SensorSpec", "SensorSpec", 1), `&`, ``, 1) + `,`,
+ `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SensorStatus", "SensorStatus", 1), `&`, ``, 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *SensorList) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForItems := "[]Sensor{"
+ for _, f := range this.Items {
+ repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Sensor", "Sensor", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForItems += "}"
+ s := strings.Join([]string{`&SensorList{`,
+ `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`,
+ `Items:` + repeatedStringForItems + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *SensorResources) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&SensorResources{`,
+ `Deployment:` + strings.Replace(fmt.Sprintf("%v", this.Deployment), "ObjectMeta", "v11.ObjectMeta", 1) + `,`,
+ `Service:` + strings.Replace(fmt.Sprintf("%v", this.Service), "ObjectMeta", "v11.ObjectMeta", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *SensorSpec) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForDependencies := "[]EventDependency{"
+ for _, f := range this.Dependencies {
+ repeatedStringForDependencies += strings.Replace(strings.Replace(f.String(), "EventDependency", "EventDependency", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForDependencies += "}"
+ repeatedStringForTriggers := "[]Trigger{"
+ for _, f := range this.Triggers {
+ repeatedStringForTriggers += strings.Replace(strings.Replace(f.String(), "Trigger", "Trigger", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForTriggers += "}"
+ repeatedStringForDependencyGroups := "[]DependencyGroup{"
+ for _, f := range this.DependencyGroups {
+ repeatedStringForDependencyGroups += strings.Replace(strings.Replace(f.String(), "DependencyGroup", "DependencyGroup", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForDependencyGroups += "}"
+ keysForServiceLabels := make([]string, 0, len(this.ServiceLabels))
+ for k := range this.ServiceLabels {
+ keysForServiceLabels = append(keysForServiceLabels, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForServiceLabels)
+ mapStringForServiceLabels := "map[string]string{"
+ for _, k := range keysForServiceLabels {
+ mapStringForServiceLabels += fmt.Sprintf("%v: %v,", k, this.ServiceLabels[k])
+ }
+ mapStringForServiceLabels += "}"
+ keysForServiceAnnotations := make([]string, 0, len(this.ServiceAnnotations))
+ for k := range this.ServiceAnnotations {
+ keysForServiceAnnotations = append(keysForServiceAnnotations, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForServiceAnnotations)
+ mapStringForServiceAnnotations := "map[string]string{"
+ for _, k := range keysForServiceAnnotations {
+ mapStringForServiceAnnotations += fmt.Sprintf("%v: %v,", k, this.ServiceAnnotations[k])
+ }
+ mapStringForServiceAnnotations += "}"
+ s := strings.Join([]string{`&SensorSpec{`,
+ `Dependencies:` + repeatedStringForDependencies + `,`,
+ `Triggers:` + repeatedStringForTriggers + `,`,
+ `Template:` + strings.Replace(strings.Replace(this.Template.String(), "Template", "Template", 1), `&`, ``, 1) + `,`,
+ `Subscription:` + strings.Replace(this.Subscription.String(), "Subscription", "Subscription", 1) + `,`,
+ `Circuit:` + fmt.Sprintf("%v", this.Circuit) + `,`,
+ `DependencyGroups:` + repeatedStringForDependencyGroups + `,`,
+ `ErrorOnFailedRound:` + fmt.Sprintf("%v", this.ErrorOnFailedRound) + `,`,
+ `ServiceLabels:` + mapStringForServiceLabels + `,`,
+ `ServiceAnnotations:` + mapStringForServiceAnnotations + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *SensorStatus) String() string {
+ if this == nil {
+ return "nil"
+ }
+ keysForNodes := make([]string, 0, len(this.Nodes))
+ for k := range this.Nodes {
+ keysForNodes = append(keysForNodes, k)
+ }
+ github_com_gogo_protobuf_sortkeys.Strings(keysForNodes)
+ mapStringForNodes := "map[string]NodeStatus{"
+ for _, k := range keysForNodes {
+ mapStringForNodes += fmt.Sprintf("%v: %v,", k, this.Nodes[k])
+ }
+ mapStringForNodes += "}"
+ s := strings.Join([]string{`&SensorStatus{`,
+ `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`,
+ `StartedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.StartedAt), "Time", "v11.Time", 1), `&`, ``, 1) + `,`,
+ `CompletedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CompletedAt), "Time", "v11.Time", 1), `&`, ``, 1) + `,`,
+ `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
+ `Nodes:` + mapStringForNodes + `,`,
+ `TriggerCycleCount:` + fmt.Sprintf("%v", this.TriggerCycleCount) + `,`,
+ `TriggerCycleStatus:` + fmt.Sprintf("%v", this.TriggerCycleStatus) + `,`,
+ `LastCycleTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastCycleTime), "Time", "v11.Time", 1), `&`, ``, 1) + `,`,
+ `Resources:` + strings.Replace(this.Resources.String(), "SensorResources", "SensorResources", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *SlackTrigger) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForParameters := "[]TriggerParameter{"
+ for _, f := range this.Parameters {
+ repeatedStringForParameters += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForParameters += "}"
+ s := strings.Join([]string{`&SlackTrigger{`,
+ `Parameters:` + repeatedStringForParameters + `,`,
+ `SlackToken:` + strings.Replace(fmt.Sprintf("%v", this.SlackToken), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`,
+ `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
+ `Channel:` + fmt.Sprintf("%v", this.Channel) + `,`,
+ `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *StandardK8STrigger) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForParameters := "[]TriggerParameter{"
+ for _, f := range this.Parameters {
+ repeatedStringForParameters += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForParameters += "}"
+ s := strings.Join([]string{`&StandardK8STrigger{`,
+ `GroupVersionResource:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.GroupVersionResource), "GroupVersionResource", "v11.GroupVersionResource", 1), `&`, ``, 1) + `,`,
+ `Source:` + strings.Replace(this.Source.String(), "ArtifactLocation", "ArtifactLocation", 1) + `,`,
+ `Operation:` + fmt.Sprintf("%v", this.Operation) + `,`,
+ `Parameters:` + repeatedStringForParameters + `,`,
+ `PatchStrategy:` + fmt.Sprintf("%v", this.PatchStrategy) + `,`,
+ `LiveObject:` + fmt.Sprintf("%v", this.LiveObject) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *StatusPolicy) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&StatusPolicy{`,
+ `Allow:` + fmt.Sprintf("%v", this.Allow) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Subscription) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&Subscription{`,
+ `HTTP:` + strings.Replace(this.HTTP.String(), "HTTPSubscription", "HTTPSubscription", 1) + `,`,
+ `NATS:` + strings.Replace(this.NATS.String(), "NATSSubscription", "NATSSubscription", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *TLSConfig) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&TLSConfig{`,
+ `CACertPath:` + fmt.Sprintf("%v", this.CACertPath) + `,`,
+ `ClientCertPath:` + fmt.Sprintf("%v", this.ClientCertPath) + `,`,
+ `ClientKeyPath:` + fmt.Sprintf("%v", this.ClientKeyPath) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Template) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForVolumes := "[]Volume{"
+ for _, f := range this.Volumes {
+ repeatedStringForVolumes += fmt.Sprintf("%v", f) + ","
+ }
+ repeatedStringForVolumes += "}"
+ s := strings.Join([]string{`&Template{`,
+ `ServiceAccountName:` + fmt.Sprintf("%v", this.ServiceAccountName) + `,`,
+ `Container:` + strings.Replace(fmt.Sprintf("%v", this.Container), "Container", "v1.Container", 1) + `,`,
+ `Volumes:` + repeatedStringForVolumes + `,`,
+ `SecurityContext:` + strings.Replace(fmt.Sprintf("%v", this.SecurityContext), "PodSecurityContext", "v1.PodSecurityContext", 1) + `,`,
+ `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "PodSpec", "v1.PodSpec", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *TimeFilter) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&TimeFilter{`,
+ `Start:` + fmt.Sprintf("%v", this.Start) + `,`,
+ `Stop:` + fmt.Sprintf("%v", this.Stop) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *Trigger) String() string {
+ if this == nil {
+ return "nil"
+ }
+ repeatedStringForParameters := "[]TriggerParameter{"
+ for _, f := range this.Parameters {
+ repeatedStringForParameters += strings.Replace(strings.Replace(f.String(), "TriggerParameter", "TriggerParameter", 1), `&`, ``, 1) + ","
+ }
+ repeatedStringForParameters += "}"
+ s := strings.Join([]string{`&Trigger{`,
+ `Template:` + strings.Replace(this.Template.String(), "TriggerTemplate", "TriggerTemplate", 1) + `,`,
+ `Parameters:` + repeatedStringForParameters + `,`,
+ `Policy:` + strings.Replace(this.Policy.String(), "TriggerPolicy", "TriggerPolicy", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *TriggerParameter) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&TriggerParameter{`,
+ `Src:` + strings.Replace(this.Src.String(), "TriggerParameterSource", "TriggerParameterSource", 1) + `,`,
+ `Dest:` + fmt.Sprintf("%v", this.Dest) + `,`,
+ `Operation:` + fmt.Sprintf("%v", this.Operation) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *TriggerParameterSource) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&TriggerParameterSource{`,
+ `DependencyName:` + fmt.Sprintf("%v", this.DependencyName) + `,`,
+ `ContextKey:` + fmt.Sprintf("%v", this.ContextKey) + `,`,
+ `ContextTemplate:` + fmt.Sprintf("%v", this.ContextTemplate) + `,`,
+ `DataKey:` + fmt.Sprintf("%v", this.DataKey) + `,`,
+ `DataTemplate:` + fmt.Sprintf("%v", this.DataTemplate) + `,`,
+ `Value:` + valueToStringGenerated(this.Value) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *TriggerPolicy) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&TriggerPolicy{`,
+ `K8s:` + strings.Replace(this.K8s.String(), "K8SResourcePolicy", "K8SResourcePolicy", 1) + `,`,
+ `Status:` + strings.Replace(this.Status.String(), "StatusPolicy", "StatusPolicy", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *TriggerSwitch) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&TriggerSwitch{`,
+ `Any:` + fmt.Sprintf("%v", this.Any) + `,`,
+ `All:` + fmt.Sprintf("%v", this.All) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *TriggerTemplate) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&TriggerTemplate{`,
+ `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
+ `Switch:` + strings.Replace(this.Switch.String(), "TriggerSwitch", "TriggerSwitch", 1) + `,`,
+ `K8s:` + strings.Replace(this.K8s.String(), "StandardK8STrigger", "StandardK8STrigger", 1) + `,`,
+ `ArgoWorkflow:` + strings.Replace(this.ArgoWorkflow.String(), "ArgoWorkflowTrigger", "ArgoWorkflowTrigger", 1) + `,`,
+ `HTTP:` + strings.Replace(this.HTTP.String(), "HTTPTrigger", "HTTPTrigger", 1) + `,`,
+ `AWSLambda:` + strings.Replace(this.AWSLambda.String(), "AWSLambdaTrigger", "AWSLambdaTrigger", 1) + `,`,
+ `CustomTrigger:` + strings.Replace(this.CustomTrigger.String(), "CustomTrigger", "CustomTrigger", 1) + `,`,
+ `Kafka:` + strings.Replace(this.Kafka.String(), "KafkaTrigger", "KafkaTrigger", 1) + `,`,
+ `NATS:` + strings.Replace(this.NATS.String(), "NATSTrigger", "NATSTrigger", 1) + `,`,
+ `Slack:` + strings.Replace(this.Slack.String(), "SlackTrigger", "SlackTrigger", 1) + `,`,
+ `OpenWhisk:` + strings.Replace(this.OpenWhisk.String(), "OpenWhiskTrigger", "OpenWhiskTrigger", 1) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func (this *URLArtifact) String() string {
+ if this == nil {
+ return "nil"
+ }
+ s := strings.Join([]string{`&URLArtifact{`,
+ `Path:` + fmt.Sprintf("%v", this.Path) + `,`,
+ `VerifyCert:` + fmt.Sprintf("%v", this.VerifyCert) + `,`,
+ `}`,
+ }, "")
+ return s
+}
+func valueToStringGenerated(v interface{}) string {
+ rv := reflect.ValueOf(v)
+ if rv.IsNil() {
+ return "nil"
+ }
+ pv := reflect.Indirect(rv).Interface()
+ return fmt.Sprintf("*%v", pv)
+}
+func (m *AWSLambdaTrigger) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: AWSLambdaTrigger: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: AWSLambdaTrigger: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FunctionName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.FunctionName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AccessKey", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.AccessKey == nil {
+ m.AccessKey = &v1.SecretKeySelector{}
+ }
+ if err := m.AccessKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SecretKey", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SecretKey == nil {
+ m.SecretKey = &v1.SecretKeySelector{}
+ }
+ if err := m.SecretKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Region = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Payload = append(m.Payload, TriggerParameter{})
+ if err := m.Payload[len(m.Payload)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Parameters = append(m.Parameters, TriggerParameter{})
+ if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *ArgoWorkflowTrigger) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: ArgoWorkflowTrigger: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: ArgoWorkflowTrigger: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Source == nil {
+ m.Source = &ArtifactLocation{}
+ }
+ if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Operation = ArgoWorkflowOperation(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Parameters = append(m.Parameters, TriggerParameter{})
+ if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field GroupVersionResource", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.GroupVersionResource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *ArtifactLocation) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: ArtifactLocation: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: ArtifactLocation: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field S3", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.S3 == nil {
+ m.S3 = &common.S3Artifact{}
+ }
+ if err := m.S3.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Inline", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ s := string(dAtA[iNdEx:postIndex])
+ m.Inline = &s
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field File", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.File == nil {
+ m.File = &FileArtifact{}
+ }
+ if err := m.File.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.URL == nil {
+ m.URL = &URLArtifact{}
+ }
+ if err := m.URL.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Configmap", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Configmap == nil {
+ m.Configmap = &ConfigmapArtifact{}
+ }
+ if err := m.Configmap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Git", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Git == nil {
+ m.Git = &GitArtifact{}
+ }
+ if err := m.Git.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Resource == nil {
+ m.Resource = &common.Resource{}
+ }
+ if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *BasicAuth) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: BasicAuth: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: BasicAuth: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Username == nil {
+ m.Username = &v1.SecretKeySelector{}
+ }
+ if err := m.Username.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Password == nil {
+ m.Password = &v1.SecretKeySelector{}
+ }
+ if err := m.Password.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *ConfigmapArtifact) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: ConfigmapArtifact: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: ConfigmapArtifact: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Key = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *CustomTrigger) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: CustomTrigger: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: CustomTrigger: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServerURL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServerURL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Secure", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.Secure = bool(v != 0)
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CertFilePath", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.CertFilePath = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServerNameOverride", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServerNameOverride = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Spec == nil {
+ m.Spec = make(map[string]string)
+ }
+ var mapkey string
+ var mapvalue string
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var stringLenmapvalue uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapvalue |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapvalue := int(stringLenmapvalue)
+ if intStringLenmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
+ if postStringIndexmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapvalue > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
+ iNdEx = postStringIndexmapvalue
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Spec[mapkey] = mapvalue
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Parameters = append(m.Parameters, TriggerParameter{})
+ if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Payload = append(m.Payload, TriggerParameter{})
+ if err := m.Payload[len(m.Payload)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *DataFilter) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: DataFilter: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: DataFilter: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Path = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Type = JSONType(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Value = append(m.Value, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Comparator", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Comparator = Comparator(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *DependencyGroup) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: DependencyGroup: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: DependencyGroup: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Dependencies", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Dependencies = append(m.Dependencies, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Event) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Event: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Context == nil {
+ m.Context = &EventContext{}
+ }
+ if err := m.Context.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
+ if m.Data == nil {
+ m.Data = []byte{}
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *EventContext) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EventContext: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EventContext: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ID = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Source = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SpecVersion", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.SpecVersion = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Type = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DataContentType", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.DataContentType = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Subject = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *EventDependency) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EventDependency: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EventDependency: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field GatewayName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.GatewayName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field EventName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.EventName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Filters == nil {
+ m.Filters = &EventDependencyFilter{}
+ }
+ if err := m.Filters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *EventDependencyFilter) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EventDependencyFilter: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EventDependencyFilter: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Time == nil {
+ m.Time = &TimeFilter{}
+ }
+ if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Context == nil {
+ m.Context = &EventContext{}
+ }
+ if err := m.Context.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Data = append(m.Data, DataFilter{})
+ if err := m.Data[len(m.Data)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *FileArtifact) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: FileArtifact: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: FileArtifact: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Path = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *GitArtifact) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: GitArtifact: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: GitArtifact: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.URL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CloneDirectory", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.CloneDirectory = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Creds", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Creds == nil {
+ m.Creds = &GitCreds{}
+ }
+ if err := m.Creds.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SSHKeyPath", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.SSHKeyPath = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FilePath", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.FilePath = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Branch", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Branch = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Tag", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Tag = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Ref = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 10:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Remote", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Remote == nil {
+ m.Remote = &GitRemoteConfig{}
+ }
+ if err := m.Remote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *GitCreds) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: GitCreds: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: GitCreds: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Username == nil {
+ m.Username = &v1.SecretKeySelector{}
+ }
+ if err := m.Username.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Password == nil {
+ m.Password = &v1.SecretKeySelector{}
+ }
+ if err := m.Password.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *GitRemoteConfig) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: GitRemoteConfig: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: GitRemoteConfig: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field URLS", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.URLS = append(m.URLS, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *HTTPSubscription) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: HTTPSubscription: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: HTTPSubscription: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
+ }
+ m.Port = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Port |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *HTTPTrigger) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: HTTPTrigger: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: HTTPTrigger: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.URL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Payload = append(m.Payload, TriggerParameter{})
+ if err := m.Payload[len(m.Payload)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.TLS == nil {
+ m.TLS = &TLSConfig{}
+ }
+ if err := m.TLS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Method = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Parameters = append(m.Parameters, TriggerParameter{})
+ if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 6:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
+ }
+ m.Timeout = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Timeout |= int64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field BasicAuth", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.BasicAuth == nil {
+ m.BasicAuth = &BasicAuth{}
+ }
+ if err := m.BasicAuth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Headers == nil {
+ m.Headers = make(map[string]string)
+ }
+ var mapkey string
+ var mapvalue string
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var stringLenmapvalue uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapvalue |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapvalue := int(stringLenmapvalue)
+ if intStringLenmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
+ if postStringIndexmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapvalue > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
+ iNdEx = postStringIndexmapvalue
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Headers[mapkey] = mapvalue
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *K8SResourcePolicy) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: K8SResourcePolicy: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: K8SResourcePolicy: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Labels == nil {
+ m.Labels = make(map[string]string)
+ }
+ var mapkey string
+ var mapvalue string
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var stringLenmapvalue uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapvalue |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapvalue := int(stringLenmapvalue)
+ if intStringLenmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
+ if postStringIndexmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapvalue > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
+ iNdEx = postStringIndexmapvalue
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Labels[mapkey] = mapvalue
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Backoff", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Backoff.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ErrorOnBackoffTimeout", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.ErrorOnBackoffTimeout = bool(v != 0)
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *KafkaTrigger) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: KafkaTrigger: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: KafkaTrigger: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.URL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Topic = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType)
+ }
+ m.Partition = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Partition |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Parameters = append(m.Parameters, TriggerParameter{})
+ if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field RequiredAcks", wireType)
+ }
+ m.RequiredAcks = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.RequiredAcks |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 6:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Compress", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.Compress = bool(v != 0)
+ case 7:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FlushFrequency", wireType)
+ }
+ m.FlushFrequency = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.FlushFrequency |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.TLS == nil {
+ m.TLS = &TLSConfig{}
+ }
+ if err := m.TLS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Payload = append(m.Payload, TriggerParameter{})
+ if err := m.Payload[len(m.Payload)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 10:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PartitioningKey", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.PartitioningKey = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *NATSSubscription) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: NATSSubscription: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: NATSSubscription: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServerURL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServerURL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Subject = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *NATSTrigger) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: NATSTrigger: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: NATSTrigger: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.URL = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Subject = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Payload = append(m.Payload, TriggerParameter{})
+ if err := m.Payload[len(m.Payload)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Parameters = append(m.Parameters, TriggerParameter{})
+ if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.TLS == nil {
+ m.TLS = &TLSConfig{}
+ }
+ if err := m.TLS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *NodeStatus) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: NodeStatus: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: NodeStatus: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ID = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.DisplayName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Type = NodeType(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Phase = NodePhase(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.StartedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CompletedAt", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.CompletedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Message = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Event == nil {
+ m.Event = &Event{}
+ }
+ if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 10:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.UpdatedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 11:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ResolvedAt", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.ResolvedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *OpenWhiskTrigger) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: OpenWhiskTrigger: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: OpenWhiskTrigger: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Host = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Version = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AuthToken", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.AuthToken == nil {
+ m.AuthToken = &v1.SecretKeySelector{}
+ }
+ if err := m.AuthToken.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ActionName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ActionName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Payload = append(m.Payload, TriggerParameter{})
+ if err := m.Payload[len(m.Payload)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Parameters = append(m.Parameters, TriggerParameter{})
+ if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Sensor) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Sensor: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Sensor: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *SensorList) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: SensorList: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: SensorList: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Items = append(m.Items, Sensor{})
+ if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *SensorResources) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: SensorResources: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: SensorResources: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Deployment", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Deployment == nil {
+ m.Deployment = &v11.ObjectMeta{}
+ }
+ if err := m.Deployment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Service == nil {
+ m.Service = &v11.ObjectMeta{}
+ }
+ if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *SensorSpec) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: SensorSpec: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: SensorSpec: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Dependencies", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Dependencies = append(m.Dependencies, EventDependency{})
+ if err := m.Dependencies[len(m.Dependencies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Triggers", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Triggers = append(m.Triggers, Trigger{})
+ if err := m.Triggers[len(m.Triggers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Subscription", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Subscription == nil {
+ m.Subscription = &Subscription{}
+ }
+ if err := m.Subscription.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Circuit", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Circuit = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DependencyGroups", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.DependencyGroups = append(m.DependencyGroups, DependencyGroup{})
+ if err := m.DependencyGroups[len(m.DependencyGroups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ErrorOnFailedRound", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.ErrorOnFailedRound = bool(v != 0)
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServiceLabels", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ServiceLabels == nil {
+ m.ServiceLabels = make(map[string]string)
+ }
+ var mapkey string
+ var mapvalue string
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var stringLenmapvalue uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapvalue |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapvalue := int(stringLenmapvalue)
+ if intStringLenmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
+ if postStringIndexmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapvalue > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
+ iNdEx = postStringIndexmapvalue
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.ServiceLabels[mapkey] = mapvalue
+ iNdEx = postIndex
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServiceAnnotations", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ServiceAnnotations == nil {
+ m.ServiceAnnotations = make(map[string]string)
+ }
+ var mapkey string
+ var mapvalue string
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var stringLenmapvalue uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapvalue |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapvalue := int(stringLenmapvalue)
+ if intStringLenmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
+ if postStringIndexmapvalue < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapvalue > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
+ iNdEx = postStringIndexmapvalue
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.ServiceAnnotations[mapkey] = mapvalue
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *SensorStatus) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: SensorStatus: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: SensorStatus: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Phase = NodePhase(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.StartedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CompletedAt", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.CompletedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Message = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Nodes == nil {
+ m.Nodes = make(map[string]NodeStatus)
+ }
+ var mapkey string
+ mapvalue := &NodeStatus{}
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ var stringLenmapkey uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLenmapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLenmapkey := int(stringLenmapkey)
+ if intStringLenmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &NodeStatus{}
+ if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Nodes[mapkey] = *mapvalue
+ iNdEx = postIndex
+ case 6:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TriggerCycleCount", wireType)
+ }
+ m.TriggerCycleCount = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.TriggerCycleCount |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TriggerCycleStatus", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.TriggerCycleStatus = TriggerCycleState(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field LastCycleTime", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.LastCycleTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Resources == nil {
+ m.Resources = &SensorResources{}
+ }
+ if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *SlackTrigger) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: SlackTrigger: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: SlackTrigger: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Parameters = append(m.Parameters, TriggerParameter{})
+ if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SlackToken", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SlackToken == nil {
+ m.SlackToken = &v1.SecretKeySelector{}
+ }
+ if err := m.SlackToken.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Namespace = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Channel = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Message = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *StandardK8STrigger) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: StandardK8STrigger: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: StandardK8STrigger: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field GroupVersionResource", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if err := m.GroupVersionResource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Source == nil {
+ m.Source = &ArtifactLocation{}
+ }
+ if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Operation = KubernetesResourceOperation(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Parameters = append(m.Parameters, TriggerParameter{})
+ if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PatchStrategy", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.PatchStrategy = k8s_io_apimachinery_pkg_types.PatchType(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field LiveObject", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.LiveObject = bool(v != 0)
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *StatusPolicy) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: StatusPolicy: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: StatusPolicy: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType == 0 {
+ var v int32
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.Allow = append(m.Allow, v)
+ } else if wireType == 2 {
+ var packedLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ packedLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if packedLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + packedLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ var elementCount int
+ var count int
+ for _, integer := range dAtA[iNdEx:postIndex] {
+ if integer < 128 {
+ count++
+ }
+ }
+ elementCount = count
+ if elementCount != 0 && len(m.Allow) == 0 {
+ m.Allow = make([]int32, 0, elementCount)
+ }
+ for iNdEx < postIndex {
+ var v int32
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.Allow = append(m.Allow, v)
+ }
+ } else {
+ return fmt.Errorf("proto: wrong wireType = %d for field Allow", wireType)
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Subscription) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Subscription: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Subscription: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HTTP", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.HTTP == nil {
+ m.HTTP = &HTTPSubscription{}
+ }
+ if err := m.HTTP.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NATS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.NATS == nil {
+ m.NATS = &NATSSubscription{}
+ }
+ if err := m.NATS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *TLSConfig) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: TLSConfig: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: TLSConfig: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CACertPath", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.CACertPath = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ClientCertPath", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ClientCertPath = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ClientKeyPath", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ClientKeyPath = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Template) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Template: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Template: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServiceAccountName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Container == nil {
+ m.Container = &v1.Container{}
+ }
+ if err := m.Container.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Volumes = append(m.Volumes, v1.Volume{})
+ if err := m.Volumes[len(m.Volumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SecurityContext == nil {
+ m.SecurityContext = &v1.PodSecurityContext{}
+ }
+ if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Spec == nil {
+ m.Spec = &v1.PodSpec{}
+ }
+ if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *TimeFilter) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: TimeFilter: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: TimeFilter: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Start = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Stop", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Stop = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Trigger) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Trigger: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Trigger: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Template == nil {
+ m.Template = &TriggerTemplate{}
+ }
+ if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Parameters = append(m.Parameters, TriggerParameter{})
+ if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Policy == nil {
+ m.Policy = &TriggerPolicy{}
+ }
+ if err := m.Policy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *TriggerParameter) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: TriggerParameter: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: TriggerParameter: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Src", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Src == nil {
+ m.Src = &TriggerParameterSource{}
+ }
+ if err := m.Src.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Dest", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Dest = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Operation = TriggerParameterOperation(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *TriggerParameterSource) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: TriggerParameterSource: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: TriggerParameterSource: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DependencyName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.DependencyName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ContextKey", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ContextKey = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ContextTemplate", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ContextTemplate = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DataKey", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.DataKey = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DataTemplate", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.DataTemplate = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ s := string(dAtA[iNdEx:postIndex])
+ m.Value = &s
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *TriggerPolicy) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: TriggerPolicy: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: TriggerPolicy: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field K8s", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.K8s == nil {
+ m.K8s = &K8SResourcePolicy{}
+ }
+ if err := m.K8s.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Status == nil {
+ m.Status = &StatusPolicy{}
+ }
+ if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *TriggerSwitch) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: TriggerSwitch: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: TriggerSwitch: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Any", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Any = append(m.Any, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field All", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.All = append(m.All, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *TriggerTemplate) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: TriggerTemplate: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: TriggerTemplate: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Name = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Switch", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Switch == nil {
+ m.Switch = &TriggerSwitch{}
+ }
+ if err := m.Switch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field K8s", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.K8s == nil {
+ m.K8s = &StandardK8STrigger{}
+ }
+ if err := m.K8s.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ArgoWorkflow", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ArgoWorkflow == nil {
+ m.ArgoWorkflow = &ArgoWorkflowTrigger{}
+ }
+ if err := m.ArgoWorkflow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HTTP", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.HTTP == nil {
+ m.HTTP = &HTTPTrigger{}
+ }
+ if err := m.HTTP.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AWSLambda", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.AWSLambda == nil {
+ m.AWSLambda = &AWSLambdaTrigger{}
+ }
+ if err := m.AWSLambda.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CustomTrigger", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.CustomTrigger == nil {
+ m.CustomTrigger = &CustomTrigger{}
+ }
+ if err := m.CustomTrigger.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Kafka", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Kafka == nil {
+ m.Kafka = &KafkaTrigger{}
+ }
+ if err := m.Kafka.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NATS", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.NATS == nil {
+ m.NATS = &NATSTrigger{}
+ }
+ if err := m.NATS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 10:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Slack", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Slack == nil {
+ m.Slack = &SlackTrigger{}
+ }
+ if err := m.Slack.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 11:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field OpenWhisk", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.OpenWhisk == nil {
+ m.OpenWhisk = &OpenWhiskTrigger{}
+ }
+ if err := m.OpenWhisk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *URLArtifact) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: URLArtifact: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: URLArtifact: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Path = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field VerifyCert", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.VerifyCert = bool(v != 0)
+ default:
+ iNdEx = preIndex
+ skippy, err := skipGenerated(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func skipGenerated(dAtA []byte) (n int, err error) {
+ l := len(dAtA)
+ iNdEx := 0
+ depth := 0
+ for iNdEx < l {
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= (uint64(b) & 0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ wireType := int(wire & 0x7)
+ switch wireType {
+ case 0:
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ iNdEx++
+ if dAtA[iNdEx-1] < 0x80 {
+ break
+ }
+ }
+ case 1:
+ iNdEx += 8
+ case 2:
+ var length int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return 0, io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ length |= (int(b) & 0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if length < 0 {
+ return 0, ErrInvalidLengthGenerated
+ }
+ iNdEx += length
+ case 3:
+ depth++
+ case 4:
+ if depth == 0 {
+ return 0, ErrUnexpectedEndOfGroupGenerated
+ }
+ depth--
+ case 5:
+ iNdEx += 4
+ default:
+ return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
+ }
+ if iNdEx < 0 {
+ return 0, ErrInvalidLengthGenerated
+ }
+ if depth == 0 {
+ return iNdEx, nil
+ }
+ }
+ return 0, io.ErrUnexpectedEOF
+}
+
+var (
+ ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
+ ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
+ ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
+)
diff --git a/pkg/apis/sensor/v1alpha1/generated.proto b/pkg/apis/sensor/v1alpha1/generated.proto
new file mode 100644
index 0000000000..a548f12a5b
--- /dev/null
+++ b/pkg/apis/sensor/v1alpha1/generated.proto
@@ -0,0 +1,855 @@
+/*
+Copyright 2020 BlackRock, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+// This file was autogenerated by go-to-protobuf. Do not edit it manually!
+
+syntax = 'proto2';
+
+package github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1;
+
+import "github.com/argoproj/argo-events/pkg/apis/common/generated.proto";
+import "k8s.io/api/core/v1/generated.proto";
+import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
+import "k8s.io/apimachinery/pkg/runtime/generated.proto";
+import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
+
+// Package-wide variables from generator "generated".
+option go_package = "v1alpha1";
+
+// AWSLambdaTrigger refers to specification of the trigger to invoke an AWS Lambda function
+message AWSLambdaTrigger {
+ // FunctionName refers to the name of the function to invoke.
+ optional string functionName = 1;
+
+ // AccessKey refers K8 secret containing aws access key
+ optional k8s.io.api.core.v1.SecretKeySelector accessKey = 2;
+
+ // SecretKey refers K8 secret containing aws secret key
+ optional k8s.io.api.core.v1.SecretKeySelector secretKey = 3;
+
+ // Namespace refers to Kubernetes namespace to read access related secret from.
+ // Defaults to sensor's namespace.
+ // +optional.
+ optional string namespace = 4;
+
+ // Region is AWS region
+ optional string region = 5;
+
+ repeated TriggerParameter payload = 6;
+
+ // +optional
+ repeated TriggerParameter parameters = 7;
+}
+
+// ArgoWorkflowTrigger is the trigger for the Argo Workflow
+message ArgoWorkflowTrigger {
+ // Source of the K8 resource file(s)
+ optional ArtifactLocation source = 1;
+
+ // Operation refers to the type of operation performed on the argo workflow resource.
+ // Default value is Submit.
+ // +optional
+ optional string operation = 2;
+
+ repeated TriggerParameter parameters = 3;
+
+ // The unambiguous kind of this object - used in order to retrieve the appropriate kubernetes api client for this resource
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource groupVersionResource = 4;
+}
+
+// ArtifactLocation describes the source location for an external artifact
+message ArtifactLocation {
+ // S3 compliant artifact
+ optional github.com.argoproj.argo_events.pkg.apis.common.S3Artifact s3 = 1;
+
+ // Inline artifact is embedded in sensor spec as a string
+ optional string inline = 2;
+
+ // File artifact is artifact stored in a file
+ optional FileArtifact file = 3;
+
+ // URL to fetch the artifact from
+ optional URLArtifact url = 4;
+
+ // Configmap that stores the artifact
+ optional ConfigmapArtifact configmap = 5;
+
+ // Git repository hosting the artifact
+ optional GitArtifact git = 6;
+
+ // Resource is generic template for K8s resource
+ optional github.com.argoproj.argo_events.pkg.apis.common.Resource resource = 7;
+}
+
+// BasicAuth contains the reference to K8s secrets that holds the username and password
+message BasicAuth {
+ // Username refers to the Kubernetes secret that holds the username required for basic auth.
+ optional k8s.io.api.core.v1.SecretKeySelector username = 1;
+
+ // Password refers to the Kubernetes secret that holds the password required for basic auth.
+ optional k8s.io.api.core.v1.SecretKeySelector password = 2;
+
+ // Namespace to read the secrets from.
+ // Defaults to sensor's namespace.
+ // +optional
+ optional string namespace = 3;
+}
+
+// ConfigmapArtifact contains information about artifact in k8 configmap
+message ConfigmapArtifact {
+ // Name of the configmap
+ optional string name = 1;
+
+ // Namespace where configmap is deployed
+ optional string namespace = 2;
+
+ // Key within configmap data which contains trigger resource definition
+ optional string key = 3;
+}
+
+// CustomTrigger refers to the specification of the custom trigger.
+message CustomTrigger {
+ // ServerURL is the url of the gRPC server that executes custom trigger
+ optional string serverURL = 1;
+
+ // Secure refers to type of the connection between sensor to custom trigger gRPC
+ optional bool secure = 2;
+
+ // CertFilePath is path to the cert file within sensor for secure connection between sensor and custom trigger gRPC server.
+ optional string certFilePath = 3;
+
+ // ServerNameOverride for the secure connection between sensor and custom trigger gRPC server.
+ optional string serverNameOverride = 4;
+
+ // Spec is the custom trigger resource specification that custom trigger gRPC server knows how to interpret.
+ map spec = 5;
+
+ repeated TriggerParameter parameters = 6;
+
+ repeated TriggerParameter payload = 7;
+}
+
+// DataFilter describes constraints and filters for event data
+// Regular Expressions are purposefully not a feature as they are overkill for our uses here
+// See Rob Pike's Post: https://commandcenter.blogspot.com/2011/08/regular-expressions-in-lexing-and.html
+message DataFilter {
+ // Path is the JSONPath of the event's (JSON decoded) data key
+ // Path is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'.
+ // To access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\'.
+ // See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.
+ optional string path = 1;
+
+ // Type contains the JSON type of the data
+ optional string type = 2;
+
+ // Value is the allowed string values for this key
+ // Booleans are passed using strconv.ParseBool()
+ // Numbers are parsed using as float64 using strconv.ParseFloat()
+ // Strings are taken as is
+ // Nils this value is ignored
+ repeated string value = 3;
+
+ // Comparator compares the event data with a user given value.
+ // Can be ">=", ">", "=", "<", or "<=".
+ // Is optional, and if left blank treated as equality "=".
+ optional string comparator = 4;
+}
+
+// DependencyGroup is the group of dependencies
+message DependencyGroup {
+ // Name of the group
+ optional string name = 1;
+
+ // Dependencies of events
+ repeated string dependencies = 2;
+}
+
+// Event represents the cloudevent received from a gateway.
+message Event {
+ optional EventContext context = 1;
+
+ optional bytes data = 2;
+}
+
+// EventContext holds the context of the cloudevent received from a gateway.
+message EventContext {
+ // ID of the event; must be non-empty and unique within the scope of the producer.
+ optional string id = 1;
+
+ // Source - A URI describing the event producer.
+ optional string source = 2;
+
+ // SpecVersion - The version of the CloudEvents specification used by the event.
+ optional string specversion = 3;
+
+ // Type - The type of the occurrence which has happened.
+ optional string type = 4;
+
+ // DataContentType - A MIME (RFC2046) string describing the media type of `data`.
+ optional string dataContentType = 5;
+
+ // Subject - The subject of the event in the context of the event producer
+ optional string subject = 6;
+
+ // Time - A Timestamp when the event happened.
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 7;
+}
+
+// EventDependency describes a dependency
+message EventDependency {
+ // Name is a unique name of this dependency
+ optional string name = 1;
+
+ // GatewayName is the name of the gateway from whom the event is received
+ optional string gatewayName = 2;
+
+ // EventName is the name of the event
+ optional string eventName = 3;
+
+ // Filters and rules governing toleration of success and constraints on the context and data of an event
+ optional EventDependencyFilter filters = 4;
+}
+
+// EventDependencyFilter defines filters and constraints for a event.
+message EventDependencyFilter {
+ // Name is the name of event filter
+ optional string name = 1;
+
+ // Time filter on the event with escalation
+ optional TimeFilter time = 2;
+
+ // Context filter constraints
+ optional EventContext context = 3;
+
+ // Data filter constraints with escalation
+ repeated DataFilter data = 4;
+}
+
+// FileArtifact contains information about an artifact in a filesystem
+message FileArtifact {
+ optional string path = 1;
+}
+
+// GitArtifact contains information about an artifact stored in git
+message GitArtifact {
+ // Git URL
+ optional string url = 1;
+
+ // Directory to clone the repository. We clone complete directory because GitArtifact is not limited to any specific Git service providers.
+ // Hence we don't use any specific git provider client.
+ optional string cloneDirectory = 2;
+
+ // Creds contain reference to git username and password
+ // +optional
+ optional GitCreds creds = 3;
+
+ // Namespace where creds are stored.
+ // +optional
+ optional string namespace = 4;
+
+ // SSHKeyPath is path to your ssh key path. Use this if you don't want to provide username and password.
+ // ssh key path must be mounted in sensor pod.
+ // +optional
+ optional string sshKeyPath = 5;
+
+ // Path to file that contains trigger resource definition
+ optional string filePath = 6;
+
+ // Branch to use to pull trigger resource
+ // +optional
+ optional string branch = 7;
+
+ // Tag to use to pull trigger resource
+ // +optional
+ optional string tag = 8;
+
+ // Ref to use to pull trigger resource. Will result in a shallow clone and
+ // fetch.
+ // +optional
+ optional string ref = 9;
+
+ // Remote to manage set of tracked repositories. Defaults to "origin".
+ // Refer https://git-scm.com/docs/git-remote
+ // +optional
+ optional GitRemoteConfig remote = 10;
+}
+
+// GitCreds contain reference to git username and password
+message GitCreds {
+ optional k8s.io.api.core.v1.SecretKeySelector username = 1;
+
+ optional k8s.io.api.core.v1.SecretKeySelector password = 2;
+}
+
+// GitRemoteConfig contains the configuration of a Git remote
+message GitRemoteConfig {
+ // Name of the remote to fetch from.
+ optional string name = 1;
+
+ // URLs the URLs of a remote repository. It must be non-empty. Fetch will
+ // always use the first URL, while push will use all of them.
+ repeated string urls = 2;
+}
+
+// HTTPSubscription holds the context of the HTTP subscription of events for the sensor.
+message HTTPSubscription {
+ // Port on which sensor server should run.
+ optional int32 port = 1;
+}
+
+// HTTPTrigger is the trigger for the HTTP request
+message HTTPTrigger {
+ // URL refers to the URL to send HTTP request to.
+ optional string url = 1;
+
+ repeated TriggerParameter payload = 2;
+
+ // TLS configuration for the HTTP client.
+ // +optional
+ optional TLSConfig tls = 3;
+
+ // Method refers to the type of the HTTP request.
+ // Refer https://golang.org/src/net/http/method.go for more info.
+ // Default value is POST.
+ // +optional
+ optional string method = 4;
+
+ repeated TriggerParameter parameters = 5;
+
+ // Timeout refers to the HTTP request timeout in seconds.
+ // Default value is 60 seconds.
+ // +optional
+ optional int64 timeout = 6;
+
+ // BasicAuth configuration for the http request.
+ // +optional
+ optional BasicAuth basicAuth = 7;
+
+ // Headers for the HTTP request.
+ // +optional
+ map headers = 8;
+}
+
+// K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels
+message K8SResourcePolicy {
+ // Labels required to identify whether a resource is in success state
+ map labels = 1;
+
+ // Backoff before checking resource state
+ optional github.com.argoproj.argo_events.pkg.apis.common.Backoff backoff = 2;
+
+ // ErrorOnBackoffTimeout determines whether sensor should transition to error state if the trigger policy is unable to determine
+ // the state of the resource
+ optional bool errorOnBackoffTimeout = 3;
+}
+
+// KafkaTrigger refers to the specification of the Kafka trigger.
+message KafkaTrigger {
+ // URL of the Kafka broker.
+ optional string url = 1;
+
+ // Name of the topic.
+ // More info at https://kafka.apache.org/documentation/#intro_topics
+ optional string topic = 2;
+
+ // Partition to write data to.
+ optional int32 partition = 3;
+
+ repeated TriggerParameter parameters = 4;
+
+ // RequiredAcks used in producer to tell the broker how many replica acknowledgements
+ // Defaults to 1 (Only wait for the leader to ack).
+ // +optional.
+ optional int32 requiredAcks = 5;
+
+ // Compress determines whether to compress message or not.
+ // Defaults to false.
+ // If set to true, compresses message using snappy compression.
+ // +optional
+ optional bool compress = 6;
+
+ // FlushFrequency refers to the frequency in milliseconds to flush batches.
+ // Defaults to 500 milliseconds.
+ // +optional
+ optional int32 flushFrequency = 7;
+
+ // TLS configuration for the Kafka producer.
+ // +optional
+ optional TLSConfig tls = 8;
+
+ repeated TriggerParameter payload = 9;
+
+ // The partitioning key for the messages put on the Kafka topic.
+ // Defaults to broker url.
+ // +optional.
+ optional string partitioningKey = 10;
+}
+
+// NATSSubscription holds the context of the NATS subscription of events for the sensor
+message NATSSubscription {
+ // ServerURL refers to NATS server url.
+ optional string serverURL = 1;
+
+ // Subject refers to NATS subject name.
+ optional string subject = 2;
+}
+
+// NATSTrigger refers to the specification of the NATS trigger.
+message NATSTrigger {
+ // URL of the NATS cluster.
+ optional string url = 1;
+
+ // Name of the subject to put message on.
+ optional string subject = 2;
+
+ repeated TriggerParameter payload = 3;
+
+ repeated TriggerParameter parameters = 4;
+
+ // TLS configuration for the NATS producer.
+ // +optional
+ optional TLSConfig tls = 5;
+}
+
+// NodeStatus describes the status for an individual node in the sensor's FSM.
+// A single node can represent the status for event or a trigger.
+message NodeStatus {
+ // ID is a unique identifier of a node within a sensor
+ // It is a hash of the node name
+ optional string id = 1;
+
+ // Name is a unique name in the node tree used to generate the node ID
+ optional string name = 2;
+
+ // DisplayName is the human readable representation of the node
+ optional string displayName = 3;
+
+ // Type is the type of the node
+ optional string type = 4;
+
+ // Phase of the node
+ optional string phase = 5;
+
+ // StartedAt is the time at which this node started
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime startedAt = 6;
+
+ // CompletedAt is the time at which this node completed
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime completedAt = 7;
+
+ // store data or something to save for event notifications or trigger events
+ optional string message = 8;
+
+ // Event stores the last seen event for this node
+ optional Event event = 9;
+
+ // UpdatedAt refers to the time at which the node was updated.
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime updatedAt = 10;
+
+ // ResolvedAt refers to the time at which the node was resolved.
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime resolvedAt = 11;
+}
+
+// OpenWhiskTrigger refers to the specification of the OpenWhisk trigger.
+message OpenWhiskTrigger {
+ // Host URL of the OpenWhisk.
+ optional string host = 1;
+
+ // Version for the API.
+ // Defaults to v1.
+ // +optional
+ optional string version = 2;
+
+ // Namespace for the action.
+ // Defaults to "_".
+ // +optional.
+ optional string namespace = 3;
+
+ // AuthToken for authentication.
+ // +optional
+ optional k8s.io.api.core.v1.SecretKeySelector authToken = 4;
+
+ // Name of the action/function.
+ optional string actionName = 5;
+
+ repeated TriggerParameter payload = 6;
+
+ // +optional
+ repeated TriggerParameter parameters = 7;
+}
+
+// Sensor is the definition of a sensor resource
+// +genclient
+// +genclient:noStatus
+// +kubebuilder:resource:shortName=sn
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+// +k8s:openapi-gen=true
+message Sensor {
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
+
+ optional SensorSpec spec = 2;
+
+ optional SensorStatus status = 3;
+}
+
+// SensorList is the list of Sensor resources
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+message SensorList {
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
+
+ repeated Sensor items = 2;
+}
+
+// SensorResources holds the metadata of the resources created for the sensor
+message SensorResources {
+ // Deployment holds the metadata of the deployment for the sensor
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta deployment = 1;
+
+ // Service holds the metadata of the service for the sensor
+ // +optional
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta service = 2;
+}
+
+// SensorSpec represents desired sensor state
+message SensorSpec {
+ // Dependencies is a list of the events that this sensor is dependent on.
+ repeated EventDependency dependencies = 1;
+
+ // Triggers is a list of the things that this sensor evokes. These are the outputs from this sensor.
+ repeated Trigger triggers = 2;
+
+ // Template is the pod specification for the sensor
+ // +optional
+ optional Template template = 3;
+
+ // Subscription refers to the modes of events subscriptions for the sensor.
+ // At least one of the types of subscription must be defined in order for sensor to be meaningful.
+ optional Subscription subscription = 4;
+
+ // Circuit is a boolean expression of dependency groups
+ optional string circuit = 5;
+
+ // DependencyGroups is a list of the groups of events.
+ repeated DependencyGroup dependencyGroups = 6;
+
+ // ErrorOnFailedRound if set to true, marks sensor state as `error` if the previous trigger round fails.
+ // Once sensor state is set to `error`, no further triggers will be processed.
+ optional bool errorOnFailedRound = 7;
+
+ // ServiceLabels to be set for the service generated
+ map serviceLabels = 8;
+
+ // ServiceAnnotations refers to annotations to be set
+ // for the service generated
+ map serviceAnnotations = 9;
+}
+
+// SensorStatus contains information about the status of a sensor.
+message SensorStatus {
+ // Phase is the high-level summary of the sensor.
+ optional string phase = 1;
+
+ // StartedAt is the time at which this sensor was initiated
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 2;
+
+ // CompletedAt is the time at which this sensor was completed
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.Time completedAt = 3;
+
+ // Message is a human readable string indicating details about a sensor in its phase
+ optional string message = 4;
+
+ // Nodes is a mapping between a node ID and the node's status
+ // it records the states for the FSM of this sensor.
+ map nodes = 5;
+
+ // TriggerCycleCount is the count of sensor's trigger cycle runs.
+ optional int32 triggerCycleCount = 6;
+
+ // TriggerCycleState is the status from last cycle of triggers execution.
+ optional string triggerCycleStatus = 7;
+
+ // LastCycleTime is the time when last trigger cycle completed
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastCycleTime = 8;
+
+ // Resources refers to metadata of the resources created for the sensor
+ optional SensorResources resources = 9;
+}
+
+// SlackTrigger refers to the specification of the slack notification trigger.
+message SlackTrigger {
+ // +optional
+ repeated TriggerParameter parameters = 1;
+
+ // SlackToken refers to the Kubernetes secret that holds the slack token required to send messages.
+ optional k8s.io.api.core.v1.SecretKeySelector slackToken = 2;
+
+ // Namespace to read the password secret from.
+ // This is required if the password secret selector is specified.
+ // +optional
+ optional string namespace = 3;
+
+ // Channel refers to which Slack channel to send slack message.
+ // +optional
+ optional string channel = 4;
+
+ // Message refers to the message to send to the Slack channel.
+ // +optional
+ optional string message = 5;
+}
+
+// StandardK8STrigger is the standard Kubernetes resource trigger
+message StandardK8STrigger {
+ // The unambiguous kind of this object - used in order to retrieve the appropriate kubernetes api client for this resource
+ optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource groupVersionResource = 1;
+
+ // Source of the K8 resource file(s)
+ optional ArtifactLocation source = 2;
+
+ // Operation refers to the type of operation performed on the k8s resource.
+ // Default value is Create.
+ // +optional
+ optional string operation = 3;
+
+ repeated TriggerParameter parameters = 4;
+
+ // PatchStrategy controls the K8s object patching strategy when the trigger operation is specified as patch.
+ // possible values:
+ // "application/json-patch+json"
+ // "application/merge-patch+json"
+ // "application/strategic-merge-patch+json"
+ // "application/apply-patch+yaml".
+ // Defaults to "application/merge-patch+json"
+ // +optional
+ optional string patchStrategy = 5;
+
+ // LiveObject specifies whether the resource should be directly fetched from K8s instead
+ // of being marshaled from the resource artifact. If set to true, the resource artifact
+ // must contain the information required to uniquely identify the resource in the cluster,
+ // that is, you must specify "apiVersion", "kind" as well as "name" and "namespace" meta
+ // data.
+ // Only valid for operation type `update`
+ // +optional
+ optional bool liveObject = 6;
+}
+
+// StatusPolicy refers to the policy used to check the state of the trigger using response status
+message StatusPolicy {
+ repeated int32 allow = 1;
+}
+
+// Subscription holds different modes of subscription available for sensor to consume events.
+message Subscription {
+ // HTTP refers to the HTTP subscription of events for the sensor.
+ // +optional
+ optional HTTPSubscription http = 1;
+
+ // NATS refers to the NATS subscription of events for the sensor
+ // +optional
+ optional NATSSubscription nats = 2;
+}
+
+// TLSConfig refers to TLS configuration for the HTTP client
+message TLSConfig {
+ // CACertPath refers the file path that contains the CA cert.
+ optional string caCertPath = 1;
+
+ // ClientCertPath refers the file path that contains client cert.
+ optional string clientCertPath = 2;
+
+ // ClientKeyPath refers the file path that contains client key.
+ optional string clientKeyPath = 3;
+}
+
+// Template holds the information of a sensor deployment template
+message Template {
+ // ServiceAccountName is the name of the ServiceAccount to use to run gateway pod.
+ // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
+ // +optional
+ optional string serviceAccountName = 1;
+
+ // Container is the main container image to run in the gateway pod
+ // +optional
+ optional k8s.io.api.core.v1.Container container = 2;
+
+ // Volumes is a list of volumes that can be mounted by containers in a workflow.
+ // +patchStrategy=merge
+ // +patchMergeKey=name
+ // +optional
+ repeated k8s.io.api.core.v1.Volume volumes = 3;
+
+ // SecurityContext holds pod-level security attributes and common container settings.
+ // Optional: Defaults to empty. See type description for default values of each field.
+ // +optional
+ optional k8s.io.api.core.v1.PodSecurityContext securityContext = 4;
+
+ // Spec holds the sensor deployment spec.
+ // DEPRECATED: Use Container instead.
+ optional k8s.io.api.core.v1.PodSpec spec = 5;
+}
+
+// TimeFilter describes a window in time.
+// DataFilters out event events that occur outside the time limits.
+// In other words, only events that occur after Start and before Stop
+// will pass this filter.
+message TimeFilter {
+ // Start is the beginning of a time window.
+ // Before this time, events for this event are ignored and
+ // format is hh:mm:ss
+ optional string start = 1;
+
+ // StopPattern is the end of a time window.
+ // After this time, events for this event are ignored and
+ // format is hh:mm:ss
+ optional string stop = 2;
+}
+
+// Trigger is an action taken, output produced, an event created, a message sent
+message Trigger {
+ // Template describes the trigger specification.
+ optional TriggerTemplate template = 1;
+
+ // Parameters is the list of parameters applied to the trigger template definition
+ repeated TriggerParameter parameters = 2;
+
+ // Policy to configure backoff and execution criteria for the trigger
+ optional TriggerPolicy policy = 3;
+}
+
+// TriggerParameter indicates a passed parameter to a service template
+message TriggerParameter {
+ // Src contains a source reference to the value of the parameter from a dependency
+ optional TriggerParameterSource src = 1;
+
+ // Dest is the JSONPath of a resource key.
+ // A path is a series of keys separated by a dot. The colon character can be escaped with '.'
+ // The -1 key can be used to append a value to an existing array.
+ // See https://github.com/tidwall/sjson#path-syntax for more information about how this is used.
+ optional string dest = 2;
+
+ // Operation is what to do with the existing value at Dest, whether to
+ // 'prepend', 'overwrite', or 'append' it.
+ optional string operation = 3;
+}
+
+// TriggerParameterSource defines the source for a parameter from a event event
+message TriggerParameterSource {
+ // DependencyName refers to the name of the dependency. The event which is stored for this dependency is used as payload
+ // for the parameterization. Make sure to refer to one of the dependencies you have defined under Dependencies list.
+ optional string dependencyName = 1;
+
+ // ContextKey is the JSONPath of the event's (JSON decoded) context key
+ // ContextKey is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'.
+ // To access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\'.
+ // See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.
+ optional string contextKey = 2;
+
+ // ContextTemplate is a go-template for extracting a string from the event's context.
+ // If a ContextTemplate is provided with a ContextKey, the template will be evaluated first and fallback to the ContextKey.
+ // The templating follows the standard go-template syntax as well as sprig's extra functions.
+ // See https://pkg.go.dev/text/template and https://masterminds.github.io/sprig/
+ optional string contextTemplate = 3;
+
+ // DataKey is the JSONPath of the event's (JSON decoded) data key
+ // DataKey is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'.
+ // To access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\'.
+ // See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.
+ optional string dataKey = 4;
+
+ // DataTemplate is a go-template for extracting a string from the event's data.
+ // If a DataTemplate is provided with a DataKey, the template will be evaluated first and fallback to the DataKey.
+ // The templating follows the standard go-template syntax as well as sprig's extra functions.
+ // See https://pkg.go.dev/text/template and https://masterminds.github.io/sprig/
+ optional string dataTemplate = 5;
+
+ // Value is the default literal value to use for this parameter source
+ // This is only used if the DataKey is invalid.
+ // If the DataKey is invalid and this is not defined, this param source will produce an error.
+ optional string value = 6;
+}
+
+// TriggerPolicy dictates the policy for the trigger retries
+message TriggerPolicy {
+ // K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels
+ optional K8SResourcePolicy k8s = 1;
+
+ // Status refers to the policy used to check the state of the trigger using response status
+ optional StatusPolicy status = 2;
+}
+
+// TriggerSwitch describes condition which must be satisfied in order to execute a trigger.
+// Depending upon condition type, status of dependency groups is used to evaluate the result.
+message TriggerSwitch {
+ // Any acts as a OR operator between dependencies
+ repeated string any = 1;
+
+ // All acts as a AND operator between dependencies
+ repeated string all = 2;
+}
+
+// TriggerTemplate is the template that describes trigger specification.
+message TriggerTemplate {
+ // Name is a unique name of the action to take.
+ optional string name = 1;
+
+ // Switch is the condition to execute the trigger.
+ // +optional
+ optional TriggerSwitch switch = 2;
+
+ // StandardK8STrigger refers to the trigger designed to create or update a generic Kubernetes resource.
+ // +optional
+ optional StandardK8STrigger k8s = 3;
+
+ // ArgoWorkflow refers to the trigger that can perform various operations on an Argo workflow.
+ // +optional
+ optional ArgoWorkflowTrigger argoWorkflow = 4;
+
+ // HTTP refers to the trigger designed to dispatch a HTTP request with on-the-fly constructable payload.
+ // +optional
+ optional HTTPTrigger http = 5;
+
+ // AWSLambda refers to the trigger designed to invoke AWS Lambda function with with on-the-fly constructable payload.
+ // +optional
+ optional AWSLambdaTrigger awsLambda = 6;
+
+ // CustomTrigger refers to the trigger designed to connect to a gRPC trigger server and execute a custom trigger.
+ // +optional
+ optional CustomTrigger custom = 7;
+
+ // Kafka refers to the trigger designed to place messages on Kafka topic.
+ // +optional.
+ optional KafkaTrigger kafka = 8;
+
+ // NATS refers to the trigger designed to place message on NATS subject.
+ // +optional.
+ optional NATSTrigger nats = 9;
+
+ // Slack refers to the trigger designed to send slack notification message.
+ // +optional
+ optional SlackTrigger slack = 10;
+
+ // OpenWhisk refers to the trigger designed to invoke OpenWhisk action.
+ // +optional
+ optional OpenWhiskTrigger openWhisk = 11;
+}
+
+// URLArtifact contains information about an artifact at an http endpoint.
+message URLArtifact {
+ // Path is the complete URL
+ optional string path = 1;
+
+ // VerifyCert decides whether the connection is secure or not
+ optional bool verifyCert = 2;
+}
+
diff --git a/pkg/apis/sensor/v1alpha1/openapi_generated.go b/pkg/apis/sensor/v1alpha1/openapi_generated.go
index 25330f13f2..26b5de3904 100644
--- a/pkg/apis/sensor/v1alpha1/openapi_generated.go
+++ b/pkg/apis/sensor/v1alpha1/openapi_generated.go
@@ -32,7 +32,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AWSLambdaTrigger": schema_pkg_apis_sensor_v1alpha1_AWSLambdaTrigger(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArgoWorkflowTrigger": schema_pkg_apis_sensor_v1alpha1_ArgoWorkflowTrigger(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArtifactLocation": schema_pkg_apis_sensor_v1alpha1_ArtifactLocation(ref),
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Backoff": schema_pkg_apis_sensor_v1alpha1_Backoff(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.BasicAuth": schema_pkg_apis_sensor_v1alpha1_BasicAuth(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConfigmapArtifact": schema_pkg_apis_sensor_v1alpha1_ConfigmapArtifact(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.CustomTrigger": schema_pkg_apis_sensor_v1alpha1_CustomTrigger(ref),
@@ -48,7 +47,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitRemoteConfig": schema_pkg_apis_sensor_v1alpha1_GitRemoteConfig(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.HTTPSubscription": schema_pkg_apis_sensor_v1alpha1_HTTPSubscription(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.HTTPTrigger": schema_pkg_apis_sensor_v1alpha1_HTTPTrigger(ref),
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.K8sResourcePolicy": schema_pkg_apis_sensor_v1alpha1_K8sResourcePolicy(ref),
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.K8SResourcePolicy": schema_pkg_apis_sensor_v1alpha1_K8SResourcePolicy(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.KafkaTrigger": schema_pkg_apis_sensor_v1alpha1_KafkaTrigger(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.NATSSubscription": schema_pkg_apis_sensor_v1alpha1_NATSSubscription(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.NATSTrigger": schema_pkg_apis_sensor_v1alpha1_NATSTrigger(ref),
@@ -60,7 +59,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorSpec": schema_pkg_apis_sensor_v1alpha1_SensorSpec(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorStatus": schema_pkg_apis_sensor_v1alpha1_SensorStatus(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackTrigger": schema_pkg_apis_sensor_v1alpha1_SlackTrigger(ref),
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StandardK8sTrigger": schema_pkg_apis_sensor_v1alpha1_StandardK8sTrigger(ref),
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StandardK8STrigger": schema_pkg_apis_sensor_v1alpha1_StandardK8STrigger(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StatusPolicy": schema_pkg_apis_sensor_v1alpha1_StatusPolicy(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Subscription": schema_pkg_apis_sensor_v1alpha1_Subscription(ref),
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TLSConfig": schema_pkg_apis_sensor_v1alpha1_TLSConfig(ref),
@@ -117,14 +116,8 @@ func schema_pkg_apis_sensor_v1alpha1_AWSLambdaTrigger(ref common.ReferenceCallba
},
},
"payload": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "payloadParameters",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Payload is the list of key-value extracted from an event payload to construct the request payload.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -135,14 +128,8 @@ func schema_pkg_apis_sensor_v1alpha1_AWSLambdaTrigger(ref common.ReferenceCallba
},
},
"parameters": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "triggerParameters",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -182,14 +169,8 @@ func schema_pkg_apis_sensor_v1alpha1_ArgoWorkflowTrigger(ref common.ReferenceCal
},
},
"parameters": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "triggerParameters",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Parameters is the list of parameters to pass to resolved Argo Workflow object",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -199,8 +180,26 @@ func schema_pkg_apis_sensor_v1alpha1_ArgoWorkflowTrigger(ref common.ReferenceCal
},
},
},
+ "group": {
+ SchemaProps: spec.SchemaProps{
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
+ "version": {
+ SchemaProps: spec.SchemaProps{
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
+ "resource": {
+ SchemaProps: spec.SchemaProps{
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
},
- Required: []string{"source"},
+ Required: []string{"group", "version", "resource"},
},
},
Dependencies: []string{
@@ -212,99 +211,57 @@ func schema_pkg_apis_sensor_v1alpha1_ArtifactLocation(ref common.ReferenceCallba
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
- Description: "ArtifactLocation describes the source location for an external minio",
+ Description: "ArtifactLocation describes the source location for an external artifact",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"s3": {
SchemaProps: spec.SchemaProps{
- Description: "S3 compliant minio",
+ Description: "S3 compliant artifact",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.S3Artifact"),
},
},
"inline": {
SchemaProps: spec.SchemaProps{
- Description: "Inline minio is embedded in sensor spec as a string",
+ Description: "Inline artifact is embedded in sensor spec as a string",
Type: []string{"string"},
Format: "",
},
},
"file": {
SchemaProps: spec.SchemaProps{
- Description: "File minio is minio stored in a file",
+ Description: "File artifact is artifact stored in a file",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.FileArtifact"),
},
},
"url": {
SchemaProps: spec.SchemaProps{
- Description: "URL to fetch the minio from",
+ Description: "URL to fetch the artifact from",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.URLArtifact"),
},
},
"configmap": {
SchemaProps: spec.SchemaProps{
- Description: "Configmap that stores the minio",
+ Description: "Configmap that stores the artifact",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConfigmapArtifact"),
},
},
"git": {
SchemaProps: spec.SchemaProps{
- Description: "Git repository hosting the minio",
+ Description: "Git repository hosting the artifact",
Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitArtifact"),
},
},
"resource": {
SchemaProps: spec.SchemaProps{
Description: "Resource is generic template for K8s resource",
- Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1/unstructured.Unstructured"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Resource"),
},
},
},
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/pkg/apis/common.S3Artifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConfigmapArtifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.FileArtifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitArtifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.URLArtifact", "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured.Unstructured"},
- }
-}
-
-func schema_pkg_apis_sensor_v1alpha1_Backoff(ref common.ReferenceCallback) common.OpenAPIDefinition {
- return common.OpenAPIDefinition{
- Schema: spec.Schema{
- SchemaProps: spec.SchemaProps{
- Description: "Backoff for an operation",
- Type: []string{"object"},
- Properties: map[string]spec.Schema{
- "duration": {
- SchemaProps: spec.SchemaProps{
- Description: "Duration is the duration in nanoseconds",
- Type: []string{"integer"},
- Format: "int64",
- },
- },
- "factor": {
- SchemaProps: spec.SchemaProps{
- Description: "Duration is multiplied by factor each iteration",
- Type: []string{"number"},
- Format: "double",
- },
- },
- "jitter": {
- SchemaProps: spec.SchemaProps{
- Description: "The amount of jitter applied each iteration",
- Type: []string{"number"},
- Format: "double",
- },
- },
- "steps": {
- SchemaProps: spec.SchemaProps{
- Description: "Exit with error after this many steps",
- Type: []string{"integer"},
- Format: "int32",
- },
- },
- },
- Required: []string{"duration", "factor", "jitter", "steps"},
- },
- },
+ "github.com/argoproj/argo-events/pkg/apis/common.Resource", "github.com/argoproj/argo-events/pkg/apis/common.S3Artifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConfigmapArtifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.FileArtifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitArtifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.URLArtifact"},
}
}
@@ -346,7 +303,7 @@ func schema_pkg_apis_sensor_v1alpha1_ConfigmapArtifact(ref common.ReferenceCallb
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
- Description: "ConfigmapArtifact contains information about minio in k8 configmap",
+ Description: "ConfigmapArtifact contains information about artifact in k8 configmap",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"name": {
@@ -428,14 +385,8 @@ func schema_pkg_apis_sensor_v1alpha1_CustomTrigger(ref common.ReferenceCallback)
},
},
"parameters": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "triggerParameters",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Parameters is the list of parameters that is applied to resolved custom trigger trigger object.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -446,14 +397,8 @@ func schema_pkg_apis_sensor_v1alpha1_CustomTrigger(ref common.ReferenceCallback)
},
},
"payload": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "payloadParameters",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Payload is the list of key-value extracted from an event payload to construct the request payload.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -494,11 +439,6 @@ func schema_pkg_apis_sensor_v1alpha1_DataFilter(ref common.ReferenceCallback) co
},
},
"value": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "value",
- },
- },
SchemaProps: spec.SchemaProps{
Description: "Value is the allowed string values for this key Booleans are passed using strconv.ParseBool() Numbers are parsed using as float64 using strconv.ParseFloat() Strings are taken as is Nils this value is ignored",
Type: []string{"array"},
@@ -541,11 +481,6 @@ func schema_pkg_apis_sensor_v1alpha1_DependencyGroup(ref common.ReferenceCallbac
},
},
"dependencies": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "dependencies",
- },
- },
SchemaProps: spec.SchemaProps{
Description: "Dependencies of events",
Type: []string{"array"},
@@ -585,7 +520,7 @@ func schema_pkg_apis_sensor_v1alpha1_Event(ref common.ReferenceCallback) common.
},
},
},
- Required: []string{"context", "data"},
+ Required: []string{"data"},
},
},
Dependencies: []string{
@@ -727,11 +662,6 @@ func schema_pkg_apis_sensor_v1alpha1_EventDependencyFilter(ref common.ReferenceC
},
},
"data": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "data",
- },
- },
SchemaProps: spec.SchemaProps{
Description: "Data filter constraints with escalation",
Type: []string{"array"},
@@ -757,7 +687,7 @@ func schema_pkg_apis_sensor_v1alpha1_FileArtifact(ref common.ReferenceCallback)
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
- Description: "FileArtifact contains information about an minio in a filesystem",
+ Description: "FileArtifact contains information about an artifact in a filesystem",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"path": {
@@ -776,7 +706,7 @@ func schema_pkg_apis_sensor_v1alpha1_GitArtifact(ref common.ReferenceCallback) c
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
- Description: "GitArtifact contains information about an minio stored in git",
+ Description: "GitArtifact contains information about an artifact stored in git",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"url": {
@@ -874,7 +804,6 @@ func schema_pkg_apis_sensor_v1alpha1_GitCreds(ref common.ReferenceCallback) comm
},
},
},
- Required: []string{"username", "password"},
},
},
Dependencies: []string{
@@ -897,11 +826,6 @@ func schema_pkg_apis_sensor_v1alpha1_GitRemoteConfig(ref common.ReferenceCallbac
},
},
"urls": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "urls",
- },
- },
SchemaProps: spec.SchemaProps{
Description: "URLs the URLs of a remote repository. It must be non-empty. Fetch will always use the first URL, while push will use all of them.",
Type: []string{"array"},
@@ -958,14 +882,8 @@ func schema_pkg_apis_sensor_v1alpha1_HTTPTrigger(ref common.ReferenceCallback) c
},
},
"payload": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "atomic",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Payload is the list of key-value extracted from an event payload to construct the HTTP request payload.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -989,14 +907,8 @@ func schema_pkg_apis_sensor_v1alpha1_HTTPTrigger(ref common.ReferenceCallback) c
},
},
"parameters": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "atomic",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Parameters is the list of key-value extracted from event's payload that are applied to the HTTP trigger resource.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1010,7 +922,7 @@ func schema_pkg_apis_sensor_v1alpha1_HTTPTrigger(ref common.ReferenceCallback) c
SchemaProps: spec.SchemaProps{
Description: "Timeout refers to the HTTP request timeout in seconds. Default value is 60 seconds.",
Type: []string{"integer"},
- Format: "int32",
+ Format: "int64",
},
},
"basicAuth": {
@@ -1027,15 +939,8 @@ func schema_pkg_apis_sensor_v1alpha1_HTTPTrigger(ref common.ReferenceCallback) c
Allows: true,
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
- Type: []string{"array"},
- Items: &spec.SchemaOrArray{
- Schema: &spec.Schema{
- SchemaProps: spec.SchemaProps{
- Type: []string{"string"},
- Format: "",
- },
- },
- },
+ Type: []string{"string"},
+ Format: "",
},
},
},
@@ -1050,11 +955,11 @@ func schema_pkg_apis_sensor_v1alpha1_HTTPTrigger(ref common.ReferenceCallback) c
}
}
-func schema_pkg_apis_sensor_v1alpha1_K8sResourcePolicy(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_pkg_apis_sensor_v1alpha1_K8SResourcePolicy(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
- Description: "K8sResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels",
+ Description: "K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"labels": {
@@ -1075,7 +980,7 @@ func schema_pkg_apis_sensor_v1alpha1_K8sResourcePolicy(ref common.ReferenceCallb
"backoff": {
SchemaProps: spec.SchemaProps{
Description: "Backoff before checking resource state",
- Ref: ref("k8s.io/apimachinery/pkg/util/wait.Backoff"),
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/common.Backoff"),
},
},
"errorOnBackoffTimeout": {
@@ -1086,11 +991,11 @@ func schema_pkg_apis_sensor_v1alpha1_K8sResourcePolicy(ref common.ReferenceCallb
},
},
},
- Required: []string{"labels", "backoff", "errorOnBackoffTimeout"},
+ Required: []string{"backoff", "errorOnBackoffTimeout"},
},
},
Dependencies: []string{
- "k8s.io/apimachinery/pkg/util/wait.Backoff"},
+ "github.com/argoproj/argo-events/pkg/apis/common.Backoff"},
}
}
@@ -1123,14 +1028,8 @@ func schema_pkg_apis_sensor_v1alpha1_KafkaTrigger(ref common.ReferenceCallback)
},
},
"parameters": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "triggerParameters",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Parameters is the list of parameters that is applied to resolved Kafka trigger object.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1168,14 +1067,8 @@ func schema_pkg_apis_sensor_v1alpha1_KafkaTrigger(ref common.ReferenceCallback)
},
},
"payload": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "payloadParameters",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Payload is the list of key-value extracted from an event payload to construct the request payload.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1251,14 +1144,8 @@ func schema_pkg_apis_sensor_v1alpha1_NATSTrigger(ref common.ReferenceCallback) c
},
},
"payload": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "payloadParameters",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Payload is the list of key-value extracted from an event payload to construct the request payload.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1269,14 +1156,8 @@ func schema_pkg_apis_sensor_v1alpha1_NATSTrigger(ref common.ReferenceCallback) c
},
},
"parameters": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "triggerParameters",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Parameters is the list of parameters that is applied to resolved NATS trigger object.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1431,14 +1312,8 @@ func schema_pkg_apis_sensor_v1alpha1_OpenWhiskTrigger(ref common.ReferenceCallba
},
},
"payload": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "payloadParameters",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Payload is the list of key-value extracted from an event payload to construct the request payload.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1449,14 +1324,8 @@ func schema_pkg_apis_sensor_v1alpha1_OpenWhiskTrigger(ref common.ReferenceCallba
},
},
"parameters": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "triggerParameters",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1547,11 +1416,6 @@ func schema_pkg_apis_sensor_v1alpha1_SensorList(ref common.ReferenceCallback) co
},
},
"items": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "items",
- },
- },
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
@@ -1592,7 +1456,6 @@ func schema_pkg_apis_sensor_v1alpha1_SensorResources(ref common.ReferenceCallbac
},
},
},
- Required: []string{"deployment"},
},
},
Dependencies: []string{
@@ -1608,11 +1471,6 @@ func schema_pkg_apis_sensor_v1alpha1_SensorSpec(ref common.ReferenceCallback) co
Type: []string{"object"},
Properties: map[string]spec.Schema{
"dependencies": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "dependencies",
- },
- },
SchemaProps: spec.SchemaProps{
Description: "Dependencies is a list of the events that this sensor is dependent on.",
Type: []string{"array"},
@@ -1626,11 +1484,6 @@ func schema_pkg_apis_sensor_v1alpha1_SensorSpec(ref common.ReferenceCallback) co
},
},
"triggers": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "triggers",
- },
- },
SchemaProps: spec.SchemaProps{
Description: "Triggers is a list of the things that this sensor evokes. These are the outputs from this sensor.",
Type: []string{"array"},
@@ -1663,11 +1516,6 @@ func schema_pkg_apis_sensor_v1alpha1_SensorSpec(ref common.ReferenceCallback) co
},
},
"dependencyGroups": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "dependencyGroups",
- },
- },
SchemaProps: spec.SchemaProps{
Description: "DependencyGroups is a list of the groups of events.",
Type: []string{"array"},
@@ -1718,7 +1566,7 @@ func schema_pkg_apis_sensor_v1alpha1_SensorSpec(ref common.ReferenceCallback) co
},
},
},
- Required: []string{"dependencies", "triggers", "subscription"},
+ Required: []string{"dependencies", "triggers"},
},
},
Dependencies: []string{
@@ -1800,7 +1648,7 @@ func schema_pkg_apis_sensor_v1alpha1_SensorStatus(ref common.ReferenceCallback)
},
},
},
- Required: []string{"phase", "triggerCycleStatus", "lastCycleTime", "resources"},
+ Required: []string{"phase", "triggerCycleStatus", "lastCycleTime"},
},
},
Dependencies: []string{
@@ -1816,14 +1664,8 @@ func schema_pkg_apis_sensor_v1alpha1_SlackTrigger(ref common.ReferenceCallback)
Type: []string{"object"},
Properties: map[string]spec.Schema{
"parameters": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "triggerParameters",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1861,7 +1703,6 @@ func schema_pkg_apis_sensor_v1alpha1_SlackTrigger(ref common.ReferenceCallback)
},
},
},
- Required: []string{"slackToken"},
},
},
Dependencies: []string{
@@ -1869,13 +1710,31 @@ func schema_pkg_apis_sensor_v1alpha1_SlackTrigger(ref common.ReferenceCallback)
}
}
-func schema_pkg_apis_sensor_v1alpha1_StandardK8sTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition {
+func schema_pkg_apis_sensor_v1alpha1_StandardK8STrigger(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
- Description: "StandardK8sTrigger is the standard Kubernetes resource trigger",
+ Description: "StandardK8STrigger is the standard Kubernetes resource trigger",
Type: []string{"object"},
Properties: map[string]spec.Schema{
+ "group": {
+ SchemaProps: spec.SchemaProps{
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
+ "version": {
+ SchemaProps: spec.SchemaProps{
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
+ "resource": {
+ SchemaProps: spec.SchemaProps{
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
"source": {
SchemaProps: spec.SchemaProps{
Description: "Source of the K8 resource file(s)",
@@ -1890,14 +1749,8 @@ func schema_pkg_apis_sensor_v1alpha1_StandardK8sTrigger(ref common.ReferenceCall
},
},
"parameters": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "triggerParameters",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Parameters is the list of parameters that is applied to resolved K8s trigger object.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -1922,7 +1775,7 @@ func schema_pkg_apis_sensor_v1alpha1_StandardK8sTrigger(ref common.ReferenceCall
},
},
},
- Required: []string{"source"},
+ Required: []string{"group", "version", "resource"},
},
},
Dependencies: []string{
@@ -1938,14 +1791,8 @@ func schema_pkg_apis_sensor_v1alpha1_StatusPolicy(ref common.ReferenceCallback)
Type: []string{"object"},
Properties: map[string]spec.Schema{
"allow": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "allowedStatuses",
- },
- },
SchemaProps: spec.SchemaProps{
- Description: "Allow refers to the list of allowed response statuses. If the response status of the the trigger is within the list, the trigger will marked as successful else it will result in trigger failure.",
- Type: []string{"array"},
+ Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
@@ -2125,11 +1972,6 @@ func schema_pkg_apis_sensor_v1alpha1_Trigger(ref common.ReferenceCallback) commo
},
},
"parameters": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "templateParameters",
- },
- },
SchemaProps: spec.SchemaProps{
Description: "Parameters is the list of parameters applied to the trigger template definition",
Type: []string{"array"},
@@ -2149,7 +1991,6 @@ func schema_pkg_apis_sensor_v1alpha1_Trigger(ref common.ReferenceCallback) commo
},
},
},
- Required: []string{"template", "policy"},
},
},
Dependencies: []string{
@@ -2185,7 +2026,7 @@ func schema_pkg_apis_sensor_v1alpha1_TriggerParameter(ref common.ReferenceCallba
},
},
},
- Required: []string{"src", "dest"},
+ Required: []string{"dest"},
},
},
Dependencies: []string{
@@ -2258,8 +2099,8 @@ func schema_pkg_apis_sensor_v1alpha1_TriggerPolicy(ref common.ReferenceCallback)
Properties: map[string]spec.Schema{
"k8s": {
SchemaProps: spec.SchemaProps{
- Description: "K8sResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels",
- Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.K8sResourcePolicy"),
+ Description: "K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels",
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.K8SResourcePolicy"),
},
},
"status": {
@@ -2272,7 +2113,7 @@ func schema_pkg_apis_sensor_v1alpha1_TriggerPolicy(ref common.ReferenceCallback)
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.K8sResourcePolicy", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StatusPolicy"},
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.K8SResourcePolicy", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StatusPolicy"},
}
}
@@ -2284,11 +2125,6 @@ func schema_pkg_apis_sensor_v1alpha1_TriggerSwitch(ref common.ReferenceCallback)
Type: []string{"object"},
Properties: map[string]spec.Schema{
"any": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "any",
- },
- },
SchemaProps: spec.SchemaProps{
Description: "Any acts as a OR operator between dependencies",
Type: []string{"array"},
@@ -2303,11 +2139,6 @@ func schema_pkg_apis_sensor_v1alpha1_TriggerSwitch(ref common.ReferenceCallback)
},
},
"all": {
- VendorExtensible: spec.VendorExtensible{
- Extensions: spec.Extensions{
- "x-kubernetes-list-type": "all",
- },
- },
SchemaProps: spec.SchemaProps{
Description: "All acts as a AND operator between dependencies",
Type: []string{"array"},
@@ -2349,8 +2180,8 @@ func schema_pkg_apis_sensor_v1alpha1_TriggerTemplate(ref common.ReferenceCallbac
},
"k8s": {
SchemaProps: spec.SchemaProps{
- Description: "StandardK8sTrigger refers to the trigger designed to create or update a generic Kubernetes resource.",
- Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StandardK8sTrigger"),
+ Description: "StandardK8STrigger refers to the trigger designed to create or update a generic Kubernetes resource.",
+ Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StandardK8STrigger"),
},
},
"argoWorkflow": {
@@ -2406,7 +2237,7 @@ func schema_pkg_apis_sensor_v1alpha1_TriggerTemplate(ref common.ReferenceCallbac
},
},
Dependencies: []string{
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AWSLambdaTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArgoWorkflowTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.CustomTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.HTTPTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.KafkaTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.NATSTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.OpenWhiskTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StandardK8sTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerSwitch"},
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AWSLambdaTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArgoWorkflowTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.CustomTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.HTTPTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.KafkaTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.NATSTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.OpenWhiskTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StandardK8STrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerSwitch"},
}
}
@@ -2414,7 +2245,7 @@ func schema_pkg_apis_sensor_v1alpha1_URLArtifact(ref common.ReferenceCallback) c
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
- Description: "URLArtifact contains information about an minio at an http endpoint.",
+ Description: "URLArtifact contains information about an artifact at an http endpoint.",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"path": {
diff --git a/pkg/apis/sensor/v1alpha1/register.go b/pkg/apis/sensor/v1alpha1/register.go
index 486078c333..f814216464 100644
--- a/pkg/apis/sensor/v1alpha1/register.go
+++ b/pkg/apis/sensor/v1alpha1/register.go
@@ -17,10 +17,11 @@ limitations under the License.
package v1alpha1
import (
- "github.com/argoproj/argo-events/pkg/apis/sensor"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor"
)
// SchemeGroupVersion is a group version used to register these objects
diff --git a/pkg/apis/sensor/v1alpha1/types.go b/pkg/apis/sensor/v1alpha1/types.go
index 89e45a4d92..d5595daea2 100644
--- a/pkg/apis/sensor/v1alpha1/types.go
+++ b/pkg/apis/sensor/v1alpha1/types.go
@@ -19,14 +19,12 @@ package v1alpha1
import (
"fmt"
"hash/fnv"
- "time"
- apicommon "github.com/argoproj/argo-events/pkg/apis/common"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
k8stypes "k8s.io/apimachinery/pkg/types"
- "k8s.io/apimachinery/pkg/util/wait"
+
+ apicommon "github.com/argoproj/argo-events/pkg/apis/common"
)
// NotificationType represent a type of notifications that are handled by a sensor
@@ -109,6 +107,7 @@ const (
// Sensor is the definition of a sensor resource
// +genclient
// +genclient:noStatus
+// +kubebuilder:resource:shortName=sn
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
type Sensor struct {
@@ -123,16 +122,16 @@ type Sensor struct {
type SensorList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
- // +listType=items
+
Items []Sensor `json:"items" protobuf:"bytes,2,rep,name=items"`
}
// SensorSpec represents desired sensor state
type SensorSpec struct {
- // +listType=dependencies
+
// Dependencies is a list of the events that this sensor is dependent on.
Dependencies []EventDependency `json:"dependencies" protobuf:"bytes,1,rep,name=dependencies"`
- // +listType=triggers
+
// Triggers is a list of the things that this sensor evokes. These are the outputs from this sensor.
Triggers []Trigger `json:"triggers" protobuf:"bytes,2,rep,name=triggers"`
// Template is the pod specification for the sensor
@@ -140,17 +139,17 @@ type SensorSpec struct {
Template Template `json:"template,omitempty" protobuf:"bytes,3,opt,name=template"`
// Subscription refers to the modes of events subscriptions for the sensor.
// At least one of the types of subscription must be defined in order for sensor to be meaningful.
- Subscription *Subscription `json:"subscription" protobuf:"bytes,4,name=subscription"`
+ Subscription *Subscription `json:"subscription,omitempty" protobuf:"bytes,4,opt,name=subscription"`
// Circuit is a boolean expression of dependency groups
- Circuit string `json:"circuit,omitempty" protobuf:"bytes,5,rep,name=circuit"`
- // +listType=dependencyGroups
+ Circuit string `json:"circuit,omitempty" protobuf:"bytes,5,opt,name=circuit"`
+
// DependencyGroups is a list of the groups of events.
DependencyGroups []DependencyGroup `json:"dependencyGroups,omitempty" protobuf:"bytes,6,rep,name=dependencyGroups"`
// ErrorOnFailedRound if set to true, marks sensor state as `error` if the previous trigger round fails.
// Once sensor state is set to `error`, no further triggers will be processed.
- ErrorOnFailedRound bool `json:"errorOnFailedRound,omitempty" protobuf:"bytes,7,opt,name=errorOnFailedRound"`
+ ErrorOnFailedRound bool `json:"errorOnFailedRound,omitempty" protobuf:"varint,7,opt,name=errorOnFailedRound"`
// ServiceLabels to be set for the service generated
- ServiceLabels map[string]string `json:"serviceLabels,omitempty" protobuf:"bytes,11,rep,name=serviceLabels"`
+ ServiceLabels map[string]string `json:"serviceLabels,omitempty" protobuf:"bytes,8,rep,name=serviceLabels"`
// ServiceAnnotations refers to annotations to be set
// for the service generated
ServiceAnnotations map[string]string `json:"serviceAnnotations,omitempty" protobuf:"bytes,9,rep,name=serviceAnnotations"`
@@ -169,7 +168,7 @@ type Template struct {
// +patchStrategy=merge
// +patchMergeKey=name
// +optional
- Volumes []corev1.Volume `json:"volumes,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,3,opt,name=volumes"`
+ Volumes []corev1.Volume `json:"volumes,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,3,rep,name=volumes"`
// SecurityContext holds pod-level security attributes and common container settings.
// Optional: Defaults to empty. See type description for default values of each field.
// +optional
@@ -192,25 +191,25 @@ type Subscription struct {
// HTTPSubscription holds the context of the HTTP subscription of events for the sensor.
type HTTPSubscription struct {
// Port on which sensor server should run.
- Port int `json:"port" protobuf:"bytes,1,name=port"`
+ Port int32 `json:"port" protobuf:"varint,1,opt,name=port"`
}
// NATSSubscription holds the context of the NATS subscription of events for the sensor
type NATSSubscription struct {
// ServerURL refers to NATS server url.
- ServerURL string `json:"serverURL" protobuf:"bytes,1,name=serverURL"`
+ ServerURL string `json:"serverURL" protobuf:"bytes,1,opt,name=serverURL"`
// Subject refers to NATS subject name.
- Subject string `json:"subject" protobuf:"bytes,2,name=subject"`
+ Subject string `json:"subject" protobuf:"bytes,2,opt,name=subject"`
}
// EventDependency describes a dependency
type EventDependency struct {
// Name is a unique name of this dependency
- Name string `json:"name" protobuf:"bytes,1,name=name"`
+ Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
// GatewayName is the name of the gateway from whom the event is received
- GatewayName string `json:"gatewayName" protobuf:"bytes,2,name=gatewayName"`
+ GatewayName string `json:"gatewayName" protobuf:"bytes,2,opt,name=gatewayName"`
// EventName is the name of the event
- EventName string `json:"eventName" protobuf:"bytes,3,name=eventName"`
+ EventName string `json:"eventName" protobuf:"bytes,3,opt,name=eventName"`
// Filters and rules governing toleration of success and constraints on the context and data of an event
Filters *EventDependencyFilter `json:"filters,omitempty" protobuf:"bytes,4,opt,name=filters"`
}
@@ -218,23 +217,23 @@ type EventDependency struct {
// DependencyGroup is the group of dependencies
type DependencyGroup struct {
// Name of the group
- Name string `json:"name" protobuf:"bytes,1,name=name"`
- // +listType=dependencies
+ Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
+
// Dependencies of events
- Dependencies []string `json:"dependencies" protobuf:"bytes,2,name=dependencies"`
+ Dependencies []string `json:"dependencies" protobuf:"bytes,2,rep,name=dependencies"`
}
// EventDependencyFilter defines filters and constraints for a event.
type EventDependencyFilter struct {
// Name is the name of event filter
- Name string `json:"name" protobuf:"bytes,1,name=name"`
+ Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
// Time filter on the event with escalation
Time *TimeFilter `json:"time,omitempty" protobuf:"bytes,2,opt,name=time"`
// Context filter constraints
Context *EventContext `json:"context,omitempty" protobuf:"bytes,3,opt,name=context"`
- // +listType=data
+
// Data filter constraints with escalation
- Data []DataFilter `json:"data,omitempty" protobuf:"bytes,4,opt,name=data"`
+ Data []DataFilter `json:"data,omitempty" protobuf:"bytes,4,rep,name=data"`
}
// TimeFilter describes a window in time.
@@ -272,8 +271,8 @@ type DataFilter struct {
// See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.
Path string `json:"path" protobuf:"bytes,1,opt,name=path"`
// Type contains the JSON type of the data
- Type JSONType `json:"type" protobuf:"bytes,2,opt,name=type"`
- // +listType=value
+ Type JSONType `json:"type" protobuf:"bytes,2,opt,name=type,casttype=JSONType"`
+
// Value is the allowed string values for this key
// Booleans are passed using strconv.ParseBool()
// Numbers are parsed using as float64 using strconv.ParseFloat()
@@ -283,36 +282,36 @@ type DataFilter struct {
// Comparator compares the event data with a user given value.
// Can be ">=", ">", "=", "<", or "<=".
// Is optional, and if left blank treated as equality "=".
- Comparator Comparator `json:"comparator,omitempty" protobuf:"bytes,4,opt,name=comparator"`
+ Comparator Comparator `json:"comparator,omitempty" protobuf:"bytes,4,opt,name=comparator,casttype=Comparator"`
}
// Trigger is an action taken, output produced, an event created, a message sent
type Trigger struct {
// Template describes the trigger specification.
- Template *TriggerTemplate `json:"template" protobuf:"bytes,1,name=template"`
- // +listType=templateParameters
+ Template *TriggerTemplate `json:"template,omitempty" protobuf:"bytes,1,opt,name=template"`
+
// Parameters is the list of parameters applied to the trigger template definition
Parameters []TriggerParameter `json:"parameters,omitempty" protobuf:"bytes,2,rep,name=parameters"`
// Policy to configure backoff and execution criteria for the trigger
- Policy *TriggerPolicy `json:"policy" protobuf:"bytes,3,opt,name=policy"`
+ Policy *TriggerPolicy `json:"policy,omitempty" protobuf:"bytes,3,opt,name=policy"`
}
// TriggerTemplate is the template that describes trigger specification.
type TriggerTemplate struct {
// Name is a unique name of the action to take.
- Name string `json:"name" protobuf:"bytes,1,name=name"`
+ Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
// Switch is the condition to execute the trigger.
// +optional
Switch *TriggerSwitch `json:"switch,omitempty" protobuf:"bytes,2,opt,name=switch"`
- // StandardK8sTrigger refers to the trigger designed to create or update a generic Kubernetes resource.
+ // StandardK8STrigger refers to the trigger designed to create or update a generic Kubernetes resource.
// +optional
- K8s *StandardK8sTrigger `json:"k8s,omitempty" protobuf:"bytes,3,opt,name=k8s"`
+ K8s *StandardK8STrigger `json:"k8s,omitempty" protobuf:"bytes,3,opt,name=k8s"`
// ArgoWorkflow refers to the trigger that can perform various operations on an Argo workflow.
// +optional
ArgoWorkflow *ArgoWorkflowTrigger `json:"argoWorkflow,omitempty" protobuf:"bytes,4,opt,name=argoWorkflow"`
// HTTP refers to the trigger designed to dispatch a HTTP request with on-the-fly constructable payload.
// +optional
- HTTP *HTTPTrigger `json:"http,omitempty" protobuf:"bytes,4,opt,name=http"`
+ HTTP *HTTPTrigger `json:"http,omitempty" protobuf:"bytes,5,opt,name=http"`
// AWSLambda refers to the trigger designed to invoke AWS Lambda function with with on-the-fly constructable payload.
// +optional
AWSLambda *AWSLambdaTrigger `json:"awsLambda,omitempty" protobuf:"bytes,6,opt,name=awsLambda"`
@@ -336,26 +335,26 @@ type TriggerTemplate struct {
// TriggerSwitch describes condition which must be satisfied in order to execute a trigger.
// Depending upon condition type, status of dependency groups is used to evaluate the result.
type TriggerSwitch struct {
- // +listType=any
+
// Any acts as a OR operator between dependencies
Any []string `json:"any,omitempty" protobuf:"bytes,1,rep,name=any"`
- // +listType=all
+
// All acts as a AND operator between dependencies
All []string `json:"all,omitempty" protobuf:"bytes,2,rep,name=all"`
}
-// StandardK8sTrigger is the standard Kubernetes resource trigger
-type StandardK8sTrigger struct {
+// StandardK8STrigger is the standard Kubernetes resource trigger
+type StandardK8STrigger struct {
// The unambiguous kind of this object - used in order to retrieve the appropriate kubernetes api client for this resource
- *metav1.GroupVersionResource `json:",inline" protobuf:"bytes,1,name=groupVersionResource"`
+ metav1.GroupVersionResource `json:",inline" protobuf:"bytes,1,opt,name=groupVersionResource"`
// Source of the K8 resource file(s)
- Source *ArtifactLocation `json:"source" protobuf:"bytes,2,opt,name=source"`
+ Source *ArtifactLocation `json:"source,omitempty" protobuf:"bytes,2,opt,name=source"`
// Operation refers to the type of operation performed on the k8s resource.
// Default value is Create.
// +optional
- Operation KubernetesResourceOperation `json:"operation,omitempty" protobuf:"bytes,3,opt,name=operation"`
+ Operation KubernetesResourceOperation `json:"operation,omitempty" protobuf:"bytes,3,opt,name=operation,casttype=KubernetesResourceOperation"`
// Parameters is the list of parameters that is applied to resolved K8s trigger object.
- // +listType=triggerParameters
+
Parameters []TriggerParameter `json:"parameters,omitempty" protobuf:"bytes,4,rep,name=parameters"`
// PatchStrategy controls the K8s object patching strategy when the trigger operation is specified as patch.
// possible values:
@@ -365,7 +364,7 @@ type StandardK8sTrigger struct {
// "application/apply-patch+yaml".
// Defaults to "application/merge-patch+json"
// +optional
- PatchStrategy k8stypes.PatchType `json:"patchStrategy,omitempty" protobuf:"bytes,5,opt,name=patchStrategy"`
+ PatchStrategy k8stypes.PatchType `json:"patchStrategy,omitempty" protobuf:"bytes,5,opt,name=patchStrategy,casttype=k8s.io/apimachinery/pkg/types.PatchType"`
// LiveObject specifies whether the resource should be directly fetched from K8s instead
// of being marshaled from the resource artifact. If set to true, the resource artifact
// must contain the information required to uniquely identify the resource in the cluster,
@@ -373,30 +372,30 @@ type StandardK8sTrigger struct {
// data.
// Only valid for operation type `update`
// +optional
- LiveObject bool `json:"liveObject,omitempty" protobuf:"bytes,6,opt,name=liveObject"`
+ LiveObject bool `json:"liveObject,omitempty" protobuf:"varint,6,opt,name=liveObject"`
}
// ArgoWorkflowTrigger is the trigger for the Argo Workflow
type ArgoWorkflowTrigger struct {
// Source of the K8 resource file(s)
- Source *ArtifactLocation `json:"source" protobuf:"bytes,1,opt,name=source"`
+ Source *ArtifactLocation `json:"source,omitempty" protobuf:"bytes,1,opt,name=source"`
// Operation refers to the type of operation performed on the argo workflow resource.
// Default value is Submit.
// +optional
- Operation ArgoWorkflowOperation `json:"operation,omitempty" protobuf:"bytes,2,opt,name=operation"`
+ Operation ArgoWorkflowOperation `json:"operation,omitempty" protobuf:"bytes,2,opt,name=operation,casttype=ArgoWorkflowOperation"`
// Parameters is the list of parameters to pass to resolved Argo Workflow object
- // +listType=triggerParameters
+
Parameters []TriggerParameter `json:"parameters,omitempty" protobuf:"bytes,3,rep,name=parameters"`
// The unambiguous kind of this object - used in order to retrieve the appropriate kubernetes api client for this resource
- *metav1.GroupVersionResource `json:",inline" protobuf:"bytes,4,name=groupVersionResource"`
+ metav1.GroupVersionResource `json:",inline" protobuf:"bytes,4,opt,name=groupVersionResource"`
}
// HTTPTrigger is the trigger for the HTTP request
type HTTPTrigger struct {
// URL refers to the URL to send HTTP request to.
- URL string `json:"url" protobuf:"bytes,1,name=url"`
+ URL string `json:"url" protobuf:"bytes,1,opt,name=url"`
// Payload is the list of key-value extracted from an event payload to construct the HTTP request payload.
- // +listType=atomic
+
Payload []TriggerParameter `json:"payload" protobuf:"bytes,2,rep,name=payload"`
// TLS configuration for the HTTP client.
// +optional
@@ -408,29 +407,28 @@ type HTTPTrigger struct {
Method string `json:"method,omitempty" protobuf:"bytes,4,opt,name=method"`
// Parameters is the list of key-value extracted from event's payload that are applied to
// the HTTP trigger resource.
- // +listType=atomic
+
Parameters []TriggerParameter `json:"parameters,omitempty" protobuf:"bytes,5,rep,name=parameters"`
// Timeout refers to the HTTP request timeout in seconds.
// Default value is 60 seconds.
// +optional
- Timeout int `json:"timeout,omitempty" protobuf:"bytes,6,opt,name=timeout"`
+ Timeout int64 `json:"timeout,omitempty" protobuf:"varint,6,opt,name=timeout"`
// BasicAuth configuration for the http request.
// +optional
BasicAuth *BasicAuth `json:"basicAuth,omitempty" protobuf:"bytes,7,opt,name=basicAuth"`
// Headers for the HTTP request.
- // +mapType=granular
// +optional
- Headers map[string][]string `json:"headers,omitempty" protobuf:"bytes,8,opt,name=headers"`
+ Headers map[string]string `json:"headers,omitempty" protobuf:"bytes,8,rep,name=headers"`
}
// TLSConfig refers to TLS configuration for the HTTP client
type TLSConfig struct {
// CACertPath refers the file path that contains the CA cert.
- CACertPath string `json:"caCertPath" protobuf:"bytes,1,name=caCertPath"`
+ CACertPath string `json:"caCertPath" protobuf:"bytes,1,opt,name=caCertPath"`
// ClientCertPath refers the file path that contains client cert.
- ClientCertPath string `json:"clientCertPath" protobuf:"bytes,2,name=clientCertPath"`
+ ClientCertPath string `json:"clientCertPath" protobuf:"bytes,2,opt,name=clientCertPath"`
// ClientKeyPath refers the file path that contains client key.
- ClientKeyPath string `json:"clientKeyPath" protobuf:"bytes,3,name=clientKeyPath"`
+ ClientKeyPath string `json:"clientKeyPath" protobuf:"bytes,3,opt,name=clientKeyPath"`
}
// BasicAuth contains the reference to K8s secrets that holds the username and password
@@ -442,13 +440,13 @@ type BasicAuth struct {
// Namespace to read the secrets from.
// Defaults to sensor's namespace.
// +optional
- Namespace string `json:"namespace,omitempty" protobuf:"bytes,9,opt,name=namespace"`
+ Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"`
}
// AWSLambdaTrigger refers to specification of the trigger to invoke an AWS Lambda function
type AWSLambdaTrigger struct {
// FunctionName refers to the name of the function to invoke.
- FunctionName string `json:"functionName" protobuf:"bytes,1,name=functionName"`
+ FunctionName string `json:"functionName" protobuf:"bytes,1,opt,name=functionName"`
// AccessKey refers K8 secret containing aws access key
AccessKey *corev1.SecretKeySelector `json:"accessKey,omitempty" protobuf:"bytes,2,opt,name=accessKey"`
// SecretKey refers K8 secret containing aws secret key
@@ -458,13 +456,13 @@ type AWSLambdaTrigger struct {
// +optional.
Namespace string `json:"namespace,omitempty" protobuf:"bytes,4,opt,name=namespace"`
// Region is AWS region
- Region string `json:"region" protobuf:"bytes,5,name=region"`
+ Region string `json:"region" protobuf:"bytes,5,opt,name=region"`
// Payload is the list of key-value extracted from an event payload to construct the request payload.
- // +listType=payloadParameters
+
Payload []TriggerParameter `json:"payload" protobuf:"bytes,6,rep,name=payload"`
// Parameters is the list of key-value extracted from event's payload that are applied to
// the trigger resource.
- // +listType=triggerParameters
+
// +optional
Parameters []TriggerParameter `json:"parameters,omitempty" protobuf:"bytes,7,rep,name=parameters"`
}
@@ -472,33 +470,33 @@ type AWSLambdaTrigger struct {
// KafkaTrigger refers to the specification of the Kafka trigger.
type KafkaTrigger struct {
// URL of the Kafka broker.
- URL string `json:"url" protobuf:"bytes,1,name=url"`
+ URL string `json:"url" protobuf:"bytes,1,opt,name=url"`
// Name of the topic.
// More info at https://kafka.apache.org/documentation/#intro_topics
- Topic string `json:"topic" protobuf:"bytes,2,name=topic"`
+ Topic string `json:"topic" protobuf:"bytes,2,opt,name=topic"`
// Partition to write data to.
- Partition int `json:"partition" protobuf:"bytes,3,name=partition"`
+ Partition int32 `json:"partition" protobuf:"varint,3,opt,name=partition"`
// Parameters is the list of parameters that is applied to resolved Kafka trigger object.
- // +listType=triggerParameters
+
Parameters []TriggerParameter `json:"parameters,omitempty" protobuf:"bytes,4,rep,name=parameters"`
// RequiredAcks used in producer to tell the broker how many replica acknowledgements
// Defaults to 1 (Only wait for the leader to ack).
// +optional.
- RequiredAcks int `json:"requiredAcks,omitempty" protobuf:"bytes,5,opt,name=requiredAcks"`
+ RequiredAcks int32 `json:"requiredAcks,omitempty" protobuf:"varint,5,opt,name=requiredAcks"`
// Compress determines whether to compress message or not.
// Defaults to false.
// If set to true, compresses message using snappy compression.
// +optional
- Compress bool `json:"compress,omitempty" protobuf:"bytes,6,opt,name=compress"`
+ Compress bool `json:"compress,omitempty" protobuf:"varint,6,opt,name=compress"`
// FlushFrequency refers to the frequency in milliseconds to flush batches.
// Defaults to 500 milliseconds.
// +optional
- FlushFrequency int `json:"flushFrequency,omitempty" protobuf:"bytes,7,opt,name=flushFrequency"`
+ FlushFrequency int32 `json:"flushFrequency,omitempty" protobuf:"varint,7,opt,name=flushFrequency"`
// TLS configuration for the Kafka producer.
// +optional
TLS *TLSConfig `json:"tls,omitempty" protobuf:"bytes,8,opt,name=tls"`
// Payload is the list of key-value extracted from an event payload to construct the request payload.
- // +listType=payloadParameters
+
Payload []TriggerParameter `json:"payload" protobuf:"bytes,9,rep,name=payload"`
// The partitioning key for the messages put on the Kafka topic.
// Defaults to broker url.
@@ -509,14 +507,14 @@ type KafkaTrigger struct {
// NATSTrigger refers to the specification of the NATS trigger.
type NATSTrigger struct {
// URL of the NATS cluster.
- URL string `json:"url" protobuf:"bytes,1,name=url"`
+ URL string `json:"url" protobuf:"bytes,1,opt,name=url"`
// Name of the subject to put message on.
- Subject string `json:"subject" protobuf:"bytes,2,name=subject"`
+ Subject string `json:"subject" protobuf:"bytes,2,opt,name=subject"`
// Payload is the list of key-value extracted from an event payload to construct the request payload.
- // +listType=payloadParameters
+
Payload []TriggerParameter `json:"payload" protobuf:"bytes,3,rep,name=payload"`
// Parameters is the list of parameters that is applied to resolved NATS trigger object.
- // +listType=triggerParameters
+
Parameters []TriggerParameter `json:"parameters,omitempty" protobuf:"bytes,4,rep,name=parameters"`
// TLS configuration for the NATS producer.
// +optional
@@ -526,20 +524,20 @@ type NATSTrigger struct {
// CustomTrigger refers to the specification of the custom trigger.
type CustomTrigger struct {
// ServerURL is the url of the gRPC server that executes custom trigger
- ServerURL string `json:"serverURL" protobuf:"bytes,1,name=serverURL"`
+ ServerURL string `json:"serverURL" protobuf:"bytes,1,opt,name=serverURL"`
// Secure refers to type of the connection between sensor to custom trigger gRPC
- Secure bool `json:"secure" protobuf:"bytes,2,name=secure"`
+ Secure bool `json:"secure" protobuf:"varint,2,opt,name=secure"`
// CertFilePath is path to the cert file within sensor for secure connection between sensor and custom trigger gRPC server.
CertFilePath string `json:"certFilePath,omitempty" protobuf:"bytes,3,opt,name=certFilePath"`
// ServerNameOverride for the secure connection between sensor and custom trigger gRPC server.
ServerNameOverride string `json:"serverNameOverride,omitempty" protobuf:"bytes,4,opt,name=serverNameOverride"`
// Spec is the custom trigger resource specification that custom trigger gRPC server knows how to interpret.
- Spec map[string]string `json:"spec" protobuf:"bytes,5,name=spec"`
+ Spec map[string]string `json:"spec" protobuf:"bytes,5,rep,name=spec"`
// Parameters is the list of parameters that is applied to resolved custom trigger trigger object.
- // +listType=triggerParameters
+
Parameters []TriggerParameter `json:"parameters,omitempty" protobuf:"bytes,6,rep,name=parameters"`
// Payload is the list of key-value extracted from an event payload to construct the request payload.
- // +listType=payloadParameters
+
Payload []TriggerParameter `json:"payload" protobuf:"bytes,7,rep,name=payload"`
}
@@ -547,11 +545,11 @@ type CustomTrigger struct {
type SlackTrigger struct {
// Parameters is the list of key-value extracted from event's payload that are applied to
// the trigger resource.
- // +listType=triggerParameters
+
// +optional
Parameters []TriggerParameter `json:"parameters,omitempty" protobuf:"bytes,1,rep,name=parameters"`
// SlackToken refers to the Kubernetes secret that holds the slack token required to send messages.
- SlackToken *corev1.SecretKeySelector `json:"slackToken" protobuf:"bytes,2,name=slackToken"`
+ SlackToken *corev1.SecretKeySelector `json:"slackToken,omitempty" protobuf:"bytes,2,opt,name=slackToken"`
// Namespace to read the password secret from.
// This is required if the password secret selector is specified.
// +optional
@@ -567,7 +565,7 @@ type SlackTrigger struct {
// OpenWhiskTrigger refers to the specification of the OpenWhisk trigger.
type OpenWhiskTrigger struct {
// Host URL of the OpenWhisk.
- Host string `json:"host" protobuf:"bytes,1,name=host"`
+ Host string `json:"host" protobuf:"bytes,1,opt,name=host"`
// Version for the API.
// Defaults to v1.
// +optional
@@ -580,13 +578,13 @@ type OpenWhiskTrigger struct {
// +optional
AuthToken *corev1.SecretKeySelector `json:"authToken,omitempty" protobuf:"bytes,4,opt,name=authToken"`
// Name of the action/function.
- ActionName string `json:"actionName" protobuf:"bytes,5,name=actionName"`
+ ActionName string `json:"actionName" protobuf:"bytes,5,opt,name=actionName"`
// Payload is the list of key-value extracted from an event payload to construct the request payload.
- // +listType=payloadParameters
+
Payload []TriggerParameter `json:"payload" protobuf:"bytes,6,rep,name=payload"`
// Parameters is the list of key-value extracted from event's payload that are applied to
// the trigger resource.
- // +listType=triggerParameters
+
// +optional
Parameters []TriggerParameter `json:"parameters,omitempty" protobuf:"bytes,7,rep,name=parameters"`
}
@@ -609,15 +607,15 @@ const (
// TriggerParameter indicates a passed parameter to a service template
type TriggerParameter struct {
// Src contains a source reference to the value of the parameter from a dependency
- Src *TriggerParameterSource `json:"src" protobuf:"bytes,1,name=src"`
+ Src *TriggerParameterSource `json:"src,omitempty" protobuf:"bytes,1,opt,name=src"`
// Dest is the JSONPath of a resource key.
// A path is a series of keys separated by a dot. The colon character can be escaped with '.'
// The -1 key can be used to append a value to an existing array.
// See https://github.com/tidwall/sjson#path-syntax for more information about how this is used.
- Dest string `json:"dest" protobuf:"bytes,2,name=dest"`
+ Dest string `json:"dest" protobuf:"bytes,2,opt,name=dest"`
// Operation is what to do with the existing value at Dest, whether to
// 'prepend', 'overwrite', or 'append' it.
- Operation TriggerParameterOperation `json:"operation,omitempty" protobuf:"bytes,3,opt,name=operation"`
+ Operation TriggerParameterOperation `json:"operation,omitempty" protobuf:"bytes,3,opt,name=operation,casttype=TriggerParameterOperation"`
}
// TriggerParameterSource defines the source for a parameter from a event event
@@ -639,61 +637,57 @@ type TriggerParameterSource struct {
// DataKey is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'.
// To access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\'.
// See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.
- DataKey string `json:"dataKey,omitempty" protobuf:"bytes,3,opt,name=dataKey"`
+ DataKey string `json:"dataKey,omitempty" protobuf:"bytes,4,opt,name=dataKey"`
// DataTemplate is a go-template for extracting a string from the event's data.
// If a DataTemplate is provided with a DataKey, the template will be evaluated first and fallback to the DataKey.
// The templating follows the standard go-template syntax as well as sprig's extra functions.
// See https://pkg.go.dev/text/template and https://masterminds.github.io/sprig/
- DataTemplate string `json:"dataTemplate,omitempty" protobuf:"bytes,4,opt,name=dataTemplate"`
+ DataTemplate string `json:"dataTemplate,omitempty" protobuf:"bytes,5,opt,name=dataTemplate"`
// Value is the default literal value to use for this parameter source
// This is only used if the DataKey is invalid.
// If the DataKey is invalid and this is not defined, this param source will produce an error.
- Value *string `json:"value,omitempty" protobuf:"bytes,5,opt,name=value"`
+ Value *string `json:"value,omitempty" protobuf:"bytes,6,opt,name=value"`
}
// TriggerPolicy dictates the policy for the trigger retries
type TriggerPolicy struct {
- // K8sResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels
- K8s *K8sResourcePolicy `json:"k8s,omitempty" protobuf:"bytes,1,opt,name=k8s"`
+ // K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels
+ K8s *K8SResourcePolicy `json:"k8s,omitempty" protobuf:"bytes,1,opt,name=k8s"`
// Status refers to the policy used to check the state of the trigger using response status
Status *StatusPolicy `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"`
}
-// K8sResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels
-type K8sResourcePolicy struct {
+// K8SResourcePolicy refers to the policy used to check the state of K8s based triggers using using labels
+type K8SResourcePolicy struct {
// Labels required to identify whether a resource is in success state
- Labels map[string]string `json:"labels" protobuf:"bytes,1,name=labels"`
+ Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,1,rep,name=labels"`
// Backoff before checking resource state
- Backoff wait.Backoff `json:"backoff" protobuf:"bytes,2,name=backoff"`
+ Backoff apicommon.Backoff `json:"backoff" protobuf:"bytes,2,opt,name=backoff"`
// ErrorOnBackoffTimeout determines whether sensor should transition to error state if the trigger policy is unable to determine
// the state of the resource
- ErrorOnBackoffTimeout bool `json:"errorOnBackoffTimeout" protobuf:"bytes,3,name=errorOnBackoffTimeout"`
+ ErrorOnBackoffTimeout bool `json:"errorOnBackoffTimeout" protobuf:"varint,3,opt,name=errorOnBackoffTimeout"`
}
// StatusPolicy refers to the policy used to check the state of the trigger using response status
type StatusPolicy struct {
// Allow refers to the list of allowed response statuses. If the response status of the the trigger is within the list,
// the trigger will marked as successful else it will result in trigger failure.
- // +listType=allowedStatuses
- Allow []int `json:"allow" protobuf:"bytes,1,name=allow"`
+
+ Allow []int32 `json:"allow" protobuf:"varint,1,rep,name=allow"`
}
-// Backoff for an operation
-type Backoff struct {
- // Duration is the duration in nanoseconds
- Duration time.Duration `json:"duration" protobuf:"bytes,1,opt,name=duration"`
- // Duration is multiplied by factor each iteration
- Factor float64 `json:"factor" protobuf:"bytes,2,opt,name=factor"`
- // The amount of jitter applied each iteration
- Jitter float64 `json:"jitter" protobuf:"bytes,3,opt,name=jitter"`
- // Exit with error after this many steps
- Steps int `json:"steps" protobuf:"bytes,4,opt,name=steps"`
+func (in *StatusPolicy) GetAllow() []int {
+ statuses := make([]int, len(in.Allow))
+ for i, s := range in.Allow {
+ statuses[i] = int(s)
+ }
+ return statuses
}
// SensorResources holds the metadata of the resources created for the sensor
type SensorResources struct {
// Deployment holds the metadata of the deployment for the sensor
- Deployment *metav1.ObjectMeta `json:"deployment" protobuf:"bytes,1,name=deployment"`
+ Deployment *metav1.ObjectMeta `json:"deployment,omitempty" protobuf:"bytes,1,opt,name=deployment"`
// Service holds the metadata of the service for the sensor
// +optional
Service *metav1.ObjectMeta `json:"service,omitempty" protobuf:"bytes,2,opt,name=service"`
@@ -702,7 +696,7 @@ type SensorResources struct {
// SensorStatus contains information about the status of a sensor.
type SensorStatus struct {
// Phase is the high-level summary of the sensor.
- Phase NodePhase `json:"phase" protobuf:"bytes,1,opt,name=phase"`
+ Phase NodePhase `json:"phase" protobuf:"bytes,1,opt,name=phase,casttype=NodePhase"`
// StartedAt is the time at which this sensor was initiated
StartedAt metav1.Time `json:"startedAt,omitempty" protobuf:"bytes,2,opt,name=startedAt"`
// CompletedAt is the time at which this sensor was completed
@@ -715,11 +709,11 @@ type SensorStatus struct {
// TriggerCycleCount is the count of sensor's trigger cycle runs.
TriggerCycleCount int32 `json:"triggerCycleCount,omitempty" protobuf:"varint,6,opt,name=triggerCycleCount"`
// TriggerCycleState is the status from last cycle of triggers execution.
- TriggerCycleStatus TriggerCycleState `json:"triggerCycleStatus" protobuf:"bytes,7,opt,name=triggerCycleStatus"`
+ TriggerCycleStatus TriggerCycleState `json:"triggerCycleStatus" protobuf:"bytes,7,opt,name=triggerCycleStatus,casttype=TriggerCycleState"`
// LastCycleTime is the time when last trigger cycle completed
LastCycleTime metav1.Time `json:"lastCycleTime" protobuf:"bytes,8,opt,name=lastCycleTime"`
// Resources refers to metadata of the resources created for the sensor
- Resources *SensorResources `json:"resources" protobuf:"bytes,9,name=resources"`
+ Resources *SensorResources `json:"resources,omitempty" protobuf:"bytes,9,opt,name=resources"`
}
// NodeStatus describes the status for an individual node in the sensor's FSM.
@@ -733,9 +727,9 @@ type NodeStatus struct {
// DisplayName is the human readable representation of the node
DisplayName string `json:"displayName" protobuf:"bytes,3,opt,name=displayName"`
// Type is the type of the node
- Type NodeType `json:"type" protobuf:"bytes,4,opt,name=type"`
+ Type NodeType `json:"type" protobuf:"bytes,4,opt,name=type,casttype=NodeType"`
// Phase of the node
- Phase NodePhase `json:"phase" protobuf:"bytes,5,opt,name=phase"`
+ Phase NodePhase `json:"phase" protobuf:"bytes,5,opt,name=phase,casttype=NodePhase"`
// StartedAt is the time at which this node started
StartedAt metav1.MicroTime `json:"startedAt,omitempty" protobuf:"bytes,6,opt,name=startedAt"`
// CompletedAt is the time at which this node completed
@@ -750,54 +744,54 @@ type NodeStatus struct {
ResolvedAt metav1.MicroTime `json:"resolvedAt,omitempty" protobuf:"bytes,11,opt,name=resolvedAt"`
}
-// ArtifactLocation describes the source location for an external minio
+// ArtifactLocation describes the source location for an external artifact
type ArtifactLocation struct {
- // S3 compliant minio
+ // S3 compliant artifact
S3 *apicommon.S3Artifact `json:"s3,omitempty" protobuf:"bytes,1,opt,name=s3"`
- // Inline minio is embedded in sensor spec as a string
+ // Inline artifact is embedded in sensor spec as a string
Inline *string `json:"inline,omitempty" protobuf:"bytes,2,opt,name=inline"`
- // File minio is minio stored in a file
+ // File artifact is artifact stored in a file
File *FileArtifact `json:"file,omitempty" protobuf:"bytes,3,opt,name=file"`
- // URL to fetch the minio from
+ // URL to fetch the artifact from
URL *URLArtifact `json:"url,omitempty" protobuf:"bytes,4,opt,name=url"`
- // Configmap that stores the minio
+ // Configmap that stores the artifact
Configmap *ConfigmapArtifact `json:"configmap,omitempty" protobuf:"bytes,5,opt,name=configmap"`
- // Git repository hosting the minio
+ // Git repository hosting the artifact
Git *GitArtifact `json:"git,omitempty" protobuf:"bytes,6,opt,name=git"`
// Resource is generic template for K8s resource
- Resource *unstructured.Unstructured `json:"resource,omitempty" protobuf:"bytes,7,opt,name=resource"`
+ Resource *apicommon.Resource `json:"resource,omitempty" protobuf:"bytes,7,opt,name=resource"`
}
-// ConfigmapArtifact contains information about minio in k8 configmap
+// ConfigmapArtifact contains information about artifact in k8 configmap
type ConfigmapArtifact struct {
// Name of the configmap
- Name string `json:"name" protobuf:"bytes,1,name=name"`
+ Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
// Namespace where configmap is deployed
- Namespace string `json:"namespace" protobuf:"bytes,2,name=namespace"`
+ Namespace string `json:"namespace" protobuf:"bytes,2,opt,name=namespace"`
// Key within configmap data which contains trigger resource definition
- Key string `json:"key" protobuf:"bytes,3,name=key"`
+ Key string `json:"key" protobuf:"bytes,3,opt,name=key"`
}
-// FileArtifact contains information about an minio in a filesystem
+// FileArtifact contains information about an artifact in a filesystem
type FileArtifact struct {
Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"`
}
-// URLArtifact contains information about an minio at an http endpoint.
+// URLArtifact contains information about an artifact at an http endpoint.
type URLArtifact struct {
// Path is the complete URL
- Path string `json:"path" protobuf:"bytes,1,name=path"`
+ Path string `json:"path" protobuf:"bytes,1,opt,name=path"`
// VerifyCert decides whether the connection is secure or not
- VerifyCert bool `json:"verifyCert,omitempty" protobuf:"bytes,2,opt,name=verifyCert"`
+ VerifyCert bool `json:"verifyCert,omitempty" protobuf:"varint,2,opt,name=verifyCert"`
}
-// GitArtifact contains information about an minio stored in git
+// GitArtifact contains information about an artifact stored in git
type GitArtifact struct {
// Git URL
- URL string `json:"url" protobuf:"bytes,1,name=url"`
+ URL string `json:"url" protobuf:"bytes,1,opt,name=url"`
// Directory to clone the repository. We clone complete directory because GitArtifact is not limited to any specific Git service providers.
// Hence we don't use any specific git provider client.
- CloneDirectory string `json:"cloneDirectory" protobuf:"bytes,2,name=cloneDirectory"`
+ CloneDirectory string `json:"cloneDirectory" protobuf:"bytes,2,opt,name=cloneDirectory"`
// Creds contain reference to git username and password
// +optional
Creds *GitCreds `json:"creds,omitempty" protobuf:"bytes,3,opt,name=creds"`
@@ -809,7 +803,7 @@ type GitArtifact struct {
// +optional
SSHKeyPath string `json:"sshKeyPath,omitempty" protobuf:"bytes,5,opt,name=sshKeyPath"`
// Path to file that contains trigger resource definition
- FilePath string `json:"filePath" protobuf:"bytes,6,name=filePath"`
+ FilePath string `json:"filePath" protobuf:"bytes,6,opt,name=filePath"`
// Branch to use to pull trigger resource
// +optional
Branch string `json:"branch,omitempty" protobuf:"bytes,7,opt,name=branch"`
@@ -823,14 +817,14 @@ type GitArtifact struct {
// Remote to manage set of tracked repositories. Defaults to "origin".
// Refer https://git-scm.com/docs/git-remote
// +optional
- Remote *GitRemoteConfig `json:"remote" protobuf:"bytes,10,opt,name=remote"`
+ Remote *GitRemoteConfig `json:"remote,omitempty" protobuf:"bytes,10,opt,name=remote"`
}
// GitRemoteConfig contains the configuration of a Git remote
type GitRemoteConfig struct {
// Name of the remote to fetch from.
- Name string `json:"name" protobuf:"bytes,1,name=name"`
- // +listType=urls
+ Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
+
// URLs the URLs of a remote repository. It must be non-empty. Fetch will
// always use the first URL, while push will use all of them.
URLS []string `json:"urls" protobuf:"bytes,2,rep,name=urls"`
@@ -838,35 +832,35 @@ type GitRemoteConfig struct {
// GitCreds contain reference to git username and password
type GitCreds struct {
- Username *corev1.SecretKeySelector `json:"username" protobuf:"bytes,1,opt,name=username"`
- Password *corev1.SecretKeySelector `json:"password" protobuf:"bytes,2,opt,name=password"`
+ Username *corev1.SecretKeySelector `json:"username,omitempty" protobuf:"bytes,1,opt,name=username"`
+ Password *corev1.SecretKeySelector `json:"password,omitempty" protobuf:"bytes,2,opt,name=password"`
}
// Event represents the cloudevent received from a gateway.
type Event struct {
- Context *EventContext `json:"context" protobuf:"bytes,1,name=context"`
- Data []byte `json:"data" protobuf:"bytes,2,name=data"`
+ Context *EventContext `json:"context,omitempty" protobuf:"bytes,1,opt,name=context"`
+ Data []byte `json:"data" protobuf:"bytes,2,opt,name=data"`
}
// EventContext holds the context of the cloudevent received from a gateway.
type EventContext struct {
// ID of the event; must be non-empty and unique within the scope of the producer.
- ID string `json:"id" protobuf:"bytes,1,name=id"`
+ ID string `json:"id" protobuf:"bytes,1,opt,name=id"`
// Source - A URI describing the event producer.
- Source string `json:"source" protobuf:"bytes,2,name=source"`
+ Source string `json:"source" protobuf:"bytes,2,opt,name=source"`
// SpecVersion - The version of the CloudEvents specification used by the event.
- SpecVersion string `json:"specversion" protobuf:"bytes,3,name=specVersion"`
+ SpecVersion string `json:"specversion" protobuf:"bytes,3,opt,name=specversion"`
// Type - The type of the occurrence which has happened.
- Type string `json:"type" protobuf:"bytes,4,name=type"`
+ Type string `json:"type" protobuf:"bytes,4,opt,name=type"`
// DataContentType - A MIME (RFC2046) string describing the media type of `data`.
- DataContentType string `json:"dataContentType" protobuf:"bytes,5,name=dataContentType"`
+ DataContentType string `json:"dataContentType" protobuf:"bytes,5,opt,name=dataContentType"`
// Subject - The subject of the event in the context of the event producer
- Subject string `json:"subject" protobuf:"bytes,6,name=subject"`
+ Subject string `json:"subject" protobuf:"bytes,6,opt,name=subject"`
// Time - A Timestamp when the event happened.
- Time metav1.Time `json:"time" protobuf:"bytes,7,name=time"`
+ Time metav1.Time `json:"time" protobuf:"bytes,7,opt,name=time"`
}
-// HasLocation whether or not an minio has a location defined
+// HasLocation whether or not an artifact has a location defined
func (a *ArtifactLocation) HasLocation() bool {
return a.S3 != nil || a.Inline != nil || a.File != nil || a.URL != nil
}
diff --git a/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go
index f8da7f46bb..94126c1ad4 100644
--- a/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go
+++ b/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go
@@ -82,11 +82,7 @@ func (in *ArgoWorkflowTrigger) DeepCopyInto(out *ArgoWorkflowTrigger) {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
- if in.GroupVersionResource != nil {
- in, out := &in.GroupVersionResource, &out.GroupVersionResource
- *out = new(metav1.GroupVersionResource)
- **out = **in
- }
+ out.GroupVersionResource = in.GroupVersionResource
return
}
@@ -135,7 +131,8 @@ func (in *ArtifactLocation) DeepCopyInto(out *ArtifactLocation) {
}
if in.Resource != nil {
in, out := &in.Resource, &out.Resource
- *out = (*in).DeepCopy()
+ *out = new(common.Resource)
+ (*in).DeepCopyInto(*out)
}
return
}
@@ -150,22 +147,6 @@ func (in *ArtifactLocation) DeepCopy() *ArtifactLocation {
return out
}
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *Backoff) DeepCopyInto(out *Backoff) {
- *out = *in
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backoff.
-func (in *Backoff) DeepCopy() *Backoff {
- if in == nil {
- return nil
- }
- out := new(Backoff)
- in.DeepCopyInto(out)
- return out
-}
-
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *BasicAuth) DeepCopyInto(out *BasicAuth) {
*out = *in
@@ -518,17 +499,9 @@ func (in *HTTPTrigger) DeepCopyInto(out *HTTPTrigger) {
}
if in.Headers != nil {
in, out := &in.Headers, &out.Headers
- *out = make(map[string][]string, len(*in))
+ *out = make(map[string]string, len(*in))
for key, val := range *in {
- var outVal []string
- if val == nil {
- (*out)[key] = nil
- } else {
- in, out := &val, &outVal
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- (*out)[key] = outVal
+ (*out)[key] = val
}
}
return
@@ -545,7 +518,7 @@ func (in *HTTPTrigger) DeepCopy() *HTTPTrigger {
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *K8sResourcePolicy) DeepCopyInto(out *K8sResourcePolicy) {
+func (in *K8SResourcePolicy) DeepCopyInto(out *K8SResourcePolicy) {
*out = *in
if in.Labels != nil {
in, out := &in.Labels, &out.Labels
@@ -554,16 +527,16 @@ func (in *K8sResourcePolicy) DeepCopyInto(out *K8sResourcePolicy) {
(*out)[key] = val
}
}
- out.Backoff = in.Backoff
+ in.Backoff.DeepCopyInto(&out.Backoff)
return
}
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sResourcePolicy.
-func (in *K8sResourcePolicy) DeepCopy() *K8sResourcePolicy {
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8SResourcePolicy.
+func (in *K8SResourcePolicy) DeepCopy() *K8SResourcePolicy {
if in == nil {
return nil
}
- out := new(K8sResourcePolicy)
+ out := new(K8SResourcePolicy)
in.DeepCopyInto(out)
return out
}
@@ -918,13 +891,9 @@ func (in *SlackTrigger) DeepCopy() *SlackTrigger {
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *StandardK8sTrigger) DeepCopyInto(out *StandardK8sTrigger) {
+func (in *StandardK8STrigger) DeepCopyInto(out *StandardK8STrigger) {
*out = *in
- if in.GroupVersionResource != nil {
- in, out := &in.GroupVersionResource, &out.GroupVersionResource
- *out = new(metav1.GroupVersionResource)
- **out = **in
- }
+ out.GroupVersionResource = in.GroupVersionResource
if in.Source != nil {
in, out := &in.Source, &out.Source
*out = new(ArtifactLocation)
@@ -940,12 +909,12 @@ func (in *StandardK8sTrigger) DeepCopyInto(out *StandardK8sTrigger) {
return
}
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandardK8sTrigger.
-func (in *StandardK8sTrigger) DeepCopy() *StandardK8sTrigger {
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandardK8STrigger.
+func (in *StandardK8STrigger) DeepCopy() *StandardK8STrigger {
if in == nil {
return nil
}
- out := new(StandardK8sTrigger)
+ out := new(StandardK8STrigger)
in.DeepCopyInto(out)
return out
}
@@ -955,7 +924,7 @@ func (in *StatusPolicy) DeepCopyInto(out *StatusPolicy) {
*out = *in
if in.Allow != nil {
in, out := &in.Allow, &out.Allow
- *out = make([]int, len(*in))
+ *out = make([]int32, len(*in))
copy(*out, *in)
}
return
@@ -1147,7 +1116,7 @@ func (in *TriggerPolicy) DeepCopyInto(out *TriggerPolicy) {
*out = *in
if in.K8s != nil {
in, out := &in.K8s, &out.K8s
- *out = new(K8sResourcePolicy)
+ *out = new(K8SResourcePolicy)
(*in).DeepCopyInto(*out)
}
if in.Status != nil {
@@ -1204,7 +1173,7 @@ func (in *TriggerTemplate) DeepCopyInto(out *TriggerTemplate) {
}
if in.K8s != nil {
in, out := &in.K8s, &out.K8s
- *out = new(StandardK8sTrigger)
+ *out = new(StandardK8STrigger)
(*in).DeepCopyInto(*out)
}
if in.ArgoWorkflow != nil {
diff --git a/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/eventbus.go b/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/eventbus.go
index 4d0408f578..5bafcfac89 100644
--- a/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/eventbus.go
+++ b/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/eventbus.go
@@ -29,10 +29,10 @@ import (
rest "k8s.io/client-go/rest"
)
-// EventBusesGetter has a method to return a EventBusInterface.
+// EventBusGetter has a method to return a EventBusInterface.
// A group's client should implement this interface.
-type EventBusesGetter interface {
- EventBuses(namespace string) EventBusInterface
+type EventBusGetter interface {
+ EventBus(namespace string) EventBusInterface
}
// EventBusInterface has methods to work with EventBus resources.
@@ -49,26 +49,26 @@ type EventBusInterface interface {
EventBusExpansion
}
-// eventBuses implements EventBusInterface
-type eventBuses struct {
+// eventBus implements EventBusInterface
+type eventBus struct {
client rest.Interface
ns string
}
-// newEventBuses returns a EventBuses
-func newEventBuses(c *ArgoprojV1alpha1Client, namespace string) *eventBuses {
- return &eventBuses{
+// newEventBus returns a EventBus
+func newEventBus(c *ArgoprojV1alpha1Client, namespace string) *eventBus {
+ return &eventBus{
client: c.RESTClient(),
ns: namespace,
}
}
// Get takes name of the eventBus, and returns the corresponding eventBus object, and an error if there is any.
-func (c *eventBuses) Get(name string, options v1.GetOptions) (result *v1alpha1.EventBus, err error) {
+func (c *eventBus) Get(name string, options v1.GetOptions) (result *v1alpha1.EventBus, err error) {
result = &v1alpha1.EventBus{}
err = c.client.Get().
Namespace(c.ns).
- Resource("eventbuses").
+ Resource("eventbus").
Name(name).
VersionedParams(&options, scheme.ParameterCodec).
Do().
@@ -76,8 +76,8 @@ func (c *eventBuses) Get(name string, options v1.GetOptions) (result *v1alpha1.E
return
}
-// List takes label and field selectors, and returns the list of EventBuses that match those selectors.
-func (c *eventBuses) List(opts v1.ListOptions) (result *v1alpha1.EventBusList, err error) {
+// List takes label and field selectors, and returns the list of EventBus that match those selectors.
+func (c *eventBus) List(opts v1.ListOptions) (result *v1alpha1.EventBusList, err error) {
var timeout time.Duration
if opts.TimeoutSeconds != nil {
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
@@ -85,7 +85,7 @@ func (c *eventBuses) List(opts v1.ListOptions) (result *v1alpha1.EventBusList, e
result = &v1alpha1.EventBusList{}
err = c.client.Get().
Namespace(c.ns).
- Resource("eventbuses").
+ Resource("eventbus").
VersionedParams(&opts, scheme.ParameterCodec).
Timeout(timeout).
Do().
@@ -93,8 +93,8 @@ func (c *eventBuses) List(opts v1.ListOptions) (result *v1alpha1.EventBusList, e
return
}
-// Watch returns a watch.Interface that watches the requested eventBuses.
-func (c *eventBuses) Watch(opts v1.ListOptions) (watch.Interface, error) {
+// Watch returns a watch.Interface that watches the requested eventBus.
+func (c *eventBus) Watch(opts v1.ListOptions) (watch.Interface, error) {
var timeout time.Duration
if opts.TimeoutSeconds != nil {
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
@@ -102,18 +102,18 @@ func (c *eventBuses) Watch(opts v1.ListOptions) (watch.Interface, error) {
opts.Watch = true
return c.client.Get().
Namespace(c.ns).
- Resource("eventbuses").
+ Resource("eventbus").
VersionedParams(&opts, scheme.ParameterCodec).
Timeout(timeout).
Watch()
}
// Create takes the representation of a eventBus and creates it. Returns the server's representation of the eventBus, and an error, if there is any.
-func (c *eventBuses) Create(eventBus *v1alpha1.EventBus) (result *v1alpha1.EventBus, err error) {
+func (c *eventBus) Create(eventBus *v1alpha1.EventBus) (result *v1alpha1.EventBus, err error) {
result = &v1alpha1.EventBus{}
err = c.client.Post().
Namespace(c.ns).
- Resource("eventbuses").
+ Resource("eventbus").
Body(eventBus).
Do().
Into(result)
@@ -121,11 +121,11 @@ func (c *eventBuses) Create(eventBus *v1alpha1.EventBus) (result *v1alpha1.Event
}
// Update takes the representation of a eventBus and updates it. Returns the server's representation of the eventBus, and an error, if there is any.
-func (c *eventBuses) Update(eventBus *v1alpha1.EventBus) (result *v1alpha1.EventBus, err error) {
+func (c *eventBus) Update(eventBus *v1alpha1.EventBus) (result *v1alpha1.EventBus, err error) {
result = &v1alpha1.EventBus{}
err = c.client.Put().
Namespace(c.ns).
- Resource("eventbuses").
+ Resource("eventbus").
Name(eventBus.Name).
Body(eventBus).
Do().
@@ -136,11 +136,11 @@ func (c *eventBuses) Update(eventBus *v1alpha1.EventBus) (result *v1alpha1.Event
// UpdateStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *eventBuses) UpdateStatus(eventBus *v1alpha1.EventBus) (result *v1alpha1.EventBus, err error) {
+func (c *eventBus) UpdateStatus(eventBus *v1alpha1.EventBus) (result *v1alpha1.EventBus, err error) {
result = &v1alpha1.EventBus{}
err = c.client.Put().
Namespace(c.ns).
- Resource("eventbuses").
+ Resource("eventbus").
Name(eventBus.Name).
SubResource("status").
Body(eventBus).
@@ -150,10 +150,10 @@ func (c *eventBuses) UpdateStatus(eventBus *v1alpha1.EventBus) (result *v1alpha1
}
// Delete takes name of the eventBus and deletes it. Returns an error if one occurs.
-func (c *eventBuses) Delete(name string, options *v1.DeleteOptions) error {
+func (c *eventBus) Delete(name string, options *v1.DeleteOptions) error {
return c.client.Delete().
Namespace(c.ns).
- Resource("eventbuses").
+ Resource("eventbus").
Name(name).
Body(options).
Do().
@@ -161,14 +161,14 @@ func (c *eventBuses) Delete(name string, options *v1.DeleteOptions) error {
}
// DeleteCollection deletes a collection of objects.
-func (c *eventBuses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
+func (c *eventBus) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
var timeout time.Duration
if listOptions.TimeoutSeconds != nil {
timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
}
return c.client.Delete().
Namespace(c.ns).
- Resource("eventbuses").
+ Resource("eventbus").
VersionedParams(&listOptions, scheme.ParameterCodec).
Timeout(timeout).
Body(options).
@@ -177,11 +177,11 @@ func (c *eventBuses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.
}
// Patch applies the patch and returns the patched eventBus.
-func (c *eventBuses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.EventBus, err error) {
+func (c *eventBus) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.EventBus, err error) {
result = &v1alpha1.EventBus{}
err = c.client.Patch(pt).
Namespace(c.ns).
- Resource("eventbuses").
+ Resource("eventbus").
SubResource(subresources...).
Name(name).
Body(data).
diff --git a/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/eventbus_client.go b/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/eventbus_client.go
index 2675ad240d..36c8ba169c 100644
--- a/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/eventbus_client.go
+++ b/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/eventbus_client.go
@@ -26,7 +26,7 @@ import (
type ArgoprojV1alpha1Interface interface {
RESTClient() rest.Interface
- EventBusesGetter
+ EventBusGetter
}
// ArgoprojV1alpha1Client is used to interact with features provided by the argoproj.io group.
@@ -34,8 +34,8 @@ type ArgoprojV1alpha1Client struct {
restClient rest.Interface
}
-func (c *ArgoprojV1alpha1Client) EventBuses(namespace string) EventBusInterface {
- return newEventBuses(c, namespace)
+func (c *ArgoprojV1alpha1Client) EventBus(namespace string) EventBusInterface {
+ return newEventBus(c, namespace)
}
// NewForConfig creates a new ArgoprojV1alpha1Client for the given config.
diff --git a/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/fake/fake_eventbus.go b/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/fake/fake_eventbus.go
index 222291c4d4..4e0f207079 100644
--- a/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/fake/fake_eventbus.go
+++ b/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/fake/fake_eventbus.go
@@ -28,20 +28,20 @@ import (
testing "k8s.io/client-go/testing"
)
-// FakeEventBuses implements EventBusInterface
-type FakeEventBuses struct {
+// FakeEventBus implements EventBusInterface
+type FakeEventBus struct {
Fake *FakeArgoprojV1alpha1
ns string
}
-var eventbusesResource = schema.GroupVersionResource{Group: "argoproj.io", Version: "v1alpha1", Resource: "eventbuses"}
+var eventbusResource = schema.GroupVersionResource{Group: "argoproj.io", Version: "v1alpha1", Resource: "eventbus"}
-var eventbusesKind = schema.GroupVersionKind{Group: "argoproj.io", Version: "v1alpha1", Kind: "EventBus"}
+var eventbusKind = schema.GroupVersionKind{Group: "argoproj.io", Version: "v1alpha1", Kind: "EventBus"}
// Get takes name of the eventBus, and returns the corresponding eventBus object, and an error if there is any.
-func (c *FakeEventBuses) Get(name string, options v1.GetOptions) (result *v1alpha1.EventBus, err error) {
+func (c *FakeEventBus) Get(name string, options v1.GetOptions) (result *v1alpha1.EventBus, err error) {
obj, err := c.Fake.
- Invokes(testing.NewGetAction(eventbusesResource, c.ns, name), &v1alpha1.EventBus{})
+ Invokes(testing.NewGetAction(eventbusResource, c.ns, name), &v1alpha1.EventBus{})
if obj == nil {
return nil, err
@@ -49,10 +49,10 @@ func (c *FakeEventBuses) Get(name string, options v1.GetOptions) (result *v1alph
return obj.(*v1alpha1.EventBus), err
}
-// List takes label and field selectors, and returns the list of EventBuses that match those selectors.
-func (c *FakeEventBuses) List(opts v1.ListOptions) (result *v1alpha1.EventBusList, err error) {
+// List takes label and field selectors, and returns the list of EventBus that match those selectors.
+func (c *FakeEventBus) List(opts v1.ListOptions) (result *v1alpha1.EventBusList, err error) {
obj, err := c.Fake.
- Invokes(testing.NewListAction(eventbusesResource, eventbusesKind, c.ns, opts), &v1alpha1.EventBusList{})
+ Invokes(testing.NewListAction(eventbusResource, eventbusKind, c.ns, opts), &v1alpha1.EventBusList{})
if obj == nil {
return nil, err
@@ -71,17 +71,17 @@ func (c *FakeEventBuses) List(opts v1.ListOptions) (result *v1alpha1.EventBusLis
return list, err
}
-// Watch returns a watch.Interface that watches the requested eventBuses.
-func (c *FakeEventBuses) Watch(opts v1.ListOptions) (watch.Interface, error) {
+// Watch returns a watch.Interface that watches the requested eventBus.
+func (c *FakeEventBus) Watch(opts v1.ListOptions) (watch.Interface, error) {
return c.Fake.
- InvokesWatch(testing.NewWatchAction(eventbusesResource, c.ns, opts))
+ InvokesWatch(testing.NewWatchAction(eventbusResource, c.ns, opts))
}
// Create takes the representation of a eventBus and creates it. Returns the server's representation of the eventBus, and an error, if there is any.
-func (c *FakeEventBuses) Create(eventBus *v1alpha1.EventBus) (result *v1alpha1.EventBus, err error) {
+func (c *FakeEventBus) Create(eventBus *v1alpha1.EventBus) (result *v1alpha1.EventBus, err error) {
obj, err := c.Fake.
- Invokes(testing.NewCreateAction(eventbusesResource, c.ns, eventBus), &v1alpha1.EventBus{})
+ Invokes(testing.NewCreateAction(eventbusResource, c.ns, eventBus), &v1alpha1.EventBus{})
if obj == nil {
return nil, err
@@ -90,9 +90,9 @@ func (c *FakeEventBuses) Create(eventBus *v1alpha1.EventBus) (result *v1alpha1.E
}
// Update takes the representation of a eventBus and updates it. Returns the server's representation of the eventBus, and an error, if there is any.
-func (c *FakeEventBuses) Update(eventBus *v1alpha1.EventBus) (result *v1alpha1.EventBus, err error) {
+func (c *FakeEventBus) Update(eventBus *v1alpha1.EventBus) (result *v1alpha1.EventBus, err error) {
obj, err := c.Fake.
- Invokes(testing.NewUpdateAction(eventbusesResource, c.ns, eventBus), &v1alpha1.EventBus{})
+ Invokes(testing.NewUpdateAction(eventbusResource, c.ns, eventBus), &v1alpha1.EventBus{})
if obj == nil {
return nil, err
@@ -102,9 +102,9 @@ func (c *FakeEventBuses) Update(eventBus *v1alpha1.EventBus) (result *v1alpha1.E
// UpdateStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeEventBuses) UpdateStatus(eventBus *v1alpha1.EventBus) (*v1alpha1.EventBus, error) {
+func (c *FakeEventBus) UpdateStatus(eventBus *v1alpha1.EventBus) (*v1alpha1.EventBus, error) {
obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceAction(eventbusesResource, "status", c.ns, eventBus), &v1alpha1.EventBus{})
+ Invokes(testing.NewUpdateSubresourceAction(eventbusResource, "status", c.ns, eventBus), &v1alpha1.EventBus{})
if obj == nil {
return nil, err
@@ -113,25 +113,25 @@ func (c *FakeEventBuses) UpdateStatus(eventBus *v1alpha1.EventBus) (*v1alpha1.Ev
}
// Delete takes name of the eventBus and deletes it. Returns an error if one occurs.
-func (c *FakeEventBuses) Delete(name string, options *v1.DeleteOptions) error {
+func (c *FakeEventBus) Delete(name string, options *v1.DeleteOptions) error {
_, err := c.Fake.
- Invokes(testing.NewDeleteAction(eventbusesResource, c.ns, name), &v1alpha1.EventBus{})
+ Invokes(testing.NewDeleteAction(eventbusResource, c.ns, name), &v1alpha1.EventBus{})
return err
}
// DeleteCollection deletes a collection of objects.
-func (c *FakeEventBuses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
- action := testing.NewDeleteCollectionAction(eventbusesResource, c.ns, listOptions)
+func (c *FakeEventBus) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
+ action := testing.NewDeleteCollectionAction(eventbusResource, c.ns, listOptions)
_, err := c.Fake.Invokes(action, &v1alpha1.EventBusList{})
return err
}
// Patch applies the patch and returns the patched eventBus.
-func (c *FakeEventBuses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.EventBus, err error) {
+func (c *FakeEventBus) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.EventBus, err error) {
obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceAction(eventbusesResource, c.ns, name, pt, data, subresources...), &v1alpha1.EventBus{})
+ Invokes(testing.NewPatchSubresourceAction(eventbusResource, c.ns, name, pt, data, subresources...), &v1alpha1.EventBus{})
if obj == nil {
return nil, err
diff --git a/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/fake/fake_eventbus_client.go b/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/fake/fake_eventbus_client.go
index 6e4f7ff4a1..1c717379b7 100644
--- a/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/fake/fake_eventbus_client.go
+++ b/pkg/client/eventbus/clientset/versioned/typed/eventbus/v1alpha1/fake/fake_eventbus_client.go
@@ -28,8 +28,8 @@ type FakeArgoprojV1alpha1 struct {
*testing.Fake
}
-func (c *FakeArgoprojV1alpha1) EventBuses(namespace string) v1alpha1.EventBusInterface {
- return &FakeEventBuses{c, namespace}
+func (c *FakeArgoprojV1alpha1) EventBus(namespace string) v1alpha1.EventBusInterface {
+ return &FakeEventBus{c, namespace}
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/pkg/client/eventbus/informers/externalversions/eventbus/v1alpha1/eventbus.go b/pkg/client/eventbus/informers/externalversions/eventbus/v1alpha1/eventbus.go
index 83358d80a4..79e856eada 100644
--- a/pkg/client/eventbus/informers/externalversions/eventbus/v1alpha1/eventbus.go
+++ b/pkg/client/eventbus/informers/externalversions/eventbus/v1alpha1/eventbus.go
@@ -32,7 +32,7 @@ import (
)
// EventBusInformer provides access to a shared informer and lister for
-// EventBuses.
+// EventBus.
type EventBusInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1alpha1.EventBusLister
@@ -61,13 +61,13 @@ func NewFilteredEventBusInformer(client versioned.Interface, namespace string, r
if tweakListOptions != nil {
tweakListOptions(&options)
}
- return client.ArgoprojV1alpha1().EventBuses(namespace).List(options)
+ return client.ArgoprojV1alpha1().EventBus(namespace).List(options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
- return client.ArgoprojV1alpha1().EventBuses(namespace).Watch(options)
+ return client.ArgoprojV1alpha1().EventBus(namespace).Watch(options)
},
},
&eventbusv1alpha1.EventBus{},
diff --git a/pkg/client/eventbus/informers/externalversions/eventbus/v1alpha1/interface.go b/pkg/client/eventbus/informers/externalversions/eventbus/v1alpha1/interface.go
index fa604e2c06..867344b645 100644
--- a/pkg/client/eventbus/informers/externalversions/eventbus/v1alpha1/interface.go
+++ b/pkg/client/eventbus/informers/externalversions/eventbus/v1alpha1/interface.go
@@ -24,8 +24,8 @@ import (
// Interface provides access to all the informers in this group version.
type Interface interface {
- // EventBuses returns a EventBusInformer.
- EventBuses() EventBusInformer
+ // EventBus returns a EventBusInformer.
+ EventBus() EventBusInformer
}
type version struct {
@@ -39,7 +39,7 @@ func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakList
return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
}
-// EventBuses returns a EventBusInformer.
-func (v *version) EventBuses() EventBusInformer {
+// EventBus returns a EventBusInformer.
+func (v *version) EventBus() EventBusInformer {
return &eventBusInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
}
diff --git a/pkg/client/eventbus/informers/externalversions/generic.go b/pkg/client/eventbus/informers/externalversions/generic.go
index 5edbf4d85e..84bd05cd5d 100644
--- a/pkg/client/eventbus/informers/externalversions/generic.go
+++ b/pkg/client/eventbus/informers/externalversions/generic.go
@@ -53,8 +53,8 @@ func (f *genericInformer) Lister() cache.GenericLister {
func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) {
switch resource {
// Group=argoproj.io, Version=v1alpha1
- case v1alpha1.SchemeGroupVersion.WithResource("eventbuses"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Argoproj().V1alpha1().EventBuses().Informer()}, nil
+ case v1alpha1.SchemeGroupVersion.WithResource("eventbus"):
+ return &genericInformer{resource: resource.GroupResource(), informer: f.Argoproj().V1alpha1().EventBus().Informer()}, nil
}
diff --git a/pkg/client/eventbus/listers/eventbus/v1alpha1/eventbus.go b/pkg/client/eventbus/listers/eventbus/v1alpha1/eventbus.go
index 6f759e509a..67879be1d0 100644
--- a/pkg/client/eventbus/listers/eventbus/v1alpha1/eventbus.go
+++ b/pkg/client/eventbus/listers/eventbus/v1alpha1/eventbus.go
@@ -25,12 +25,12 @@ import (
"k8s.io/client-go/tools/cache"
)
-// EventBusLister helps list EventBuses.
+// EventBusLister helps list EventBus.
type EventBusLister interface {
- // List lists all EventBuses in the indexer.
+ // List lists all EventBus in the indexer.
List(selector labels.Selector) (ret []*v1alpha1.EventBus, err error)
- // EventBuses returns an object that can list and get EventBuses.
- EventBuses(namespace string) EventBusNamespaceLister
+ // EventBus returns an object that can list and get EventBus.
+ EventBus(namespace string) EventBusNamespaceLister
EventBusListerExpansion
}
@@ -44,7 +44,7 @@ func NewEventBusLister(indexer cache.Indexer) EventBusLister {
return &eventBusLister{indexer: indexer}
}
-// List lists all EventBuses in the indexer.
+// List lists all EventBus in the indexer.
func (s *eventBusLister) List(selector labels.Selector) (ret []*v1alpha1.EventBus, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*v1alpha1.EventBus))
@@ -52,14 +52,14 @@ func (s *eventBusLister) List(selector labels.Selector) (ret []*v1alpha1.EventBu
return ret, err
}
-// EventBuses returns an object that can list and get EventBuses.
-func (s *eventBusLister) EventBuses(namespace string) EventBusNamespaceLister {
+// EventBus returns an object that can list and get EventBus.
+func (s *eventBusLister) EventBus(namespace string) EventBusNamespaceLister {
return eventBusNamespaceLister{indexer: s.indexer, namespace: namespace}
}
-// EventBusNamespaceLister helps list and get EventBuses.
+// EventBusNamespaceLister helps list and get EventBus.
type EventBusNamespaceLister interface {
- // List lists all EventBuses in the indexer for a given namespace.
+ // List lists all EventBus in the indexer for a given namespace.
List(selector labels.Selector) (ret []*v1alpha1.EventBus, err error)
// Get retrieves the EventBus from the indexer for a given namespace and name.
Get(name string) (*v1alpha1.EventBus, error)
@@ -73,7 +73,7 @@ type eventBusNamespaceLister struct {
namespace string
}
-// List lists all EventBuses in the indexer for a given namespace.
+// List lists all EventBus in the indexer for a given namespace.
func (s eventBusNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.EventBus, err error) {
err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
ret = append(ret, m.(*v1alpha1.EventBus))
diff --git a/sensors/context.go b/sensors/context.go
index 6ebdb1e62d..2180017bec 100644
--- a/sensors/context.go
+++ b/sensors/context.go
@@ -21,16 +21,17 @@ import (
"github.com/Shopify/sarama"
"github.com/apache/openwhisk-client-go/whisk"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- sensorclientset "github.com/argoproj/argo-events/pkg/client/sensor/clientset/versioned"
- "github.com/argoproj/argo-events/sensors/types"
"github.com/aws/aws-sdk-go/service/lambda"
natslib "github.com/nats-io/go-nats"
"github.com/sirupsen/logrus"
"google.golang.org/grpc"
"k8s.io/client-go/dynamic"
"k8s.io/client-go/kubernetes"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ sensorclientset "github.com/argoproj/argo-events/pkg/client/sensor/clientset/versioned"
+ "github.com/argoproj/argo-events/sensors/types"
)
// SensorContext contains execution context for Sensor
diff --git a/sensors/dependencies/circuit.go b/sensors/dependencies/circuit.go
index a9ee5661be..ad4f3926f3 100644
--- a/sensors/dependencies/circuit.go
+++ b/sensors/dependencies/circuit.go
@@ -18,10 +18,11 @@ package dependencies
import (
"github.com/Knetic/govaluate"
- snctrl "github.com/argoproj/argo-events/controllers/sensor"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
+
+ snctrl "github.com/argoproj/argo-events/controllers/sensor"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
// ResolveCircuit resolves a circuit
diff --git a/sensors/dependencies/circuit_test.go b/sensors/dependencies/circuit_test.go
index e23957c587..6e459b9734 100644
--- a/sensors/dependencies/circuit_test.go
+++ b/sensors/dependencies/circuit_test.go
@@ -19,11 +19,12 @@ package dependencies
import (
"testing"
+ "github.com/stretchr/testify/assert"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
"github.com/argoproj/argo-events/common"
snctrl "github.com/argoproj/argo-events/controllers/sensor"
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- "github.com/stretchr/testify/assert"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
var sensorObj = v1alpha1.Sensor{
diff --git a/sensors/dependencies/filter.go b/sensors/dependencies/filter.go
index 34b9b174e8..32f6314df6 100644
--- a/sensors/dependencies/filter.go
+++ b/sensors/dependencies/filter.go
@@ -23,11 +23,12 @@ import (
"strconv"
"time"
+ "github.com/pkg/errors"
+ "github.com/tidwall/gjson"
+
"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/argoproj/argo-events/sensors/types"
- "github.com/pkg/errors"
- "github.com/tidwall/gjson"
)
func ApplyFilter(notification *types.Notification) error {
diff --git a/sensors/dependencies/filter_test.go b/sensors/dependencies/filter_test.go
index 1daa6e7fe0..59f6d9d085 100644
--- a/sensors/dependencies/filter_test.go
+++ b/sensors/dependencies/filter_test.go
@@ -20,10 +20,11 @@ import (
"testing"
"time"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
func TestFilterContext(t *testing.T) {
diff --git a/sensors/dependencies/resolution.go b/sensors/dependencies/resolution.go
index 978631c87e..ff7856108e 100644
--- a/sensors/dependencies/resolution.go
+++ b/sensors/dependencies/resolution.go
@@ -17,8 +17,9 @@ limitations under the License.
package dependencies
import (
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/gobwas/glob"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
// ResolveDependency resolves a dependency based on Event and gateway name
diff --git a/sensors/dependencies/resolution_test.go b/sensors/dependencies/resolution_test.go
index b375de4836..096abb427e 100644
--- a/sensors/dependencies/resolution_test.go
+++ b/sensors/dependencies/resolution_test.go
@@ -19,8 +19,9 @@ package dependencies
import (
"testing"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/stretchr/testify/assert"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
func TestResolveDependency(t *testing.T) {
diff --git a/sensors/event-notification_test.go b/sensors/event-notification_test.go
index ca5ec494dd..e312aa7d49 100644
--- a/sensors/event-notification_test.go
+++ b/sensors/event-notification_test.go
@@ -20,11 +20,6 @@ import (
"testing"
"time"
- "github.com/argoproj/argo-events/common"
- snctrl "github.com/argoproj/argo-events/controllers/sensor"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- sensorFake "github.com/argoproj/argo-events/pkg/client/sensor/clientset/versioned/fake"
- "github.com/argoproj/argo-events/sensors/types"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
@@ -32,6 +27,13 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
dfake "k8s.io/client-go/dynamic/fake"
"k8s.io/client-go/kubernetes/fake"
+
+ "github.com/argoproj/argo-events/common"
+ snctrl "github.com/argoproj/argo-events/controllers/sensor"
+ apicommon "github.com/argoproj/argo-events/pkg/apis/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ sensorFake "github.com/argoproj/argo-events/pkg/client/sensor/clientset/versioned/fake"
+ "github.com/argoproj/argo-events/sensors/types"
)
func newUnstructured(apiVersion, kind, namespace, name string) *unstructured.Unstructured {
@@ -60,8 +62,8 @@ var sensorObj = &v1alpha1.Sensor{
{
Template: &v1alpha1.TriggerTemplate{
Name: "fake-trigger",
- K8s: &v1alpha1.StandardK8sTrigger{
- GroupVersionResource: &metav1.GroupVersionResource{
+ K8s: &v1alpha1.StandardK8STrigger{
+ GroupVersionResource: metav1.GroupVersionResource{
Group: "apps",
Version: "v1",
Resource: "deployments",
@@ -305,8 +307,9 @@ func TestOperateEventNotification(t *testing.T) {
}
deployment := newUnstructured("apps/v1", "Deployment", "fake", "fake-deployment")
+ artifact := apicommon.NewResource(deployment)
obj.Spec.Triggers[0].Template.K8s.Source = &v1alpha1.ArtifactLocation{
- Resource: deployment,
+ Resource: &artifact,
}
err := sensorCtx.operateEventNotification(&types.Notification{
diff --git a/sensors/event-notifications.go b/sensors/event-notifications.go
index 585893ad19..189b46bc4b 100644
--- a/sensors/event-notifications.go
+++ b/sensors/event-notifications.go
@@ -17,14 +17,15 @@ limitations under the License.
package sensors
import (
+ "github.com/pkg/errors"
+ "github.com/sirupsen/logrus"
+
"github.com/argoproj/argo-events/common"
snctrl "github.com/argoproj/argo-events/controllers/sensor"
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/argoproj/argo-events/sensors/dependencies"
"github.com/argoproj/argo-events/sensors/triggers"
"github.com/argoproj/argo-events/sensors/types"
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
)
// isEligibleForExecution determines whether the dependencies are met and triggers are eligible for execution
diff --git a/sensors/listener.go b/sensors/listener.go
index f0c8b67f25..f52c5a5b74 100644
--- a/sensors/listener.go
+++ b/sensors/listener.go
@@ -23,15 +23,16 @@ import (
"io/ioutil"
"net/http"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- "github.com/argoproj/argo-events/sensors/dependencies"
- "github.com/argoproj/argo-events/sensors/types"
cloudevents "github.com/cloudevents/sdk-go"
"github.com/nats-io/go-nats"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ "github.com/argoproj/argo-events/sensors/dependencies"
+ "github.com/argoproj/argo-events/sensors/types"
)
// ListenEvents watches and handles events received from the gateway.
diff --git a/sensors/listener_test.go b/sensors/listener_test.go
index 191b136263..05da93146f 100644
--- a/sensors/listener_test.go
+++ b/sensors/listener_test.go
@@ -21,11 +21,12 @@ import (
"testing"
"time"
+ cloudevents "github.com/cloudevents/sdk-go"
+ "github.com/stretchr/testify/assert"
+
"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/argoproj/argo-events/sensors/types"
- cloudevents "github.com/cloudevents/sdk-go"
- "github.com/stretchr/testify/assert"
)
func TestHandleEvent(t *testing.T) {
diff --git a/sensors/policy/resource-labels.go b/sensors/policy/resource-labels.go
index 8d4102d034..e2696f7dc8 100644
--- a/sensors/policy/resource-labels.go
+++ b/sensors/policy/resource-labels.go
@@ -17,11 +17,12 @@ limitations under the License.
package policy
import (
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/dynamic"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
// ResourceLabels implements trigger policy based on the resource labels
@@ -32,14 +33,24 @@ type ResourceLabels struct {
}
func (rl *ResourceLabels) ApplyPolicy() error {
- if rl.Trigger.Policy.K8s == nil || rl.Trigger.Policy.K8s.Labels == nil || &rl.Trigger.Policy.K8s.Backoff == nil {
+ from := rl.Trigger.Policy.K8s.Backoff
+ if rl.Trigger.Policy.K8s == nil || rl.Trigger.Policy.K8s.Labels == nil || &from == nil {
return nil
}
// check if success labels match with labels on object
completed := false
- err := wait.ExponentialBackoff(rl.Trigger.Policy.K8s.Backoff, func() (bool, error) {
+ backoff := wait.Backoff{
+ Duration: from.Duration,
+ Steps: int(from.Steps),
+ }
+ backoff.Factor, _ = from.Factor.Float64()
+ if from.Jitter != nil {
+ jitter, _ := from.Jitter.Float64()
+ backoff.Jitter = jitter
+ }
+ err := wait.ExponentialBackoff(backoff, func() (bool, error) {
obj, err := rl.Client.Namespace(rl.Obj.GetNamespace()).Get(rl.Obj.GetName(), metav1.GetOptions{})
if err != nil {
return false, err
diff --git a/sensors/policy/resource-labels_test.go b/sensors/policy/resource-labels_test.go
index 062b1679e1..2accc10130 100644
--- a/sensors/policy/resource-labels_test.go
+++ b/sensors/policy/resource-labels_test.go
@@ -20,7 +20,6 @@ import (
"testing"
"time"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
@@ -28,6 +27,9 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/dynamic/fake"
+
+ "github.com/argoproj/argo-events/pkg/apis/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
func newUnstructured(apiVersion, kind, namespace, name string) *unstructured.Unstructured {
@@ -48,34 +50,35 @@ func newUnstructured(apiVersion, kind, namespace, name string) *unstructured.Uns
func TestResourceLabels_ApplyPolicy(t *testing.T) {
uObj := newUnstructured("apps/v1", "Deployment", "fake", "test")
-
runtimeScheme := runtime.NewScheme()
client := fake.NewSimpleDynamicClient(runtimeScheme, uObj)
+ artifact := common.NewResource(uObj)
+ jitter := common.NewAmount("0.5")
trigger := &v1alpha1.Trigger{
Template: &v1alpha1.TriggerTemplate{
Name: "fake-trigger",
- K8s: &v1alpha1.StandardK8sTrigger{
- GroupVersionResource: &metav1.GroupVersionResource{
+ K8s: &v1alpha1.StandardK8STrigger{
+ GroupVersionResource: metav1.GroupVersionResource{
Group: "apps",
Resource: "deployments",
Version: "v1",
},
Source: &v1alpha1.ArtifactLocation{
- Resource: uObj,
+ Resource: &artifact,
},
},
},
Policy: &v1alpha1.TriggerPolicy{
- K8s: &v1alpha1.K8sResourcePolicy{
+ K8s: &v1alpha1.K8SResourcePolicy{
ErrorOnBackoffTimeout: true,
Labels: map[string]string{
"complete": "true",
},
- Backoff: wait.Backoff{
+ Backoff: common.Backoff{
Steps: 2,
Duration: time.Second * 1,
- Factor: 2,
- Jitter: 0.5,
+ Factor: common.NewAmount("2"),
+ Jitter: &jitter,
},
},
},
@@ -131,9 +134,9 @@ func TestResourceLabels_ApplyPolicy(t *testing.T) {
Client: namespacableClient,
}
- var err error
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
+ var err error
uObj, err = test.updateFunc(uObj)
assert.Nil(t, err)
err = resourceLabelsPolicy.ApplyPolicy()
diff --git a/sensors/queue.go b/sensors/queue.go
index 664ee779e2..2af402dbd7 100644
--- a/sensors/queue.go
+++ b/sensors/queue.go
@@ -17,10 +17,11 @@ limitations under the License.
package sensors
import (
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
snctrl "github.com/argoproj/argo-events/controllers/sensor"
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/argoproj/argo-events/sensors/types"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// processQueue processes events received on internal queue and updates the state of the node representing the event dependency
diff --git a/sensors/queue_test.go b/sensors/queue_test.go
index 8a0fc7082a..2934b16576 100644
--- a/sensors/queue_test.go
+++ b/sensors/queue_test.go
@@ -20,16 +20,18 @@ import (
"testing"
"time"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- sensorFake "github.com/argoproj/argo-events/pkg/client/sensor/clientset/versioned/fake"
- "github.com/argoproj/argo-events/sensors/types"
cloudevents "github.com/cloudevents/sdk-go"
"github.com/stretchr/testify/assert"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
dfake "k8s.io/client-go/dynamic/fake"
"k8s.io/client-go/kubernetes/fake"
+
+ "github.com/argoproj/argo-events/common"
+ apicommon "github.com/argoproj/argo-events/pkg/apis/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ sensorFake "github.com/argoproj/argo-events/pkg/client/sensor/clientset/versioned/fake"
+ "github.com/argoproj/argo-events/sensors/types"
)
func TestProcessQueue(t *testing.T) {
@@ -91,8 +93,9 @@ func TestProcessQueue(t *testing.T) {
}
deployment := newUnstructured("apps/v1", "Deployment", "fake", "fake-deployment")
+ artifact := apicommon.NewResource(deployment)
obj.Spec.Triggers[0].Template.K8s.Source = &v1alpha1.ArtifactLocation{
- Resource: deployment,
+ Resource: &artifact,
}
sensorCtx.processQueue(&types.Notification{
diff --git a/sensors/resource-update-notifications_test.go b/sensors/resource-update-notifications_test.go
index d48586af9e..37be68df36 100644
--- a/sensors/resource-update-notifications_test.go
+++ b/sensors/resource-update-notifications_test.go
@@ -19,10 +19,11 @@ package sensors
import (
"testing"
+ "github.com/stretchr/testify/assert"
+
"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/argoproj/argo-events/sensors/types"
- "github.com/stretchr/testify/assert"
)
func TestOperateResourceUpdateNotification(t *testing.T) {
diff --git a/sensors/sync.go b/sensors/sync.go
index 553aa152ee..db5274215a 100644
--- a/sensors/sync.go
+++ b/sensors/sync.go
@@ -20,9 +20,9 @@ import (
"context"
"fmt"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/argoproj/argo-events/sensors/types"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/runtime"
diff --git a/sensors/triggers/apache-openwhisk/apache-openwhisk.go b/sensors/triggers/apache-openwhisk/apache-openwhisk.go
index faac2d2bfe..9242d2634f 100644
--- a/sensors/triggers/apache-openwhisk/apache-openwhisk.go
+++ b/sensors/triggers/apache-openwhisk/apache-openwhisk.go
@@ -20,13 +20,14 @@ import (
"net/http"
"github.com/apache/openwhisk-client-go/whisk"
+ "github.com/pkg/errors"
+ "github.com/sirupsen/logrus"
+ "k8s.io/client-go/kubernetes"
+
"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/argoproj/argo-events/sensors/policy"
"github.com/argoproj/argo-events/sensors/triggers"
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
- "k8s.io/client-go/kubernetes"
)
// TriggerImpl implements the Trigger interface for OpenWhisk trigger.
@@ -180,7 +181,7 @@ func (t *TriggerImpl) ApplyPolicy(resource interface{}) error {
return errors.New("failed to interpret the trigger execution response")
}
- p := policy.NewStatusPolicy(response.StatusCode, t.Trigger.Policy.Status.Allow)
+ p := policy.NewStatusPolicy(response.StatusCode, t.Trigger.Policy.Status.GetAllow())
return p.ApplyPolicy()
}
diff --git a/sensors/triggers/apache-openwhisk/apache-openwhisk_test.go b/sensors/triggers/apache-openwhisk/apache-openwhisk_test.go
index 387668e6d6..476a2fbd2c 100644
--- a/sensors/triggers/apache-openwhisk/apache-openwhisk_test.go
+++ b/sensors/triggers/apache-openwhisk/apache-openwhisk_test.go
@@ -19,11 +19,12 @@ import (
"net/http"
"testing"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
cloudevents "github.com/cloudevents/sdk-go"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
var sensorObj = &v1alpha1.Sensor{
@@ -124,14 +125,14 @@ func TestTriggerImpl_ApplyResourceParameters(t *testing.T) {
func TestTriggerImpl_ApplyPolicy(t *testing.T) {
trigger := getFakeTriggerImpl()
trigger.Trigger.Policy = &v1alpha1.TriggerPolicy{
- Status: &v1alpha1.StatusPolicy{Allow: []int{200, 300}},
+ Status: &v1alpha1.StatusPolicy{Allow: []int32{200, 300}},
}
response := &http.Response{StatusCode: 200}
err := trigger.ApplyPolicy(response)
assert.Nil(t, err)
trigger.Trigger.Policy = &v1alpha1.TriggerPolicy{
- Status: &v1alpha1.StatusPolicy{Allow: []int{300}},
+ Status: &v1alpha1.StatusPolicy{Allow: []int32{300}},
}
err = trigger.ApplyPolicy(response)
assert.NotNil(t, err)
diff --git a/sensors/triggers/argo-workflow/argo-workflow.go b/sensors/triggers/argo-workflow/argo-workflow.go
index 0340ea708d..cc36e3376f 100644
--- a/sensors/triggers/argo-workflow/argo-workflow.go
+++ b/sensors/triggers/argo-workflow/argo-workflow.go
@@ -21,9 +21,6 @@ import (
"os"
"os/exec"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- "github.com/argoproj/argo-events/sensors/policy"
- "github.com/argoproj/argo-events/sensors/triggers"
wf_v1alpha1 "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1"
"github.com/ghodss/yaml"
"github.com/pkg/errors"
@@ -34,6 +31,10 @@ import (
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/dynamic"
"k8s.io/client-go/kubernetes"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ "github.com/argoproj/argo-events/sensors/policy"
+ "github.com/argoproj/argo-events/sensors/triggers"
)
// ArgoWorkflowTrigger implements Trigger interface for Argo workflow
diff --git a/sensors/triggers/argo-workflow/argo-workflow_test.go b/sensors/triggers/argo-workflow/argo-workflow_test.go
index 6cf42b3061..0154bf7436 100644
--- a/sensors/triggers/argo-workflow/argo-workflow_test.go
+++ b/sensors/triggers/argo-workflow/argo-workflow_test.go
@@ -18,14 +18,16 @@ package argo_workflow
import (
"testing"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
dynamicFake "k8s.io/client-go/dynamic/fake"
"k8s.io/client-go/kubernetes/fake"
+
+ "github.com/argoproj/argo-events/common"
+ apicommon "github.com/argoproj/argo-events/pkg/apis/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
var sensorObj = &v1alpha1.Sensor{
@@ -38,8 +40,8 @@ var sensorObj = &v1alpha1.Sensor{
{
Template: &v1alpha1.TriggerTemplate{
Name: "fake-trigger",
- K8s: &v1alpha1.StandardK8sTrigger{
- GroupVersionResource: &metav1.GroupVersionResource{
+ K8s: &v1alpha1.StandardK8STrigger{
+ GroupVersionResource: metav1.GroupVersionResource{
Group: "apps",
Version: "v1",
Resource: "deployments",
@@ -70,16 +72,17 @@ func newUnstructured(apiVersion, kind, namespace, name string) *unstructured.Uns
func getFakeWfTrigger() *ArgoWorkflowTrigger {
runtimeScheme := runtime.NewScheme()
client := dynamicFake.NewSimpleDynamicClient(runtimeScheme)
-
+ un := newUnstructured("argoproj.io/v1alpha1", "Workflow", "fake", "test")
+ artifact := apicommon.NewResource(un)
trigger := &v1alpha1.Trigger{
Template: &v1alpha1.TriggerTemplate{
Name: "fake",
ArgoWorkflow: &v1alpha1.ArgoWorkflowTrigger{
Source: &v1alpha1.ArtifactLocation{
- Resource: newUnstructured("argoproj.io/v1alpha1", "Workflow", "fake", "test"),
+ Resource: &artifact,
},
Operation: "Submit",
- GroupVersionResource: &metav1.GroupVersionResource{
+ GroupVersionResource: metav1.GroupVersionResource{
Group: "argoproj.io",
Version: "v1alpha1",
Resource: "workflows",
diff --git a/sensors/triggers/aws-lambda/aws-lambda.go b/sensors/triggers/aws-lambda/aws-lambda.go
index 5c0c51999a..e30b19e814 100644
--- a/sensors/triggers/aws-lambda/aws-lambda.go
+++ b/sensors/triggers/aws-lambda/aws-lambda.go
@@ -18,15 +18,16 @@ package aws_lambda
import (
"encoding/json"
- commonaws "github.com/argoproj/argo-events/gateways/server/common/aws"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- "github.com/argoproj/argo-events/sensors/policy"
- "github.com/argoproj/argo-events/sensors/triggers"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/lambda"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"k8s.io/client-go/kubernetes"
+
+ commonaws "github.com/argoproj/argo-events/gateways/server/common/aws"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ "github.com/argoproj/argo-events/sensors/policy"
+ "github.com/argoproj/argo-events/sensors/triggers"
)
// AWSLambdaTrigger refers to trigger that invokes AWS Lambda functions
@@ -134,6 +135,6 @@ func (t *AWSLambdaTrigger) ApplyPolicy(resource interface{}) error {
return errors.New("failed to interpret the trigger resource")
}
- p := policy.NewStatusPolicy(int(*obj.StatusCode), t.Trigger.Policy.Status.Allow)
+ p := policy.NewStatusPolicy(int(*obj.StatusCode), t.Trigger.Policy.Status.GetAllow())
return p.ApplyPolicy()
}
diff --git a/sensors/triggers/aws-lambda/aws-lambda_test.go b/sensors/triggers/aws-lambda/aws-lambda_test.go
index 9e6b876080..2cb18df1e0 100644
--- a/sensors/triggers/aws-lambda/aws-lambda_test.go
+++ b/sensors/triggers/aws-lambda/aws-lambda_test.go
@@ -18,14 +18,15 @@ package aws_lambda
import (
"testing"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/aws/aws-sdk-go/service/lambda"
cloudevents "github.com/cloudevents/sdk-go"
"github.com/stretchr/testify/assert"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
var sensorObj = &v1alpha1.Sensor{
@@ -146,7 +147,7 @@ func TestAWSLambdaTrigger_ApplyPolicy(t *testing.T) {
StatusCode: &status,
}
trigger.Trigger.Policy = &v1alpha1.TriggerPolicy{
- Status: &v1alpha1.StatusPolicy{Allow: []int{200, 300}},
+ Status: &v1alpha1.StatusPolicy{Allow: []int32{200, 300}},
}
err := trigger.ApplyPolicy(response)
assert.Nil(t, err)
diff --git a/sensors/triggers/custom-trigger/custom-trigger.go b/sensors/triggers/custom-trigger/custom-trigger.go
index 5023df106f..69175eb22d 100644
--- a/sensors/triggers/custom-trigger/custom-trigger.go
+++ b/sensors/triggers/custom-trigger/custom-trigger.go
@@ -19,9 +19,6 @@ import (
"context"
"encoding/json"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- "github.com/argoproj/argo-events/sensors/triggers"
"github.com/ghodss/yaml"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
@@ -29,6 +26,10 @@ import (
"google.golang.org/grpc/connectivity"
"google.golang.org/grpc/credentials"
"k8s.io/apimachinery/pkg/util/wait"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ "github.com/argoproj/argo-events/sensors/triggers"
)
// CustomTrigger implements Trigger interface for custom trigger resource
diff --git a/sensors/triggers/fetch.go b/sensors/triggers/fetch.go
index 80f36dd03a..c0e136e82b 100644
--- a/sensors/triggers/fetch.go
+++ b/sensors/triggers/fetch.go
@@ -17,15 +17,16 @@ limitations under the License.
package triggers
import (
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- "github.com/argoproj/argo-events/store"
"github.com/pkg/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/client-go/kubernetes"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ "github.com/argoproj/argo-events/store"
)
-func FetchKubernetesResource(client kubernetes.Interface, source *v1alpha1.ArtifactLocation, namespace string, gvr *metav1.GroupVersionResource) (*unstructured.Unstructured, error) {
+func FetchKubernetesResource(client kubernetes.Interface, source *v1alpha1.ArtifactLocation, namespace string, gvr metav1.GroupVersionResource) (*unstructured.Unstructured, error) {
if source == nil {
return nil, errors.Errorf("trigger source for k8s is empty")
}
diff --git a/sensors/triggers/fetch_test.go b/sensors/triggers/fetch_test.go
index 9d41194f04..1aaf19454c 100644
--- a/sensors/triggers/fetch_test.go
+++ b/sensors/triggers/fetch_test.go
@@ -19,18 +19,21 @@ package triggers
import (
"testing"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"
+
+ apicommon "github.com/argoproj/argo-events/pkg/apis/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
func TestFetchKubernetesResource(t *testing.T) {
deployment := newUnstructured("apps/v1", "Deployment", "fake", "test")
+ artifact := apicommon.NewResource(deployment)
sensorObj.Spec.Triggers[0].Template.K8s.Source = &v1alpha1.ArtifactLocation{
- Resource: deployment,
+ Resource: &artifact,
}
- uObj, err := FetchKubernetesResource(fake.NewSimpleClientset(), sensorObj.Spec.Triggers[0].Template.K8s.Source, sensorObj.Namespace, &metav1.GroupVersionResource{
+ uObj, err := FetchKubernetesResource(fake.NewSimpleClientset(), sensorObj.Spec.Triggers[0].Template.K8s.Source, sensorObj.Namespace, metav1.GroupVersionResource{
Group: "argoproj.io",
Version: "v1alpha1",
Resource: "workflows",
diff --git a/sensors/triggers/http/http.go b/sensors/triggers/http/http.go
index 832b7f3ed1..2bef60be32 100644
--- a/sensors/triggers/http/http.go
+++ b/sensors/triggers/http/http.go
@@ -24,13 +24,14 @@ import (
"net/http"
"time"
+ "github.com/pkg/errors"
+ "github.com/sirupsen/logrus"
+ "k8s.io/client-go/kubernetes"
+
"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/argoproj/argo-events/sensors/policy"
"github.com/argoproj/argo-events/sensors/triggers"
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
- "k8s.io/client-go/kubernetes"
)
// HTTPTrigger describes the trigger to invoke HTTP request
@@ -156,7 +157,9 @@ func (t *HTTPTrigger) Execute(resource interface{}) (interface{}, error) {
}
if trigger.Headers != nil {
- request.Header = trigger.Headers
+ for name, value := range trigger.Headers {
+ request.Header[name] = []string{value}
+ }
}
basicAuth := trigger.BasicAuth
@@ -201,7 +204,7 @@ func (t *HTTPTrigger) ApplyPolicy(resource interface{}) error {
return errors.New("failed to interpret the trigger execution response")
}
- p := policy.NewStatusPolicy(response.StatusCode, t.Trigger.Policy.Status.Allow)
+ p := policy.NewStatusPolicy(response.StatusCode, t.Trigger.Policy.Status.GetAllow())
return p.ApplyPolicy()
}
diff --git a/sensors/triggers/http/http_test.go b/sensors/triggers/http/http_test.go
index 43258cf61b..b7145c2daa 100644
--- a/sensors/triggers/http/http_test.go
+++ b/sensors/triggers/http/http_test.go
@@ -19,11 +19,12 @@ import (
"net/http"
"testing"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
cloudevents "github.com/cloudevents/sdk-go"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
var sensorObj = &v1alpha1.Sensor{
@@ -128,14 +129,14 @@ func TestHTTPTrigger_ApplyResourceParameters(t *testing.T) {
func TestHTTPTrigger_ApplyPolicy(t *testing.T) {
trigger := getFakeHTTPTrigger()
trigger.Trigger.Policy = &v1alpha1.TriggerPolicy{
- Status: &v1alpha1.StatusPolicy{Allow: []int{200, 300}},
+ Status: &v1alpha1.StatusPolicy{Allow: []int32{200, 300}},
}
response := &http.Response{StatusCode: 200}
err := trigger.ApplyPolicy(response)
assert.Nil(t, err)
trigger.Trigger.Policy = &v1alpha1.TriggerPolicy{
- Status: &v1alpha1.StatusPolicy{Allow: []int{300}},
+ Status: &v1alpha1.StatusPolicy{Allow: []int32{300}},
}
err = trigger.ApplyPolicy(response)
assert.NotNil(t, err)
diff --git a/sensors/triggers/kafka/kafka.go b/sensors/triggers/kafka/kafka.go
index 0fbddccb22..558e63600c 100644
--- a/sensors/triggers/kafka/kafka.go
+++ b/sensors/triggers/kafka/kafka.go
@@ -23,10 +23,11 @@ import (
"time"
"github.com/Shopify/sarama"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- "github.com/argoproj/argo-events/sensors/triggers"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ "github.com/argoproj/argo-events/sensors/triggers"
)
// KafkaTrigger describes the trigger to place messages on Kafka topic using a producer
@@ -80,7 +81,7 @@ func NewKafkaTrigger(sensor *v1alpha1.Sensor, trigger *v1alpha1.Trigger, kafkaPr
ff := 500
if kafkatrigger.FlushFrequency != 0 {
- ff = kafkatrigger.FlushFrequency
+ ff = int(kafkatrigger.FlushFrequency)
}
config.Producer.Flush.Frequency = time.Duration(ff)
@@ -163,7 +164,7 @@ func (t *KafkaTrigger) Execute(resource interface{}) (interface{}, error) {
Topic: trigger.Topic,
Key: sarama.StringEncoder(pk),
Value: sarama.ByteEncoder(payload),
- Partition: int32(trigger.Partition),
+ Partition: trigger.Partition,
Timestamp: time.Now().UTC(),
}
diff --git a/sensors/triggers/kafka/kafka_test.go b/sensors/triggers/kafka/kafka_test.go
index 2349602b32..6eccbbbd3f 100644
--- a/sensors/triggers/kafka/kafka_test.go
+++ b/sensors/triggers/kafka/kafka_test.go
@@ -20,11 +20,12 @@ import (
"github.com/Shopify/sarama"
"github.com/Shopify/sarama/mocks"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
cloudevents "github.com/cloudevents/sdk-go"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
var sensorObj = &v1alpha1.Sensor{
diff --git a/sensors/triggers/nats/nats.go b/sensors/triggers/nats/nats.go
index 005f1325d4..cff948b8bf 100644
--- a/sensors/triggers/nats/nats.go
+++ b/sensors/triggers/nats/nats.go
@@ -21,11 +21,12 @@ import (
"encoding/json"
"io/ioutil"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- "github.com/argoproj/argo-events/sensors/triggers"
natslib "github.com/nats-io/go-nats"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ "github.com/argoproj/argo-events/sensors/triggers"
)
// NATSTrigger holds the context of the NATS trigger.
diff --git a/sensors/triggers/params.go b/sensors/triggers/params.go
index 9f986b51f3..fa80a01adb 100644
--- a/sensors/triggers/params.go
+++ b/sensors/triggers/params.go
@@ -23,14 +23,15 @@ import (
"text/template"
"github.com/Masterminds/sprig"
- "github.com/argoproj/argo-events/common"
- snctrl "github.com/argoproj/argo-events/controllers/sensor"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/ghodss/yaml"
"github.com/pkg/errors"
"github.com/tidwall/gjson"
"github.com/tidwall/sjson"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
+
+ "github.com/argoproj/argo-events/common"
+ snctrl "github.com/argoproj/argo-events/controllers/sensor"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
// ConstructPayload constructs a payload for operations involving request and responses like HTTP request.
diff --git a/sensors/triggers/params_test.go b/sensors/triggers/params_test.go
index 28a5ce599a..68a7f0d0d1 100644
--- a/sensors/triggers/params_test.go
+++ b/sensors/triggers/params_test.go
@@ -21,11 +21,13 @@ import (
"testing"
"time"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/ghodss/yaml"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+
+ "github.com/argoproj/argo-events/common"
+ apicommon "github.com/argoproj/argo-events/pkg/apis/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
type Details struct {
@@ -450,8 +452,9 @@ func TestApplyResourceParameters(t *testing.T) {
Data: []byte("{\"name\": {\"first\": \"test-deployment\"} }"),
}
+ artifact := apicommon.NewResource(deployment)
obj.Spec.Triggers[0].Template.K8s.Source = &v1alpha1.ArtifactLocation{
- Resource: deployment,
+ Resource: &artifact,
}
id := obj.NodeID("fake-dependency")
obj.Status.Nodes = map[string]v1alpha1.NodeStatus{
diff --git a/sensors/triggers/slack/slack.go b/sensors/triggers/slack/slack.go
index 0c55fe7c8c..1148b11b94 100644
--- a/sensors/triggers/slack/slack.go
+++ b/sensors/triggers/slack/slack.go
@@ -19,13 +19,14 @@ import (
"encoding/json"
"net/http"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- "github.com/argoproj/argo-events/sensors/triggers"
"github.com/nlopes/slack"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"k8s.io/client-go/kubernetes"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ "github.com/argoproj/argo-events/sensors/triggers"
)
type SlackTrigger struct {
diff --git a/sensors/triggers/slack/slack_test.go b/sensors/triggers/slack/slack_test.go
index 9f863e98b6..85d555d80b 100644
--- a/sensors/triggers/slack/slack_test.go
+++ b/sensors/triggers/slack/slack_test.go
@@ -19,12 +19,13 @@ import (
"net/http"
"testing"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/stretchr/testify/assert"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
var sensorObj = &v1alpha1.Sensor{
diff --git a/sensors/triggers/standard-k8s/starndard-k8s.go b/sensors/triggers/standard-k8s/standar-k8s.go
similarity index 98%
rename from sensors/triggers/standard-k8s/starndard-k8s.go
rename to sensors/triggers/standard-k8s/standar-k8s.go
index 5fa3badad0..826d69f992 100644
--- a/sensors/triggers/standard-k8s/starndard-k8s.go
+++ b/sensors/triggers/standard-k8s/standar-k8s.go
@@ -19,10 +19,6 @@ package standard_k8s
import (
"fmt"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
- "github.com/argoproj/argo-events/sensors/policy"
- "github.com/argoproj/argo-events/sensors/triggers"
- "github.com/argoproj/argo-events/store"
"github.com/imdario/mergo"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
@@ -35,9 +31,14 @@ import (
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/dynamic"
"k8s.io/client-go/kubernetes"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
+ "github.com/argoproj/argo-events/sensors/policy"
+ "github.com/argoproj/argo-events/sensors/triggers"
+ "github.com/argoproj/argo-events/store"
)
-// StandardK8sTrigger implements Trigger interface for standard Kubernetes resources
+// StandardK8STrigger implements Trigger interface for standard Kubernetes resources
type StandardK8sTrigger struct {
// K8sClient is kubernetes client
K8sClient kubernetes.Interface
@@ -53,7 +54,7 @@ type StandardK8sTrigger struct {
namespableDynamicClient dynamic.NamespaceableResourceInterface
}
-// NewStandardK8sTrigger returns a new StandardK8sTrigger
+// NewStandardK8sTrigger returns a new StandardK8STrigger
func NewStandardK8sTrigger(k8sClient kubernetes.Interface, dynamicClient dynamic.Interface, sensor *v1alpha1.Sensor, trigger *v1alpha1.Trigger, logger *logrus.Logger) *StandardK8sTrigger {
return &StandardK8sTrigger{
K8sClient: k8sClient,
diff --git a/sensors/triggers/standard-k8s/starndard-k8s_test.go b/sensors/triggers/standard-k8s/standar-k8s_test.go
similarity index 94%
rename from sensors/triggers/standard-k8s/starndard-k8s_test.go
rename to sensors/triggers/standard-k8s/standar-k8s_test.go
index dd5b38a2a8..8f9986b628 100644
--- a/sensors/triggers/standard-k8s/starndard-k8s_test.go
+++ b/sensors/triggers/standard-k8s/standar-k8s_test.go
@@ -22,14 +22,16 @@ import (
k8stypes "k8s.io/apimachinery/pkg/types"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
dynamicFake "k8s.io/client-go/dynamic/fake"
"k8s.io/client-go/kubernetes/fake"
+
+ "github.com/argoproj/argo-events/common"
+ apicommon "github.com/argoproj/argo-events/pkg/apis/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
var sensorObj = &v1alpha1.Sensor{
@@ -42,8 +44,8 @@ var sensorObj = &v1alpha1.Sensor{
{
Template: &v1alpha1.TriggerTemplate{
Name: "fake-trigger",
- K8s: &v1alpha1.StandardK8sTrigger{
- GroupVersionResource: &metav1.GroupVersionResource{
+ K8s: &v1alpha1.StandardK8STrigger{
+ GroupVersionResource: metav1.GroupVersionResource{
Group: "apps",
Version: "v1",
Resource: "deployments",
@@ -76,8 +78,9 @@ func newUnstructured(apiVersion, kind, namespace, name string) *unstructured.Uns
func TestStandardK8sTrigger_FetchResource(t *testing.T) {
deployment := newUnstructured("apps/v1", "Deployment", "fake", "test")
+ artifact := apicommon.NewResource(deployment)
sensorObj.Spec.Triggers[0].Template.K8s.Source = &v1alpha1.ArtifactLocation{
- Resource: deployment,
+ Resource: &artifact,
}
runtimeScheme := runtime.NewScheme()
client := dynamicFake.NewSimpleDynamicClient(runtimeScheme)
@@ -122,8 +125,9 @@ func TestStandardK8sTrigger_ApplyResourceParameters(t *testing.T) {
}
deployment := newUnstructured("apps/v1", "Deployment", "fake", "test")
+ artifact := apicommon.NewResource(deployment)
fakeSensor.Spec.Triggers[0].Template.K8s.Source = &v1alpha1.ArtifactLocation{
- Resource: deployment,
+ Resource: &artifact,
}
fakeSensor.Spec.Triggers[0].Template.K8s.Parameters = []v1alpha1.TriggerParameter{
@@ -151,8 +155,9 @@ func TestStandardK8sTrigger_ApplyResourceParameters(t *testing.T) {
func TestStandardK8sTrigger_Execute(t *testing.T) {
deployment := newUnstructured("apps/v1", "Deployment", "fake", "test")
+ artifact := apicommon.NewResource(deployment)
sensorObj.Spec.Triggers[0].Template.K8s.Source = &v1alpha1.ArtifactLocation{
- Resource: deployment,
+ Resource: &artifact,
}
runtimeScheme := runtime.NewScheme()
client := dynamicFake.NewSimpleDynamicClient(runtimeScheme)
diff --git a/sensors/triggers/switches_test.go b/sensors/triggers/switches_test.go
index 4ce01a26dc..dc845ca2d0 100644
--- a/sensors/triggers/switches_test.go
+++ b/sensors/triggers/switches_test.go
@@ -22,8 +22,9 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/stretchr/testify/assert"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
var sensorObj = &v1alpha1.Sensor{
@@ -36,8 +37,8 @@ var sensorObj = &v1alpha1.Sensor{
{
Template: &v1alpha1.TriggerTemplate{
Name: "fake-trigger",
- K8s: &v1alpha1.StandardK8sTrigger{
- GroupVersionResource: &metav1.GroupVersionResource{
+ K8s: &v1alpha1.StandardK8STrigger{
+ GroupVersionResource: metav1.GroupVersionResource{
Group: "apps",
Version: "v1",
Resource: "deployments",
diff --git a/store/configmap.go b/store/configmap.go
index ae38166693..01edf2f9a9 100644
--- a/store/configmap.go
+++ b/store/configmap.go
@@ -4,10 +4,11 @@ import (
"fmt"
"os"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
// ConfigMapReader implements the ArtifactReader interface for k8 configmap
diff --git a/store/configmap_test.go b/store/configmap_test.go
index 0b6ef484af..60590104b4 100644
--- a/store/configmap_test.go
+++ b/store/configmap_test.go
@@ -3,13 +3,14 @@ package store
import (
"testing"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
wfv1 "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1"
"github.com/ghodss/yaml"
"github.com/smartystreets/goconvey/convey"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
func TestConfigmapReader_Read(t *testing.T) {
diff --git a/store/creds.go b/store/creds.go
index 4cb73476a1..4025ef12bf 100644
--- a/store/creds.go
+++ b/store/creds.go
@@ -20,12 +20,13 @@ import (
"fmt"
"strings"
- "github.com/argoproj/argo-events/common"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/kubernetes"
+
+ "github.com/argoproj/argo-events/common"
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
// Credentials contains the information necessary to access the minio
diff --git a/store/file.go b/store/file.go
index 11c9c2c0ba..6fba71837e 100644
--- a/store/file.go
+++ b/store/file.go
@@ -20,8 +20,9 @@ import (
"errors"
"io/ioutil"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
log "github.com/sirupsen/logrus"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
// FileReader implements the ArtifactReader interface for file artifacts
diff --git a/store/file_test.go b/store/file_test.go
index 9b264e69be..d014f18702 100644
--- a/store/file_test.go
+++ b/store/file_test.go
@@ -21,8 +21,9 @@ import (
"os"
"testing"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/stretchr/testify/assert"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
func TestFileReader(t *testing.T) {
diff --git a/store/git.go b/store/git.go
index be3006caae..00c68f2fca 100644
--- a/store/git.go
+++ b/store/git.go
@@ -20,7 +20,6 @@ import (
"fmt"
"io/ioutil"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"golang.org/x/crypto/ssh"
"gopkg.in/src-d/go-git.v4"
"gopkg.in/src-d/go-git.v4/config"
@@ -29,6 +28,8 @@ import (
"gopkg.in/src-d/go-git.v4/plumbing/transport/http"
go_git_ssh "gopkg.in/src-d/go-git.v4/plumbing/transport/ssh"
"k8s.io/client-go/kubernetes"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
const (
diff --git a/store/git_test.go b/store/git_test.go
index 15a5ef9550..1e83bf1213 100644
--- a/store/git_test.go
+++ b/store/git_test.go
@@ -19,11 +19,12 @@ package store
import (
"testing"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/smartystreets/goconvey/convey"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
var gar = &GitArtifactReader{
diff --git a/store/resource.go b/store/resource.go
index 8c238d7571..4206f8f483 100644
--- a/store/resource.go
+++ b/store/resource.go
@@ -17,12 +17,15 @@ limitations under the License.
package store
import (
+ "encoding/json"
"errors"
"github.com/ghodss/yaml"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
log "github.com/sirupsen/logrus"
+
+ "github.com/argoproj/argo-events/pkg/apis/common"
)
// ResourceReader implements the ArtifactReader interface for resource artifacts
@@ -31,14 +34,24 @@ type ResourceReader struct {
}
// NewResourceReader creates a new ArtifactReader for resource
-func NewResourceReader(resourceArtifact *unstructured.Unstructured) (ArtifactReader, error) {
+func NewResourceReader(resourceArtifact *common.Resource) (ArtifactReader, error) {
if resourceArtifact == nil {
return nil, errors.New("ResourceArtifact does not exist")
}
- return &ResourceReader{resourceArtifact}, nil
+ data, err := json.Marshal(resourceArtifact)
+ if err != nil {
+ return nil, err
+ }
+ object := make(map[string]interface{})
+ err = json.Unmarshal(data, &object)
+ if err != nil {
+ return nil, err
+ }
+ un := &unstructured.Unstructured{Object: object}
+ return &ResourceReader{un}, nil
}
func (reader *ResourceReader) Read() ([]byte, error) {
- log.WithField("resource", reader.resourceArtifact.Object).Debug("reading minio from resource template")
+ log.WithField("resource", reader.resourceArtifact.Object).Debug("reading artifact from resource template")
return yaml.Marshal(reader.resourceArtifact.Object)
}
diff --git a/store/resource_test.go b/store/resource_test.go
index 05d6839199..3988d2f756 100644
--- a/store/resource_test.go
+++ b/store/resource_test.go
@@ -21,11 +21,13 @@ import (
"github.com/smartystreets/goconvey/convey"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
+
+ "github.com/argoproj/argo-events/pkg/apis/common"
)
func TestNewResourceReader(t *testing.T) {
convey.Convey("Given a resource, get new reader", t, func() {
- reader, err := NewResourceReader(&unstructured.Unstructured{
+ un := unstructured.Unstructured{
Object: map[string]interface{}{
"apiVersion": "v1",
"kind": "Secret",
@@ -38,7 +40,9 @@ func TestNewResourceReader(t *testing.T) {
"secret": "c2VjcmV0",
},
},
- })
+ }
+ artifact := common.NewResource(un)
+ reader, err := NewResourceReader(&artifact)
convey.So(err, convey.ShouldBeNil)
convey.So(reader, convey.ShouldNotBeNil)
diff --git a/store/store.go b/store/store.go
index 066a26ebce..d6a90831ee 100644
--- a/store/store.go
+++ b/store/store.go
@@ -20,8 +20,6 @@ import (
"fmt"
cd_v1alpha1 "github.com/argoproj/argo-cd/pkg/apis/application/v1alpha1"
- gw_v1alpha1 "github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1"
- ss_v1alpha1 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
rollouts_v1alpha1 "github.com/argoproj/argo-rollouts/pkg/apis/rollouts/v1alpha1"
wf_v1alpha1 "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -30,6 +28,9 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes/scheme"
+
+ gw_v1alpha1 "github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1"
+ ss_v1alpha1 "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
// NOTE: custom resources must be manually added here
@@ -61,7 +62,7 @@ type ArtifactReader interface {
}
// FetchArtifact from the location, decode it using explicit types, and unstructure it
-func FetchArtifact(reader ArtifactReader, gvr *metav1.GroupVersionResource) (*unstructured.Unstructured, error) {
+func FetchArtifact(reader ArtifactReader, gvr metav1.GroupVersionResource) (*unstructured.Unstructured, error) {
var err error
var obj []byte
obj, err = reader.Read()
@@ -97,7 +98,7 @@ func GetArtifactReader(loc *ss_v1alpha1.ArtifactLocation, creds *Credentials, cl
return nil, fmt.Errorf("unknown artifact location: %v", *loc)
}
-func decodeAndUnstructure(b []byte, gvr *metav1.GroupVersionResource) (*unstructured.Unstructured, error) {
+func decodeAndUnstructure(b []byte, gvr metav1.GroupVersionResource) (*unstructured.Unstructured, error) {
gvk := registry.KindFor(schema.GroupVersionResource{
Group: gvr.Group,
Version: gvr.Version,
diff --git a/store/store_test.go b/store/store_test.go
index 6f1c1bae49..f9c8db4bd5 100644
--- a/store/store_test.go
+++ b/store/store_test.go
@@ -20,10 +20,11 @@ import (
"io/ioutil"
"testing"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
type FakeWorkflowArtifactReader struct{}
@@ -34,7 +35,7 @@ func (f *FakeWorkflowArtifactReader) Read() ([]byte, error) {
func TestFetchArtifact(t *testing.T) {
reader := &FakeWorkflowArtifactReader{}
- gvr := &metav1.GroupVersionResource{
+ gvr := metav1.GroupVersionResource{
Group: "argoproj.io",
Version: "v1alpha1",
Resource: "workflows",
@@ -61,7 +62,7 @@ func TestDecodeSensor(t *testing.T) {
b, err := ioutil.ReadFile("../examples/sensors/multi-trigger-sensor.yaml")
assert.Nil(t, err)
- gvr := &metav1.GroupVersionResource{
+ gvr := metav1.GroupVersionResource{
Group: v1alpha1.SchemaGroupVersionKind.Group,
Version: v1alpha1.SchemaGroupVersionKind.Version,
Resource: v1alpha1.Resource("sensors").Resource,
@@ -72,7 +73,7 @@ func TestDecodeSensor(t *testing.T) {
}
func TestDecodeWorkflow(t *testing.T) {
- gvr := &metav1.GroupVersionResource{
+ gvr := metav1.GroupVersionResource{
Group: "argoproj.io",
Version: "v1alpha1",
Resource: "workflows",
@@ -97,7 +98,7 @@ spec:
`
func TestDecodeDeploymentv1(t *testing.T) {
- gvr := &metav1.GroupVersionResource{
+ gvr := metav1.GroupVersionResource{
Group: "apps",
Version: "v1",
Resource: "deployments",
@@ -148,7 +149,7 @@ var deploymentv1 = `
`
func TestDecodeJobv1(t *testing.T) {
- gvr := &metav1.GroupVersionResource{
+ gvr := metav1.GroupVersionResource{
Group: "batch",
Version: "v1",
Resource: "jobs",
@@ -178,7 +179,7 @@ spec:
`
func TestDecodeUnsupported(t *testing.T) {
- gvr := &metav1.GroupVersionResource{
+ gvr := metav1.GroupVersionResource{
Group: "batch",
Version: "v1",
Resource: "jobs",
@@ -215,7 +216,7 @@ spec:
`
func TestDecodeUnknown(t *testing.T) {
- gvr := &metav1.GroupVersionResource{
+ gvr := metav1.GroupVersionResource{
Group: "unknown",
Version: "123",
Resource: "What??",
diff --git a/store/url.go b/store/url.go
index e34368178b..a60ab6beb6 100644
--- a/store/url.go
+++ b/store/url.go
@@ -6,8 +6,9 @@ import (
"io/ioutil"
"net/http"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
log "github.com/sirupsen/logrus"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
// URLReader implements the ArtifactReader interface for urls
diff --git a/store/url_test.go b/store/url_test.go
index 1a2569bf81..5234e9c8e7 100644
--- a/store/url_test.go
+++ b/store/url_test.go
@@ -2,13 +2,13 @@ package store
import (
"fmt"
- "testing"
-
"net/http"
"net/http/httptest"
+ "testing"
- "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
"github.com/stretchr/testify/assert"
+
+ "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
)
func TestURLReader(t *testing.T) {
diff --git a/test/manifests/argo-events-ns.yaml b/test/manifests/argo-events-ns.yaml
new file mode 100644
index 0000000000..e4d24193ce
--- /dev/null
+++ b/test/manifests/argo-events-ns.yaml
@@ -0,0 +1,4 @@
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: argo-events
\ No newline at end of file
diff --git a/test/manifests/kustomization.yaml b/test/manifests/kustomization.yaml
new file mode 100644
index 0000000000..64b9d0684c
--- /dev/null
+++ b/test/manifests/kustomization.yaml
@@ -0,0 +1,8 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+
+resources:
+ - ../../manifests/namespace-install
+
+commonLabels:
+ "app.kubernetes.io/part-of": "argo-events"
|