Documentation
¶
Index ¶
- func NewImage(repoName string, keychain authn.Keychain, ops ...ImageOption) (imgutil.Image, error)
- type DigestIdentifier
- type Image
- func (i *Image) AddLayer(path string) error
- func (i *Image) CreatedAt() (time.Time, error)
- func (i *Image) Delete() error
- func (i *Image) Env(key string) (string, error)
- func (i *Image) Found() bool
- func (i *Image) GetLayer(sha string) (io.ReadCloser, error)
- func (i *Image) Identifier() (imgutil.Identifier, error)
- func (i *Image) Label(key string) (string, error)
- func (i *Image) Name() string
- func (i *Image) Rebase(baseTopLayer string, newBase imgutil.Image) error
- func (i *Image) Rename(name string)
- func (i *Image) ReuseLayer(sha string) error
- func (i *Image) Save(additionalNames ...string) error
- func (i *Image) SetCmd(cmd ...string) error
- func (i *Image) SetEntrypoint(ep ...string) error
- func (i *Image) SetEnv(key, val string) error
- func (i *Image) SetLabel(key, val string) error
- func (i *Image) SetWorkingDir(dir string) error
- func (i *Image) TopLayer() (string, error)
- type ImageOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DigestIdentifier ¶
func (DigestIdentifier) String ¶
func (d DigestIdentifier) String() string
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) Identifier ¶
func (i *Image) Identifier() (imgutil.Identifier, error)
func (*Image) ReuseLayer ¶
func (*Image) SetEntrypoint ¶
func (*Image) SetWorkingDir ¶
type ImageOption ¶
func FromBaseImage ¶
func FromBaseImage(imageName string) ImageOption
func WithPreviousImage ¶
func WithPreviousImage(imageName string) ImageOption
Click to show internal directories.
Click to hide internal directories.