docker

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

DockerClient is a docker client

func NewDockerClient

func NewDockerClient() *Client

func (*Client) DeleteKindImage

func (d *Client) DeleteKindImage(ctx context.Context, clusterName, imageID string) error

func (*Client) KindControlPlaneContainer

func (d *Client) KindControlPlaneContainer(ctx context.Context, clusterName string) (*ContainerDetails, error)

func (*Client) ListDockerImages

func (d *Client) ListDockerImages(ctx context.Context) ([]types.ImageSummary, error)

func (*Client) ListKindImages

func (d *Client) ListKindImages(ctx context.Context, clusterName string) (KindImages, error)

func (*Client) Save

func (d *Client) Save(ctx context.Context, destination, imageID string) error

type ContainerDetails

type ContainerDetails struct {
	Version string
	Created int64
	State   string
}

ContainerDetails contains metadata of a docker container

type ID

type ID struct {
	// contains filtered or unexported fields
}

type Image

type Image struct {
	Containers   string
	CreatedAt    string
	CreatedSince string
	Digest       string
	ID           string
	Repository   string
	SharedSize   string
	Size         string
	Tag          string
	UniqueSize   string
	VirtualSize  string
}

type KindImage

type KindImage struct {
	ID          string   `json:"id"`
	UID         ID       `json:"uid"` // UID can be null
	RepoTags    []string `json:"repoTags"`
	RepoDigests []string `json:"repoDigests"`
	Size        string   `json:"size"`
	Username    string   `json:"username"`
}

type KindImages

type KindImages struct {
	Images []KindImage `json:"images"`
}

Jump to

Keyboard shortcuts

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