Documentation ¶
Index ¶
- Variables
- type Event
- func (m *Event) CloneMessageVT() proto.Message
- func (m *Event) CloneVT() *Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (this *Event) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Event) EqualVT(that *Event) bool
- func (x *Event) GetMetadata() *v1.ObjectMeta
- func (x *Event) GetSpec() *EventSpec
- func (x *Event) GetType() *v1.TypeMeta
- func (m *Event) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Event) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *Event) MarshalToVT(dAtA []byte) (int, error)
- func (m *Event) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *Event) MarshalVT() (dAtA []byte, err error)
- func (m *Event) MarshalVTStrict() (dAtA []byte, err error)
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (m *Event) SizeVT() (n int)
- func (x *Event) String() string
- func (m *Event) UnmarshalVT(dAtA []byte) error
- func (m *Event) UnmarshalVTUnsafe(dAtA []byte) error
- type EventSpec
- func (m *EventSpec) CloneMessageVT() proto.Message
- func (m *EventSpec) CloneVT() *EventSpec
- func (*EventSpec) Descriptor() ([]byte, []int)deprecated
- func (this *EventSpec) EqualMessageVT(thatMsg proto.Message) bool
- func (this *EventSpec) EqualVT(that *EventSpec) bool
- func (x *EventSpec) GetCorrelationId() string
- func (x *EventSpec) GetKind() string
- func (x *EventSpec) GetKindObject() *anypb.Any
- func (x *EventSpec) GetOperation() EventSpec_Operation
- func (m *EventSpec) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *EventSpec) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *EventSpec) MarshalToVT(dAtA []byte) (int, error)
- func (m *EventSpec) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *EventSpec) MarshalVT() (dAtA []byte, err error)
- func (m *EventSpec) MarshalVTStrict() (dAtA []byte, err error)
- func (*EventSpec) ProtoMessage()
- func (x *EventSpec) ProtoReflect() protoreflect.Message
- func (x *EventSpec) Reset()
- func (m *EventSpec) SizeVT() (n int)
- func (x *EventSpec) String() string
- func (m *EventSpec) UnmarshalVT(dAtA []byte) error
- func (m *EventSpec) UnmarshalVTUnsafe(dAtA []byte) error
- type EventSpec_Operation
- func (EventSpec_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x EventSpec_Operation) Enum() *EventSpec_Operation
- func (EventSpec_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x EventSpec_Operation) Number() protoreflect.EnumNumber
- func (x EventSpec_Operation) String() string
- func (EventSpec_Operation) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EventSpec_Operation_name = map[int32]string{ 0: "OPERATION_UNSPECIFIED", 1: "OPERATION_CREATE", 2: "OPERATION_READ", 3: "OPERATION_UPDATE", 4: "OPERATION_DELETE", } EventSpec_Operation_value = map[string]int32{ "OPERATION_UNSPECIFIED": 0, "OPERATION_CREATE": 1, "OPERATION_READ": 2, "OPERATION_UPDATE": 3, "OPERATION_DELETE": 4, } )
Enum value maps for EventSpec_Operation.
View Source
var File_event_v1_event_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Type *v1.TypeMeta `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Metadata *v1.ObjectMeta `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` Spec *EventSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
Root message for the API
func (*Event) CloneMessageVT ¶
func (*Event) Descriptor
deprecated
func (*Event) GetMetadata ¶
func (x *Event) GetMetadata() *v1.ObjectMeta
func (*Event) MarshalToSizedBufferVT ¶
func (*Event) MarshalToSizedBufferVTStrict ¶
func (*Event) MarshalVTStrict ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
func (*Event) UnmarshalVT ¶
func (*Event) UnmarshalVTUnsafe ¶
type EventSpec ¶
type EventSpec struct { // The protobuf package name goes here. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // What operation caused this event (CRUD) Operation EventSpec_Operation `protobuf:"varint,2,opt,name=operation,proto3,enum=event.v1.EventSpec_Operation" json:"operation,omitempty"` // ENUM // The raw event kind object KindObject *anypb.Any `protobuf:"bytes,3,opt,name=kind_object,json=kindObject,proto3" json:"kind_object,omitempty"` // Correlation ID from action that caused this event to exist. CorrelationId string `protobuf:"bytes,10,opt,name=correlation_id,json=correlationId,proto3" json:"correlation_id,omitempty"` // contains filtered or unexported fields }
Generic event specification. Useful for event based state transfer.
func (*EventSpec) CloneMessageVT ¶
func (*EventSpec) Descriptor
deprecated
func (*EventSpec) EqualMessageVT ¶
func (*EventSpec) GetCorrelationId ¶
func (*EventSpec) GetKindObject ¶
func (*EventSpec) GetOperation ¶
func (x *EventSpec) GetOperation() EventSpec_Operation
func (*EventSpec) MarshalToSizedBufferVT ¶
func (*EventSpec) MarshalToSizedBufferVTStrict ¶
func (*EventSpec) MarshalToVTStrict ¶
func (*EventSpec) MarshalVTStrict ¶
func (*EventSpec) ProtoMessage ¶
func (*EventSpec) ProtoMessage()
func (*EventSpec) ProtoReflect ¶
func (x *EventSpec) ProtoReflect() protoreflect.Message
func (*EventSpec) UnmarshalVT ¶
func (*EventSpec) UnmarshalVTUnsafe ¶
type EventSpec_Operation ¶
type EventSpec_Operation int32
Enum for the action type
const ( EventSpec_OPERATION_UNSPECIFIED EventSpec_Operation = 0 // Default value, used when no action is specified. EventSpec_OPERATION_CREATE EventSpec_Operation = 1 EventSpec_OPERATION_READ EventSpec_Operation = 2 EventSpec_OPERATION_UPDATE EventSpec_Operation = 3 EventSpec_OPERATION_DELETE EventSpec_Operation = 4 )
func (EventSpec_Operation) Descriptor ¶
func (EventSpec_Operation) Descriptor() protoreflect.EnumDescriptor
func (EventSpec_Operation) Enum ¶
func (x EventSpec_Operation) Enum() *EventSpec_Operation
func (EventSpec_Operation) EnumDescriptor
deprecated
func (EventSpec_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use EventSpec_Operation.Descriptor instead.
func (EventSpec_Operation) Number ¶
func (x EventSpec_Operation) Number() protoreflect.EnumNumber
func (EventSpec_Operation) String ¶
func (x EventSpec_Operation) String() string
func (EventSpec_Operation) Type ¶
func (EventSpec_Operation) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.