image

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2019 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithEnvKeychain

func WithEnvKeychain(factory *Factory)

func WithOutWriter

func WithOutWriter(w io.Writer) func(factory *Factory)

Types

type Factory

type Factory struct {
	Docker   *client.Client
	Keychain authn.Keychain
	Out      io.Writer
}

func NewFactory

func NewFactory(ops ...func(*Factory)) (*Factory, error)

func (*Factory) NewEmptyLocal

func (f *Factory) NewEmptyLocal(repoName string) Image

func (*Factory) NewLocal

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

func (*Factory) NewRemote

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

type Image

type Image interface {
	Name() string
	Rename(name string)
	Digest() (string, error)
	Label(string) (string, error)
	SetLabel(string, string) error
	Env(key string) (string, error)
	SetEnv(string, string) error
	SetEntrypoint(...string) error
	SetCmd(...string) error
	Rebase(string, Image) error
	AddLayer(path string) error
	ReuseLayer(sha string) error
	TopLayer() (string, error)
	Save() (string, error)
	Found() (bool, error)
	GetLayer(string) (io.ReadCloser, error)
	Delete() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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