containerv1

package
v0.0.0-...-3511abf Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "STATE_ASSIGNED",
		2: "STATE_PULLING",
		3: "STATE_STARTING",
		4: "STATE_RUNNING",
		5: "STATE_TERMINATED",
	}
	State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"STATE_ASSIGNED":    1,
		"STATE_PULLING":     2,
		"STATE_STARTING":    3,
		"STATE_RUNNING":     4,
		"STATE_TERMINATED":  5,
	}
)

Enum value maps for State.

View Source
var File_determined_container_v1_container_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Container

type Container struct {

	// The id of the task that is currently managing this container.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The unique id of this instance of a container.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// The current state that the container is currently in.
	State State `protobuf:"varint,3,opt,name=state,proto3,enum=determined.container.v1.State" json:"state,omitempty"`
	// A list of devices that is being used by this container.
	Devices []*devicev1.Device `protobuf:"bytes,4,rep,name=devices,proto3" json:"devices,omitempty"`
	// contains filtered or unexported fields
}

Container is a Docker container that is either scheduled to run or is currently running on a set of slots.

func (*Container) Descriptor deprecated

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

Deprecated: Use Container.ProtoReflect.Descriptor instead.

func (*Container) GetDevices

func (x *Container) GetDevices() []*devicev1.Device

func (*Container) GetId

func (x *Container) GetId() string

func (*Container) GetParent

func (x *Container) GetParent() string

func (*Container) GetState

func (x *Container) GetState() State

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) ProtoReflect

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

func (*Container) Reset

func (x *Container) Reset()

func (*Container) String

func (x *Container) String() string

type State

type State int32

The current state of the container.

const (
	// The container state is unknown.
	State_STATE_UNSPECIFIED State = 0
	// The container has been assigned to an agent but has not started yet.
	State_STATE_ASSIGNED State = 1
	// The container's base image is being pulled from the Docker registry.
	State_STATE_PULLING State = 2
	// The image has been built and the container is being started, but the
	// service in the container is not ready yet.
	State_STATE_STARTING State = 3
	// The service in the container is able to accept requests.
	State_STATE_RUNNING State = 4
	// The container has completely exited or the container has been aborted prior
	// to getting assigned.
	State_STATE_TERMINATED State = 5
)

func (State) Descriptor

func (State) Descriptor() protoreflect.EnumDescriptor

func (State) Enum

func (x State) Enum() *State

func (State) EnumDescriptor deprecated

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

Deprecated: Use State.Descriptor instead.

func (State) Number

func (x State) Number() protoreflect.EnumNumber

func (State) String

func (x State) String() string

func (State) Type

func (State) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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