Documentation ¶
Overview ¶
Package task defines the task service.
Index ¶
- Variables
- type Process
- func (*Process) Descriptor() ([]byte, []int)deprecated
- func (x *Process) GetContainerID() string
- func (x *Process) GetExitStatus() uint32
- func (x *Process) GetExitedAt() *timestamppb.Timestamp
- func (x *Process) GetID() string
- func (x *Process) GetPid() uint32
- func (x *Process) GetStatus() Status
- func (x *Process) GetStderr() string
- func (x *Process) GetStdin() string
- func (x *Process) GetStdout() string
- func (x *Process) GetTerminal() bool
- func (*Process) ProtoMessage()
- func (x *Process) ProtoReflect() protoreflect.Message
- func (x *Process) Reset()
- func (x *Process) String() string
- type ProcessInfo
- func (*ProcessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessInfo) GetInfo() *anypb.Any
- func (x *ProcessInfo) GetPid() uint32
- func (*ProcessInfo) ProtoMessage()
- func (x *ProcessInfo) ProtoReflect() protoreflect.Message
- func (x *ProcessInfo) Reset()
- func (x *ProcessInfo) String() string
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Status_name = map[int32]string{ 0: "UNKNOWN", 1: "CREATED", 2: "RUNNING", 3: "STOPPED", 4: "PAUSED", 5: "PAUSING", } Status_value = map[string]int32{ "UNKNOWN": 0, "CREATED": 1, "RUNNING": 2, "STOPPED": 3, "PAUSED": 4, "PAUSING": 5, } )
Enum value maps for Status.
View Source
var File_github_com_containerd_containerd_api_types_task_task_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct { ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Pid uint32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"` Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=containerd.v1.types.Status" json:"status,omitempty"` Stdin string `protobuf:"bytes,5,opt,name=stdin,proto3" json:"stdin,omitempty"` Stdout string `protobuf:"bytes,6,opt,name=stdout,proto3" json:"stdout,omitempty"` Stderr string `protobuf:"bytes,7,opt,name=stderr,proto3" json:"stderr,omitempty"` Terminal bool `protobuf:"varint,8,opt,name=terminal,proto3" json:"terminal,omitempty"` ExitStatus uint32 `protobuf:"varint,9,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` ExitedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=exited_at,json=exitedAt,proto3" json:"exited_at,omitempty"` // contains filtered or unexported fields }
func (*Process) Descriptor
deprecated
func (*Process) GetContainerID ¶ added in v1.7.0
func (*Process) GetExitStatus ¶ added in v1.7.0
func (*Process) GetExitedAt ¶ added in v1.7.0
func (x *Process) GetExitedAt() *timestamppb.Timestamp
func (*Process) GetTerminal ¶ added in v1.7.0
func (*Process) ProtoMessage ¶
func (*Process) ProtoMessage()
func (*Process) ProtoReflect ¶ added in v1.7.0
func (x *Process) ProtoReflect() protoreflect.Message
type ProcessInfo ¶
type ProcessInfo struct { // PID is the process ID. Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` // Info contains additional process information. // // Info varies by platform. Info *anypb.Any `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*ProcessInfo) Descriptor
deprecated
func (*ProcessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProcessInfo.ProtoReflect.Descriptor instead.
func (*ProcessInfo) GetInfo ¶ added in v1.7.0
func (x *ProcessInfo) GetInfo() *anypb.Any
func (*ProcessInfo) GetPid ¶ added in v1.7.0
func (x *ProcessInfo) GetPid() uint32
func (*ProcessInfo) ProtoMessage ¶
func (*ProcessInfo) ProtoMessage()
func (*ProcessInfo) ProtoReflect ¶ added in v1.7.0
func (x *ProcessInfo) ProtoReflect() protoreflect.Message
func (*ProcessInfo) Reset ¶
func (x *ProcessInfo) Reset()
func (*ProcessInfo) String ¶
func (x *ProcessInfo) String() string
type Status ¶
type Status int32
func (Status) Descriptor ¶ added in v1.7.0
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶ added in v1.7.0
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶ added in v1.7.0
func (Status) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.