contlcycle

package
v5.0.78 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EventsPayload_ObjectKind_name = map[int32]string{
		0: "Container",
		1: "Pod",
	}
	EventsPayload_ObjectKind_value = map[string]int32{
		"Container": 0,
		"Pod":       1,
	}
)

Enum value maps for EventsPayload_ObjectKind.

View Source
var (
	Event_EventType_name = map[int32]string{
		0: "Delete",
	}
	Event_EventType_value = map[string]int32{
		"Delete": 0,
	}
)

Enum value maps for Event_EventType.

View Source
var File_proto_contlcycle_contlcycle_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ContainerEvent

type ContainerEvent struct {
	ContainerID string `protobuf:"bytes,1,opt,name=containerID,proto3" json:"containerID,omitempty"` // containerID contains the container ID
	Source      string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`           // source contains the container source (docker, containerd..)
	// Types that are assignable to OptionalExitCode:
	//	*ContainerEvent_ExitCode
	OptionalExitCode isContainerEvent_OptionalExitCode `protobuf_oneof:"optionalExitCode"`
	// Types that are assignable to OptionalExitTimestamp:
	//	*ContainerEvent_ExitTimestamp
	OptionalExitTimestamp isContainerEvent_OptionalExitTimestamp `protobuf_oneof:"optionalExitTimestamp"`
	// contains filtered or unexported fields
}

ContainerEvent contains container event metadata

func (*ContainerEvent) Descriptor deprecated

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

Deprecated: Use ContainerEvent.ProtoReflect.Descriptor instead.

func (*ContainerEvent) GetContainerID

func (x *ContainerEvent) GetContainerID() string

func (*ContainerEvent) GetExitCode

func (x *ContainerEvent) GetExitCode() int32

func (*ContainerEvent) GetExitTimestamp

func (x *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 (x *ContainerEvent) GetSource() string

func (*ContainerEvent) ProtoMessage

func (*ContainerEvent) ProtoMessage()

func (*ContainerEvent) ProtoReflect added in v5.0.77

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

func (*ContainerEvent) Reset

func (x *ContainerEvent) Reset()

func (*ContainerEvent) String

func (x *ContainerEvent) String() string

type ContainerEvent_ExitCode

type ContainerEvent_ExitCode struct {
	ExitCode int32 `protobuf:"varint,3,opt,name=exitCode,proto3,oneof"` // exitCode contains the exit code of the container
}

type ContainerEvent_ExitTimestamp

type ContainerEvent_ExitTimestamp struct {
	ExitTimestamp int64 `protobuf:"varint,4,opt,name=exitTimestamp,proto3,oneof"` // exitTimestamp contains the exit timestamp of the container
}

type Event

type Event struct {
	EventType Event_EventType `protobuf:"varint,1,opt,name=eventType,proto3,enum=datadog.contlcycle.Event_EventType" json:"eventType,omitempty"` // eventType represents the event's type (deletion)
	// Types that are assignable to TypedEvent:
	//	*Event_Container
	//	*Event_Pod
	TypedEvent isEvent_TypedEvent `protobuf_oneof:"typedEvent"`
	// contains filtered or unexported fields
}

Event contains the details about a container lifecycle event

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetContainer

func (x *Event) GetContainer() *ContainerEvent

func (*Event) GetEventType

func (x *Event) GetEventType() Event_EventType

func (*Event) GetPod

func (x *Event) GetPod() *PodEvent

func (*Event) GetTypedEvent

func (m *Event) GetTypedEvent() isEvent_TypedEvent

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect added in v5.0.77

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Event_Container

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

type Event_EventType

type Event_EventType int32
const (
	Event_Delete Event_EventType = 0
)

func (Event_EventType) Descriptor added in v5.0.77

func (Event_EventType) Enum added in v5.0.77

func (x Event_EventType) Enum() *Event_EventType

func (Event_EventType) EnumDescriptor deprecated

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

Deprecated: Use Event_EventType.Descriptor instead.

func (Event_EventType) Number added in v5.0.77

func (Event_EventType) String

func (x Event_EventType) String() string

func (Event_EventType) Type added in v5.0.77

type Event_Pod

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

type EventsPayload

type EventsPayload struct {
	Version    string                   `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`                                                         // version represents the EventsPayload message version
	Host       string                   `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`                                                               // host contains the hostname
	ObjectKind EventsPayload_ObjectKind `protobuf:"varint,3,opt,name=objectKind,proto3,enum=datadog.contlcycle.EventsPayload_ObjectKind" json:"objectKind,omitempty"` // objectKind represents the object kind (container, pod)
	Events     []*Event                 `protobuf:"bytes,4,rep,name=events,proto3" json:"events,omitempty"`                                                           // events contains all the event details
	// contains filtered or unexported fields
}

EventsPayload represents the main container lifecycle event payload

func (*EventsPayload) Descriptor deprecated

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

Deprecated: Use EventsPayload.ProtoReflect.Descriptor instead.

func (*EventsPayload) GetEvents

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

func (*EventsPayload) GetHost

func (x *EventsPayload) GetHost() string

func (*EventsPayload) GetObjectKind

func (x *EventsPayload) GetObjectKind() EventsPayload_ObjectKind

func (*EventsPayload) GetVersion

func (x *EventsPayload) GetVersion() string

func (*EventsPayload) ProtoMessage

func (*EventsPayload) ProtoMessage()

func (*EventsPayload) ProtoReflect added in v5.0.77

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

func (*EventsPayload) Reset

func (x *EventsPayload) Reset()

func (*EventsPayload) String

func (x *EventsPayload) String() string

type EventsPayload_ObjectKind

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

func (EventsPayload_ObjectKind) Descriptor added in v5.0.77

func (EventsPayload_ObjectKind) Enum added in v5.0.77

func (EventsPayload_ObjectKind) EnumDescriptor deprecated

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

Deprecated: Use EventsPayload_ObjectKind.Descriptor instead.

func (EventsPayload_ObjectKind) Number added in v5.0.77

func (EventsPayload_ObjectKind) String

func (x EventsPayload_ObjectKind) String() string

func (EventsPayload_ObjectKind) Type added in v5.0.77

type PodEvent

type PodEvent struct {
	PodUID        string `protobuf:"bytes,1,opt,name=podUID,proto3" json:"podUID,omitempty"`                      // podUID contains the pod UID
	Source        string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`                      // source contains the pod source (kubelet)
	ExitTimestamp *int64 `protobuf:"varint,3,opt,name=exitTimestamp,proto3,oneof" json:"exitTimestamp,omitempty"` // exitTimestamp contains the exit timestamp of the pod
	// contains filtered or unexported fields
}

PodEvent contains pod event metadata

func (*PodEvent) Descriptor deprecated

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

Deprecated: Use PodEvent.ProtoReflect.Descriptor instead.

func (*PodEvent) GetExitTimestamp added in v5.0.78

func (x *PodEvent) GetExitTimestamp() int64

func (*PodEvent) GetPodUID

func (x *PodEvent) GetPodUID() string

func (*PodEvent) GetSource

func (x *PodEvent) GetSource() string

func (*PodEvent) ProtoMessage

func (*PodEvent) ProtoMessage()

func (*PodEvent) ProtoReflect added in v5.0.77

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

func (*PodEvent) Reset

func (x *PodEvent) Reset()

func (*PodEvent) String

func (x *PodEvent) String() string

Jump to

Keyboard shortcuts

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