task

package
v1.7.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 925

Documentation

Overview

Package task defines the task service.

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Process.ProtoReflect.Descriptor instead.

func (*Process) GetContainerID added in v1.7.0

func (x *Process) GetContainerID() string

func (*Process) GetExitStatus added in v1.7.0

func (x *Process) GetExitStatus() uint32

func (*Process) GetExitedAt added in v1.7.0

func (x *Process) GetExitedAt() *timestamppb.Timestamp

func (*Process) GetID added in v1.7.0

func (x *Process) GetID() string

func (*Process) GetPid added in v1.7.0

func (x *Process) GetPid() uint32

func (*Process) GetStatus added in v1.7.0

func (x *Process) GetStatus() Status

func (*Process) GetStderr added in v1.7.0

func (x *Process) GetStderr() string

func (*Process) GetStdin added in v1.7.0

func (x *Process) GetStdin() string

func (*Process) GetStdout added in v1.7.0

func (x *Process) GetStdout() string

func (*Process) GetTerminal added in v1.7.0

func (x *Process) GetTerminal() bool

func (*Process) ProtoMessage

func (*Process) ProtoMessage()

func (*Process) ProtoReflect added in v1.7.0

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

func (*Process) Reset

func (x *Process) Reset()

func (*Process) String

func (x *Process) String() string

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
const (
	Status_UNKNOWN Status = 0
	Status_CREATED Status = 1
	Status_RUNNING Status = 2
	Status_STOPPED Status = 3
	Status_PAUSED  Status = 4
	Status_PAUSING Status = 5
)

func (Status) Descriptor added in v1.7.0

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum added in v1.7.0

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number added in v1.7.0

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type added in v1.7.0

func (Status) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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