contlcycle

package
v5.0.130 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: BSD-3-Clause Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ObjectKind_name = map[int32]string{
		0: "Container",
		1: "Pod",
		2: "Task",
	}
	ObjectKind_value = map[string]int32{
		"Container": 0,
		"Pod":       1,
		"Task":      2,
	}
)

Enum value maps for 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"`
	Owner                 *ContainerEvent_Owner                  `protobuf:"bytes,5,opt,name=owner,proto3,oneof" json:"owner,omitempty"` // owner contains the information about who this container belongs to
	// 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) GetOwner added in v5.0.79

func (x *ContainerEvent) GetOwner() *ContainerEvent_Owner

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 ContainerEvent_Owner added in v5.0.79

type ContainerEvent_Owner struct {
	OwnerType ObjectKind `protobuf:"varint,1,opt,name=ownerType,proto3,enum=datadog.contlcycle.ObjectKind" json:"ownerType,omitempty"` // ownerType represents the owner type (pod, etc)
	OwnerUID  string     `protobuf:"bytes,2,opt,name=ownerUID,proto3" json:"ownerUID,omitempty"`                                       // ownerUID contains the owner UID
	// contains filtered or unexported fields
}

Owner contains information about what a container belongs to

func (*ContainerEvent_Owner) Descriptor deprecated added in v5.0.79

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

Deprecated: Use ContainerEvent_Owner.ProtoReflect.Descriptor instead.

func (*ContainerEvent_Owner) GetOwnerType added in v5.0.79

func (x *ContainerEvent_Owner) GetOwnerType() ObjectKind

func (*ContainerEvent_Owner) GetOwnerUID added in v5.0.79

func (x *ContainerEvent_Owner) GetOwnerUID() string

func (*ContainerEvent_Owner) ProtoMessage added in v5.0.79

func (*ContainerEvent_Owner) ProtoMessage()

func (*ContainerEvent_Owner) ProtoReflect added in v5.0.79

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

func (*ContainerEvent_Owner) Reset added in v5.0.79

func (x *ContainerEvent_Owner) Reset()

func (*ContainerEvent_Owner) String added in v5.0.79

func (x *ContainerEvent_Owner) String() string

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
	//	*Event_Task
	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) GetTask added in v5.0.108

func (x *Event) GetTask() *TaskEvent

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 Event_Task added in v5.0.108

type Event_Task struct {
	Task *TaskEvent `protobuf:"bytes,4,opt,name=task,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 ObjectKind `protobuf:"varint,3,opt,name=objectKind,proto3,enum=datadog.contlcycle.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() 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 ObjectKind added in v5.0.79

type ObjectKind int32
const (
	ObjectKind_Container ObjectKind = 0
	ObjectKind_Pod       ObjectKind = 1
	ObjectKind_Task      ObjectKind = 2
)

func (ObjectKind) Descriptor added in v5.0.79

func (ObjectKind) Descriptor() protoreflect.EnumDescriptor

func (ObjectKind) Enum added in v5.0.79

func (x ObjectKind) Enum() *ObjectKind

func (ObjectKind) EnumDescriptor deprecated added in v5.0.79

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

Deprecated: Use ObjectKind.Descriptor instead.

func (ObjectKind) Number added in v5.0.79

func (x ObjectKind) Number() protoreflect.EnumNumber

func (ObjectKind) String added in v5.0.79

func (x ObjectKind) String() string

func (ObjectKind) Type added in v5.0.79

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

type TaskEvent added in v5.0.108

type TaskEvent struct {
	TaskARN       string `protobuf:"bytes,1,opt,name=taskARN,proto3" json:"taskARN,omitempty"`                    // taskARN contains the task ARN
	Source        string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`                      // source contains the task source
	ExitTimestamp *int64 `protobuf:"varint,3,opt,name=exitTimestamp,proto3,oneof" json:"exitTimestamp,omitempty"` // exitTimestamp contains the exit timestamp of the task
	// contains filtered or unexported fields
}

TaskEvent contains task event metadata

func (*TaskEvent) Descriptor deprecated added in v5.0.108

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

Deprecated: Use TaskEvent.ProtoReflect.Descriptor instead.

func (*TaskEvent) GetExitTimestamp added in v5.0.108

func (x *TaskEvent) GetExitTimestamp() int64

func (*TaskEvent) GetSource added in v5.0.108

func (x *TaskEvent) GetSource() string

func (*TaskEvent) GetTaskARN added in v5.0.108

func (x *TaskEvent) GetTaskARN() string

func (*TaskEvent) ProtoMessage added in v5.0.108

func (*TaskEvent) ProtoMessage()

func (*TaskEvent) ProtoReflect added in v5.0.108

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

func (*TaskEvent) Reset added in v5.0.108

func (x *TaskEvent) Reset()

func (*TaskEvent) String added in v5.0.108

func (x *TaskEvent) String() string

Jump to

Keyboard shortcuts

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