image

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: Apache-2.0 Imports: 26 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{}

func (*Client) ReadImage

func (c *Client) ReadImage(repoName string, useDaemon bool) (v1.Image, error)

func (*Client) RepoStore

func (c *Client) RepoStore(repoName string, useDaemon bool) (img.Store, error)

type Docker added in v0.0.6

type Docker interface {
	PullImage(ref string) error
	ImageInspectWithRaw(ctx context.Context, imageID string) (types.ImageInspect, []byte, error)
	ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
	ImageRemove(ctx context.Context, ref string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error)
	ImageLoad(ctx context.Context, r io.Reader, quiet bool) (types.ImageLoadResponse, error)
	ImageSave(ctx context.Context, imageIDs []string) (io.ReadCloser, error)
}

type Factory added in v0.0.6

type Factory struct {
	Docker Docker
	Log    *log.Logger
	Stdout io.Writer
	FS     *fs.FS
}

func DefaultFactory added in v0.0.6

func DefaultFactory() (*Factory, error)

func (*Factory) NewLocal added in v0.0.6

func (f *Factory) NewLocal(repoName string, pull bool) (Image, error)

func (*Factory) NewRemote added in v0.0.6

func (f *Factory) NewRemote(repoName string) (Image, error)

type Image added in v0.0.6

type Image interface {
	Label(string) (string, error)
	Rename(name string)
	Name() string
	Digest() (string, error)
	Rebase(string, Image) error
	SetLabel(string, string) error
	TopLayer() (string, error)
	AddLayer(path string) error
	ReuseLayer(sha string) error
	Save() (string, error)
}

Jump to

Keyboard shortcuts

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