Documentation ¶
Index ¶
- Constants
- Variables
- type AttachRequest
- type AttachResponse
- type AuthConfig
- type CPUUsage
- type Capability
- type Container
- type ContainerAttributes
- type ContainerConfig
- type ContainerFilter
- type ContainerMetadata
- type ContainerState
- type ContainerStateValue
- type ContainerStats
- type ContainerStatsFilter
- type ContainerStatsRequest
- type ContainerStatsResponse
- type ContainerStatus
- type ContainerStatusRequest
- type ContainerStatusResponse
- type CreateContainerRequest
- type CreateContainerResponse
- type DNSConfig
- type Device
- type ExecRequest
- type ExecResponse
- type ExecSyncRequest
- type ExecSyncResponse
- type FilesystemIdentifier
- type FilesystemUsage
- type HugepageLimit
- type Image
- type ImageFilter
- type ImageFsInfoResponse
- type ImageSpec
- type ImageStatusRequest
- type ImageStatusResponse
- type Int64Value
- type KeyValue
- type LinuxContainerConfig
- type LinuxContainerResources
- type LinuxContainerSecurityContext
- type LinuxPodSandboxConfig
- type LinuxPodSandboxStatus
- type LinuxSandboxSecurityContext
- type ListContainerStatsRequest
- type ListContainerStatsResponse
- type ListContainersRequest
- type ListContainersResponse
- type ListImagesRequest
- type ListImagesResponse
- type ListPodSandboxRequest
- type ListPodSandboxResponse
- type MemoryUsage
- type Mount
- type MountPropagation
- type Namespace
- type NamespaceMode
- type NamespaceOption
- type PodIP
- type PodSandbox
- type PodSandboxConfig
- type PodSandboxFilter
- type PodSandboxMetadata
- type PodSandboxNetworkStatus
- type PodSandboxState
- type PodSandboxStateValue
- type PodSandboxStatus
- type PodSandboxStatusRequest
- type PodSandboxStatusResponse
- type PortForwardRequest
- type PortForwardResponse
- type PortMapping
- type Protocol
- type PullImageRequest
- type PullImageResponse
- type RemoveContainerRequest
- type RemoveImageRequest
- type RemovePodSandboxRequest
- type ReopenContainerLogRequest
- type RunPodSandboxRequest
- type RunPodSandboxResponse
- type RuntimeCondition
- type RuntimeStatus
- type SELinuxOption
- type SecurityProfile
- type SecurityProfileType
- type StartContainerRequest
- type StatusRequest
- type StatusResponse
- type StopContainerRequest
- type StopPodSandboxRequest
- type UInt64Value
- type UpdateContainerResourcesRequest
- type VersionRequest
- type VersionResponse
Constants ¶
View Source
const ( RuntimeReady = "RuntimeReady" NetworkReady = "NetworkReady" NamespaceModePOD NamespaceMode = 0 NamespaceModeCONTAINER NamespaceMode = 1 NamespaceModeNODE NamespaceMode = 2 NamespaceModeTARGET NamespaceMode = 3 MountPropagationPropagationPrivate MountPropagation = 0 MountPropagationPropagationHostToContainer MountPropagation = 1 MountPropagationPropagationBidirectional MountPropagation = 2 ContainerStateContainerCreated ContainerState = 0 ContainerStateContainerRunning ContainerState = 1 ContainerStateContainerExited ContainerState = 2 ContainerStateContainerUnknown ContainerState = 3 PodSandboxStateSandboxReady PodSandboxState = 0 PodSandboxStateSandboxNotReady PodSandboxState = 1 InfraContainerName = "POD" )
Variables ¶
View Source
var ProtocolName = map[int32]string{
0: "TCP",
1: "UDP",
2: "SCTP",
}
Functions ¶
This section is empty.
Types ¶
type AttachRequest ¶
type AttachResponse ¶
type AttachResponse struct {
URL string
}
type AuthConfig ¶
type CPUUsage ¶
type CPUUsage struct { Timestamp int64 UsageCoreNanoSeconds *UInt64Value }
type Capability ¶
type ContainerAttributes ¶
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 }
func NewContainerConfig ¶ added in v1.21.0
func NewContainerConfig() *ContainerConfig
type ContainerFilter ¶
type ContainerFilter struct { ID string State *ContainerStateValue PodSandboxID string LabelSelector map[string]string }
type ContainerMetadata ¶
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 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 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 ExecRequest ¶
type ExecResponse ¶
type ExecResponse struct {
URL string
}
type ExecSyncRequest ¶
type ExecSyncResponse ¶
type FilesystemIdentifier ¶ added in v1.21.0
type FilesystemIdentifier struct {
Mountpoint string
}
type FilesystemUsage ¶
type FilesystemUsage struct { Timestamp int64 FsID *FilesystemIdentifier UsedBytes *UInt64Value InodesUsed *UInt64Value }
type HugepageLimit ¶
type ImageFilter ¶
type ImageFilter struct {
Image *ImageSpec
}
type ImageFsInfoResponse ¶
type ImageFsInfoResponse struct {
ImageFilesystems []*FilesystemUsage
}
type ImageStatusRequest ¶
type ImageStatusResponse ¶
type Int64Value ¶
type Int64Value struct {
Value int64
}
type LinuxContainerConfig ¶
type LinuxContainerConfig struct { Resources *LinuxContainerResources SecurityContext *LinuxContainerSecurityContext }
func NewLinuxContainerConfig ¶ added in v1.21.0
func NewLinuxContainerConfig() *LinuxContainerConfig
type LinuxContainerResources ¶
type LinuxContainerSecurityContext ¶
type LinuxContainerSecurityContext struct { Capabilities *Capability NamespaceOptions *NamespaceOption SelinuxOptions *SELinuxOption RunAsUser *Int64Value RunAsGroup *Int64Value Seccomp *SecurityProfile Apparmor *SecurityProfile RunAsUsername string ApparmorProfile string SeccompProfilePath string MaskedPaths []string ReadonlyPaths []string SupplementalGroups []int64 Privileged bool ReadonlyRootfs bool NoNewPrivs bool }
func NewLinuxContainerSecurityContext ¶ added in v1.21.0
func NewLinuxContainerSecurityContext() *LinuxContainerSecurityContext
type LinuxPodSandboxConfig ¶
type LinuxPodSandboxConfig struct { CgroupParent string SecurityContext *LinuxSandboxSecurityContext Sysctls map[string]string }
func NewLinuxPodSandboxConfig ¶ added in v1.21.0
func NewLinuxPodSandboxConfig() *LinuxPodSandboxConfig
type LinuxPodSandboxStatus ¶
type LinuxPodSandboxStatus struct {
Namespaces *Namespace
}
type LinuxSandboxSecurityContext ¶
type LinuxSandboxSecurityContext struct { NamespaceOptions *NamespaceOption SelinuxOptions *SELinuxOption RunAsUser *Int64Value RunAsGroup *Int64Value Seccomp *SecurityProfile Apparmor *SecurityProfile SeccompProfilePath string SupplementalGroups []int64 ReadonlyRootfs bool Privileged bool }
func NewLinuxSandboxSecurityContext ¶ added in v1.21.0
func NewLinuxSandboxSecurityContext() *LinuxSandboxSecurityContext
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 `json:"network,omitempty"` Pid NamespaceMode `json:"pid,omitempty"` Ipc NamespaceMode `json:"ipc,omitempty"` TargetID string `json:"target_id,omitempty"` }
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 }
func NewPodSandboxConfig ¶ added in v1.21.0
func NewPodSandboxConfig() *PodSandboxConfig
type PodSandboxFilter ¶
type PodSandboxFilter struct { ID string State *PodSandboxStateValue LabelSelector map[string]string }
type PodSandboxMetadata ¶
type PodSandboxNetworkStatus ¶
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 PodSandboxStatusResponse ¶
type PodSandboxStatusResponse struct { Status *PodSandboxStatus Info map[string]string }
type PortForwardRequest ¶
type PortForwardResponse ¶
type PortForwardResponse struct {
URL string
}
type PortMapping ¶
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 RuntimeStatus ¶
type RuntimeStatus struct {
Conditions []*RuntimeCondition
}
type SecurityProfile ¶ added in v1.21.0
type SecurityProfile struct { ProfileType SecurityProfileType LocalhostRef string }
type SecurityProfileType ¶ added in v1.21.0
type SecurityProfileType int32
const ( SecurityProfileTypeRuntimeDefault SecurityProfileType = 0 SecurityProfileTypeUnconfined SecurityProfileType = 1 SecurityProfileTypeLocalhost SecurityProfileType = 2 )
type StartContainerRequest ¶
type StartContainerRequest struct {
ContainerID string
}
type StatusRequest ¶
type StatusRequest struct {
Verbose bool
}
type StatusResponse ¶
type StatusResponse struct { Status *RuntimeStatus Info map[string]string }
type StopContainerRequest ¶
type StopPodSandboxRequest ¶
type StopPodSandboxRequest struct {
PodSandboxID string
}
type UInt64Value ¶
type UInt64Value struct {
Value uint64
}
type UpdateContainerResourcesRequest ¶
type UpdateContainerResourcesRequest struct { ContainerID string Linux *LinuxContainerResources }
type VersionRequest ¶
type VersionRequest struct {
Version string
}
Click to show internal directories.
Click to hide internal directories.