docker

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivilegedRuntime

type PrivilegedRuntime struct {
	dockershim.DockerService
}

func NewPrivilegedRuntimeService

func NewPrivilegedRuntimeService(privilegedRuntimeEndpoint string, streamingConfig *streaming.Config, cniNetDir, cniPluginDir, cgroupDriver, privilegedRuntimeRootDir, podSandboxImage string) (*PrivilegedRuntime, error)

func (*PrivilegedRuntime) Attach added in v1.10.0

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

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

func (p *PrivilegedRuntime) ImageStatus(image *kubeapi.ImageSpec) (*kubeapi.Image, error)

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

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.

Jump to

Keyboard shortcuts

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