event

package
v17.6.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 7 Imported by: 0

README

Events

This package holds event payload type definitions. Types can be used in public APIs and internally.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_event_event_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CloudEvent added in v17.3.0

type CloudEvent struct {
	Id          string                                          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Source      string                                          `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	SpecVersion string                                          `protobuf:"bytes,3,opt,name=spec_version,json=specVersion,proto3" json:"spec_version,omitempty"`
	Type        string                                          `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Attributes  map[string]*CloudEvent_CloudEventAttributeValue `` /* 161-byte string literal not displayed */
	// Types that are assignable to Data:
	//
	//	*CloudEvent_BinaryData
	//	*CloudEvent_TextData
	//	*CloudEvent_ProtoData
	Data isCloudEvent_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*CloudEvent) Descriptor deprecated added in v17.3.0

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

Deprecated: Use CloudEvent.ProtoReflect.Descriptor instead.

func (*CloudEvent) GetAttributes added in v17.3.0

func (x *CloudEvent) GetAttributes() map[string]*CloudEvent_CloudEventAttributeValue

func (*CloudEvent) GetBinaryData added in v17.3.0

func (x *CloudEvent) GetBinaryData() []byte

func (*CloudEvent) GetData added in v17.3.0

func (m *CloudEvent) GetData() isCloudEvent_Data

func (*CloudEvent) GetId added in v17.3.0

func (x *CloudEvent) GetId() string

func (*CloudEvent) GetProtoData added in v17.3.0

func (x *CloudEvent) GetProtoData() *anypb.Any

func (*CloudEvent) GetSource added in v17.3.0

func (x *CloudEvent) GetSource() string

func (*CloudEvent) GetSpecVersion added in v17.3.0

func (x *CloudEvent) GetSpecVersion() string

func (*CloudEvent) GetTextData added in v17.3.0

func (x *CloudEvent) GetTextData() string

func (*CloudEvent) GetType added in v17.3.0

func (x *CloudEvent) GetType() string

func (*CloudEvent) ProtoMessage added in v17.3.0

func (*CloudEvent) ProtoMessage()

func (*CloudEvent) ProtoReflect added in v17.3.0

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

func (*CloudEvent) Reset added in v17.3.0

func (x *CloudEvent) Reset()

func (*CloudEvent) String added in v17.3.0

func (x *CloudEvent) String() string

type CloudEvent_BinaryData added in v17.3.0

type CloudEvent_BinaryData struct {
	BinaryData []byte `protobuf:"bytes,6,opt,name=binary_data,json=binaryData,proto3,oneof"`
}

type CloudEvent_CloudEventAttributeValue added in v17.3.0

type CloudEvent_CloudEventAttributeValue struct {

	// Types that are assignable to Attr:
	//
	//	*CloudEvent_CloudEventAttributeValue_CeBoolean
	//	*CloudEvent_CloudEventAttributeValue_CeInteger
	//	*CloudEvent_CloudEventAttributeValue_CeString
	//	*CloudEvent_CloudEventAttributeValue_CeBytes
	//	*CloudEvent_CloudEventAttributeValue_CeUri
	//	*CloudEvent_CloudEventAttributeValue_CeUriRef
	//	*CloudEvent_CloudEventAttributeValue_CeTimestamp
	Attr isCloudEvent_CloudEventAttributeValue_Attr `protobuf_oneof:"attr"`
	// contains filtered or unexported fields
}

func (*CloudEvent_CloudEventAttributeValue) Descriptor deprecated added in v17.3.0

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

Deprecated: Use CloudEvent_CloudEventAttributeValue.ProtoReflect.Descriptor instead.

func (*CloudEvent_CloudEventAttributeValue) GetAttr added in v17.3.0

func (m *CloudEvent_CloudEventAttributeValue) GetAttr() isCloudEvent_CloudEventAttributeValue_Attr

func (*CloudEvent_CloudEventAttributeValue) GetCeBoolean added in v17.3.0

func (x *CloudEvent_CloudEventAttributeValue) GetCeBoolean() bool

func (*CloudEvent_CloudEventAttributeValue) GetCeBytes added in v17.3.0

func (x *CloudEvent_CloudEventAttributeValue) GetCeBytes() []byte

func (*CloudEvent_CloudEventAttributeValue) GetCeInteger added in v17.3.0

func (x *CloudEvent_CloudEventAttributeValue) GetCeInteger() int32

func (*CloudEvent_CloudEventAttributeValue) GetCeString added in v17.3.0

func (*CloudEvent_CloudEventAttributeValue) GetCeTimestamp added in v17.3.0

func (*CloudEvent_CloudEventAttributeValue) GetCeUri added in v17.3.0

func (*CloudEvent_CloudEventAttributeValue) GetCeUriRef added in v17.3.0

func (*CloudEvent_CloudEventAttributeValue) ProtoMessage added in v17.3.0

func (*CloudEvent_CloudEventAttributeValue) ProtoMessage()

func (*CloudEvent_CloudEventAttributeValue) ProtoReflect added in v17.3.0

func (*CloudEvent_CloudEventAttributeValue) Reset added in v17.3.0

func (*CloudEvent_CloudEventAttributeValue) String added in v17.3.0

type CloudEvent_CloudEventAttributeValue_CeBoolean added in v17.3.0

type CloudEvent_CloudEventAttributeValue_CeBoolean struct {
	CeBoolean bool `protobuf:"varint,1,opt,name=ce_boolean,json=ceBoolean,proto3,oneof"`
}

type CloudEvent_CloudEventAttributeValue_CeBytes added in v17.3.0

type CloudEvent_CloudEventAttributeValue_CeBytes struct {
	CeBytes []byte `protobuf:"bytes,4,opt,name=ce_bytes,json=ceBytes,proto3,oneof"`
}

type CloudEvent_CloudEventAttributeValue_CeInteger added in v17.3.0

type CloudEvent_CloudEventAttributeValue_CeInteger struct {
	CeInteger int32 `protobuf:"varint,2,opt,name=ce_integer,json=ceInteger,proto3,oneof"`
}

type CloudEvent_CloudEventAttributeValue_CeString added in v17.3.0

type CloudEvent_CloudEventAttributeValue_CeString struct {
	CeString string `protobuf:"bytes,3,opt,name=ce_string,json=ceString,proto3,oneof"`
}

type CloudEvent_CloudEventAttributeValue_CeTimestamp added in v17.3.0

type CloudEvent_CloudEventAttributeValue_CeTimestamp struct {
	CeTimestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=ce_timestamp,json=ceTimestamp,proto3,oneof"`
}

type CloudEvent_CloudEventAttributeValue_CeUri added in v17.3.0

type CloudEvent_CloudEventAttributeValue_CeUri struct {
	CeUri string `protobuf:"bytes,5,opt,name=ce_uri,json=ceUri,proto3,oneof"`
}

type CloudEvent_CloudEventAttributeValue_CeUriRef added in v17.3.0

type CloudEvent_CloudEventAttributeValue_CeUriRef struct {
	CeUriRef string `protobuf:"bytes,6,opt,name=ce_uri_ref,json=ceUriRef,proto3,oneof"`
}

type CloudEvent_ProtoData added in v17.3.0

type CloudEvent_ProtoData struct {
	ProtoData *anypb.Any `protobuf:"bytes,8,opt,name=proto_data,json=protoData,proto3,oneof"`
}

type CloudEvent_TextData added in v17.3.0

type CloudEvent_TextData struct {
	TextData string `protobuf:"bytes,7,opt,name=text_data,json=textData,proto3,oneof"`
}

type GitPushEvent

type GitPushEvent struct {
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*GitPushEvent) Descriptor deprecated

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

Deprecated: Use GitPushEvent.ProtoReflect.Descriptor instead.

func (*GitPushEvent) GetProject

func (x *GitPushEvent) GetProject() *Project

func (*GitPushEvent) ProtoMessage

func (*GitPushEvent) ProtoMessage()

func (*GitPushEvent) ProtoReflect

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

func (*GitPushEvent) Reset

func (x *GitPushEvent) Reset()

func (*GitPushEvent) String

func (x *GitPushEvent) String() string

type Project

type Project struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	FullPath string `protobuf:"bytes,2,opt,name=full_path,json=fullPath,proto3" json:"full_path,omitempty"`
	// contains filtered or unexported fields
}

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetFullPath

func (x *Project) GetFullPath() string

func (*Project) GetId

func (x *Project) GetId() int64

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

Jump to

Keyboard shortcuts

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