remote

package
v0.0.0-...-9ad9206 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImage

func NewImage(repoName string, keychain authn.Keychain, ops ...ImageOption) (imgutil.Image, error)

Types

type DigestIdentifier

type DigestIdentifier struct {
	Digest name.Digest
}

func (DigestIdentifier) String

func (d DigestIdentifier) String() string

type Image

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

func (*Image) AddLayer

func (i *Image) AddLayer(path string) error

func (*Image) CreatedAt

func (i *Image) CreatedAt() (time.Time, error)

func (*Image) Delete

func (i *Image) Delete() error

func (*Image) Env

func (i *Image) Env(key string) (string, error)

func (*Image) Found

func (i *Image) Found() bool

func (*Image) GetLayer

func (i *Image) GetLayer(sha string) (io.ReadCloser, error)

func (*Image) Identifier

func (i *Image) Identifier() (imgutil.Identifier, error)

func (*Image) Label

func (i *Image) Label(key string) (string, error)

func (*Image) Name

func (i *Image) Name() string

func (*Image) Rebase

func (i *Image) Rebase(baseTopLayer string, newBase imgutil.Image) error

func (*Image) Rename

func (i *Image) Rename(name string)

func (*Image) ReuseLayer

func (i *Image) ReuseLayer(sha string) error

func (*Image) Save

func (i *Image) Save(additionalNames ...string) error

func (*Image) SetCmd

func (i *Image) SetCmd(cmd ...string) error

func (*Image) SetEntrypoint

func (i *Image) SetEntrypoint(ep ...string) error

func (*Image) SetEnv

func (i *Image) SetEnv(key, val string) error

func (*Image) SetLabel

func (i *Image) SetLabel(key, val string) error

func (*Image) SetWorkingDir

func (i *Image) SetWorkingDir(dir string) error

func (*Image) TopLayer

func (i *Image) TopLayer() (string, error)

type ImageOption

type ImageOption func(*Image) (*Image, error)

func FromBaseImage

func FromBaseImage(imageName string) ImageOption

func WithPreviousImage

func WithPreviousImage(imageName string) ImageOption

Jump to

Keyboard shortcuts

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