docker

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() (*handler, error)

Create creates new handler

Types

type CommonAPIClient

type CommonAPIClient interface {
	ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)
	ImagePull(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error)
}

CommonAPIClient interface on docker client: https://github.com/moby/moby/tree/master/client#go-client-for-the-docker-engine-api

type Handler

type Handler interface {
	HasImage(ctx context.Context, image string) (bool, error)
	ListImages(ctx context.Context, images []string) ([]Image, error)
	GetImageInformation(ctx context.Context, image string) (*Image, error)
	PullImage(ctx context.Context, image string) error
}

type Image

type Image struct {
	Name string
	Size int64
}

Jump to

Keyboard shortcuts

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