contlcycle

package
v5.0.62 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: BSD-3-Clause Imports: 4 Imported by: 3

Documentation

Overview

Package contlcycle is a generated protocol buffer package.

It is generated from these files:

proto/contlcycle/contlcycle.proto

It has these top-level messages:

EventsPayload
Event
ContainerEvent
PodEvent

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthContlcycle = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowContlcycle   = fmt.Errorf("proto: integer overflow")
)
View Source
var Event_EventType_name = map[int32]string{
	0: "Delete",
}
View Source
var Event_EventType_value = map[string]int32{
	"Delete": 0,
}
View Source
var EventsPayload_ObjectKind_name = map[int32]string{
	0: "Container",
	1: "Pod",
}
View Source
var EventsPayload_ObjectKind_value = map[string]int32{
	"Container": 0,
	"Pod":       1,
}

Functions

This section is empty.

Types

type ContainerEvent

type ContainerEvent struct {
	ContainerID string `protobuf:"bytes,1,opt,name=containerID,proto3" json:"containerID,omitempty"`
	Source      string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// Types that are valid to be assigned to OptionalExitCode:
	//	*ContainerEvent_ExitCode
	OptionalExitCode isContainerEvent_OptionalExitCode `protobuf_oneof:"optionalExitCode"`
	// Types that are valid to be assigned to OptionalExitTimestamp:
	//	*ContainerEvent_ExitTimestamp
	OptionalExitTimestamp isContainerEvent_OptionalExitTimestamp `protobuf_oneof:"optionalExitTimestamp"`
}

ContainerEvent contains container event metadata

func (*ContainerEvent) Descriptor

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

func (*ContainerEvent) GetContainerID

func (m *ContainerEvent) GetContainerID() string

func (*ContainerEvent) GetExitCode

func (m *ContainerEvent) GetExitCode() int32

func (*ContainerEvent) GetExitTimestamp

func (m *ContainerEvent) GetExitTimestamp() int64

func (*ContainerEvent) GetOptionalExitCode

func (m *ContainerEvent) GetOptionalExitCode() isContainerEvent_OptionalExitCode

func (*ContainerEvent) GetOptionalExitTimestamp

func (m *ContainerEvent) GetOptionalExitTimestamp() isContainerEvent_OptionalExitTimestamp

func (*ContainerEvent) GetSource

func (m *ContainerEvent) GetSource() string

func (*ContainerEvent) Marshal

func (m *ContainerEvent) Marshal() (dAtA []byte, err error)

func (*ContainerEvent) MarshalTo

func (m *ContainerEvent) MarshalTo(dAtA []byte) (int, error)

func (*ContainerEvent) ProtoMessage

func (*ContainerEvent) ProtoMessage()

func (*ContainerEvent) Reset

func (m *ContainerEvent) Reset()

func (*ContainerEvent) Size

func (m *ContainerEvent) Size() (n int)

func (*ContainerEvent) String

func (m *ContainerEvent) String() string

func (*ContainerEvent) Unmarshal

func (m *ContainerEvent) Unmarshal(dAtA []byte) error

func (*ContainerEvent) XXX_OneofFuncs

func (*ContainerEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ContainerEvent_ExitCode

type ContainerEvent_ExitCode struct {
	ExitCode int32 `protobuf:"varint,3,opt,name=exitCode,proto3,oneof"`
}

func (*ContainerEvent_ExitCode) MarshalTo

func (m *ContainerEvent_ExitCode) MarshalTo(dAtA []byte) (int, error)

func (*ContainerEvent_ExitCode) Size

func (m *ContainerEvent_ExitCode) Size() (n int)

type ContainerEvent_ExitTimestamp

type ContainerEvent_ExitTimestamp struct {
	ExitTimestamp int64 `protobuf:"varint,4,opt,name=exitTimestamp,proto3,oneof"`
}

func (*ContainerEvent_ExitTimestamp) MarshalTo

func (m *ContainerEvent_ExitTimestamp) MarshalTo(dAtA []byte) (int, error)

func (*ContainerEvent_ExitTimestamp) Size

func (m *ContainerEvent_ExitTimestamp) Size() (n int)

type Event

type Event struct {
	EventType Event_EventType `protobuf:"varint,1,opt,name=eventType,proto3,enum=datadog.contlcycle.Event_EventType" json:"eventType,omitempty"`
	// Types that are valid to be assigned to TypedEvent:
	//	*Event_Container
	//	*Event_Pod
	TypedEvent isEvent_TypedEvent `protobuf_oneof:"typedEvent"`
}

Event contains the details about a container lifecycle event

func (*Event) Descriptor

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

func (*Event) GetContainer

func (m *Event) GetContainer() *ContainerEvent

func (*Event) GetEventType

func (m *Event) GetEventType() Event_EventType

func (*Event) GetPod

func (m *Event) GetPod() *PodEvent

func (*Event) GetTypedEvent

func (m *Event) GetTypedEvent() isEvent_TypedEvent

func (*Event) Marshal

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

func (*Event) MarshalTo

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

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) Size

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

func (*Event) String

func (m *Event) String() string

func (*Event) Unmarshal

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

func (*Event) XXX_OneofFuncs

func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Event_Container

type Event_Container struct {
	Container *ContainerEvent `protobuf:"bytes,2,opt,name=container,oneof"`
}

func (*Event_Container) MarshalTo

func (m *Event_Container) MarshalTo(dAtA []byte) (int, error)

func (*Event_Container) Size

func (m *Event_Container) Size() (n int)

type Event_EventType

type Event_EventType int32
const (
	Event_Delete Event_EventType = 0
)

func (Event_EventType) EnumDescriptor

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

func (Event_EventType) String

func (x Event_EventType) String() string

type Event_Pod

type Event_Pod struct {
	Pod *PodEvent `protobuf:"bytes,3,opt,name=pod,oneof"`
}

func (*Event_Pod) MarshalTo

func (m *Event_Pod) MarshalTo(dAtA []byte) (int, error)

func (*Event_Pod) Size

func (m *Event_Pod) Size() (n int)

type EventsPayload

type EventsPayload struct {
	Version    string                   `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Host       string                   `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	ObjectKind EventsPayload_ObjectKind `protobuf:"varint,3,opt,name=objectKind,proto3,enum=datadog.contlcycle.EventsPayload_ObjectKind" json:"objectKind,omitempty"`
	Events     []*Event                 `protobuf:"bytes,4,rep,name=events" json:"events,omitempty"`
}

EventsPayload represents the main container lifecycle event payload

func (*EventsPayload) Descriptor

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

func (*EventsPayload) GetEvents

func (m *EventsPayload) GetEvents() []*Event

func (*EventsPayload) GetHost

func (m *EventsPayload) GetHost() string

func (*EventsPayload) GetObjectKind

func (m *EventsPayload) GetObjectKind() EventsPayload_ObjectKind

func (*EventsPayload) GetVersion

func (m *EventsPayload) GetVersion() string

func (*EventsPayload) Marshal

func (m *EventsPayload) Marshal() (dAtA []byte, err error)

func (*EventsPayload) MarshalTo

func (m *EventsPayload) MarshalTo(dAtA []byte) (int, error)

func (*EventsPayload) ProtoMessage

func (*EventsPayload) ProtoMessage()

func (*EventsPayload) Reset

func (m *EventsPayload) Reset()

func (*EventsPayload) Size

func (m *EventsPayload) Size() (n int)

func (*EventsPayload) String

func (m *EventsPayload) String() string

func (*EventsPayload) Unmarshal

func (m *EventsPayload) Unmarshal(dAtA []byte) error

type EventsPayload_ObjectKind

type EventsPayload_ObjectKind int32
const (
	EventsPayload_Container EventsPayload_ObjectKind = 0
	EventsPayload_Pod       EventsPayload_ObjectKind = 1
)

func (EventsPayload_ObjectKind) EnumDescriptor

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

func (EventsPayload_ObjectKind) String

func (x EventsPayload_ObjectKind) String() string

type PodEvent

type PodEvent struct {
	PodUID string `protobuf:"bytes,1,opt,name=podUID,proto3" json:"podUID,omitempty"`
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
}

PodEvent contains pod event metadata

func (*PodEvent) Descriptor

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

func (*PodEvent) GetPodUID

func (m *PodEvent) GetPodUID() string

func (*PodEvent) GetSource

func (m *PodEvent) GetSource() string

func (*PodEvent) Marshal

func (m *PodEvent) Marshal() (dAtA []byte, err error)

func (*PodEvent) MarshalTo

func (m *PodEvent) MarshalTo(dAtA []byte) (int, error)

func (*PodEvent) ProtoMessage

func (*PodEvent) ProtoMessage()

func (*PodEvent) Reset

func (m *PodEvent) Reset()

func (*PodEvent) Size

func (m *PodEvent) Size() (n int)

func (*PodEvent) String

func (m *PodEvent) String() string

func (*PodEvent) Unmarshal

func (m *PodEvent) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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