v1

package
Version: v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 13 Imported by: 99

Documentation

Index

Constants

View Source
const (
	// RuntimeReady means the runtime is up and ready to accept basic containers.
	RuntimeReady = "RuntimeReady"
	// NetworkReady means the runtime network is up and ready to accept containers which require network.
	NetworkReady = "NetworkReady"
)

Required runtime condition type.

Variables

View Source
var (
	ErrInvalidLengthApi        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ContainerState_name = map[int32]string{
	0: "CONTAINER_CREATED",
	1: "CONTAINER_RUNNING",
	2: "CONTAINER_EXITED",
	3: "CONTAINER_UNKNOWN",
}
View Source
var ContainerState_value = map[string]int32{
	"CONTAINER_CREATED": 0,
	"CONTAINER_RUNNING": 1,
	"CONTAINER_EXITED":  2,
	"CONTAINER_UNKNOWN": 3,
}
View Source
var MountPropagation_name = map[int32]string{
	0: "PROPAGATION_PRIVATE",
	1: "PROPAGATION_HOST_TO_CONTAINER",
	2: "PROPAGATION_BIDIRECTIONAL",
}
View Source
var MountPropagation_value = map[string]int32{
	"PROPAGATION_PRIVATE":           0,
	"PROPAGATION_HOST_TO_CONTAINER": 1,
	"PROPAGATION_BIDIRECTIONAL":     2,
}
View Source
var NamespaceMode_name = map[int32]string{
	0: "POD",
	1: "CONTAINER",
	2: "NODE",
	3: "TARGET",
}
View Source
var NamespaceMode_value = map[string]int32{
	"POD":       0,
	"CONTAINER": 1,
	"NODE":      2,
	"TARGET":    3,
}
View Source
var PodSandboxState_name = map[int32]string{
	0: "SANDBOX_READY",
	1: "SANDBOX_NOTREADY",
}
View Source
var PodSandboxState_value = map[string]int32{
	"SANDBOX_READY":    0,
	"SANDBOX_NOTREADY": 1,
}
View Source
var Protocol_name = map[int32]string{
	0: "TCP",
	1: "UDP",
	2: "SCTP",
}
View Source
var Protocol_value = map[string]int32{
	"TCP":  0,
	"UDP":  1,
	"SCTP": 2,
}
View Source
var SecurityProfile_ProfileType_name = map[int32]string{
	0: "RuntimeDefault",
	1: "Unconfined",
	2: "Localhost",
}
View Source
var SecurityProfile_ProfileType_value = map[string]int32{
	"RuntimeDefault": 0,
	"Unconfined":     1,
	"Localhost":      2,
}

Functions

func RegisterImageServiceServer

func RegisterImageServiceServer(s *grpc.Server, srv ImageServiceServer)

func RegisterRuntimeServiceServer

func RegisterRuntimeServiceServer(s *grpc.Server, srv RuntimeServiceServer)

Types

type AttachRequest

type AttachRequest struct {
	// ID of the container to which to attach.
	ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	// Whether to stream stdin.
	// One of `stdin`, `stdout`, and `stderr` MUST be true.
	Stdin bool `protobuf:"varint,2,opt,name=stdin,proto3" json:"stdin,omitempty"`
	// Whether the process being attached is running in a TTY.
	// This must match the TTY setting in the ContainerConfig.
	Tty bool `protobuf:"varint,3,opt,name=tty,proto3" json:"tty,omitempty"`
	// Whether to stream stdout.
	// One of `stdin`, `stdout`, and `stderr` MUST be true.
	Stdout bool `protobuf:"varint,4,opt,name=stdout,proto3" json:"stdout,omitempty"`
	// Whether to stream stderr.
	// One of `stdin`, `stdout`, and `stderr` MUST be true.
	// If `tty` is true, `stderr` MUST be false. Multiplexing is not supported
	// in this case. The output of stdout and stderr will be combined to a
	// single stream.
	Stderr               bool     `protobuf:"varint,5,opt,name=stderr,proto3" json:"stderr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AttachRequest) Descriptor

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

func (*AttachRequest) GetContainerId

func (m *AttachRequest) GetContainerId() string

func (*AttachRequest) GetStderr

func (m *AttachRequest) GetStderr() bool

func (*AttachRequest) GetStdin

func (m *AttachRequest) GetStdin() bool

func (*AttachRequest) GetStdout

func (m *AttachRequest) GetStdout() bool

func (*AttachRequest) GetTty

func (m *AttachRequest) GetTty() bool

func (*AttachRequest) Marshal

func (m *AttachRequest) Marshal() (dAtA []byte, err error)

func (*AttachRequest) MarshalTo

func (m *AttachRequest) MarshalTo(dAtA []byte) (int, error)

func (*AttachRequest) MarshalToSizedBuffer

func (m *AttachRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AttachRequest) ProtoMessage

func (*AttachRequest) ProtoMessage()

func (*AttachRequest) Reset

func (m *AttachRequest) Reset()

func (*AttachRequest) Size

func (m *AttachRequest) Size() (n int)

func (*AttachRequest) String

func (this *AttachRequest) String() string

func (*AttachRequest) Unmarshal

func (m *AttachRequest) Unmarshal(dAtA []byte) error

func (*AttachRequest) XXX_DiscardUnknown

func (m *AttachRequest) XXX_DiscardUnknown()

func (*AttachRequest) XXX_Marshal

func (m *AttachRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AttachRequest) XXX_Merge

func (m *AttachRequest) XXX_Merge(src proto.Message)

func (*AttachRequest) XXX_Size

func (m *AttachRequest) XXX_Size() int

func (*AttachRequest) XXX_Unmarshal

func (m *AttachRequest) XXX_Unmarshal(b []byte) error

type AttachResponse

type AttachResponse struct {
	// Fully qualified URL of the attach streaming server.
	Url                  string   `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AttachResponse) Descriptor

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

func (*AttachResponse) GetUrl

func (m *AttachResponse) GetUrl() string

func (*AttachResponse) Marshal

func (m *AttachResponse) Marshal() (dAtA []byte, err error)

func (*AttachResponse) MarshalTo

func (m *AttachResponse) MarshalTo(dAtA []byte) (int, error)

func (*AttachResponse) MarshalToSizedBuffer

func (m *AttachResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AttachResponse) ProtoMessage

func (*AttachResponse) ProtoMessage()

func (*AttachResponse) Reset

func (m *AttachResponse) Reset()

func (*AttachResponse) Size

func (m *AttachResponse) Size() (n int)

func (*AttachResponse) String

func (this *AttachResponse) String() string

func (*AttachResponse) Unmarshal

func (m *AttachResponse) Unmarshal(dAtA []byte) error

func (*AttachResponse) XXX_DiscardUnknown

func (m *AttachResponse) XXX_DiscardUnknown()

func (*AttachResponse) XXX_Marshal

func (m *AttachResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AttachResponse) XXX_Merge

func (m *AttachResponse) XXX_Merge(src proto.Message)

func (*AttachResponse) XXX_Size

func (m *AttachResponse) XXX_Size() int

func (*AttachResponse) XXX_Unmarshal

func (m *AttachResponse) XXX_Unmarshal(b []byte) error

type AuthConfig

type AuthConfig struct {
	Username      string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password      string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Auth          string `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
	ServerAddress string `protobuf:"bytes,4,opt,name=server_address,json=serverAddress,proto3" json:"server_address,omitempty"`
	// IdentityToken is used to authenticate the user and get
	// an access token for the registry.
	IdentityToken string `protobuf:"bytes,5,opt,name=identity_token,json=identityToken,proto3" json:"identity_token,omitempty"`
	// RegistryToken is a bearer token to be sent to a registry
	RegistryToken        string   `protobuf:"bytes,6,opt,name=registry_token,json=registryToken,proto3" json:"registry_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AuthConfig contains authorization information for connecting to a registry.

func (*AuthConfig) Descriptor

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

func (*AuthConfig) GetAuth

func (m *AuthConfig) GetAuth() string

func (*AuthConfig) GetIdentityToken

func (m *AuthConfig) GetIdentityToken() string

func (*AuthConfig) GetPassword

func (m *AuthConfig) GetPassword() string

func (*AuthConfig) GetRegistryToken

func (m *AuthConfig) GetRegistryToken() string

func (*AuthConfig) GetServerAddress

func (m *AuthConfig) GetServerAddress() string

func (*AuthConfig) GetUsername

func (m *AuthConfig) GetUsername() string

func (*AuthConfig) Marshal

func (m *AuthConfig) Marshal() (dAtA []byte, err error)

func (*AuthConfig) MarshalTo

func (m *AuthConfig) MarshalTo(dAtA []byte) (int, error)

func (*AuthConfig) MarshalToSizedBuffer

func (m *AuthConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthConfig) ProtoMessage

func (*AuthConfig) ProtoMessage()

func (*AuthConfig) Reset

func (m *AuthConfig) Reset()

func (*AuthConfig) Size

func (m *AuthConfig) Size() (n int)

func (*AuthConfig) String

func (this *AuthConfig) String() string

func (*AuthConfig) Unmarshal

func (m *AuthConfig) Unmarshal(dAtA []byte) error

func (*AuthConfig) XXX_DiscardUnknown

func (m *AuthConfig) XXX_DiscardUnknown()

func (*AuthConfig) XXX_Marshal

func (m *AuthConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthConfig) XXX_Merge

func (m *AuthConfig) XXX_Merge(src proto.Message)

func (*AuthConfig) XXX_Size

func (m *AuthConfig) XXX_Size() int

func (*AuthConfig) XXX_Unmarshal

func (m *AuthConfig) XXX_Unmarshal(b []byte) error

type Capability

type Capability struct {
	// List of capabilities to add.
	AddCapabilities []string `protobuf:"bytes,1,rep,name=add_capabilities,json=addCapabilities,proto3" json:"add_capabilities,omitempty"`
	// List of capabilities to drop.
	DropCapabilities     []string `protobuf:"bytes,2,rep,name=drop_capabilities,json=dropCapabilities,proto3" json:"drop_capabilities,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Capability contains the container capabilities to add or drop

func (*Capability) Descriptor

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

func (*Capability) GetAddCapabilities

func (m *Capability) GetAddCapabilities() []string

func (*Capability) GetDropCapabilities

func (m *Capability) GetDropCapabilities() []string

func (*Capability) Marshal

func (m *Capability) Marshal() (dAtA []byte, err error)

func (*Capability) MarshalTo

func (m *Capability) MarshalTo(dAtA []byte) (int, error)

func (*Capability) MarshalToSizedBuffer

func (m *Capability) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Capability) ProtoMessage

func (*Capability) ProtoMessage()

func (*Capability) Reset

func (m *Capability) Reset()

func (*Capability) Size

func (m *Capability) Size() (n int)

func (*Capability) String

func (this *Capability) String() string

func (*Capability) Unmarshal

func (m *Capability) Unmarshal(dAtA []byte) error

func (*Capability) XXX_DiscardUnknown

func (m *Capability) XXX_DiscardUnknown()

func (*Capability) XXX_Marshal

func (m *Capability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Capability) XXX_Merge

func (m *Capability) XXX_Merge(src proto.Message)

func (*Capability) XXX_Size

func (m *Capability) XXX_Size() int

func (*Capability) XXX_Unmarshal

func (m *Capability) XXX_Unmarshal(b []byte) error

type Container

type Container struct {
	// ID of the container, used by the container runtime to identify
	// a container.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the sandbox to which this container belongs.
	PodSandboxId string `protobuf:"bytes,2,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
	// Metadata of the container.
	Metadata *ContainerMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Spec of the image.
	Image *ImageSpec `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
	// Reference to the image in use. For most runtimes, this should be an
	// image ID.
	ImageRef string `protobuf:"bytes,5,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"`
	// State of the container.
	State ContainerState `protobuf:"varint,6,opt,name=state,proto3,enum=runtime.v1.ContainerState" json:"state,omitempty"`
	// Creation time of the container in nanoseconds.
	CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Key-value pairs that may be used to scope and select individual resources.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Unstructured key-value map holding arbitrary metadata.
	// Annotations MUST NOT be altered by the runtime; the value of this field
	// MUST be identical to that of the corresponding ContainerConfig used to
	// instantiate this Container.
	Annotations          map[string]string `` /* 163-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

Container provides the runtime information for a container, such as ID, hash, state of the container.

func (*Container) Descriptor

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

func (*Container) GetAnnotations

func (m *Container) GetAnnotations() map[string]string

func (*Container) GetCreatedAt

func (m *Container) GetCreatedAt() int64

func (*Container) GetId

func (m *Container) GetId() string

func (*Container) GetImage

func (m *Container) GetImage() *ImageSpec

func (*Container) GetImageRef

func (m *Container) GetImageRef() string

func (*Container) GetLabels

func (m *Container) GetLabels() map[string]string

func (*Container) GetMetadata

func (m *Container) GetMetadata() *ContainerMetadata

func (*Container) GetPodSandboxId

func (m *Container) GetPodSandboxId() string

func (*Container) GetState

func (m *Container) GetState() ContainerState

func (*Container) Marshal

func (m *Container) Marshal() (dAtA []byte, err error)

func (*Container) MarshalTo

func (m *Container) MarshalTo(dAtA []byte) (int, error)

func (*Container) MarshalToSizedBuffer

func (m *Container) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) Reset

func (m *Container) Reset()

func (*Container) Size

func (m *Container) Size() (n int)

func (*Container) String

func (this *Container) String() string

func (*Container) Unmarshal

func (m *Container) Unmarshal(dAtA []byte) error

func (*Container) XXX_DiscardUnknown

func (m *Container) XXX_DiscardUnknown()

func (*Container) XXX_Marshal

func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Container) XXX_Merge

func (m *Container) XXX_Merge(src proto.Message)

func (*Container) XXX_Size

func (m *Container) XXX_Size() int

func (*Container) XXX_Unmarshal

func (m *Container) XXX_Unmarshal(b []byte) error

type ContainerAttributes

type ContainerAttributes struct {
	// ID of the container.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Metadata of the container.
	Metadata *ContainerMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Key-value pairs that may be used to scope and select individual resources.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Unstructured key-value map holding arbitrary metadata.
	// Annotations MUST NOT be altered by the runtime; the value of this field
	// MUST be identical to that of the corresponding ContainerConfig used to
	// instantiate the Container this status represents.
	Annotations          map[string]string `` /* 163-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

ContainerAttributes provides basic information of the container.

func (*ContainerAttributes) Descriptor

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

func (*ContainerAttributes) GetAnnotations

func (m *ContainerAttributes) GetAnnotations() map[string]string

func (*ContainerAttributes) GetId

func (m *ContainerAttributes) GetId() string

func (*ContainerAttributes) GetLabels

func (m *ContainerAttributes) GetLabels() map[string]string

func (*ContainerAttributes) GetMetadata

func (m *ContainerAttributes) GetMetadata() *ContainerMetadata

func (*ContainerAttributes) Marshal

func (m *ContainerAttributes) Marshal() (dAtA []byte, err error)

func (*ContainerAttributes) MarshalTo

func (m *ContainerAttributes) MarshalTo(dAtA []byte) (int, error)

func (*ContainerAttributes) MarshalToSizedBuffer

func (m *ContainerAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContainerAttributes) ProtoMessage

func (*ContainerAttributes) ProtoMessage()

func (*ContainerAttributes) Reset

func (m *ContainerAttributes) Reset()

func (*ContainerAttributes) Size

func (m *ContainerAttributes) Size() (n int)

func (*ContainerAttributes) String

func (this *ContainerAttributes) String() string

func (*ContainerAttributes) Unmarshal

func (m *ContainerAttributes) Unmarshal(dAtA []byte) error

func (*ContainerAttributes) XXX_DiscardUnknown

func (m *ContainerAttributes) XXX_DiscardUnknown()

func (*ContainerAttributes) XXX_Marshal

func (m *ContainerAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerAttributes) XXX_Merge

func (m *ContainerAttributes) XXX_Merge(src proto.Message)

func (*ContainerAttributes) XXX_Size

func (m *ContainerAttributes) XXX_Size() int

func (*ContainerAttributes) XXX_Unmarshal

func (m *ContainerAttributes) XXX_Unmarshal(b []byte) error

type ContainerConfig

type ContainerConfig struct {
	// Metadata of the container. This information will uniquely identify the
	// container, and the runtime should leverage this to ensure correct
	// operation. The runtime may also use this information to improve UX, such
	// as by constructing a readable name.
	Metadata *ContainerMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Image to use.
	Image *ImageSpec `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	// Command to execute (i.e., entrypoint for docker)
	Command []string `protobuf:"bytes,3,rep,name=command,proto3" json:"command,omitempty"`
	// Args for the Command (i.e., command for docker)
	Args []string `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
	// Current working directory of the command.
	WorkingDir string `protobuf:"bytes,5,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
	// List of environment variable to set in the container.
	Envs []*KeyValue `protobuf:"bytes,6,rep,name=envs,proto3" json:"envs,omitempty"`
	// Mounts for the container.
	Mounts []*Mount `protobuf:"bytes,7,rep,name=mounts,proto3" json:"mounts,omitempty"`
	// Devices for the container.
	Devices []*Device `protobuf:"bytes,8,rep,name=devices,proto3" json:"devices,omitempty"`
	// Key-value pairs that may be used to scope and select individual resources.
	// Label keys are of the form:
	//     label-key ::= prefixed-name | name
	//     prefixed-name ::= prefix '/' name
	//     prefix ::= DNS_SUBDOMAIN
	//     name ::= DNS_LABEL
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Unstructured key-value map that may be used by the kubelet to store and
	// retrieve arbitrary metadata.
	//
	// Annotations MUST NOT be altered by the runtime; the annotations stored
	// here MUST be returned in the ContainerStatus associated with the container
	// this ContainerConfig creates.
	//
	// In general, in order to preserve a well-defined interface between the
	// kubelet and the container runtime, annotations SHOULD NOT influence
	// runtime behaviour.
	Annotations map[string]string `` /* 164-byte string literal not displayed */
	// Path relative to PodSandboxConfig.LogDirectory for container to store
	// the log (STDOUT and STDERR) on the host.
	// E.g.,
	//     PodSandboxConfig.LogDirectory = `/var/log/pods/<podUID>/`
	//     ContainerConfig.LogPath = `containerName/Instance#.log`
	//
	// WARNING: Log management and how kubelet should interface with the
	// container logs are under active discussion in
	// https://issues.k8s.io/24677. There *may* be future change of direction
	// for logging as the discussion carries on.
	LogPath string `protobuf:"bytes,11,opt,name=log_path,json=logPath,proto3" json:"log_path,omitempty"`
	// Variables for interactive containers, these have very specialized
	// use-cases (e.g. debugging).
	Stdin     bool `protobuf:"varint,12,opt,name=stdin,proto3" json:"stdin,omitempty"`
	StdinOnce bool `protobuf:"varint,13,opt,name=stdin_once,json=stdinOnce,proto3" json:"stdin_once,omitempty"`
	Tty       bool `protobuf:"varint,14,opt,name=tty,proto3" json:"tty,omitempty"`
	// Configuration specific to Linux containers.
	Linux *LinuxContainerConfig `protobuf:"bytes,15,opt,name=linux,proto3" json:"linux,omitempty"`
	// Configuration specific to Windows containers.
	Windows              *WindowsContainerConfig `protobuf:"bytes,16,opt,name=windows,proto3" json:"windows,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

ContainerConfig holds all the required and optional fields for creating a container.

func (*ContainerConfig) Descriptor

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

func (*ContainerConfig) GetAnnotations

func (m *ContainerConfig) GetAnnotations() map[string]string

func (*ContainerConfig) GetArgs

func (m *ContainerConfig) GetArgs() []string

func (*ContainerConfig) GetCommand

func (m *ContainerConfig) GetCommand() []string

func (*ContainerConfig) GetDevices

func (m *ContainerConfig) GetDevices() []*Device

func (*ContainerConfig) GetEnvs

func (m *ContainerConfig) GetEnvs() []*KeyValue

func (*ContainerConfig) GetImage

func (m *ContainerConfig) GetImage() *ImageSpec

func (*ContainerConfig) GetLabels

func (m *ContainerConfig) GetLabels() map[string]string

func (*ContainerConfig) GetLinux

func (m *ContainerConfig) GetLinux() *LinuxContainerConfig

func (*ContainerConfig) GetLogPath

func (m *ContainerConfig) GetLogPath() string

func (*ContainerConfig) GetMetadata

func (m *ContainerConfig) GetMetadata() *ContainerMetadata

func (*ContainerConfig) GetMounts

func (m *ContainerConfig) GetMounts() []*Mount

func (*ContainerConfig) GetStdin

func (m *ContainerConfig) GetStdin() bool

func (*ContainerConfig) GetStdinOnce

func (m *ContainerConfig) GetStdinOnce() bool

func (*ContainerConfig) GetTty

func (m *ContainerConfig) GetTty() bool

func (*ContainerConfig) GetWindows

func (m *ContainerConfig) GetWindows() *WindowsContainerConfig

func (*ContainerConfig) GetWorkingDir

func (m *ContainerConfig) GetWorkingDir() string

func (*ContainerConfig) Marshal

func (m *ContainerConfig) Marshal() (dAtA []byte, err error)

func (*ContainerConfig) MarshalTo

func (m *ContainerConfig) MarshalTo(dAtA []byte) (int, error)

func (*ContainerConfig) MarshalToSizedBuffer

func (m *ContainerConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContainerConfig) ProtoMessage

func (*ContainerConfig) ProtoMessage()

func (*ContainerConfig) Reset

func (m *ContainerConfig) Reset()

func (*ContainerConfig) Size

func (m *ContainerConfig) Size() (n int)

func (*ContainerConfig) String

func (this *ContainerConfig) String() string

func (*ContainerConfig) Unmarshal

func (m *ContainerConfig) Unmarshal(dAtA []byte) error

func (*ContainerConfig) XXX_DiscardUnknown

func (m *ContainerConfig) XXX_DiscardUnknown()

func (*ContainerConfig) XXX_Marshal

func (m *ContainerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerConfig) XXX_Merge

func (m *ContainerConfig) XXX_Merge(src proto.Message)

func (*ContainerConfig) XXX_Size

func (m *ContainerConfig) XXX_Size() int

func (*ContainerConfig) XXX_Unmarshal

func (m *ContainerConfig) XXX_Unmarshal(b []byte) error

type ContainerFilter

type ContainerFilter struct {
	// ID of the container.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// State of the container.
	State *ContainerStateValue `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// ID of the PodSandbox.
	PodSandboxId string `protobuf:"bytes,3,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
	// LabelSelector to select matches.
	// Only api.MatchLabels is supported for now and the requirements
	// are ANDed. MatchExpressions is not supported yet.
	LabelSelector        map[string]string `` /* 188-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

ContainerFilter is used to filter containers. All those fields are combined with 'AND'

func (*ContainerFilter) Descriptor

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

func (*ContainerFilter) GetId

func (m *ContainerFilter) GetId() string

func (*ContainerFilter) GetLabelSelector

func (m *ContainerFilter) GetLabelSelector() map[string]string

func (*ContainerFilter) GetPodSandboxId

func (m *ContainerFilter) GetPodSandboxId() string

func (*ContainerFilter) GetState

func (m *ContainerFilter) GetState() *ContainerStateValue

func (*ContainerFilter) Marshal

func (m *ContainerFilter) Marshal() (dAtA []byte, err error)

func (*ContainerFilter) MarshalTo

func (m *ContainerFilter) MarshalTo(dAtA []byte) (int, error)

func (*ContainerFilter) MarshalToSizedBuffer

func (m *ContainerFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContainerFilter) ProtoMessage

func (*ContainerFilter) ProtoMessage()

func (*ContainerFilter) Reset

func (m *ContainerFilter) Reset()

func (*ContainerFilter) Size

func (m *ContainerFilter) Size() (n int)

func (*ContainerFilter) String

func (this *ContainerFilter) String() string

func (*ContainerFilter) Unmarshal

func (m *ContainerFilter) Unmarshal(dAtA []byte) error

func (*ContainerFilter) XXX_DiscardUnknown

func (m *ContainerFilter) XXX_DiscardUnknown()

func (*ContainerFilter) XXX_Marshal

func (m *ContainerFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerFilter) XXX_Merge

func (m *ContainerFilter) XXX_Merge(src proto.Message)

func (*ContainerFilter) XXX_Size

func (m *ContainerFilter) XXX_Size() int

func (*ContainerFilter) XXX_Unmarshal

func (m *ContainerFilter) XXX_Unmarshal(b []byte) error

type ContainerMetadata

type ContainerMetadata struct {
	// Name of the container. Same as the container name in the PodSpec.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Attempt number of creating the container. Default: 0.
	Attempt              uint32   `protobuf:"varint,2,opt,name=attempt,proto3" json:"attempt,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ContainerMetadata holds all necessary information for building the container name. The container runtime is encouraged to expose the metadata in its user interface for better user experience. E.g., runtime can construct a unique container name based on the metadata. Note that (name, attempt) is unique within a sandbox for the entire lifetime of the sandbox.

func (*ContainerMetadata) Descriptor

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

func (*ContainerMetadata) GetAttempt

func (m *ContainerMetadata) GetAttempt() uint32

func (*ContainerMetadata) GetName

func (m *ContainerMetadata) GetName() string

func (*ContainerMetadata) Marshal

func (m *ContainerMetadata) Marshal() (dAtA []byte, err error)

func (*ContainerMetadata) MarshalTo

func (m *ContainerMetadata) MarshalTo(dAtA []byte) (int, error)

func (*ContainerMetadata) MarshalToSizedBuffer

func (m *ContainerMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContainerMetadata) ProtoMessage

func (*ContainerMetadata) ProtoMessage()

func (*ContainerMetadata) Reset

func (m *ContainerMetadata) Reset()

func (*ContainerMetadata) Size

func (m *ContainerMetadata) Size() (n int)

func (*ContainerMetadata) String

func (this *ContainerMetadata) String() string

func (*ContainerMetadata) Unmarshal

func (m *ContainerMetadata) Unmarshal(dAtA []byte) error

func (*ContainerMetadata) XXX_DiscardUnknown

func (m *ContainerMetadata) XXX_DiscardUnknown()

func (*ContainerMetadata) XXX_Marshal

func (m *ContainerMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerMetadata) XXX_Merge

func (m *ContainerMetadata) XXX_Merge(src proto.Message)

func (*ContainerMetadata) XXX_Size

func (m *ContainerMetadata) XXX_Size() int

func (*ContainerMetadata) XXX_Unmarshal

func (m *ContainerMetadata) XXX_Unmarshal(b []byte) error

type ContainerState

type ContainerState int32
const (
	ContainerState_CONTAINER_CREATED ContainerState = 0
	ContainerState_CONTAINER_RUNNING ContainerState = 1
	ContainerState_CONTAINER_EXITED  ContainerState = 2
	ContainerState_CONTAINER_UNKNOWN ContainerState = 3
)

func (ContainerState) EnumDescriptor

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

func (ContainerState) String

func (x ContainerState) String() string

type ContainerStateValue

type ContainerStateValue struct {
	// State of the container.
	State                ContainerState `protobuf:"varint,1,opt,name=state,proto3,enum=runtime.v1.ContainerState" json:"state,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

ContainerStateValue is the wrapper of ContainerState.

func (*ContainerStateValue) Descriptor

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

func (*ContainerStateValue) GetState

func (m *ContainerStateValue) GetState() ContainerState

func (*ContainerStateValue) Marshal

func (m *ContainerStateValue) Marshal() (dAtA []byte, err error)

func (*ContainerStateValue) MarshalTo

func (m *ContainerStateValue) MarshalTo(dAtA []byte) (int, error)

func (*ContainerStateValue) MarshalToSizedBuffer

func (m *ContainerStateValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContainerStateValue) ProtoMessage

func (*ContainerStateValue) ProtoMessage()

func (*ContainerStateValue) Reset

func (m *ContainerStateValue) Reset()

func (*ContainerStateValue) Size

func (m *ContainerStateValue) Size() (n int)

func (*ContainerStateValue) String

func (this *ContainerStateValue) String() string

func (*ContainerStateValue) Unmarshal

func (m *ContainerStateValue) Unmarshal(dAtA []byte) error

func (*ContainerStateValue) XXX_DiscardUnknown

func (m *ContainerStateValue) XXX_DiscardUnknown()

func (*ContainerStateValue) XXX_Marshal

func (m *ContainerStateValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerStateValue) XXX_Merge

func (m *ContainerStateValue) XXX_Merge(src proto.Message)

func (*ContainerStateValue) XXX_Size

func (m *ContainerStateValue) XXX_Size() int

func (*ContainerStateValue) XXX_Unmarshal

func (m *ContainerStateValue) XXX_Unmarshal(b []byte) error

type ContainerStats

type ContainerStats struct {
	// Information of the container.
	Attributes *ContainerAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"`
	// CPU usage gathered from the container.
	Cpu *CpuUsage `protobuf:"bytes,2,opt,name=cpu,proto3" json:"cpu,omitempty"`
	// Memory usage gathered from the container.
	Memory *MemoryUsage `protobuf:"bytes,3,opt,name=memory,proto3" json:"memory,omitempty"`
	// Usage of the writable layer.
	WritableLayer        *FilesystemUsage `protobuf:"bytes,4,opt,name=writable_layer,json=writableLayer,proto3" json:"writable_layer,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

ContainerStats provides the resource usage statistics for a container.

func (*ContainerStats) Descriptor

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

func (*ContainerStats) GetAttributes

func (m *ContainerStats) GetAttributes() *ContainerAttributes

func (*ContainerStats) GetCpu

func (m *ContainerStats) GetCpu() *CpuUsage

func (*ContainerStats) GetMemory

func (m *ContainerStats) GetMemory() *MemoryUsage

func (*ContainerStats) GetWritableLayer

func (m *ContainerStats) GetWritableLayer() *FilesystemUsage

func (*ContainerStats) Marshal

func (m *ContainerStats) Marshal() (dAtA []byte, err error)

func (*ContainerStats) MarshalTo

func (m *ContainerStats) MarshalTo(dAtA []byte) (int, error)

func (*ContainerStats) MarshalToSizedBuffer

func (m *ContainerStats) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContainerStats) ProtoMessage

func (*ContainerStats) ProtoMessage()

func (*ContainerStats) Reset

func (m *ContainerStats) Reset()

func (*ContainerStats) Size

func (m *ContainerStats) Size() (n int)

func (*ContainerStats) String

func (this *ContainerStats) String() string

func (*ContainerStats) Unmarshal

func (m *ContainerStats) Unmarshal(dAtA []byte) error

func (*ContainerStats) XXX_DiscardUnknown

func (m *ContainerStats) XXX_DiscardUnknown()

func (*ContainerStats) XXX_Marshal

func (m *ContainerStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerStats) XXX_Merge

func (m *ContainerStats) XXX_Merge(src proto.Message)

func (*ContainerStats) XXX_Size

func (m *ContainerStats) XXX_Size() int

func (*ContainerStats) XXX_Unmarshal

func (m *ContainerStats) XXX_Unmarshal(b []byte) error

type ContainerStatsFilter

type ContainerStatsFilter struct {
	// ID of the container.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the PodSandbox.
	PodSandboxId string `protobuf:"bytes,2,opt,name=pod_sandbox_id,json=podSandboxId,proto3" json:"pod_sandbox_id,omitempty"`
	// LabelSelector to select matches.
	// Only api.MatchLabels is supported for now and the requirements
	// are ANDed. MatchExpressions is not supported yet.
	LabelSelector        map[string]string `` /* 188-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

ContainerStatsFilter is used to filter containers. All those fields are combined with 'AND'

func (*ContainerStatsFilter) Descriptor

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

func (*ContainerStatsFilter) GetId

func (m *ContainerStatsFilter) GetId() string

func (*ContainerStatsFilter) GetLabelSelector

func (m *ContainerStatsFilter) GetLabelSelector() map[string]string

func (*ContainerStatsFilter) GetPodSandboxId

func (m *ContainerStatsFilter) GetPodSandboxId() string

func (*ContainerStatsFilter) Marshal

func (m *ContainerStatsFilter) Marshal() (dAtA []byte, err error)

func (*ContainerStatsFilter) MarshalTo

func (m *ContainerStatsFilter) MarshalTo(dAtA []byte) (int, error)

func (*ContainerStatsFilter) MarshalToSizedBuffer

func (m *ContainerStatsFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContainerStatsFilter) ProtoMessage

func (*ContainerStatsFilter) ProtoMessage()

func (*ContainerStatsFilter) Reset

func (m *ContainerStatsFilter) Reset()

func (*ContainerStatsFilter) Size

func (m *ContainerStatsFilter) Size() (n int)

func (*ContainerStatsFilter) String

func (this *ContainerStatsFilter) String() string

func (*ContainerStatsFilter) Unmarshal

func (m *ContainerStatsFilter) Unmarshal(dAtA []byte) error

func (*ContainerStatsFilter) XXX_DiscardUnknown

func (m *ContainerStatsFilter) XXX_DiscardUnknown()

func (*ContainerStatsFilter) XXX_Marshal

func (m *ContainerStatsFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerStatsFilter) XXX_Merge

func (m *ContainerStatsFilter) XXX_Merge(src proto.Message)

func (*ContainerStatsFilter) XXX_Size

func (m *ContainerStatsFilter) XXX_Size() int

func (*ContainerStatsFilter) XXX_Unmarshal

func (m *ContainerStatsFilter) XXX_Unmarshal(b []byte) error

type ContainerStatsRequest

type ContainerStatsRequest struct {
	// ID of the container for which to retrieve stats.
	ContainerId          string   `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ContainerStatsRequest) Descriptor

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

func (*ContainerStatsRequest) GetContainerId

func (m *ContainerStatsRequest) GetContainerId() string

func (*ContainerStatsRequest) Marshal

func (m *ContainerStatsRequest) Marshal() (dAtA []byte, err error)

func (*ContainerStatsRequest) MarshalTo

func (m *ContainerStatsRequest) MarshalTo(dAtA []byte) (int, error)

func (*ContainerStatsRequest) MarshalToSizedBuffer

func (m *ContainerStatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContainerStatsRequest) ProtoMessage

func (*ContainerStatsRequest) ProtoMessage()

func (*ContainerStatsRequest) Reset

func (m *ContainerStatsRequest) Reset()

func (*ContainerStatsRequest) Size

func (m *ContainerStatsRequest) Size() (n int)

func (*ContainerStatsRequest) String

func (this *ContainerStatsRequest) String() string

func (*ContainerStatsRequest) Unmarshal

func (m *ContainerStatsRequest) Unmarshal(dAtA []byte) error

func (*ContainerStatsRequest) XXX_DiscardUnknown

func (m *ContainerStatsRequest) XXX_DiscardUnknown()

func (*ContainerStatsRequest) XXX_Marshal

func (m *ContainerStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerStatsRequest) XXX_Merge

func (m *ContainerStatsRequest) XXX_Merge(src proto.Message)

func (*ContainerStatsRequest) XXX_Size

func (m *ContainerStatsRequest) XXX_Size() int

func (*ContainerStatsRequest) XXX_Unmarshal

func (m *ContainerStatsRequest) XXX_Unmarshal(b []byte) error

type ContainerStatsResponse

type ContainerStatsResponse struct {
	// Stats of the container.
	Stats                *ContainerStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*ContainerStatsResponse) Descriptor

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

func (*ContainerStatsResponse) GetStats

func (m *ContainerStatsResponse) GetStats() *ContainerStats

func (*ContainerStatsResponse) Marshal

func (m *ContainerStatsResponse) Marshal() (dAtA []byte, err error)

func (*ContainerStatsResponse) MarshalTo

func (m *ContainerStatsResponse) MarshalTo(dAtA []byte) (int, error)

func (*ContainerStatsResponse) MarshalToSizedBuffer

func (m *ContainerStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContainerStatsResponse) ProtoMessage

func (*ContainerStatsResponse) ProtoMessage()

func (*ContainerStatsResponse) Reset

func (m *ContainerStatsResponse) Reset()

func (*ContainerStatsResponse) Size

func (m *ContainerStatsResponse) Size() (n int)

func (*ContainerStatsResponse) String

func (this *ContainerStatsResponse) String() string

func (*ContainerStatsResponse) Unmarshal

func (m *ContainerStatsResponse) Unmarshal(dAtA []byte) error

func (*ContainerStatsResponse) XXX_DiscardUnknown

func (m *ContainerStatsResponse) XXX_DiscardUnknown()

func (*ContainerStatsResponse) XXX_Marshal

func (m *ContainerStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerStatsResponse) XXX_Merge

func (m *ContainerStatsResponse) XXX_Merge(src proto.Message)

func (*ContainerStatsResponse) XXX_Size

func (m *ContainerStatsResponse) XXX_Size() int

func (*ContainerStatsResponse) XXX_Unmarshal

func (m *ContainerStatsResponse) XXX_Unmarshal(b []byte) error

type ContainerStatus

type ContainerStatus struct {
	// ID of the container.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Metadata of the container.
	Metadata *ContainerMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Status of the container.
	State ContainerState `protobuf:"varint,3,opt,name=state,proto3,enum=runtime.v1.ContainerState" json:"state,omitempty"`
	// Creation time of the container in nanoseconds.
	CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Start time of the container in nanoseconds. Default: 0 (not specified).
	StartedAt int64 `protobuf:"varint,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	// Finish time of the container in nanoseconds. Default: 0 (not specified).
	FinishedAt int64 `protobuf:"varint,6,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"`
	// Exit code of the container. Only required when finished_at != 0. Default: 0.
	ExitCode int32 `protobuf:"varint,7,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	// Spec of the image.
	Image *ImageSpec `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"`
	// Reference to the image in use. For most runtimes, this should be an
	// image ID
	ImageRef string `protobuf:"bytes,9,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"`
	// Brief CamelCase string explaining why container is in its current state.
	Reason string `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"`
	// Human-readable message indicating details about why container is in its
	// current state.
	Message string `protobuf:"bytes,11,opt,name=message,proto3" json:"message,omitempty"`
	// Key-value pairs that may be used to scope and select individual resources.
	Labels map[string]string `` /* 154-byte string literal not displayed */
	// Unstructured key-value map holding arbitrary metadata.
	// Annotations MUST NOT be altered by the runtime; the value of this field
	// MUST be identical to that of the corresponding ContainerConfig used to
	// instantiate the Container this status represents.
	Annotations map[string]string `` /* 164-byte string literal not displayed */
	// Mounts for the container.
	Mounts []*Mount `protobuf:"bytes,14,rep,name=mounts,proto3" json:"mounts,omitempty"`
	// Log path of container.
	LogPath              string   `