eventv1

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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
const (
	Action_ACTION_UNSPECIFIED Action = 0
	Action_ACTION_PUT         Action = 1
	Action_ACTION_DELETE      Action = 2
	Action_ACTION_START       Action = 3
	Action_ACTION_STOP        Action = 4
)

func (Action) Descriptor added in v0.0.3

func (Action) Descriptor() protoreflect.EnumDescriptor

func (Action) Enum added in v0.0.3

func (x Action) Enum() *Action

func (Action) EnumDescriptor deprecated added in v0.0.3

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

Deprecated: Use Action.Descriptor instead.

func (Action) Number added in v0.0.3

func (x Action) Number() protoreflect.EnumNumber

func (Action) String added in v0.0.3

func (x Action) String() string

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
const (
	Origin_ORIGIN_UNSPECIFIED Origin = 0
	Origin_ORIGIN_EXTERNAL    Origin = 1
	Origin_ORIGIN_PLUGIN      Origin = 2
)

func (Origin) Descriptor added in v0.0.13

func (Origin) Descriptor() protoreflect.EnumDescriptor

func (Origin) Enum added in v0.0.13

func (x Origin) Enum() *Origin

func (Origin) EnumDescriptor deprecated added in v0.0.13

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

Deprecated: Use Origin.Descriptor instead.

func (Origin) Number added in v0.0.13

func (x Origin) Number() protoreflect.EnumNumber

func (Origin) String added in v0.0.13

func (x Origin) String() string

func (Origin) Type added in v0.0.13

func (Origin) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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