Documentation ¶
Index ¶
- Variables
- type Action
- type EventPayload
- func (*EventPayload) Descriptor() ([]byte, []int)deprecated
- func (x *EventPayload) GetAction() Action
- func (x *EventPayload) GetDigest() string
- func (x *EventPayload) GetMediatype() string
- func (x *EventPayload) GetPayload() []byte
- func (x *EventPayload) GetRepository() string
- func (*EventPayload) ProtoMessage()
- func (x *EventPayload) ProtoReflect() protoreflect.Message
- func (x *EventPayload) Reset()
- func (x *EventPayload) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Action_name = map[int32]string{ 0: "ACTION_UNSPECIFIED", 1: "ACTION_PUT", 2: "ACTION_DELETE", 3: "ACTION_START", 4: "ACTION_STOP", } Action_value = map[string]int32{ "ACTION_UNSPECIFIED": 0, "ACTION_PUT": 1, "ACTION_DELETE": 2, "ACTION_START": 3, "ACTION_STOP": 4, } )
Enum value maps for Action.
View Source
var File_event_v1_event_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Action ¶ added in v0.0.3
type Action int32
func (Action) Descriptor ¶ added in v0.0.3
func (Action) Descriptor() protoreflect.EnumDescriptor
func (Action) EnumDescriptor
deprecated
added in
v0.0.3
func (Action) Number ¶ added in v0.0.3
func (x Action) Number() protoreflect.EnumNumber
func (Action) Type ¶ added in v0.0.3
func (Action) Type() protoreflect.EnumType
type EventPayload ¶ added in v0.0.3
type EventPayload struct { // repository is required for all actions Repository string `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` Mediatype string `protobuf:"bytes,3,opt,name=mediatype,proto3" json:"mediatype,omitempty"` Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` Action Action `protobuf:"varint,5,opt,name=action,proto3,enum=beskar.api.event.v1.Action" json:"action,omitempty"` // contains filtered or unexported fields }
EventPayload defines an event payload.
func (*EventPayload) Descriptor
deprecated
added in
v0.0.3
func (*EventPayload) Descriptor() ([]byte, []int)
Deprecated: Use EventPayload.ProtoReflect.Descriptor instead.
func (*EventPayload) GetAction ¶ added in v0.0.3
func (x *EventPayload) GetAction() Action
func (*EventPayload) GetDigest ¶ added in v0.0.3
func (x *EventPayload) GetDigest() string
func (*EventPayload) GetMediatype ¶ added in v0.0.3
func (x *EventPayload) GetMediatype() string
func (*EventPayload) GetPayload ¶ added in v0.0.3
func (x *EventPayload) GetPayload() []byte
func (*EventPayload) GetRepository ¶ added in v0.0.3
func (x *EventPayload) GetRepository() string
func (*EventPayload) ProtoMessage ¶ added in v0.0.3
func (*EventPayload) ProtoMessage()
func (*EventPayload) ProtoReflect ¶ added in v0.0.3
func (x *EventPayload) ProtoReflect() protoreflect.Message
func (*EventPayload) Reset ¶ added in v0.0.3
func (x *EventPayload) Reset()
func (*EventPayload) String ¶ added in v0.0.3
func (x *EventPayload) String() string
Click to show internal directories.
Click to hide internal directories.