eventv1

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 (m *Event) CloneMessageVT() proto.Message

func (*Event) CloneVT

func (m *Event) CloneVT() *Event

func (*Event) Descriptor deprecated

func (*Event) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) EqualMessageVT

func (this *Event) EqualMessageVT(thatMsg proto.Message) bool

func (*Event) EqualVT

func (this *Event) EqualVT(that *Event) bool

func (*Event) GetMetadata

func (x *Event) GetMetadata() *v1.ObjectMeta

func (*Event) GetSpec

func (x *Event) GetSpec() *EventSpec

func (*Event) GetType

func (x *Event) GetType() *v1.TypeMeta

func (*Event) MarshalToSizedBufferVT

func (m *Event) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Event) MarshalToSizedBufferVTStrict

func (m *Event) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)

func (*Event) MarshalToVT

func (m *Event) MarshalToVT(dAtA []byte) (int, error)

func (*Event) MarshalToVTStrict

func (m *Event) MarshalToVTStrict(dAtA []byte) (int, error)

func (*Event) MarshalVT

func (m *Event) MarshalVT() (dAtA []byte, err error)

func (*Event) MarshalVTStrict

func (m *Event) MarshalVTStrict() (dAtA []byte, err error)

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) SizeVT

func (m *Event) SizeVT() (n int)

func (*Event) String

func (x *Event) String() string

func (*Event) UnmarshalVT

func (m *Event) UnmarshalVT(dAtA []byte) error

func (*Event) UnmarshalVTUnsafe

func (m *Event) UnmarshalVTUnsafe(dAtA []byte) error

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 (m *EventSpec) CloneMessageVT() proto.Message

func (*EventSpec) CloneVT

func (m *EventSpec) CloneVT() *EventSpec

func (*EventSpec) Descriptor deprecated

func (*EventSpec) Descriptor() ([]byte, []int)

Deprecated: Use EventSpec.ProtoReflect.Descriptor instead.

func (*EventSpec) EqualMessageVT

func (this *EventSpec) EqualMessageVT(thatMsg proto.Message) bool

func (*EventSpec) EqualVT

func (this *EventSpec) EqualVT(that *EventSpec) bool

func (*EventSpec) GetCorrelationId

func (x *EventSpec) GetCorrelationId() string

func (*EventSpec) GetKind

func (x *EventSpec) GetKind() string

func (*EventSpec) GetKindObject

func (x *EventSpec) GetKindObject() *anypb.Any

func (*EventSpec) GetOperation

func (x *EventSpec) GetOperation() EventSpec_Operation

func (*EventSpec) MarshalToSizedBufferVT

func (m *EventSpec) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*EventSpec) MarshalToSizedBufferVTStrict

func (m *EventSpec) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)

func (*EventSpec) MarshalToVT

func (m *EventSpec) MarshalToVT(dAtA []byte) (int, error)

func (*EventSpec) MarshalToVTStrict

func (m *EventSpec) MarshalToVTStrict(dAtA []byte) (int, error)

func (*EventSpec) MarshalVT

func (m *EventSpec) MarshalVT() (dAtA []byte, err error)

func (*EventSpec) MarshalVTStrict

func (m *EventSpec) MarshalVTStrict() (dAtA []byte, err error)

func (*EventSpec) ProtoMessage

func (*EventSpec) ProtoMessage()

func (*EventSpec) ProtoReflect

func (x *EventSpec) ProtoReflect() protoreflect.Message

func (*EventSpec) Reset

func (x *EventSpec) Reset()

func (*EventSpec) SizeVT

func (m *EventSpec) SizeVT() (n int)

func (*EventSpec) String

func (x *EventSpec) String() string

func (*EventSpec) UnmarshalVT

func (m *EventSpec) UnmarshalVT(dAtA []byte) error

func (*EventSpec) UnmarshalVTUnsafe

func (m *EventSpec) UnmarshalVTUnsafe(dAtA []byte) error

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) Enum

func (EventSpec_Operation) EnumDescriptor deprecated

func (EventSpec_Operation) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventSpec_Operation.Descriptor instead.

func (EventSpec_Operation) Number

func (EventSpec_Operation) String

func (x EventSpec_Operation) String() string

func (EventSpec_Operation) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL