Documentation ¶
Index ¶
- type PrivilegedRuntime
- func (p *PrivilegedRuntime) Attach(req *kubeapi.AttachRequest) (*kubeapi.AttachResponse, error)
- func (p *PrivilegedRuntime) ContainerStats(containerID string) (*kubeapi.ContainerStats, error)
- func (p *PrivilegedRuntime) ContainerStatus(containerID string) (*kubeapi.ContainerStatus, error)
- func (p *PrivilegedRuntime) CreateContainer(podSandboxID string, config *kubeapi.ContainerConfig, ...) (string, error)
- func (p *PrivilegedRuntime) Exec(*kubeapi.ExecRequest) (*kubeapi.ExecResponse, error)
- func (p *PrivilegedRuntime) ExecSync(containerID string, cmd []string, timeout time.Duration) (stdout []byte, stderr []byte, err error)
- func (p *PrivilegedRuntime) ImageFsInfo() ([]*kubeapi.FilesystemUsage, error)
- func (p *PrivilegedRuntime) ImageStatus(image *kubeapi.ImageSpec) (*kubeapi.Image, error)
- func (p *PrivilegedRuntime) ListContainerStats(filter *kubeapi.ContainerStatsFilter) ([]*kubeapi.ContainerStats, error)
- func (p *PrivilegedRuntime) ListContainers(filter *kubeapi.ContainerFilter) ([]*kubeapi.Container, error)
- func (p *PrivilegedRuntime) ListImages(filter *kubeapi.ImageFilter) ([]*kubeapi.Image, error)
- func (p *PrivilegedRuntime) ListPodSandbox(filter *kubeapi.PodSandboxFilter) ([]*kubeapi.PodSandbox, error)
- func (p *PrivilegedRuntime) PodSandboxStatus(podSandboxID string) (*kubeapi.PodSandboxStatus, error)
- func (p *PrivilegedRuntime) PortForward(*kubeapi.PortForwardRequest) (*kubeapi.PortForwardResponse, error)
- func (p *PrivilegedRuntime) PullImage(image *kubeapi.ImageSpec, auth *kubeapi.AuthConfig) (string, error)
- func (p *PrivilegedRuntime) RemoveContainer(containerID string) error
- func (p *PrivilegedRuntime) RemoveImage(image *kubeapi.ImageSpec) error
- func (p *PrivilegedRuntime) RemovePodSandbox(podSandboxID string) error
- func (p *PrivilegedRuntime) ReopenContainerLog(ContainerID string) error
- func (p *PrivilegedRuntime) RunPodSandbox(config *kubeapi.PodSandboxConfig, runtimeHandler string) (string, error)
- func (p *PrivilegedRuntime) ServiceName() string
- func (p *PrivilegedRuntime) StartContainer(containerID string) error
- func (p *PrivilegedRuntime) Status() (*kubeapi.RuntimeStatus, error)
- func (p *PrivilegedRuntime) StopContainer(containerID string, timeout int64) error
- func (p *PrivilegedRuntime) StopPodSandbox(podSandboxID string) error
- func (p *PrivilegedRuntime) UpdateContainerResources(containerID string, resources *kubeapi.LinuxContainerResources) error
- func (p *PrivilegedRuntime) UpdateRuntimeConfig(runtimeConfig *kubeapi.RuntimeConfig) error
- func (p *PrivilegedRuntime) Version(apiVersion string) (*kubeapi.VersionResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivilegedRuntime ¶
type PrivilegedRuntime struct {
dockershim.DockerService
}
func (*PrivilegedRuntime) Attach ¶ added in v1.10.0
func (p *PrivilegedRuntime) Attach(req *kubeapi.AttachRequest) (*kubeapi.AttachResponse, error)
Attach prepares a streaming endpoint to attach to a running container.
func (*PrivilegedRuntime) ContainerStats ¶ added in v1.10.0
func (p *PrivilegedRuntime) ContainerStats(containerID string) (*kubeapi.ContainerStats, error)
ContainerStats returns stats of the container.
func (*PrivilegedRuntime) ContainerStatus ¶ added in v1.10.0
func (p *PrivilegedRuntime) ContainerStatus(containerID string) (*kubeapi.ContainerStatus, error)
ContainerStatus returns status of the container.
func (*PrivilegedRuntime) CreateContainer ¶ added in v1.10.0
func (p *PrivilegedRuntime) CreateContainer(podSandboxID string, config *kubeapi.ContainerConfig, sandboxConfig *kubeapi.PodSandboxConfig) (string, error)
CreateContainer creates a new container in specified PodSandbox
func (*PrivilegedRuntime) Exec ¶ added in v1.10.0
func (p *PrivilegedRuntime) Exec(*kubeapi.ExecRequest) (*kubeapi.ExecResponse, error)
Exec prepares a streaming endpoint to execute a command in the container.
func (*PrivilegedRuntime) ExecSync ¶ added in v1.10.0
func (p *PrivilegedRuntime) ExecSync(containerID string, cmd []string, timeout time.Duration) (stdout []byte, stderr []byte, err error)
ExecSync runs a command in a container synchronously.
func (*PrivilegedRuntime) ImageFsInfo ¶ added in v1.10.0
func (p *PrivilegedRuntime) ImageFsInfo() ([]*kubeapi.FilesystemUsage, error)
ImageFSInfo returns information of the filesystem that is used to store images.
func (*PrivilegedRuntime) ImageStatus ¶ added in v1.10.0
ImageStatus returns the status of the image.
func (*PrivilegedRuntime) ListContainerStats ¶ added in v1.10.0
func (p *PrivilegedRuntime) ListContainerStats(filter *kubeapi.ContainerStatsFilter) ([]*kubeapi.ContainerStats, error)
ListContainerStats returns stats of all running containers.
func (*PrivilegedRuntime) ListContainers ¶ added in v1.10.0
func (p *PrivilegedRuntime) ListContainers(filter *kubeapi.ContainerFilter) ([]*kubeapi.Container, error)
ListContainers lists all containers by filters.
func (*PrivilegedRuntime) ListImages ¶ added in v1.10.0
func (p *PrivilegedRuntime) ListImages(filter *kubeapi.ImageFilter) ([]*kubeapi.Image, error)
ListImages lists existing images.
func (*PrivilegedRuntime) ListPodSandbox ¶ added in v1.10.0
func (p *PrivilegedRuntime) ListPodSandbox(filter *kubeapi.PodSandboxFilter) ([]*kubeapi.PodSandbox, error)
ListPodSandbox returns a list of PodSandboxes.
func (*PrivilegedRuntime) PodSandboxStatus ¶ added in v1.10.0
func (p *PrivilegedRuntime) PodSandboxStatus(podSandboxID string) (*kubeapi.PodSandboxStatus, error)
PodSandboxStatus returns the status of the PodSandbox.
func (*PrivilegedRuntime) PortForward ¶ added in v1.10.0
func (p *PrivilegedRuntime) PortForward(*kubeapi.PortForwardRequest) (*kubeapi.PortForwardResponse, error)
PortForward prepares a streaming endpoint to forward ports from a PodSandbox.
func (*PrivilegedRuntime) PullImage ¶ added in v1.10.0
func (p *PrivilegedRuntime) PullImage(image *kubeapi.ImageSpec, auth *kubeapi.AuthConfig) (string, error)
PullImage pulls an image with authentication config.
func (*PrivilegedRuntime) RemoveContainer ¶ added in v1.10.0
func (p *PrivilegedRuntime) RemoveContainer(containerID string) error
RemoveContainer removes the container.
func (*PrivilegedRuntime) RemoveImage ¶ added in v1.10.0
func (p *PrivilegedRuntime) RemoveImage(image *kubeapi.ImageSpec) error
RemoveImage removes the image.
func (*PrivilegedRuntime) RemovePodSandbox ¶ added in v1.10.0
func (p *PrivilegedRuntime) RemovePodSandbox(podSandboxID string) error
RemovePodSandbox removes the sandbox.
func (*PrivilegedRuntime) ReopenContainerLog ¶ added in v1.10.0
func (p *PrivilegedRuntime) ReopenContainerLog(ContainerID string) error
ReopenContainerLog asks runtime to reopen the stdout/stderr log file for the container.
func (*PrivilegedRuntime) RunPodSandbox ¶ added in v1.10.0
func (p *PrivilegedRuntime) RunPodSandbox(config *kubeapi.PodSandboxConfig, runtimeHandler string) (string, error)
RunPodSandbox creates and starts a pod-level sandbox.
func (*PrivilegedRuntime) ServiceName ¶
func (p *PrivilegedRuntime) ServiceName() string
func (*PrivilegedRuntime) StartContainer ¶ added in v1.10.0
func (p *PrivilegedRuntime) StartContainer(containerID string) error
StartContainer starts the container.
func (*PrivilegedRuntime) Status ¶ added in v1.10.0
func (p *PrivilegedRuntime) Status() (*kubeapi.RuntimeStatus, error)
Status returns the status of the runtime.
func (*PrivilegedRuntime) StopContainer ¶ added in v1.10.0
func (p *PrivilegedRuntime) StopContainer(containerID string, timeout int64) error
StopContainer stops a running container with a grace period
func (*PrivilegedRuntime) StopPodSandbox ¶ added in v1.10.0
func (p *PrivilegedRuntime) StopPodSandbox(podSandboxID string) error
StopPodSandbox stops any running process
func (*PrivilegedRuntime) UpdateContainerResources ¶ added in v1.10.0
func (p *PrivilegedRuntime) UpdateContainerResources(containerID string, resources *kubeapi.LinuxContainerResources) error
UpdateContainerResources updates ContainerConfig of the container.
func (*PrivilegedRuntime) UpdateRuntimeConfig ¶ added in v1.10.0
func (p *PrivilegedRuntime) UpdateRuntimeConfig(runtimeConfig *kubeapi.RuntimeConfig) error
UpdateRuntimeConfig updates the runtime configuration based on the given request.
func (*PrivilegedRuntime) Version ¶ added in v1.10.0
func (p *PrivilegedRuntime) Version(apiVersion string) (*kubeapi.VersionResponse, error)
Version returns the runtime name, runtime version, and runtime API version.