dockerclient

package
v0.0.0-...-f4cebfc Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ILLEGAL_PARAMETER = 1000
	DOCKER_NOT_READY  = 1001

	IMAGE_PULL_STARTED        = 1
	IMAGE_PUSH_STARTED        = 1
	IMAGE_BUILD_STARTED       = 1
	IMAGE_BUILD_NOT_RESPONSED = 80
)

Variables

This section is empty.

Functions

func CreateTarStreamToTarWriter

func CreateTarStreamToTarWriter(dir string, includeDirInPath bool, tarWriter *tar.Writer, logger io.Writer, shouldExclude shouldExcludePathFn) error

CreateTarStreamToTarWriter creates a tar stream on the given writer from the given directory while excluding files that match the given exclusion pattern.

Types

type DockerClient

type DockerClient struct {
	DockerApiClient *dockerapi.Client
	// criHandler dockershim.DockerService
	KubeDockerClient libdocker.Interface
}

func NewOrDie

func NewOrDie() *DockerClient

refer to

  https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/kubelet.go#L614-L620

    ds, err := dockershim.NewDockerService(kubeDeps.DockerClientConfig, crOptions.PodSandboxImage, streamingConfig,
		   &pluginSettings, runtimeCgroups, kubeCfg.CgroupDriver, crOptions.DockershimRootDirectory, !crOptions.RedirectContainerStreaming)
	   if err != nil {
		   return nil, err
	   }
	   if crOptions.RedirectContainerStreaming {
		   klet.criHandler = ds
	   }

...

func (*DockerClient) BuildImage

func (*DockerClient) CreateNetwork

func (*DockerClient) InspectContainer

func (*DockerClient) InspectImage

func (*DockerClient) InspectNetwork

func (*DockerClient) ListContainers

func (*DockerClient) ListImages

func (*DockerClient) ListNetworks

func (*DockerClient) PruneContainers

func (*DockerClient) PruneImages

func (*DockerClient) PruneNetworks

func (*DockerClient) PullImage

func (*DockerClient) PushImage

func (*DockerClient) RemoveContainer

func (*DockerClient) RemoveImage

func (*DockerClient) RemoveNetwork

func (*DockerClient) RunContainer

Jump to

Keyboard shortcuts

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