From 6d3d3aeaa0b4f957faed3a8f14a2641c796e3ae2 Mon Sep 17 00:00:00 2001 From: Vaibhav Date: Fri, 1 Feb 2019 16:02:16 -0500 Subject: [PATCH] Update api common (#161) * Moving EventProtocol to api common * Moving EventProtocol to api common --- gateways/event-source_test.go | 9 +- gateways/state_test.go | 1 - hack/generate-proto.sh | 2 +- hack/update-codegen.sh | 1 + pkg/apis/common/deepcopy_generated.go | 52 +- pkg/apis/common/event.go | 48 + pkg/apis/common/generated.pb.go | 1103 +++++++++++++-- pkg/apis/common/generated.proto | 48 + pkg/apis/gateway/v1alpha1/generated.pb.go | 921 ++----------- pkg/apis/gateway/v1alpha1/generated.proto | 25 +- pkg/apis/gateway/v1alpha1/types.go | 25 +- .../gateway/v1alpha1/zz_generated.deepcopy.go | 57 +- pkg/apis/sensor/v1alpha1/generated.pb.go | 1227 +++-------------- pkg/apis/sensor/v1alpha1/generated.proto | 53 +- pkg/apis/sensor/v1alpha1/types.go | 53 +- .../sensor/v1alpha1/zz_generated.deepcopy.go | 52 +- 16 files changed, 1470 insertions(+), 2207 deletions(-) diff --git a/gateways/event-source_test.go b/gateways/event-source_test.go index 810807f08a..958a3228af 100644 --- a/gateways/event-source_test.go +++ b/gateways/event-source_test.go @@ -2,12 +2,13 @@ package gateways import ( "context" - "github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1" "os" "sync" "testing" "github.com/argoproj/argo-events/common" + pc "github.com/argoproj/argo-events/pkg/apis/common" + "github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1" gwfake "github.com/argoproj/argo-events/pkg/client/gateway/clientset/versioned/fake" "github.com/smartystreets/goconvey/convey" corev1 "k8s.io/api/core/v1" @@ -29,6 +30,12 @@ func getGatewayConfig() *GatewayConfig { Watchers: &v1alpha1.NotificationWatchers{ Sensors: []v1alpha1.SensorNotificationWatcher{}, }, + EventProtocol: &pc.EventProtocol{ + Type: pc.HTTP, + Http: pc.Http{ + Port: "9000", + }, + }, }, }, Clientset: fake.NewSimpleClientset(), diff --git a/gateways/state_test.go b/gateways/state_test.go index 1dccffdd1b..f1c7290133 100644 --- a/gateways/state_test.go +++ b/gateways/state_test.go @@ -30,7 +30,6 @@ func TestGatewayState(t *testing.T) { var err error gc.gw, err = gc.gwcs.ArgoprojV1alpha1().Gateways(gc.gw.Namespace).Create(gc.gw) convey.So(err, convey.ShouldBeNil) - }) convey.Convey("Update gateway resource test-node node state to running", func() { diff --git a/hack/generate-proto.sh b/hack/generate-proto.sh index e698ed01cd..7143d8b881 100755 --- a/hack/generate-proto.sh +++ b/hack/generate-proto.sh @@ -45,4 +45,4 @@ $(go run /Users/vpage/go/src/github.com/argoproj/argo-events/vendor/k8s.io/code- # generate protocol documentation protoc -I=${GOPATH}/src --doc_out=../docs --doc_opt=markdown,gateway-protocol.md github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1/generated.proto -protoc -I=${GOPATH}/src --doc_out=../docs --doc_opt=markdown,sensor-protocol.md github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1/generated.proto \ No newline at end of file +protoc -I=${GOPATH}/src --doc_out=../docs --doc_opt=markdown,sensor-protocol.md github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1/generated.proto diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 2c90f2204f..9cf71fd6e2 100644 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -32,3 +32,4 @@ bash -x ${CODEGEN_PKG}/generate-groups.sh "deepcopy,client,informer,lister" \ "gateway:v1alpha1" \ --go-header-file ./custom-boilerplate.go.txt +go run ${GOPATH}/src/k8s.io/gengo/examples/deepcopy-gen/main.go -i github.com/argoproj/argo-events/pkg/apis/common -p github.com/argoproj/argo-events/pkg/apis/common \ No newline at end of file diff --git a/pkg/apis/common/deepcopy_generated.go b/pkg/apis/common/deepcopy_generated.go index 057cbf6964..695144570b 100644 --- a/pkg/apis/common/deepcopy_generated.go +++ b/pkg/apis/common/deepcopy_generated.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2019 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -80,6 +80,56 @@ func (in *EventContext) DeepCopy() *EventContext { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EventProtocol) DeepCopyInto(out *EventProtocol) { + *out = *in + out.Http = in.Http + out.Nats = in.Nats + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventProtocol. +func (in *EventProtocol) DeepCopy() *EventProtocol { + if in == nil { + return nil + } + out := new(EventProtocol) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Http) DeepCopyInto(out *Http) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Http. +func (in *Http) DeepCopy() *Http { + if in == nil { + return nil + } + out := new(Http) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Nats) DeepCopyInto(out *Nats) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Nats. +func (in *Nats) DeepCopy() *Nats { + if in == nil { + return nil + } + out := new(Nats) + 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/event.go b/pkg/apis/common/event.go index 3e90a1a15a..440bfcade7 100644 --- a/pkg/apis/common/event.go +++ b/pkg/apis/common/event.go @@ -97,3 +97,51 @@ type URI struct { Query string `json:"query" protobuf:"bytes,7,opt,name=query"` Fragment string `json:"fragment" protobuf:"bytes,8,opt,name=fragment"` } + +// Dispatch protocol contains configuration necessary to dispatch an event to sensor over different communication protocols +type EventProtocol struct { + Type EventProtocolType `json:"type" protobuf:"bytes,1,opt,name=type"` + + Http Http `json:"http" protobuf:"bytes,2,opt,name=http"` + + Nats Nats `json:"nats" protobuf:"bytes,3,opt,name=nats"` +} + +// Http contains the information required to setup a http server and listen to incoming events +type Http struct { + // Port on which server will run + Port string `json:"port" protobuf:"bytes,1,opt,name=port"` +} + +// Nats contains the information required to connect to nats server and get subscriptions +type Nats struct { + // URL is nats server/service URL + URL string `json:"url" protobuf:"bytes,1,opt,name=url"` + + // Subscribe starting with most recently published value. Refer https://github.com/nats-io/go-nats-streaming + StartWithLastReceived bool `json:"startWithLastReceived,omitempty" protobuf:"bytes,2,opt,name=startWithLastReceived"` + + // Receive all stored values in order. + DeliverAllAvailable bool `json:"deliverAllAvailable,omitempty" protobuf:"bytes,3,opt,name=deliverAllAvailable"` + + // Receive messages starting at a specific sequence number + StartAtSequence string `json:"startAtSequence,omitempty" protobuf:"bytes,4,opt,name=startAtSequence"` + + // Subscribe starting at a specific time + StartAtTime string `json:"startAtTime,omitempty" protobuf:"bytes,5,opt,name=startAtTime"` + + // Subscribe starting a specific amount of time in the past (e.g. 30 seconds ago) + StartAtTimeDelta string `json:"startAtTimeDelta,omitempty" protobuf:"bytes,6,opt,name=startAtTimeDelta"` + + // Durable subscriptions allow clients to assign a durable name to a subscription when it is created + Durable bool `json:"durable,omitempty" protobuf:"bytes,7,opt,name=durable"` + + // The NATS Streaming cluster ID + ClusterId string `json:"clusterId,omitempty" protobuf:"bytes,8,opt,name=clusterId"` + + // The NATS Streaming cluster ID + ClientId string `json:"clientId,omitempty" protobuf:"bytes,9,opt,name=clientId"` + + // Type of the connection. either standard or streaming + Type NatsType `json:"type" protobuf:"bytes,10,opt,name=type"` +} diff --git a/pkg/apis/common/generated.pb.go b/pkg/apis/common/generated.pb.go index 81e941da23..a8916c7b53 100644 --- a/pkg/apis/common/generated.pb.go +++ b/pkg/apis/common/generated.pb.go @@ -46,7 +46,7 @@ const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package func (m *Event) Reset() { *m = Event{} } func (*Event) ProtoMessage() {} func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_add59c9e28fc7b12, []int{0} + return fileDescriptor_generated_1ecb42411ad60761, []int{0} } func (m *Event) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -74,7 +74,7 @@ var xxx_messageInfo_Event proto.InternalMessageInfo func (m *EventContext) Reset() { *m = EventContext{} } func (*EventContext) ProtoMessage() {} func (*EventContext) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_add59c9e28fc7b12, []int{1} + return fileDescriptor_generated_1ecb42411ad60761, []int{1} } func (m *EventContext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -99,10 +99,94 @@ func (m *EventContext) XXX_DiscardUnknown() { var xxx_messageInfo_EventContext proto.InternalMessageInfo +func (m *EventProtocol) Reset() { *m = EventProtocol{} } +func (*EventProtocol) ProtoMessage() {} +func (*EventProtocol) Descriptor() ([]byte, []int) { + return fileDescriptor_generated_1ecb42411ad60761, []int{2} +} +func (m *EventProtocol) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventProtocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *EventProtocol) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventProtocol.Merge(dst, src) +} +func (m *EventProtocol) XXX_Size() int { + return m.Size() +} +func (m *EventProtocol) XXX_DiscardUnknown() { + xxx_messageInfo_EventProtocol.DiscardUnknown(m) +} + +var xxx_messageInfo_EventProtocol proto.InternalMessageInfo + +func (m *Http) Reset() { *m = Http{} } +func (*Http) ProtoMessage() {} +func (*Http) Descriptor() ([]byte, []int) { + return fileDescriptor_generated_1ecb42411ad60761, []int{3} +} +func (m *Http) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Http) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *Http) XXX_Merge(src proto.Message) { + xxx_messageInfo_Http.Merge(dst, src) +} +func (m *Http) XXX_Size() int { + return m.Size() +} +func (m *Http) XXX_DiscardUnknown() { + xxx_messageInfo_Http.DiscardUnknown(m) +} + +var xxx_messageInfo_Http proto.InternalMessageInfo + +func (m *Nats) Reset() { *m = Nats{} } +func (*Nats) ProtoMessage() {} +func (*Nats) Descriptor() ([]byte, []int) { + return fileDescriptor_generated_1ecb42411ad60761, []int{4} +} +func (m *Nats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Nats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *Nats) XXX_Merge(src proto.Message) { + xxx_messageInfo_Nats.Merge(dst, src) +} +func (m *Nats) XXX_Size() int { + return m.Size() +} +func (m *Nats) XXX_DiscardUnknown() { + xxx_messageInfo_Nats.DiscardUnknown(m) +} + +var xxx_messageInfo_Nats proto.InternalMessageInfo + func (m *S3Artifact) Reset() { *m = S3Artifact{} } func (*S3Artifact) ProtoMessage() {} func (*S3Artifact) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_add59c9e28fc7b12, []int{2} + return fileDescriptor_generated_1ecb42411ad60761, []int{5} } func (m *S3Artifact) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -130,7 +214,7 @@ var xxx_messageInfo_S3Artifact proto.InternalMessageInfo func (m *S3Bucket) Reset() { *m = S3Bucket{} } func (*S3Bucket) ProtoMessage() {} func (*S3Bucket) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_add59c9e28fc7b12, []int{3} + return fileDescriptor_generated_1ecb42411ad60761, []int{6} } func (m *S3Bucket) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -158,7 +242,7 @@ var xxx_messageInfo_S3Bucket proto.InternalMessageInfo func (m *S3Filter) Reset() { *m = S3Filter{} } func (*S3Filter) ProtoMessage() {} func (*S3Filter) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_add59c9e28fc7b12, []int{4} + return fileDescriptor_generated_1ecb42411ad60761, []int{7} } func (m *S3Filter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -186,7 +270,7 @@ var xxx_messageInfo_S3Filter proto.InternalMessageInfo func (m *URI) Reset() { *m = URI{} } func (*URI) ProtoMessage() {} func (*URI) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_add59c9e28fc7b12, []int{5} + return fileDescriptor_generated_1ecb42411ad60761, []int{8} } func (m *URI) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -215,6 +299,9 @@ func init() { proto.RegisterType((*Event)(nil), "github.com.argoproj.argo_events.pkg.apis.common.Event") proto.RegisterType((*EventContext)(nil), "github.com.argoproj.argo_events.pkg.apis.common.EventContext") proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo_events.pkg.apis.common.EventContext.ExtensionsEntry") + proto.RegisterType((*EventProtocol)(nil), "github.com.argoproj.argo_events.pkg.apis.common.EventProtocol") + proto.RegisterType((*Http)(nil), "github.com.argoproj.argo_events.pkg.apis.common.Http") + proto.RegisterType((*Nats)(nil), "github.com.argoproj.argo_events.pkg.apis.common.Nats") 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") @@ -340,6 +427,136 @@ func (m *EventContext) MarshalTo(dAtA []byte) (int, error) { return i, nil } +func (m *EventProtocol) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventProtocol) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i += copy(dAtA[i:], m.Type) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Http.Size())) + n5, err := m.Http.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Nats.Size())) + n6, err := m.Nats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 + return i, nil +} + +func (m *Http) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Http) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Port))) + i += copy(dAtA[i:], m.Port) + return i, nil +} + +func (m *Nats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Nats) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL))) + i += copy(dAtA[i:], m.URL) + dAtA[i] = 0x10 + i++ + if m.StartWithLastReceived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + dAtA[i] = 0x18 + i++ + if m.DeliverAllAvailable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.StartAtSequence))) + i += copy(dAtA[i:], m.StartAtSequence) + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.StartAtTime))) + i += copy(dAtA[i:], m.StartAtTime) + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.StartAtTimeDelta))) + i += copy(dAtA[i:], m.StartAtTimeDelta) + dAtA[i] = 0x38 + i++ + if m.Durable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + dAtA[i] = 0x42 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClusterId))) + i += copy(dAtA[i:], m.ClusterId) + dAtA[i] = 0x4a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClientId))) + i += copy(dAtA[i:], m.ClientId) + dAtA[i] = 0x52 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i += copy(dAtA[i:], m.Type) + return i, nil +} + func (m *S3Artifact) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -363,11 +580,11 @@ func (m *S3Artifact) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Bucket.Size())) - n5, err := m.Bucket.MarshalTo(dAtA[i:]) + n7, err := m.Bucket.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n5 + i += n7 } dAtA[i] = 0x1a i++ @@ -385,21 +602,21 @@ func (m *S3Artifact) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x2a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.AccessKey.Size())) - n6, err := m.AccessKey.MarshalTo(dAtA[i:]) + n8, err := m.AccessKey.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n6 + i += n8 } if m.SecretKey != nil { dAtA[i] = 0x32 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.SecretKey.Size())) - n7, err := m.SecretKey.MarshalTo(dAtA[i:]) + n9, err := m.SecretKey.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n7 + i += n9 } dAtA[i] = 0x3a i++ @@ -409,11 +626,11 @@ func (m *S3Artifact) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x42 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Filter.Size())) - n8, err := m.Filter.MarshalTo(dAtA[i:]) + n10, err := m.Filter.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n8 + i += n10 } return i, nil } @@ -580,6 +797,58 @@ func (m *EventContext) Size() (n int) { return n } +func (m *EventProtocol) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Http.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Nats.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Http) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Port) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Nats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.URL) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + n += 2 + l = len(m.StartAtSequence) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.StartAtTime) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.StartAtTimeDelta) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + l = len(m.ClusterId) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ClientId) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + func (m *S3Artifact) Size() (n int) { if m == nil { return 0 @@ -714,6 +983,47 @@ func (this *EventContext) String() string { }, "") return s } +func (this *EventProtocol) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EventProtocol{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Http:` + strings.Replace(strings.Replace(this.Http.String(), "Http", "Http", 1), `&`, ``, 1) + `,`, + `Nats:` + strings.Replace(strings.Replace(this.Nats.String(), "Nats", "Nats", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Http) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Http{`, + `Port:` + fmt.Sprintf("%v", this.Port) + `,`, + `}`, + }, "") + return s +} +func (this *Nats) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Nats{`, + `URL:` + fmt.Sprintf("%v", this.URL) + `,`, + `StartWithLastReceived:` + fmt.Sprintf("%v", this.StartWithLastReceived) + `,`, + `DeliverAllAvailable:` + fmt.Sprintf("%v", this.DeliverAllAvailable) + `,`, + `StartAtSequence:` + fmt.Sprintf("%v", this.StartAtSequence) + `,`, + `StartAtTime:` + fmt.Sprintf("%v", this.StartAtTime) + `,`, + `StartAtTimeDelta:` + fmt.Sprintf("%v", this.StartAtTimeDelta) + `,`, + `Durable:` + fmt.Sprintf("%v", this.Durable) + `,`, + `ClusterId:` + fmt.Sprintf("%v", this.ClusterId) + `,`, + `ClientId:` + fmt.Sprintf("%v", this.ClientId) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `}`, + }, "") + return s +} func (this *S3Artifact) String() string { if this == nil { return "nil" @@ -1298,7 +1608,7 @@ func (m *EventContext) Unmarshal(dAtA []byte) error { } return nil } -func (m *S3Artifact) Unmarshal(dAtA []byte) error { +func (m *EventProtocol) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1321,15 +1631,15 @@ func (m *S3Artifact) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: S3Artifact: wiretype end group for non-group") + return fmt.Errorf("proto: EventProtocol: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: S3Artifact: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventProtocol: 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) + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1354,11 +1664,11 @@ func (m *S3Artifact) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Endpoint = string(dAtA[iNdEx:postIndex]) + m.Type = EventProtocolType(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Bucket", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Http", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1382,18 +1692,15 @@ func (m *S3Artifact) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Bucket == nil { - m.Bucket = &S3Bucket{} - } - if err := m.Bucket.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Http.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) + return fmt.Errorf("proto: wrong wireType = %d for field Nats", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -1403,44 +1710,578 @@ func (m *S3Artifact) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen 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) + if err := m.Nats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - 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 - } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err } - m.Insecure = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessKey", wireType) + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Http) 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: Http: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Http: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 > l { + return io.ErrUnexpectedEOF + } + m.Port = 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) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Nats) 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: Nats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Nats: 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 > l { + return io.ErrUnexpectedEOF + } + m.URL = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartWithLastReceived", 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.StartWithLastReceived = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeliverAllAvailable", 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.DeliverAllAvailable = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartAtSequence", 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 > l { + return io.ErrUnexpectedEOF + } + m.StartAtSequence = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartAtTime", 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 > l { + return io.ErrUnexpectedEOF + } + m.StartAtTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartAtTimeDelta", 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 > l { + return io.ErrUnexpectedEOF + } + m.StartAtTimeDelta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Durable", 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.Durable = bool(v != 0) + case 8: + 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 > l { + return io.ErrUnexpectedEOF + } + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + 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 > l { + return io.ErrUnexpectedEOF + } + m.ClientId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + 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 > l { + return io.ErrUnexpectedEOF + } + m.Type = NatsType(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) > 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 > 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 > 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 > 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 { @@ -2181,73 +3022,91 @@ var ( ) func init() { - proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/common/generated.proto", fileDescriptor_generated_add59c9e28fc7b12) -} - -var fileDescriptor_generated_add59c9e28fc7b12 = []byte{ - // 1012 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0xdf, 0x6e, 0x1b, 0x45, - 0x14, 0xc6, 0xb3, 0x49, 0xec, 0xd8, 0xe3, 0x96, 0x86, 0x81, 0x0b, 0x2b, 0x12, 0x4e, 0x64, 0x04, - 0x0a, 0x52, 0xb3, 0xab, 0x26, 0x45, 0x2a, 0x48, 0x15, 0x74, 0x53, 0x57, 0x84, 0xd0, 0x2a, 0x8c, - 0x49, 0x85, 0x2a, 0x21, 0x98, 0xac, 0xc7, 0xf6, 0x60, 0xef, 0xce, 0x32, 0x33, 0x1b, 0xe2, 0x3b, - 0x78, 0x03, 0x84, 0xc4, 0xab, 0xf0, 0x0c, 0xb9, 0x42, 0xbd, 0xec, 0x55, 0x44, 0xcc, 0x5b, 0x70, - 0x85, 0xe6, 0xcc, 0xec, 0x9f, 0x3a, 0xed, 0x45, 0xe8, 0x4d, 0x32, 0x7b, 0xce, 0x77, 0x7e, 0x73, - 0xe6, 0xec, 0xb7, 0x63, 0xf4, 0xd9, 0x88, 0xeb, 0x71, 0x76, 0xe2, 0x47, 0x22, 0x0e, 0xa8, 0x1c, - 0x89, 0x54, 0x8a, 0x1f, 0x61, 0xb1, 0xc3, 0x4e, 0x59, 0xa2, 0x55, 0x90, 0x4e, 0x46, 0x01, 0x4d, - 0xb9, 0x0a, 0x22, 0x11, 0xc7, 0x22, 0x09, 0x46, 0x2c, 0x61, 0x92, 0x6a, 0x36, 0xf0, 0x53, 0x29, - 0xb4, 0xc0, 0x41, 0x09, 0xf0, 0x73, 0x00, 0x2c, 0xbe, 0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2, - 0x87, 0x47, 0x2e, 0x4e, 0x0a, 0x85, 0xe1, 0x8d, 0x85, 0xd2, 0xe0, 0xd8, 0x0a, 0xef, 0x0b, 0xa1, - 0x34, 0x81, 0x8c, 0x51, 0xa4, 0x42, 0x6a, 0x30, 0x69, 0xad, 0x54, 0x1c, 0x09, 0xa9, 0x09, 0x64, - 0x40, 0x41, 0xf5, 0x18, 0x2c, 0x57, 0x61, 0x1c, 0x51, 0x3d, 0x26, 0x90, 0xc1, 0xef, 0xa3, 0xda, - 0x4f, 0x19, 0x93, 0x33, 0xe7, 0xa2, 0x9b, 0xb9, 0x8b, 0xbe, 0x36, 0x41, 0x62, 0x73, 0xa6, 0xf1, - 0xa1, 0xa4, 0xa3, 0xd8, 0xb8, 0xad, 0xf1, 0x72, 0xe3, 0x8f, 0x5c, 0x9c, 0x14, 0x8a, 0xf0, 0xf6, - 0xf9, 0x65, 0x67, 0xe9, 0xf9, 0x65, 0x67, 0xe9, 0xc5, 0x65, 0x67, 0xe9, 0x97, 0x79, 0xc7, 0x3b, - 0x9f, 0x77, 0xbc, 0xe7, 0xf3, 0x8e, 0xf7, 0x62, 0xde, 0xf1, 0xfe, 0x9e, 0x77, 0xbc, 0xdf, 0xfe, - 0xe9, 0x2c, 0x3d, 0xab, 0x5b, 0xb3, 0xfc, 0x17, 0x00, 0x00, 0xff, 0xff, 0x8b, 0xd7, 0x8c, 0x20, - 0x6f, 0x09, 0x00, 0x00, + proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/common/generated.proto", fileDescriptor_generated_1ecb42411ad60761) +} + +var fileDescriptor_generated_1ecb42411ad60761 = []byte{ + // 1309 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcf, 0x6f, 0x1b, 0xc5, + 0x17, 0x8f, 0x13, 0xdb, 0xb1, 0xc7, 0xed, 0x37, 0xe9, 0xf4, 0x5b, 0x61, 0x05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 0x72, 0x5c, 0x14, 0x1e, 0x31, 0x4d, 0xe7, 0x45, 0xb9, 0x6f, 0x8a, 0x92, + 0x49, 0xac, 0x79, 0xc4, 0xce, 0x04, 0xdc, 0x7c, 0x53, 0x40, 0xa2, 0x79, 0xe8, 0xf2, 0x58, 0x2b, + 0x2d, 0x67, 0x83, 0xda, 0xbf, 0x95, 0x50, 0xa5, 0x63, 0x3a, 0x81, 0x07, 0x68, 0x39, 0x10, 0xb1, + 0x66, 0xcf, 0x75, 0xb3, 0xb4, 0x51, 0xda, 0x6c, 0x6c, 0xdd, 0x75, 0xce, 0xd9, 0x3b, 0x07, 0x88, + 0x76, 0x52, 0x12, 0x6f, 0xe5, 0xc5, 0xf1, 0xfa, 0xc2, 0xe4, 0x78, 0x7d, 0xd9, 0x1a, 0x48, 0x46, + 0x8f, 0xd7, 0x51, 0xb9, 0x4b, 0x35, 0x6d, 0x2e, 0x6e, 0x94, 0x36, 0x2f, 0x78, 0x0d, 0x83, 0xd9, + 0xa7, 0xe3, 0x50, 0xd0, 0x2e, 0x01, 0x47, 0xfb, 0xf7, 0x2a, 0xba, 0x30, 0xcd, 0x85, 0x5d, 0x54, + 0x87, 0x94, 0xdf, 0x8c, 0x87, 0x0c, 0xaa, 0xab, 0x7b, 0x97, 0x2c, 0x7d, 0xbd, 0x93, 0x39, 0x48, + 0x81, 0xc1, 0xbb, 0x68, 0x35, 0x5f, 0x3c, 0x66, 0x52, 0x71, 0x11, 0x43, 0xba, 0xba, 0xd7, 0xb4, + 0x71, 0xab, 0x9d, 0x19, 0x3f, 0x39, 0x13, 0x81, 0xbf, 0x42, 0x38, 0x08, 0x45, 0xd2, 0x05, 0xa8, + 0xca, 0x78, 0x96, 0x80, 0x67, 0xcd, 0xf2, 0xe0, 0x9d, 0x33, 0x08, 0x32, 0x27, 0x0a, 0x7f, 0x8b, + 0xaa, 0x4a, 0x24, 0x32, 0x60, 0xcd, 0x32, 0x74, 0xf7, 0xd6, 0xb9, 0xbb, 0x7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 0x82, 0x8c, 0xd8, 0x0c, 0x00, 0x00, } diff --git a/pkg/apis/common/generated.proto b/pkg/apis/common/generated.proto index 71108a6ea6..16484c6041 100644 --- a/pkg/apis/common/generated.proto +++ b/pkg/apis/common/generated.proto @@ -76,6 +76,54 @@ message EventContext { map extensions = 9; } +// Dispatch protocol contains configuration necessary to dispatch an event to sensor over different communication protocols +message EventProtocol { + optional string type = 1; + + optional Http http = 2; + + optional Nats nats = 3; +} + +// Http contains the information required to setup a http server and listen to incoming events +message Http { + // Port on which server will run + optional string port = 1; +} + +// Nats contains the information required to connect to nats server and get subscriptions +message Nats { + // URL is nats server/service URL + optional string url = 1; + + // Subscribe starting with most recently published value. Refer https://github.com/nats-io/go-nats-streaming + optional bool startWithLastReceived = 2; + + // Receive all stored values in order. + optional bool deliverAllAvailable = 3; + + // Receive messages starting at a specific sequence number + optional string startAtSequence = 4; + + // Subscribe starting at a specific time + optional string startAtTime = 5; + + // Subscribe starting a specific amount of time in the past (e.g. 30 seconds ago) + optional string startAtTimeDelta = 6; + + // Durable subscriptions allow clients to assign a durable name to a subscription when it is created + optional bool durable = 7; + + // The NATS Streaming cluster ID + optional string clusterId = 8; + + // The NATS Streaming cluster ID + optional string clientId = 9; + + // Type of the connection. either standard or streaming + optional string type = 10; +} + // S3Artifact contains information about an artifact in S3 message S3Artifact { optional string endpoint = 1; diff --git a/pkg/apis/gateway/v1alpha1/generated.pb.go b/pkg/apis/gateway/v1alpha1/generated.pb.go index 6fa3d24910..2d8ba2bcf3 100644 --- a/pkg/apis/gateway/v1alpha1/generated.pb.go +++ b/pkg/apis/gateway/v1alpha1/generated.pb.go @@ -20,11 +20,10 @@ package v1alpha1 import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" +import common "github.com/argoproj/argo-events/pkg/apis/common" import v11 "k8s.io/api/core/v1" -import github_com_argoproj_argo_events_pkg_apis_common "github.com/argoproj/argo-events/pkg/apis/common" - import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" import strings "strings" @@ -43,38 +42,10 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package -func (m *EventProtocol) Reset() { *m = EventProtocol{} } -func (*EventProtocol) ProtoMessage() {} -func (*EventProtocol) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_c8a632955ef38b96, []int{0} -} -func (m *EventProtocol) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventProtocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (dst *EventProtocol) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventProtocol.Merge(dst, src) -} -func (m *EventProtocol) XXX_Size() int { - return m.Size() -} -func (m *EventProtocol) XXX_DiscardUnknown() { - xxx_messageInfo_EventProtocol.DiscardUnknown(m) -} - -var xxx_messageInfo_EventProtocol proto.InternalMessageInfo - func (m *Gateway) Reset() { *m = Gateway{} } func (*Gateway) ProtoMessage() {} func (*Gateway) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_c8a632955ef38b96, []int{1} + return fileDescriptor_generated_d61eb949e4c0f5b3, []int{0} } func (m *Gateway) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -102,7 +73,7 @@ var xxx_messageInfo_Gateway proto.InternalMessageInfo func (m *GatewayList) Reset() { *m = GatewayList{} } func (*GatewayList) ProtoMessage() {} func (*GatewayList) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_c8a632955ef38b96, []int{2} + return fileDescriptor_generated_d61eb949e4c0f5b3, []int{1} } func (m *GatewayList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -130,7 +101,7 @@ var xxx_messageInfo_GatewayList proto.InternalMessageInfo func (m *GatewayNotificationWatcher) Reset() { *m = GatewayNotificationWatcher{} } func (*GatewayNotificationWatcher) ProtoMessage() {} func (*GatewayNotificationWatcher) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_c8a632955ef38b96, []int{3} + return fileDescriptor_generated_d61eb949e4c0f5b3, []int{2} } func (m *GatewayNotificationWatcher) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -158,7 +129,7 @@ var xxx_messageInfo_GatewayNotificationWatcher proto.InternalMessageInfo func (m *GatewaySpec) Reset() { *m = GatewaySpec{} } func (*GatewaySpec) ProtoMessage() {} func (*GatewaySpec) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_c8a632955ef38b96, []int{4} + return fileDescriptor_generated_d61eb949e4c0f5b3, []int{3} } func (m *GatewaySpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -186,7 +157,7 @@ var xxx_messageInfo_GatewaySpec proto.InternalMessageInfo func (m *GatewayStatus) Reset() { *m = GatewayStatus{} } func (*GatewayStatus) ProtoMessage() {} func (*GatewayStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_c8a632955ef38b96, []int{5} + return fileDescriptor_generated_d61eb949e4c0f5b3, []int{4} } func (m *GatewayStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -211,66 +182,10 @@ func (m *GatewayStatus) XXX_DiscardUnknown() { var xxx_messageInfo_GatewayStatus proto.InternalMessageInfo -func (m *Http) Reset() { *m = Http{} } -func (*Http) ProtoMessage() {} -func (*Http) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_c8a632955ef38b96, []int{6} -} -func (m *Http) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Http) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (dst *Http) XXX_Merge(src proto.Message) { - xxx_messageInfo_Http.Merge(dst, src) -} -func (m *Http) XXX_Size() int { - return m.Size() -} -func (m *Http) XXX_DiscardUnknown() { - xxx_messageInfo_Http.DiscardUnknown(m) -} - -var xxx_messageInfo_Http proto.InternalMessageInfo - -func (m *Nats) Reset() { *m = Nats{} } -func (*Nats) ProtoMessage() {} -func (*Nats) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_c8a632955ef38b96, []int{7} -} -func (m *Nats) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Nats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (dst *Nats) XXX_Merge(src proto.Message) { - xxx_messageInfo_Nats.Merge(dst, src) -} -func (m *Nats) XXX_Size() int { - return m.Size() -} -func (m *Nats) XXX_DiscardUnknown() { - xxx_messageInfo_Nats.DiscardUnknown(m) -} - -var xxx_messageInfo_Nats proto.InternalMessageInfo - func (m *NodeStatus) Reset() { *m = NodeStatus{} } func (*NodeStatus) ProtoMessage() {} func (*NodeStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_c8a632955ef38b96, []int{8} + return fileDescriptor_generated_d61eb949e4c0f5b3, []int{5} } func (m *NodeStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -298,7 +213,7 @@ var xxx_messageInfo_NodeStatus proto.InternalMessageInfo func (m *NotificationWatchers) Reset() { *m = NotificationWatchers{} } func (*NotificationWatchers) ProtoMessage() {} func (*NotificationWatchers) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_c8a632955ef38b96, []int{9} + return fileDescriptor_generated_d61eb949e4c0f5b3, []int{6} } func (m *NotificationWatchers) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -326,7 +241,7 @@ var xxx_messageInfo_NotificationWatchers proto.InternalMessageInfo func (m *SensorNotificationWatcher) Reset() { *m = SensorNotificationWatcher{} } func (*SensorNotificationWatcher) ProtoMessage() {} func (*SensorNotificationWatcher) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_c8a632955ef38b96, []int{10} + return fileDescriptor_generated_d61eb949e4c0f5b3, []int{7} } func (m *SensorNotificationWatcher) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -352,57 +267,16 @@ func (m *SensorNotificationWatcher) XXX_DiscardUnknown() { var xxx_messageInfo_SensorNotificationWatcher proto.InternalMessageInfo func init() { - proto.RegisterType((*EventProtocol)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.EventProtocol") 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((*GatewayNotificationWatcher)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.GatewayNotificationWatcher") 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((*Http)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.Http") - proto.RegisterType((*Nats)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.Nats") proto.RegisterType((*NodeStatus)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.NodeStatus") proto.RegisterType((*NotificationWatchers)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.NotificationWatchers") proto.RegisterType((*SensorNotificationWatcher)(nil), "github.com.argoproj.argo_events.pkg.apis.gateway.v1alpha1.SensorNotificationWatcher") } -func (m *EventProtocol) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventProtocol) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Http.Size())) - n1, err := m.Http.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Nats.Size())) - n2, err := m.Nats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - return i, nil -} - func (m *Gateway) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -421,27 +295,27 @@ func (m *Gateway) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n3, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n3 + i += n1 dAtA[i] = 0x12 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n4, err := m.Status.MarshalTo(dAtA[i:]) + n2, err := m.Status.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n4 + i += n2 dAtA[i] = 0x1a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n5, err := m.Spec.MarshalTo(dAtA[i:]) + n3, err := m.Spec.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n5 + i += n3 return i, nil } @@ -463,11 +337,11 @@ func (m *GatewayList) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n6, err := m.ListMeta.MarshalTo(dAtA[i:]) + n4, err := m.ListMeta.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n6 + i += n4 if len(m.Items) > 0 { for _, msg := range m.Items { dAtA[i] = 0x12 @@ -532,11 +406,11 @@ func (m *GatewaySpec) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintGenerated(dAtA, i, uint64(m.DeploySpec.Size())) - n7, err := m.DeploySpec.MarshalTo(dAtA[i:]) + n5, err := m.DeploySpec.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n7 + i += n5 } dAtA[i] = 0x12 i++ @@ -554,34 +428,36 @@ func (m *GatewaySpec) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x2a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.ServiceSpec.Size())) - n8, err := m.ServiceSpec.MarshalTo(dAtA[i:]) + n6, err := m.ServiceSpec.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n8 + i += n6 } if m.Watchers != nil { dAtA[i] = 0x32 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Watchers.Size())) - n9, err := m.Watchers.MarshalTo(dAtA[i:]) + n7, err := m.Watchers.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n9 + i += n7 } dAtA[i] = 0x3a i++ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ProcessorPort))) i += copy(dAtA[i:], m.ProcessorPort) - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.EventProtocol.Size())) - n10, err := m.EventProtocol.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.EventProtocol != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.EventProtocol.Size())) + n8, err := m.EventProtocol.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } - i += n10 return i, nil } @@ -607,11 +483,11 @@ func (m *GatewayStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.StartedAt.Size())) - n11, err := m.StartedAt.MarshalTo(dAtA[i:]) + n9, err := m.StartedAt.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n11 + i += n9 dAtA[i] = 0x22 i++ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) @@ -640,72 +516,16 @@ func (m *GatewayStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintGenerated(dAtA, i, uint64((&v).Size())) - n12, err := (&v).MarshalTo(dAtA[i:]) + n10, err := (&v).MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n12 + i += n10 } } return i, nil } -func (m *Http) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Http) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Port))) - i += copy(dAtA[i:], m.Port) - return i, nil -} - -func (m *Nats) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Nats) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL))) - i += copy(dAtA[i:], m.URL) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClientId))) - i += copy(dAtA[i:], m.ClientId) - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClusterId))) - i += copy(dAtA[i:], m.ClusterId) - return i, nil -} - func (m *NodeStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -740,11 +560,11 @@ func (m *NodeStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x3a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.StartedAt.Size())) - n13, err := m.StartedAt.MarshalTo(dAtA[i:]) + n11, err := m.StartedAt.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n13 + i += n11 dAtA[i] = 0x42 i++ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) @@ -752,11 +572,11 @@ func (m *NodeStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x4a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.UpdateTime.Size())) - n14, err := m.UpdateTime.MarshalTo(dAtA[i:]) + n12, err := m.UpdateTime.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n14 + i += n12 return i, nil } @@ -833,21 +653,6 @@ func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return offset + 1 } -func (m *EventProtocol) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Http.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Nats.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - func (m *Gateway) Size() (n int) { if m == nil { return 0 @@ -921,8 +726,10 @@ func (m *GatewaySpec) Size() (n int) { } l = len(m.ProcessorPort) n += 1 + l + sovGenerated(uint64(l)) - l = m.EventProtocol.Size() - n += 1 + l + sovGenerated(uint64(l)) + if m.EventProtocol != nil { + l = m.EventProtocol.Size() + n += 1 + l + sovGenerated(uint64(l)) + } return n } @@ -950,34 +757,6 @@ func (m *GatewayStatus) Size() (n int) { return n } -func (m *Http) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Port) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Nats) 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.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ClientId) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ClusterId) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - func (m *NodeStatus) Size() (n int) { if m == nil { return 0 @@ -1046,18 +825,6 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (this *EventProtocol) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EventProtocol{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Http:` + strings.Replace(strings.Replace(this.Http.String(), "Http", "Http", 1), `&`, ``, 1) + `,`, - `Nats:` + strings.Replace(strings.Replace(this.Nats.String(), "Nats", "Nats", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} func (this *Gateway) String() string { if this == nil { return "nil" @@ -1105,7 +872,7 @@ func (this *GatewaySpec) String() string { `ServiceSpec:` + strings.Replace(fmt.Sprintf("%v", this.ServiceSpec), "Service", "v11.Service", 1) + `,`, `Watchers:` + strings.Replace(fmt.Sprintf("%v", this.Watchers), "NotificationWatchers", "NotificationWatchers", 1) + `,`, `ProcessorPort:` + fmt.Sprintf("%v", this.ProcessorPort) + `,`, - `EventProtocol:` + strings.Replace(strings.Replace(this.EventProtocol.String(), "EventProtocol", "EventProtocol", 1), `&`, ``, 1) + `,`, + `EventProtocol:` + strings.Replace(fmt.Sprintf("%v", this.EventProtocol), "EventProtocol", "common.EventProtocol", 1) + `,`, `}`, }, "") return s @@ -1133,29 +900,6 @@ func (this *GatewayStatus) String() string { }, "") return s } -func (this *Http) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Http{`, - `Port:` + fmt.Sprintf("%v", this.Port) + `,`, - `}`, - }, "") - return s -} -func (this *Nats) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Nats{`, - `URL:` + fmt.Sprintf("%v", this.URL) + `,`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ClientId:` + fmt.Sprintf("%v", this.ClientId) + `,`, - `ClusterId:` + fmt.Sprintf("%v", this.ClusterId) + `,`, - `}`, - }, "") - return s -} func (this *NodeStatus) String() string { if this == nil { return "nil" @@ -1181,164 +925,25 @@ func (this *NotificationWatchers) String() string { `Sensors:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Sensors), "SensorNotificationWatcher", "SensorNotificationWatcher", 1), `&`, ``, 1) + `,`, `}`, }, "") - return s -} -func (this *SensorNotificationWatcher) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SensorNotificationWatcher{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - 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 *EventProtocol) 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: EventProtocol: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventProtocol: 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 > l { - return io.ErrUnexpectedEOF - } - m.Type = github_com_argoproj_argo_events_pkg_apis_common.EventProtocolType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - 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 > l { - return io.ErrUnexpectedEOF - } - if err := m.Http.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - 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 > l { - return io.ErrUnexpectedEOF - } - 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) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + return s +} +func (this *SensorNotificationWatcher) String() string { + if this == nil { + return "nil" } - - if iNdEx > l { - return io.ErrUnexpectedEOF + s := strings.Join([]string{`&SensorNotificationWatcher{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func valueToStringGenerated(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" } - return nil + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) } func (m *Gateway) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -1998,6 +1603,9 @@ func (m *GatewaySpec) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } + if m.EventProtocol == nil { + m.EventProtocol = &common.EventProtocol{} + } if err := m.EventProtocol.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2284,251 +1892,6 @@ func (m *GatewayStatus) Unmarshal(dAtA []byte) error { } return nil } -func (m *Http) 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: Http: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Http: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 > l { - return io.ErrUnexpectedEOF - } - m.Port = 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) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Nats) 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: Nats: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Nats: 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 > 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 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 > l { - return io.ErrUnexpectedEOF - } - m.Type = github_com_argoproj_argo_events_pkg_apis_common.NatsType(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 > 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 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 > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = 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) > 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 @@ -3081,85 +2444,77 @@ var ( ) func init() { - proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1/generated.proto", fileDescriptor_generated_c8a632955ef38b96) -} - -var fileDescriptor_generated_c8a632955ef38b96 = []byte{ - // 1214 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4d, 0x6f, 0x1b, 0xc5, - 0x1b, 0xcf, 0xfa, 0x25, 0xb6, 0xc7, 0x71, 0xdb, 0xff, 0xfc, 0x8b, 0x30, 0x46, 0x38, 0xd5, 0x9e, - 0x02, 0x6a, 0x77, 0x9b, 0xf0, 0xa2, 0x00, 0x42, 0x55, 0xdd, 0x84, 0x26, 0x52, 0x93, 0x86, 0x71, - 0x02, 0x12, 0xad, 0x44, 0x27, 0xbb, 0x93, 0xf5, 0x36, 0xde, 0x9d, 0xd1, 0xce, 0xd8, 0xc5, 0xa7, - 0x22, 0x21, 0xae, 0x88, 0x2f, 0xc0, 0x91, 0x6f, 0xc1, 0x11, 0x89, 0x1c, 0x7b, 0xe0, 0xd0, 0x53, - 0x44, 0xcc, 0x47, 0xe0, 0xd6, 0x13, 0x9a, 0xd9, 0xd9, 0x17, 0xe7, 0x45, 0x49, 0xea, 0xde, 0x76, - 0x9e, 0xf9, 0x3d, 0xbf, 0xe7, 0x65, 0x9e, 0xf9, 0xed, 0x80, 0x75, 0xcf, 0x17, 0xbd, 0xc1, 0xae, - 0xe5, 0xd0, 0xc0, 0xc6, 0x91, 0x47, 0x59, 0x44, 0x9f, 0xaa, 0x8f, 0x5b, 0x64, 0x48, 0x42, 0xc1, - 0x6d, 0xb6, 0xef, 0xd9, 0x98, 0xf9, 0xdc, 0xf6, 0xb0, 0x20, 0xcf, 0xf0, 0xc8, 0x1e, 0x2e, 0xe2, - 0x3e, 0xeb, 0xe1, 0x45, 0xdb, 0x23, 0x21, 0x89, 0xb0, 0x20, 0xae, 0xc5, 0x22, 0x2a, 0x28, 0xfc, - 0x34, 0xa3, 0xb2, 0x12, 0x2a, 0xf5, 0xf1, 0x5d, 0x4c, 0x65, 0xb1, 0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 0x65, 0x93, 0xbe, 0x9a, - 0x76, 0x52, 0x2a, 0x94, 0xa3, 0x35, 0x7f, 0x2d, 0x80, 0xeb, 0xa7, 0x69, 0x2e, 0xfc, 0xd1, 0x00, - 0x55, 0x3d, 0xfa, 0xbc, 0x69, 0xa8, 0xeb, 0xbc, 0x33, 0xfd, 0x75, 0x3e, 0x25, 0x54, 0x36, 0x77, - 0x1a, 0xc3, 0x51, 0x1a, 0x18, 0x3e, 0x07, 0x15, 0x4e, 0x42, 0x4e, 0xa3, 0xe4, 0x39, 0xb2, 0x3d, - 0x45, 0x0e, 0x5d, 0xc5, 0x74, 0x5a, 0x0a, 0xe9, 0x21, 0xc4, 0x10, 0x8e, 0x92, 0xa8, 0xe6, 0x17, - 0xe0, 0x9d, 0x33, 0xdd, 0xce, 0x7f, 0xa2, 0x74, 0xac, 0x83, 0xa3, 0xf6, 0xcc, 0x8b, 0xa3, 0xf6, - 0xcc, 0xcb, 0xa3, 0xf6, 0xcc, 0x0f, 0xe3, 0xb6, 0x71, 0x30, 0x6e, 0x1b, 0x2f, 0xc6, 0x6d, 0xe3, - 0xe5, 0xb8, 0x6d, 0xfc, 0x3d, 0x6e, 0x1b, 0xbf, 0xfc, 0xd3, 0x9e, 0xf9, 0xb6, 0x9a, 0xa4, 0xf8, - 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcc, 0xb0, 0x23, 0xde, 0x62, 0x0e, 0x00, 0x00, + proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1/generated.proto", fileDescriptor_generated_d61eb949e4c0f5b3) +} + +var fileDescriptor_generated_d61eb949e4c0f5b3 = []byte{ + // 1073 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x5d, 0x6f, 0x1b, 0x45, + 0x17, 0xce, 0xda, 0x71, 0x6c, 0x8f, 0x93, 0x7e, 0xcc, 0xdb, 0x57, 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, 0x9c, 0x20, 0x7d, 0x03, 0xd7, 0xc1, 0xb2, 0x96, 0xff, 0x2b, 0x92, 0x08, 0xca, 0x62, + 0x7b, 0x51, 0x23, 0x6f, 0x18, 0xe4, 0xf2, 0x66, 0xe9, 0x0e, 0x9d, 0x41, 0xc2, 0x1d, 0xd0, 0x12, + 0x24, 0x19, 0x51, 0x9f, 0xe8, 0xb2, 0x6a, 0xba, 0xac, 0x37, 0xa6, 0x95, 0xd5, 0x4b, 0x61, 0xde, + 0xd5, 0xc9, 0xc9, 0x6a, 0xab, 0x57, 0xf8, 0xa0, 0x32, 0x01, 0x1c, 0x83, 0xc6, 0x51, 0xda, 0x32, + 0x61, 0x2f, 0x69, 0xb2, 0x07, 0x73, 0x8c, 0xcc, 0x94, 0x49, 0x10, 0xde, 0xb2, 0x6a, 0x58, 0x76, + 0x42, 0x79, 0x38, 0xf8, 0x11, 0x58, 0xe1, 0x09, 0xf3, 0x89, 0x10, 0x2c, 0x51, 0x5d, 0xb7, 0xeb, + 0x5a, 0x85, 0xff, 0x1b, 0x15, 0x56, 0x76, 0xcb, 0x97, 0xe8, 0x2c, 0x16, 0x1e, 0x81, 0x15, 0x9d, + 0xcd, 0xae, 0xda, 0x56, 0x3e, 0x1b, 0xd8, 0x0d, 0x9d, 0xfc, 0x27, 0xb3, 0x27, 0x9f, 0x7e, 0x69, + 0x9c, 0xcd, 0x32, 0x8b, 0x77, 0x5d, 0x05, 0x3e, 0x63, 0x42, 0x67, 0xe3, 0x74, 0x7f, 0xab, 0x82, + 0x95, 0x33, 0x2b, 0x06, 0xde, 0x01, 0x35, 0xde, 0xc7, 0x22, 0x9b, 0xf5, 0x76, 0xf6, 0xba, 0xec, + 0x2a, 0xe3, 0x3f, 0x27, 0xab, 0xcd, 0x1d, 0x16, 0x10, 0x7d, 0x40, 0x29, 0x10, 0x3e, 0x02, 0x4d, + 0x21, 0x71, 0x22, 0x49, 0xf0, 0x99, 0x34, 0x1b, 0xef, 0xad, 0xd9, 0x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d, 0xfe, 0x5f, 0xf0, 0x30, 0xa7, 0x42, 0x25, 0xda, 0xee, 0x2f, 0x15, 0x70, 0x63, 0xda, + 0x56, 0x81, 0x3f, 0x5a, 0xa0, 0x61, 0x7a, 0x2d, 0x6c, 0x4b, 0xcf, 0xef, 0xc3, 0xf9, 0xe7, 0x77, + 0x4a, 0xa8, 0xe2, 0xa3, 0x63, 0x30, 0x02, 0xe5, 0x81, 0xe1, 0x53, 0x50, 0x4f, 0x7f, 0x38, 0xb3, + 0x0f, 0xee, 0xde, 0x1c, 0x39, 0xf4, 0x34, 0xd3, 0xb4, 0x14, 0xf2, 0x26, 0xa4, 0x10, 0x81, 0xb2, + 0xa8, 0xdd, 0x8f, 0xc1, 0xeb, 0x17, 0xba, 0x5d, 0xfe, 0x11, 0xf6, 0x9c, 0xe3, 0xd3, 0xce, 0xc2, + 0xb3, 0xd3, 0xce, 0xc2, 0xf3, 0xd3, 0xce, 0xc2, 0x0f, 0x93, 0x8e, 0x75, 0x3c, 0xe9, 0x58, 0xcf, + 0x26, 0x1d, 0xeb, 0xf9, 0xa4, 0x63, 0xfd, 0x39, 0xe9, 0x58, 0x3f, 0xff, 0xd5, 0x59, 0xf8, 0xa6, + 0x91, 0xa5, 0xf8, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbb, 0xd0, 0x1b, 0x7b, 0x4f, 0x0c, 0x00, + 0x00, } diff --git a/pkg/apis/gateway/v1alpha1/generated.proto b/pkg/apis/gateway/v1alpha1/generated.proto index 6b914fc968..d1dd11ce20 100644 --- a/pkg/apis/gateway/v1alpha1/generated.proto +++ b/pkg/apis/gateway/v1alpha1/generated.proto @@ -29,15 +29,6 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "v1alpha1"; -// Dispatch protocol contains configuration necessary to dispatch an event to sensor over different communication protocols -message EventProtocol { - optional string type = 1; - - optional Http http = 2; - - optional Nats nats = 3; -} - // Gateway is the definition of a gateway resource // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -100,7 +91,7 @@ message GatewaySpec { optional string processorPort = 7; // EventProtocol is the underlying protocol used to send events from gateway to watchers(components interested in listening to event from this gateway) - optional EventProtocol eventProtocol = 8; + optional github.com.argoproj.argo_events.pkg.apis.common.EventProtocol eventProtocol = 8; } // GatewayStatus contains information about the status of a gateway. @@ -119,20 +110,6 @@ message GatewayStatus { map nodes = 5; } -message Http { - optional string port = 1; -} - -message Nats { - optional string url = 1; - - optional string type = 2; - - optional string clientId = 3; - - optional string clusterId = 4; -} - // NodeStatus describes the status for an individual node in the gateway configurations. // A single node can represent one configuration. message NodeStatus { diff --git a/pkg/apis/gateway/v1alpha1/types.go b/pkg/apis/gateway/v1alpha1/types.go index ac8d9b9d64..c2ae691bd6 100644 --- a/pkg/apis/gateway/v1alpha1/types.go +++ b/pkg/apis/gateway/v1alpha1/types.go @@ -83,7 +83,7 @@ type GatewaySpec struct { ProcessorPort string `json:"processorPort" protobuf:"bytes,7,opt,name=processorPort"` // EventProtocol is the underlying protocol used to send events from gateway to watchers(components interested in listening to event from this gateway) - EventProtocol EventProtocol `json:"eventProtocol" protobuf:"bytes,8,opt,name=eventProtocol"` + EventProtocol *common.EventProtocol `json:"eventProtocol" protobuf:"bytes,8,opt,name=eventProtocol"` } // GatewayStatus contains information about the status of a gateway. @@ -156,26 +156,3 @@ type SensorNotificationWatcher struct { // Name is name of the sensor Name string `json:"name" protobuf:"bytes,1,opt,name=name"` } - -// Dispatch protocol contains configuration necessary to dispatch an event to sensor over different communication protocols -type EventProtocol struct { - Type common.EventProtocolType `json:"type" protobuf:"bytes,1,opt,name=type"` - - Http Http `json:"http" protobuf:"bytes,2,opt,name=http"` - - Nats Nats `json:"nats" protobuf:"bytes,3,opt,name=nats"` -} - -type Http struct { - Port string `json:"port" protobuf:"bytes,1,opt,name=port"` -} - -type Nats struct { - URL string `json:"url" protobuf:"bytes,1,opt,name=url"` - - Type common.NatsType `json:"type" protobuf:"bytes,2,opt,name=type"` - - ClientId string `json:"clientId,omitempty" protobuf:"bytes,3,opt,name=clientId"` - - ClusterId string `json:"clusterId,omitempty" protobuf:"bytes,4,opt,name=clusterId"` -} diff --git a/pkg/apis/gateway/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/gateway/v1alpha1/zz_generated.deepcopy.go index 74e6a1759f..30d7b3d108 100644 --- a/pkg/apis/gateway/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/gateway/v1alpha1/zz_generated.deepcopy.go @@ -20,28 +20,11 @@ limitations under the License. package v1alpha1 import ( + common "github.com/argoproj/argo-events/pkg/apis/common" v1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EventProtocol) DeepCopyInto(out *EventProtocol) { - *out = *in - out.Http = in.Http - out.Nats = in.Nats - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventProtocol. -func (in *EventProtocol) DeepCopy() *EventProtocol { - if in == nil { - return nil - } - out := new(EventProtocol) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Gateway) DeepCopyInto(out *Gateway) { *out = *in @@ -137,7 +120,11 @@ func (in *GatewaySpec) DeepCopyInto(out *GatewaySpec) { *out = new(NotificationWatchers) (*in).DeepCopyInto(*out) } - out.EventProtocol = in.EventProtocol + if in.EventProtocol != nil { + in, out := &in.EventProtocol, &out.EventProtocol + *out = new(common.EventProtocol) + **out = **in + } return } @@ -175,38 +162,6 @@ func (in *GatewayStatus) DeepCopy() *GatewayStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Http) DeepCopyInto(out *Http) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Http. -func (in *Http) DeepCopy() *Http { - if in == nil { - return nil - } - out := new(Http) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Nats) DeepCopyInto(out *Nats) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Nats. -func (in *Nats) DeepCopy() *Nats { - if in == nil { - return nil - } - out := new(Nats) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NodeStatus) DeepCopyInto(out *NodeStatus) { *out = *in diff --git a/pkg/apis/sensor/v1alpha1/generated.pb.go b/pkg/apis/sensor/v1alpha1/generated.pb.go index 9f44718bc6..c7c1c92532 100644 --- a/pkg/apis/sensor/v1alpha1/generated.pb.go +++ b/pkg/apis/sensor/v1alpha1/generated.pb.go @@ -24,8 +24,6 @@ import common "github.com/argoproj/argo-events/pkg/apis/common" import v11 "k8s.io/api/core/v1" -import github_com_argoproj_argo_events_pkg_apis_common "github.com/argoproj/argo-events/pkg/apis/common" - import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" import strings "strings" @@ -47,7 +45,7 @@ const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package func (m *ArtifactLocation) Reset() { *m = ArtifactLocation{} } func (*ArtifactLocation) ProtoMessage() {} func (*ArtifactLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{0} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{0} } func (m *ArtifactLocation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -75,7 +73,7 @@ var xxx_messageInfo_ArtifactLocation proto.InternalMessageInfo func (m *ConfigmapArtifact) Reset() { *m = ConfigmapArtifact{} } func (*ConfigmapArtifact) ProtoMessage() {} func (*ConfigmapArtifact) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{1} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{1} } func (m *ConfigmapArtifact) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -103,7 +101,7 @@ var xxx_messageInfo_ConfigmapArtifact proto.InternalMessageInfo func (m *Data) Reset() { *m = Data{} } func (*Data) ProtoMessage() {} func (*Data) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{2} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{2} } func (m *Data) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -131,7 +129,7 @@ var xxx_messageInfo_Data proto.InternalMessageInfo func (m *DataFilter) Reset() { *m = DataFilter{} } func (*DataFilter) ProtoMessage() {} func (*DataFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{3} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{3} } func (m *DataFilter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -159,7 +157,7 @@ var xxx_messageInfo_DataFilter proto.InternalMessageInfo func (m *EventDependency) Reset() { *m = EventDependency{} } func (*EventDependency) ProtoMessage() {} func (*EventDependency) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{4} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{4} } func (m *EventDependency) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -187,7 +185,7 @@ var xxx_messageInfo_EventDependency proto.InternalMessageInfo func (m *EventDependencyFilter) Reset() { *m = EventDependencyFilter{} } func (*EventDependencyFilter) ProtoMessage() {} func (*EventDependencyFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{5} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{5} } func (m *EventDependencyFilter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -212,38 +210,10 @@ func (m *EventDependencyFilter) XXX_DiscardUnknown() { var xxx_messageInfo_EventDependencyFilter proto.InternalMessageInfo -func (m *EventProtocol) Reset() { *m = EventProtocol{} } -func (*EventProtocol) ProtoMessage() {} -func (*EventProtocol) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{6} -} -func (m *EventProtocol) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventProtocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (dst *EventProtocol) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventProtocol.Merge(dst, src) -} -func (m *EventProtocol) XXX_Size() int { - return m.Size() -} -func (m *EventProtocol) XXX_DiscardUnknown() { - xxx_messageInfo_EventProtocol.DiscardUnknown(m) -} - -var xxx_messageInfo_EventProtocol proto.InternalMessageInfo - func (m *FileArtifact) Reset() { *m = FileArtifact{} } func (*FileArtifact) ProtoMessage() {} func (*FileArtifact) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{7} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{6} } func (m *FileArtifact) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -271,7 +241,7 @@ var xxx_messageInfo_FileArtifact proto.InternalMessageInfo func (m *GroupVersionKind) Reset() { *m = GroupVersionKind{} } func (*GroupVersionKind) ProtoMessage() {} func (*GroupVersionKind) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{8} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{7} } func (m *GroupVersionKind) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -296,66 +266,10 @@ func (m *GroupVersionKind) XXX_DiscardUnknown() { var xxx_messageInfo_GroupVersionKind proto.InternalMessageInfo -func (m *Http) Reset() { *m = Http{} } -func (*Http) ProtoMessage() {} -func (*Http) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{9} -} -func (m *Http) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Http) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (dst *Http) XXX_Merge(src proto.Message) { - xxx_messageInfo_Http.Merge(dst, src) -} -func (m *Http) XXX_Size() int { - return m.Size() -} -func (m *Http) XXX_DiscardUnknown() { - xxx_messageInfo_Http.DiscardUnknown(m) -} - -var xxx_messageInfo_Http proto.InternalMessageInfo - -func (m *Nats) Reset() { *m = Nats{} } -func (*Nats) ProtoMessage() {} -func (*Nats) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{10} -} -func (m *Nats) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Nats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (dst *Nats) XXX_Merge(src proto.Message) { - xxx_messageInfo_Nats.Merge(dst, src) -} -func (m *Nats) XXX_Size() int { - return m.Size() -} -func (m *Nats) XXX_DiscardUnknown() { - xxx_messageInfo_Nats.DiscardUnknown(m) -} - -var xxx_messageInfo_Nats proto.InternalMessageInfo - func (m *NodeStatus) Reset() { *m = NodeStatus{} } func (*NodeStatus) ProtoMessage() {} func (*NodeStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{11} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{8} } func (m *NodeStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -383,7 +297,7 @@ var xxx_messageInfo_NodeStatus proto.InternalMessageInfo func (m *ResourceObject) Reset() { *m = ResourceObject{} } func (*ResourceObject) ProtoMessage() {} func (*ResourceObject) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{12} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{9} } func (m *ResourceObject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -411,7 +325,7 @@ var xxx_messageInfo_ResourceObject proto.InternalMessageInfo func (m *ResourceParameter) Reset() { *m = ResourceParameter{} } func (*ResourceParameter) ProtoMessage() {} func (*ResourceParameter) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{13} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{10} } func (m *ResourceParameter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -439,7 +353,7 @@ var xxx_messageInfo_ResourceParameter proto.InternalMessageInfo func (m *ResourceParameterSource) Reset() { *m = ResourceParameterSource{} } func (*ResourceParameterSource) ProtoMessage() {} func (*ResourceParameterSource) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{14} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{11} } func (m *ResourceParameterSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -467,7 +381,7 @@ var xxx_messageInfo_ResourceParameterSource proto.InternalMessageInfo func (m *RetryStrategy) Reset() { *m = RetryStrategy{} } func (*RetryStrategy) ProtoMessage() {} func (*RetryStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{15} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{12} } func (m *RetryStrategy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -495,7 +409,7 @@ var xxx_messageInfo_RetryStrategy proto.InternalMessageInfo func (m *Sensor) Reset() { *m = Sensor{} } func (*Sensor) ProtoMessage() {} func (*Sensor) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{16} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{13} } func (m *Sensor) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -523,7 +437,7 @@ var xxx_messageInfo_Sensor proto.InternalMessageInfo func (m *SensorList) Reset() { *m = SensorList{} } func (*SensorList) ProtoMessage() {} func (*SensorList) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{17} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{14} } func (m *SensorList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -551,7 +465,7 @@ var xxx_messageInfo_SensorList proto.InternalMessageInfo func (m *SensorSpec) Reset() { *m = SensorSpec{} } func (*SensorSpec) ProtoMessage() {} func (*SensorSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{18} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{15} } func (m *SensorSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -579,7 +493,7 @@ var xxx_messageInfo_SensorSpec proto.InternalMessageInfo func (m *SensorStatus) Reset() { *m = SensorStatus{} } func (*SensorStatus) ProtoMessage() {} func (*SensorStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{19} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{16} } func (m *SensorStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -607,7 +521,7 @@ var xxx_messageInfo_SensorStatus proto.InternalMessageInfo func (m *TimeFilter) Reset() { *m = TimeFilter{} } func (*TimeFilter) ProtoMessage() {} func (*TimeFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{20} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{17} } func (m *TimeFilter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -635,7 +549,7 @@ var xxx_messageInfo_TimeFilter proto.InternalMessageInfo func (m *Trigger) Reset() { *m = Trigger{} } func (*Trigger) ProtoMessage() {} func (*Trigger) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{21} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{18} } func (m *Trigger) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -663,7 +577,7 @@ var xxx_messageInfo_Trigger proto.InternalMessageInfo func (m *URLArtifact) Reset() { *m = URLArtifact{} } func (*URLArtifact) ProtoMessage() {} func (*URLArtifact) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_0e5510c518a7be9d, []int{22} + return fileDescriptor_generated_d152f1f0b79d4f38, []int{19} } func (m *URLArtifact) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -695,11 +609,8 @@ func init() { proto.RegisterType((*DataFilter)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.DataFilter") 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((*EventProtocol)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.EventProtocol") proto.RegisterType((*FileArtifact)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.FileArtifact") proto.RegisterType((*GroupVersionKind)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.GroupVersionKind") - proto.RegisterType((*Http)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.Http") - proto.RegisterType((*Nats)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.Nats") proto.RegisterType((*NodeStatus)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.NodeStatus") proto.RegisterType((*ResourceObject)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.ResourceObject") proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.ResourceObject.LabelsEntry") @@ -962,44 +873,6 @@ func (m *EventDependencyFilter) MarshalTo(dAtA []byte) (int, error) { return i, nil } -func (m *EventProtocol) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventProtocol) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - dAtA[i] = 0x12 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Http.Size())) - n9, err := m.Http.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - dAtA[i] = 0x1a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(m.Nats.Size())) - n10, err := m.Nats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - return i, nil -} - func (m *FileArtifact) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1052,98 +925,6 @@ func (m *GroupVersionKind) MarshalTo(dAtA []byte) (int, error) { return i, nil } -func (m *Http) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Http) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Port))) - i += copy(dAtA[i:], m.Port) - return i, nil -} - -func (m *Nats) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Nats) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL))) - i += copy(dAtA[i:], m.URL) - dAtA[i] = 0x10 - i++ - if m.StartWithLastReceived { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x18 - i++ - if m.DeliverAllAvailable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x22 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.StartAtSequence))) - i += copy(dAtA[i:], m.StartAtSequence) - dAtA[i] = 0x2a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.StartAtTime))) - i += copy(dAtA[i:], m.StartAtTime) - dAtA[i] = 0x32 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.StartAtTimeDelta))) - i += copy(dAtA[i:], m.StartAtTimeDelta) - dAtA[i] = 0x38 - i++ - if m.Durable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - dAtA[i] = 0x42 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClusterId))) - i += copy(dAtA[i:], m.ClusterId) - dAtA[i] = 0x4a - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClientId))) - i += copy(dAtA[i:], m.ClientId) - dAtA[i] = 0x52 - i++ - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - return i, nil -} - func (m *NodeStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1182,19 +963,19 @@ func (m *NodeStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x32 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.StartedAt.Size())) - n11, err := m.StartedAt.MarshalTo(dAtA[i:]) + n9, err := m.StartedAt.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n11 + i += n9 dAtA[i] = 0x3a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.CompletedAt.Size())) - n12, err := m.CompletedAt.MarshalTo(dAtA[i:]) + n10, err := m.CompletedAt.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n12 + i += n10 dAtA[i] = 0x42 i++ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) @@ -1203,11 +984,11 @@ func (m *NodeStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x4a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Event.Size())) - n13, err := m.Event.MarshalTo(dAtA[i:]) + n11, err := m.Event.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n13 + i += n11 } return i, nil } @@ -1268,19 +1049,19 @@ func (m *ResourceObject) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x2a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.GroupVersionKind.Size())) - n14, err := m.GroupVersionKind.MarshalTo(dAtA[i:]) + n12, err := m.GroupVersionKind.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n14 + i += n12 dAtA[i] = 0x32 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Source.Size())) - n15, err := m.Source.MarshalTo(dAtA[i:]) + n13, err := m.Source.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n15 + i += n13 return i, nil } @@ -1303,11 +1084,11 @@ func (m *ResourceParameter) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Src.Size())) - n16, err := m.Src.MarshalTo(dAtA[i:]) + n14, err := m.Src.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n16 + i += n14 } dAtA[i] = 0x12 i++ @@ -1384,27 +1165,27 @@ func (m *Sensor) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n17, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + n15, err := m.ObjectMeta.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n17 + i += n15 dAtA[i] = 0x12 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n18, err := m.Spec.MarshalTo(dAtA[i:]) + n16, err := m.Spec.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n18 + i += n16 dAtA[i] = 0x1a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n19, err := m.Status.MarshalTo(dAtA[i:]) + n17, err := m.Status.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n19 + i += n17 return i, nil } @@ -1426,11 +1207,11 @@ func (m *SensorList) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n20, err := m.ListMeta.MarshalTo(dAtA[i:]) + n18, err := m.ListMeta.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n20 + i += n18 if len(m.Items) > 0 { for _, msg := range m.Items { dAtA[i] = 0x12 @@ -1489,21 +1270,21 @@ func (m *SensorSpec) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x1a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.DeploySpec.Size())) - n21, err := m.DeploySpec.MarshalTo(dAtA[i:]) + n19, err := m.DeploySpec.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n21 + i += n19 } if m.EventProtocol != nil { dAtA[i] = 0x22 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.EventProtocol.Size())) - n22, err := m.EventProtocol.MarshalTo(dAtA[i:]) + n20, err := m.EventProtocol.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n22 + i += n20 } return i, nil } @@ -1530,19 +1311,19 @@ func (m *SensorStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.StartedAt.Size())) - n23, err := m.StartedAt.MarshalTo(dAtA[i:]) + n21, err := m.StartedAt.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n23 + i += n21 dAtA[i] = 0x1a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.CompletedAt.Size())) - n24, err := m.CompletedAt.MarshalTo(dAtA[i:]) + n22, err := m.CompletedAt.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n24 + i += n22 dAtA[i] = 0x22 i++ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) @@ -1571,11 +1352,11 @@ func (m *SensorStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintGenerated(dAtA, i, uint64((&v).Size())) - n25, err := (&v).MarshalTo(dAtA[i:]) + n23, err := (&v).MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n25 + i += n23 } } dAtA[i] = 0x30 @@ -1633,11 +1414,11 @@ func (m *Trigger) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Resource.Size())) - n26, err := m.Resource.MarshalTo(dAtA[i:]) + n24, err := m.Resource.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n26 + i += n24 } dAtA[i] = 0x1a i++ @@ -1647,11 +1428,11 @@ func (m *Trigger) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x22 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.RetryStrategy.Size())) - n27, err := m.RetryStrategy.MarshalTo(dAtA[i:]) + n25, err := m.RetryStrategy.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n27 + i += n25 } return i, nil } @@ -1807,21 +1588,6 @@ func (m *EventDependencyFilter) Size() (n int) { return n } -func (m *EventProtocol) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Http.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Nats.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - func (m *FileArtifact) Size() (n int) { if m == nil { return 0 @@ -1848,43 +1614,6 @@ func (m *GroupVersionKind) Size() (n int) { return n } -func (m *Http) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Port) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Nats) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.URL) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - n += 2 - l = len(m.StartAtSequence) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.StartAtTime) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.StartAtTimeDelta) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - l = len(m.ClusterId) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ClientId) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - func (m *NodeStatus) Size() (n int) { if m == nil { return 0 @@ -2205,18 +1934,6 @@ func (this *EventDependencyFilter) String() string { }, "") return s } -func (this *EventProtocol) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EventProtocol{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Http:` + strings.Replace(strings.Replace(this.Http.String(), "Http", "Http", 1), `&`, ``, 1) + `,`, - `Nats:` + strings.Replace(strings.Replace(this.Nats.String(), "Nats", "Nats", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} func (this *FileArtifact) String() string { if this == nil { return "nil" @@ -2239,35 +1956,6 @@ func (this *GroupVersionKind) String() string { }, "") return s } -func (this *Http) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Http{`, - `Port:` + fmt.Sprintf("%v", this.Port) + `,`, - `}`, - }, "") - return s -} -func (this *Nats) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Nats{`, - `URL:` + fmt.Sprintf("%v", this.URL) + `,`, - `StartWithLastReceived:` + fmt.Sprintf("%v", this.StartWithLastReceived) + `,`, - `DeliverAllAvailable:` + fmt.Sprintf("%v", this.DeliverAllAvailable) + `,`, - `StartAtSequence:` + fmt.Sprintf("%v", this.StartAtSequence) + `,`, - `StartAtTime:` + fmt.Sprintf("%v", this.StartAtTime) + `,`, - `StartAtTimeDelta:` + fmt.Sprintf("%v", this.StartAtTimeDelta) + `,`, - `Durable:` + fmt.Sprintf("%v", this.Durable) + `,`, - `ClusterId:` + fmt.Sprintf("%v", this.ClusterId) + `,`, - `ClientId:` + fmt.Sprintf("%v", this.ClientId) + `,`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `}`, - }, "") - return s -} func (this *NodeStatus) String() string { if this == nil { return "nil" @@ -2373,7 +2061,7 @@ func (this *SensorSpec) String() string { `Dependencies:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Dependencies), "EventDependency", "EventDependency", 1), `&`, ``, 1) + `,`, `Triggers:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Triggers), "Trigger", "Trigger", 1), `&`, ``, 1) + `,`, `DeploySpec:` + strings.Replace(fmt.Sprintf("%v", this.DeploySpec), "PodSpec", "v11.PodSpec", 1) + `,`, - `EventProtocol:` + strings.Replace(fmt.Sprintf("%v", this.EventProtocol), "EventProtocol", "EventProtocol", 1) + `,`, + `EventProtocol:` + strings.Replace(fmt.Sprintf("%v", this.EventProtocol), "EventProtocol", "common.EventProtocol", 1) + `,`, `}`, }, "") return s @@ -3339,7 +3027,7 @@ func (m *EventDependencyFilter) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventProtocol) Unmarshal(dAtA []byte) error { +func (m *FileArtifact) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3362,15 +3050,15 @@ func (m *EventProtocol) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventProtocol: wiretype end group for non-group") + return fmt.Errorf("proto: FileArtifact: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventProtocol: illegal tag %d (wire type %d)", fieldNum, wire) + 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 Type", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3395,157 +3083,18 @@ func (m *EventProtocol) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Type = github_com_argoproj_argo_events_pkg_apis_common.EventProtocolType(dAtA[iNdEx:postIndex]) + m.Path = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - 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 - } + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err } - if msglen < 0 { + if skippy < 0 { return ErrInvalidLengthGenerated } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Http.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - 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 > l { - return io.ErrUnexpectedEOF - } - 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) > 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 > 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) > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy @@ -3694,398 +3243,6 @@ func (m *GroupVersionKind) Unmarshal(dAtA []byte) error { } return nil } -func (m *Http) 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: Http: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Http: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 > l { - return io.ErrUnexpectedEOF - } - m.Port = 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) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Nats) 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: Nats: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Nats: 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 > l { - return io.ErrUnexpectedEOF - } - m.URL = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartWithLastReceived", 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.StartWithLastReceived = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeliverAllAvailable", 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.DeliverAllAvailable = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartAtSequence", 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 > l { - return io.ErrUnexpectedEOF - } - m.StartAtSequence = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartAtTime", 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 > l { - return io.ErrUnexpectedEOF - } - m.StartAtTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartAtTimeDelta", 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 > l { - return io.ErrUnexpectedEOF - } - m.StartAtTimeDelta = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Durable", 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.Durable = bool(v != 0) - case 8: - 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 > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - 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 > l { - return io.ErrUnexpectedEOF - } - m.ClientId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - 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 > l { - return io.ErrUnexpectedEOF - } - m.Type = github_com_argoproj_argo_events_pkg_apis_common.NatsType(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) > 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 @@ -5393,7 +4550,7 @@ func (m *SensorSpec) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.EventProtocol == nil { - m.EventProtocol = &EventProtocol{} + m.EventProtocol = &common.EventProtocol{} } if err := m.EventProtocol.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6217,137 +5374,119 @@ var ( ) func init() { - proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1/generated.proto", fileDescriptor_generated_0e5510c518a7be9d) -} - -var fileDescriptor_generated_0e5510c518a7be9d = []byte{ - // 2046 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcd, 0x6f, 0x1b, 0xc7, - 0x15, 0xd7, 0xf2, 0x43, 0x22, 0x1f, 0x25, 0x4b, 0x1e, 0xc7, 0x08, 0xa1, 0x20, 0xa2, 0xb1, 0xbd, - 0xb8, 0x45, 0xb2, 0xb4, 0xa5, 0x26, 0x70, 0x5b, 0xf4, 0x43, 0x14, 0xed, 0x58, 0x91, 0x2c, 0xcb, - 0xb3, 0x8e, 0x03, 0xa4, 0x05, 0xea, 0xd1, 0xee, 0x88, 0xda, 0x68, 0xb9, 0xbb, 0xdd, 0x19, 0x12, - 0x61, 0x51, 0xb4, 0xe9, 0xd7, 0xb5, 0xc8, 0xff, 0xd0, 0x3f, 0xa0, 0xf7, 0x1e, 0x7b, 0xf2, 0x25, - 0x40, 0x8a, 0x5e, 0x72, 0x12, 0x6a, 0x16, 0xe8, 0xbd, 0x57, 0x9f, 0x8a, 0xf9, 0xd8, 0x0f, 0x2e, - 0x25, 0x98, 0x12, 0x7d, 0x22, 0xe7, 0xbd, 0x37, 0xbf, 0xf7, 0xe6, 0xcd, 0x9b, 0xf7, 0xb1, 0xf0, - 0xb0, 0xe7, 0xf1, 0x93, 0xc1, 0x91, 0xe5, 0x84, 0xfd, 0x36, 0x89, 0x7b, 0x61, 0x14, 0x87, 0x9f, - 0x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xcb, 0x02, 0x65, 0x27, 0x61, 0xe0, 0x4c, 0xc6, 0x7c, 0x59, 0x82, 0x9b, 0xe7, - 0x2a, 0x99, 0xc1, 0x2d, 0x47, 0x50, 0x11, 0x19, 0x4f, 0xba, 0x64, 0xae, 0xd0, 0x79, 0xea, 0xf5, - 0xa9, 0x3e, 0x9a, 0xcc, 0x06, 0x62, 0x8d, 0x25, 0x36, 0x72, 0x61, 0xc9, 0x09, 0x03, 0x4e, 0xbf, - 0xe0, 0xda, 0x99, 0x3f, 0xbe, 0x74, 0xc6, 0x93, 0xc7, 0xdb, 0x51, 0x20, 0x2a, 0x34, 0xf5, 0x02, - 0x27, 0xd0, 0xe8, 0x17, 0x50, 0x71, 0x09, 0x27, 0x3a, 0xe9, 0xfc, 0x64, 0xbe, 0x47, 0xa0, 0xce, - 0x20, 0xfe, 0x61, 0x89, 0x6a, 0xfe, 0xbd, 0x04, 0x2b, 0xd2, 0x88, 0x43, 0x91, 0xd4, 0x9d, 0xd0, - 0x47, 0x54, 0x47, 0xb6, 0xf2, 0xed, 0x93, 0x42, 0x64, 0x6f, 0x5f, 0xb2, 0xba, 0x5a, 0x13, 0xe0, - 0xb9, 0x27, 0xf1, 0x1c, 0x2a, 0x27, 0x9c, 0x47, 0xfa, 0x82, 0xe6, 0x38, 0xd6, 0x43, 0xce, 0xa3, - 0x2c, 0x04, 0xc4, 0x0a, 0x4b, 0x64, 0xa1, 0x21, 0x20, 0x3c, 0x09, 0xf4, 0x39, 0x34, 0x1c, 0x10, - 0xce, 0xf2, 0x41, 0xc6, 0x19, 0x96, 0xc8, 0xe6, 0x1d, 0x58, 0xce, 0x97, 0x8b, 0xd7, 0xa7, 0x0d, - 0xf3, 0x4f, 0x06, 0xac, 0x7d, 0x14, 0x87, 0x83, 0xe8, 0x19, 0x8d, 0x99, 0x17, 0x06, 0x7b, 0x5e, - 0xe0, 0x8a, 0xec, 0xd0, 0x13, 0x34, 0xbd, 0x2f, 0xcd, 0x0e, 0x52, 0x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bb, 0xca, 0x06, 0x13, 0x24, 0x3c, 0xa9, 0xd0, 0x74, 0xa0, 0x91, 0xfb, 0x1e, 0x3e, 0xc3, 0xb7, - 0xd7, 0x4d, 0x80, 0x21, 0x8d, 0xbd, 0xe3, 0xd1, 0x0e, 0x8d, 0xb9, 0xfe, 0xc0, 0x90, 0x96, 0xfc, - 0x67, 0x29, 0x07, 0xe7, 0xa4, 0x3a, 0xd6, 0x8b, 0x97, 0x1b, 0x0b, 0xdf, 0xbc, 0xdc, 0x58, 0xf8, - 0xf6, 0xe5, 0xc6, 0xc2, 0x97, 0xe3, 0x0d, 0xe3, 0xc5, 0x78, 0xc3, 0xf8, 0x66, 0xbc, 0x61, 0x7c, - 0x3b, 0xde, 0x30, 0xfe, 0x3d, 0xde, 0x30, 0xbe, 0xfa, 0xcf, 0xc6, 0xc2, 0x67, 0xb5, 0xe4, 0x10, - 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x71, 0x44, 0x0b, 0xca, 0x1a, 0x00, 0x00, + proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1/generated.proto", fileDescriptor_generated_d152f1f0b79d4f38) +} + +var fileDescriptor_generated_d152f1f0b79d4f38 = []byte{ + // 1753 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x5b, 0x6f, 0x1b, 0xc7, + 0x15, 0xd6, 0xf2, 0x26, 0xf2, 0x50, 0xb2, 0xe4, 0x69, 0x8a, 0x10, 0x2a, 0x4a, 0x1a, 0xdb, 0x17, + 0xb7, 0x48, 0x96, 0xb6, 0xd5, 0x06, 0x6e, 0x8b, 0x5e, 0x4c, 0xd1, 0x4e, 0x1c, 0xc9, 0xb6, 0x32, + 0x74, 0x5c, 0x20, 0x2d, 0x50, 0x8f, 0x76, 0x87, 0xd4, 0x46, 0xcb, 0x9d, 0xc5, 0xce, 0x90, 0x0d, +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, 0xb7, 0xbe, 0x7a, 0xde, 0xdc, 0xfa, 0xfa, 0x79, 0x73, 0xeb, + 0xf3, 0x59, 0xd3, 0x7a, 0x36, 0x6b, 0x5a, 0x5f, 0xcd, 0x9a, 0xd6, 0xd7, 0xb3, 0xa6, 0xf5, 0x9f, + 0x59, 0xd3, 0xfa, 0xe2, 0xbf, 0xcd, 0xad, 0x4f, 0xaa, 0xc9, 0x21, 0xfe, 0x1f, 0x00, 0x00, 0xff, + 0xff, 0xea, 0x8c, 0x1c, 0x55, 0xe5, 0x16, 0x00, 0x00, } diff --git a/pkg/apis/sensor/v1alpha1/generated.proto b/pkg/apis/sensor/v1alpha1/generated.proto index e68c8d8f4e..177d1db99c 100644 --- a/pkg/apis/sensor/v1alpha1/generated.proto +++ b/pkg/apis/sensor/v1alpha1/generated.proto @@ -114,18 +114,6 @@ message EventDependencyFilter { optional Data data = 4; } -// EventProtocol contains configuration necessary to receieve an event from gateway over different communication protocols -message EventProtocol { - // Type defines the type of protocol over which events will be receieved - optional string type = 1; - - // Http contains the information required to setup a http server and listen to incoming events - optional Http http = 2; - - // Nats contains the information required to connect to nats server and get subscriptions - optional Nats nats = 3; -} - // FileArtifact contains information about an artifact in a filesystem message FileArtifact { optional string path = 1; @@ -141,45 +129,6 @@ message GroupVersionKind { optional string kind = 3; } -// Http contains the information required to setup a http server and listen to incoming events -message Http { - // Port on which server will run - optional string port = 1; -} - -// Nats contains the information required to connect to nats server and get subscriptions -message Nats { - // URL is nats server/service URL - optional string url = 1; - - // Subscribe starting with most recently published value. Refer https://github.com/nats-io/go-nats-streaming - optional bool startWithLastReceived = 2; - - // Receive all stored values in order. - optional bool deliverAllAvailable = 3; - - // Receive messages starting at a specific sequence number - optional string startAtSequence = 4; - - // Subscribe starting at a specific time - optional string startAtTime = 5; - - // Subscribe starting a specific amount of time in the past (e.g. 30 seconds ago) - optional string startAtTimeDelta = 6; - - // Durable subscriptions allow clients to assign a durable name to a subscription when it is created - optional bool durable = 7; - - // The NATS Streaming cluster ID - optional string clusterId = 8; - - // The NATS Streaming cluster ID - optional string clientId = 9; - - // Type of the connection. either standard or streaming - optional string type = 10; -} - // 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 { @@ -299,7 +248,7 @@ message SensorSpec { optional k8s.io.api.core.v1.PodSpec deploySpec = 3; // EventProtocol is the protocol through which sensor receives events from gateway - optional EventProtocol eventProtocol = 4; + optional github.com.argoproj.argo_events.pkg.apis.common.EventProtocol eventProtocol = 4; } // SensorStatus contains information about the status of a sensor. diff --git a/pkg/apis/sensor/v1alpha1/types.go b/pkg/apis/sensor/v1alpha1/types.go index 4c62890aaf..bf9e5049ac 100644 --- a/pkg/apis/sensor/v1alpha1/types.go +++ b/pkg/apis/sensor/v1alpha1/types.go @@ -86,58 +86,7 @@ type SensorSpec struct { DeploySpec *corev1.PodSpec `json:"deploySpec" protobuf:"bytes,3,opt,name=deploySpec"` // EventProtocol is the protocol through which sensor receives events from gateway - EventProtocol *EventProtocol `json:"eventProtocol" protobuf:"bytes,4,opt,name=eventProtocol"` -} - -// EventProtocol contains configuration necessary to receieve an event from gateway over different communication protocols -type EventProtocol struct { - // Type defines the type of protocol over which events will be receieved - Type common.EventProtocolType `json:"type" protobuf:"bytes,1,opt,name=type"` - - // Http contains the information required to setup a http server and listen to incoming events - Http Http `json:"http" protobuf:"bytes,2,opt,name=http"` - - // Nats contains the information required to connect to nats server and get subscriptions - Nats Nats `json:"nats" protobuf:"bytes,3,opt,name=nats"` -} - -// Http contains the information required to setup a http server and listen to incoming events -type Http struct { - // Port on which server will run - Port string `json:"port" protobuf:"bytes,1,opt,name=port"` -} - -// Nats contains the information required to connect to nats server and get subscriptions -type Nats struct { - // URL is nats server/service URL - URL string `json:"url" protobuf:"bytes,1,opt,name=url"` - - // Subscribe starting with most recently published value. Refer https://github.com/nats-io/go-nats-streaming - StartWithLastReceived bool `json:"startWithLastReceived,omitempty" protobuf:"bytes,2,opt,name=startWithLastReceived"` - - // Receive all stored values in order. - DeliverAllAvailable bool `json:"deliverAllAvailable,omitempty" protobuf:"bytes,3,opt,name=deliverAllAvailable"` - - // Receive messages starting at a specific sequence number - StartAtSequence string `json:"startAtSequence,omitempty" protobuf:"bytes,4,opt,name=startAtSequence"` - - // Subscribe starting at a specific time - StartAtTime string `json:"startAtTime,omitempty" protobuf:"bytes,5,opt,name=startAtTime"` - - // Subscribe starting a specific amount of time in the past (e.g. 30 seconds ago) - StartAtTimeDelta string `json:"startAtTimeDelta,omitempty" protobuf:"bytes,6,opt,name=startAtTimeDelta"` - - // Durable subscriptions allow clients to assign a durable name to a subscription when it is created - Durable bool `json:"durable,omitempty" protobuf:"bytes,7,opt,name=durable"` - - // The NATS Streaming cluster ID - ClusterId string `json:"clusterId,omitempty" protobuf:"bytes,8,opt,name=clusterId"` - - // The NATS Streaming cluster ID - ClientId string `json:"clientId,omitempty" protobuf:"bytes,9,opt,name=clientId"` - - // Type of the connection. either standard or streaming - Type common.NatsType `json:"type" protobuf:"bytes,10,opt,name=type"` + EventProtocol *apicommon.EventProtocol `json:"eventProtocol" protobuf:"bytes,4,opt,name=eventProtocol"` } // EventDependency describes a dependency diff --git a/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go index 6a5af5dbf1..3560b2ff32 100644 --- a/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go @@ -173,24 +173,6 @@ func (in *EventDependencyFilter) DeepCopy() *EventDependencyFilter { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EventProtocol) DeepCopyInto(out *EventProtocol) { - *out = *in - out.Http = in.Http - out.Nats = in.Nats - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventProtocol. -func (in *EventProtocol) DeepCopy() *EventProtocol { - if in == nil { - return nil - } - out := new(EventProtocol) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FileArtifact) DeepCopyInto(out *FileArtifact) { *out = *in @@ -223,38 +205,6 @@ func (in *GroupVersionKind) DeepCopy() *GroupVersionKind { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Http) DeepCopyInto(out *Http) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Http. -func (in *Http) DeepCopy() *Http { - if in == nil { - return nil - } - out := new(Http) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Nats) DeepCopyInto(out *Nats) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Nats. -func (in *Nats) DeepCopy() *Nats { - if in == nil { - return nil - } - out := new(Nats) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NodeStatus) DeepCopyInto(out *NodeStatus) { *out = *in @@ -453,7 +403,7 @@ func (in *SensorSpec) DeepCopyInto(out *SensorSpec) { } if in.EventProtocol != nil { in, out := &in.EventProtocol, &out.EventProtocol - *out = new(EventProtocol) + *out = new(common.EventProtocol) **out = **in } return