Documentation ¶
Index ¶
- Variables
- type Container
- func (*Container) Descriptor() ([]byte, []int)deprecated
- func (x *Container) GetDevices() []*devicev1.Device
- func (x *Container) GetId() string
- func (x *Container) GetParent() string
- func (x *Container) GetPermissionDenied() bool
- func (x *Container) GetState() State
- func (*Container) ProtoMessage()
- func (x *Container) ProtoReflect() protoreflect.Message
- func (x *Container) Reset()
- func (x *Container) String() string
- type State
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"` // User has insufficient permissions to view this container's details. // If true, we obfuscate: // (1) parent // (2) id // (4) devices PermissionDenied bool `protobuf:"varint,5,opt,name=permission_denied,json=permissionDenied,proto3" json:"permission_denied,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) GetDevices ¶
func (*Container) GetPermissionDenied ¶
func (*Container) ProtoMessage ¶
func (*Container) ProtoMessage()
func (*Container) ProtoReflect ¶
func (x *Container) ProtoReflect() protoreflect.Message
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) EnumDescriptor
deprecated
func (State) Number ¶
func (x State) Number() protoreflect.EnumNumber
func (State) Type ¶
func (State) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.