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) GetOrigin() Origin
- 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
- type Origin
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 ( Origin_name = map[int32]string{ 0: "ORIGIN_UNSPECIFIED", 1: "ORIGIN_EXTERNAL", 2: "ORIGIN_PLUGIN", } Origin_value = map[string]int32{ "ORIGIN_UNSPECIFIED": 0, "ORIGIN_EXTERNAL": 1, "ORIGIN_PLUGIN": 2, } )
Enum value maps for Origin.
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"` Origin Origin `protobuf:"varint,6,opt,name=origin,proto3,enum=beskar.api.event.v1.Origin" json:"origin,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) GetOrigin ¶ added in v0.0.13
func (x *EventPayload) GetOrigin() Origin
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
type Origin ¶ added in v0.0.13
type Origin int32
func (Origin) Descriptor ¶ added in v0.0.13
func (Origin) Descriptor() protoreflect.EnumDescriptor
func (Origin) EnumDescriptor
deprecated
added in
v0.0.13
func (Origin) Number ¶ added in v0.0.13
func (x Origin) Number() protoreflect.EnumNumber
func (Origin) Type ¶ added in v0.0.13
func (Origin) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.