docker

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: Apache-2.0 Imports: 5 Imported by: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindK8SPauseContainerID

func FindK8SPauseContainerID(containers []types.Container, PodName, Namespace, PodUUID string) (string, error)

FindK8SPauseContainerID : Use pod-name, k8s-namespace, pod-uuid to match container-id in containers

func GetSandboxKey

func GetSandboxKey(containerInfo types.ContainerJSON) string

GetSandboxKey : docker inspect <Container ID> | grep -E 'SandboxKey|Id'

Types

type Client

type Client struct {
	*docker.Client
	Context context.Context
}

Client : include docker client and context

func New

func New() (*Client, error)

New : init Client

func (*Client) InspectContainer

func (c *Client) InspectContainer(containerID string) (types.ContainerJSON, error)

InspectContainer : docker inspect <Container ID>

func (*Client) ListContainer

func (c *Client) ListContainer() ([]types.Container, error)

ListContainer : docker ps -a

Jump to

Keyboard shortcuts

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