server

package
v1.20.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachRequest

type AttachRequest struct {
	ContainerID string
	Stdin       bool
	Tty         bool
	Stdout      bool
	Stderr      bool
}

type AttachResponse

type AttachResponse struct {
	URL string
}

type AuthConfig

type AuthConfig struct {
	Username      string
	Password      string
	Auth          string
	ServerAddress string
	IDentityToken string
	RegistryToken string
}

type CPUUsage

type CPUUsage struct {
	Timestamp            int64
	UsageCoreNanoSeconds *UInt64Value
}

type Capability

type Capability struct {
	AddCapabilities  []string
	DropCapabilities []string
}

type Container

type Container struct {
	ID           string
	PodSandboxID string
	Metadata     *ContainerMetadata
	Image        *ImageSpec
	ImageRef     string
	State        ContainerState
	CreatedAt    int64
	Labels       map[string]string
	Annotations  map[string]string
}

type ContainerAttributes

type ContainerAttributes struct {
	ID          string
	Metadata    *ContainerMetadata
	Labels      map[string]string
	Annotations map[string]string
}

type ContainerConfig

type ContainerConfig struct {
	Metadata    *ContainerMetadata
	Image       *ImageSpec
	Command     []string
	Args        []string
	WorkingDir  string
	Envs        []*KeyValue
	Mounts      []*Mount
	Devices     []*Device
	Labels      map[string]string
	Annotations map[string]string
	LogPath     string
	Stdin       bool
	StdinOnce   bool
	Tty         bool
	Linux       *LinuxContainerConfig
}

type ContainerFilter

type ContainerFilter struct {
	ID            string
	State         *ContainerStateValue
	PodSandboxID  string
	LabelSelector map[string]string
}

type ContainerMetadata

type ContainerMetadata struct {
	Name    string
	Attempt uint32
}

type ContainerState

type ContainerState int32

type ContainerStateValue

type ContainerStateValue struct {
	State ContainerState
}

type ContainerStats

type ContainerStats struct {
	Attributes    *ContainerAttributes
	CPU           *CPUUsage
	Memory        *MemoryUsage
	WritableLayer *FilesystemUsage
}

type ContainerStatsFilter

type ContainerStatsFilter struct {
	ID            string
	PodSandboxID  string
	LabelSelector map[string]string
}

type ContainerStatsRequest

type ContainerStatsRequest struct {
	ContainerID string
}

type ContainerStatsResponse

type ContainerStatsResponse struct {
	Stats *ContainerStats
}

type ContainerStatus

type ContainerStatus struct {
	ID          string
	ImageRef    string
	Reason      string
	Message     string
	LogPath     string
	Metadata    *ContainerMetadata
	Image       *ImageSpec
	Labels      map[string]string
	Annotations map[string]string
	Mounts      []*Mount
	CreatedAt   int64
	StartedAt   int64
	FinishedAt  int64
	State       ContainerState
	ExitCode    int32
}

type ContainerStatusRequest

type ContainerStatusRequest struct {
	ContainerID string
	Verbose     bool
}

type ContainerStatusResponse

type ContainerStatusResponse struct {
	Status *ContainerStatus
	Info   map[string]string
}

type CreateContainerRequest

type CreateContainerRequest struct {
	PodSandboxID  string
	Config        *ContainerConfig
	SandboxConfig *PodSandboxConfig
}

type CreateContainerResponse

type CreateContainerResponse struct {
	ContainerID string
}

type DNSConfig

type DNSConfig struct {
	Servers  []string
	Searches []string
	Options  []string
}

type Device

type Device struct {
	ContainerPath string
	HostPath      string
	Permissions   string
}

type ExecRequest

type ExecRequest struct {
	ContainerID string
	Cmd         []string
	Tty         bool
	Stdin       bool
	Stdout      bool
	Stderr      bool
}

type ExecResponse

type ExecResponse struct {
	URL string
}

type ExecSyncRequest

type ExecSyncRequest struct {
	ContainerID string
	Cmd         []string
	Timeout     int64
}

type ExecSyncResponse

type ExecSyncResponse struct {
	Stdout   []byte
	Stderr   []byte
	ExitCode int32
}

type FilesystemIDentifier

type FilesystemIDentifier struct {
	Mountpoint string
}

type FilesystemUsage

type FilesystemUsage struct {
	Timestamp  int64
	FsID       *FilesystemIDentifier
	UsedBytes  *UInt64Value
	InodesUsed *UInt64Value
}

type HugepageLimit

type HugepageLimit struct {
	PageSize string
	Limit    uint64
}

type Image

type Image struct {
	ID          string
	RepoTags    []string
	RepoDigests []string
	Size        uint64
	UID         *Int64Value
	Username    string
	Spec        *ImageSpec
}

type ImageFilter

type ImageFilter struct {
	Image *ImageSpec
}

type ImageFsInfoResponse

type ImageFsInfoResponse struct {
	ImageFilesystems []*FilesystemUsage
}

type ImageSpec

type ImageSpec struct {
	Image       string
	Annotations map[string]string
}

type ImageStatusRequest

type ImageStatusRequest struct {
	Image   *ImageSpec
	Verbose bool
}

type ImageStatusResponse

type ImageStatusResponse struct {
	Image *Image
	Info  map[string]string
}

type Int64Value

type Int64Value struct {
	Value int64
}

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

type LinuxContainerConfig

type LinuxContainerConfig struct {
	Resources       *LinuxContainerResources
	SecurityContext *LinuxContainerSecurityContext
}

type LinuxContainerResources

type LinuxContainerResources struct {
	CPUPeriod          int64
	CPUQuota           int64
	CPUShares          int64
	MemoryLimitInBytes int64
	OomScoreAdj        int64
	CPUsetCPUs         string
	CPUsetMems         string
	HugepageLimits     []*HugepageLimit
}

type LinuxContainerSecurityContext

type LinuxContainerSecurityContext struct {
	Capabilities       *Capability
	NamespaceOptions   *NamespaceOption
	SelinuxOptions     *SELinuxOption
	RunAsUser          *Int64Value
	RunAsGroup         *Int64Value
	RunAsUsername      string
	ApparmorProfile    string
	SeccompProfilePath string
	MaskedPaths        []string
	ReadonlyPaths      []string
	SupplementalGroups []int64
	Privileged         bool
	ReadonlyRootfs     bool
	NoNewPrivs         bool
}

type LinuxPodSandboxConfig

type LinuxPodSandboxConfig struct {
	CgroupParent    string
	SecurityContext *LinuxSandboxSecurityContext
	Sysctls         map[string]string
}

type LinuxPodSandboxStatus

type LinuxPodSandboxStatus struct {
	Namespaces *Namespace
}

type LinuxSandboxSecurityContext

type LinuxSandboxSecurityContext struct {
	NamespaceOptions   *NamespaceOption
	SelinuxOptions     *SELinuxOption
	RunAsUser          *Int64Value
	RunAsGroup         *Int64Value
	SeccompProfilePath string
	SupplementalGroups []int64
	ReadonlyRootfs     bool
	Privileged         bool
}

type ListContainerStatsRequest

type ListContainerStatsRequest struct {
	Filter *ContainerStatsFilter
}

type ListContainerStatsResponse

type ListContainerStatsResponse struct {
	Stats []*ContainerStats
}

type ListContainersRequest

type ListContainersRequest struct {
	Filter *ContainerFilter
}

type ListContainersResponse

type ListContainersResponse struct {
	Containers []*Container
}

type ListImagesRequest

type ListImagesRequest struct {
	Filter *ImageFilter
}

type ListImagesResponse

type ListImagesResponse struct {
	Images []*Image
}

type ListPodSandboxRequest

type ListPodSandboxRequest struct {
	Filter *PodSandboxFilter
}

type ListPodSandboxResponse

type ListPodSandboxResponse struct {
	Items []*PodSandbox
}

type MemoryUsage

type MemoryUsage struct {
	Timestamp       int64
	WorkingSetBytes *UInt64Value
}

type Mount

type Mount struct {
	ContainerPath  string
	HostPath       string
	Readonly       bool
	SelinuxRelabel bool
	Propagation    MountPropagation
}

type MountPropagation

type MountPropagation int32

type Namespace

type Namespace struct {
	Options *NamespaceOption
}

type NamespaceMode

type NamespaceMode int32

type NamespaceOption

type NamespaceOption struct {
	Network  NamespaceMode
	Pid      NamespaceMode
	Ipc      NamespaceMode
	TargetID string
}

type NetworkConfig

type NetworkConfig struct {
	PodCidr string
}

type PodIP

type PodIP struct {
	IP string
}

type PodSandbox

type PodSandbox struct {
	ID             string
	Metadata       *PodSandboxMetadata
	State          PodSandboxState
	CreatedAt      int64
	Labels         map[string]string
	Annotations    map[string]string
	RuntimeHandler string
}

type PodSandboxConfig

type PodSandboxConfig struct {
	Metadata     *PodSandboxMetadata
	Hostname     string
	LogDirectory string
	DNSConfig    *DNSConfig
	PortMappings []*PortMapping
	Labels       map[string]string
	Annotations  map[string]string
	Linux        *LinuxPodSandboxConfig
}

type PodSandboxFilter

type PodSandboxFilter struct {
	ID            string
	State         *PodSandboxStateValue
	LabelSelector map[string]string
}

type PodSandboxMetadata

type PodSandboxMetadata struct {
	Name      string
	UID       string
	Namespace string
	Attempt   uint32
}

type PodSandboxNetworkStatus

type PodSandboxNetworkStatus struct {
	IP            string
	AdditionalIps []*PodIP
}

type PodSandboxState

type PodSandboxState int32

type PodSandboxStateValue

type PodSandboxStateValue struct {
	State PodSandboxState
}

type PodSandboxStatus

type PodSandboxStatus struct {
	ID             string
	Metadata       *PodSandboxMetadata
	State          PodSandboxState
	CreatedAt      int64
	Network        *PodSandboxNetworkStatus
	Linux          *LinuxPodSandboxStatus
	Labels         map[string]string
	Annotations    map[string]string
	RuntimeHandler string
}

type PodSandboxStatusRequest

type PodSandboxStatusRequest struct {
	PodSandboxID string
	Verbose      bool
}

type PodSandboxStatusResponse

type PodSandboxStatusResponse struct {
	Status *PodSandboxStatus
	Info   map[string]string
}

type PortForwardRequest

type PortForwardRequest struct {
	PodSandboxID string
	Port         []int32
}

type PortForwardResponse

type PortForwardResponse struct {
	URL string
}

type PortMapping

type PortMapping struct {
	Protocol      Protocol
	ContainerPort int32
	HostPort      int32
	HostIP        string
}

type Protocol

type Protocol int32

type PullImageRequest

type PullImageRequest struct {
	Image         *ImageSpec
	Auth          *AuthConfig
	SandboxConfig *PodSandboxConfig
}

type PullImageResponse

type PullImageResponse struct {
	ImageRef string
}

type RemoveContainerRequest

type RemoveContainerRequest struct {
	ContainerID string
}

type RemoveImageRequest

type RemoveImageRequest struct {
	Image *ImageSpec
}

type RemovePodSandboxRequest

type RemovePodSandboxRequest struct {
	PodSandboxID string
}

type ReopenContainerLogRequest

type ReopenContainerLogRequest struct {
	ContainerID string
}

type RunPodSandboxRequest

type RunPodSandboxRequest struct {
	Config         *PodSandboxConfig
	RuntimeHandler string
}

type RunPodSandboxResponse

type RunPodSandboxResponse struct {
	PodSandboxID string
}

type RuntimeCondition

type RuntimeCondition struct {
	Type    string
	Status  bool
	Reason  string
	Message string
}

type RuntimeConfig

type RuntimeConfig struct {
	NetworkConfig *NetworkConfig
}

type RuntimeStatus

type RuntimeStatus struct {
	Conditions []*RuntimeCondition
}

type SELinuxOption

type SELinuxOption struct {
	User  string
	Role  string
	Type  string
	Level string
}

type StartContainerRequest

type StartContainerRequest struct {
	ContainerID string
}

type StartContainerResponse

type StartContainerResponse struct {
}

type StatusRequest

type StatusRequest struct {
	Verbose bool
}

type StatusResponse

type StatusResponse struct {
	Status *RuntimeStatus
	Info   map[string]string
}

type StopContainerRequest

type StopContainerRequest struct {
	ContainerID string
	Timeout     int64
}

type StopContainerResponse

type StopContainerResponse struct {
}

type StopPodSandboxRequest

type StopPodSandboxRequest struct {
	PodSandboxID string
}

type UInt64Value

type UInt64Value struct {
	Value uint64
}

type UpdateContainerResourcesRequest

type UpdateContainerResourcesRequest struct {
	ContainerID string
	Linux       *LinuxContainerResources
}

type UpdateRuntimeConfigRequest

type UpdateRuntimeConfigRequest struct {
	RuntimeConfig *RuntimeConfig
}

type VersionRequest

type VersionRequest struct {
	Version string
}

type VersionResponse

type VersionResponse struct {
	Version           string
	RuntimeName       string
	RuntimeVersion    string
	RuntimeAPIVersion string
}

Jump to

Keyboard shortcuts

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