fakes

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

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

func NewImage

func NewImage(name, topLayerSha string, identifier imgutil.Identifier) *Image

func (*Image) AddLayer

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

func (*Image) AddPreviousLayer

func (i *Image) AddPreviousLayer(sha, path string)

func (*Image) AppLayerPath

func (i *Image) AppLayerPath() string

func (*Image) Base

func (i *Image) Base() string

func (*Image) Cleanup

func (i *Image) Cleanup() error

func (*Image) Cmd

func (i *Image) Cmd() ([]string, error)

func (*Image) ConfigLayerPath

func (i *Image) ConfigLayerPath() string

func (*Image) CreatedAt

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

func (*Image) Delete

func (i *Image) Delete() error

func (*Image) Entrypoint

func (i *Image) Entrypoint() ([]string, error)

func (*Image) Env

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

func (*Image) FindLayerWithPath

func (i *Image) FindLayerWithPath(path 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) IsSaved

func (i *Image) IsSaved() bool

func (*Image) Label

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

func (*Image) Name

func (i *Image) Name() string

func (*Image) NumberOfAddedLayers

func (i *Image) NumberOfAddedLayers() int

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) ReusedLayers

func (i *Image) ReusedLayers() []string

func (*Image) Save

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

func (*Image) SavedNames

func (i *Image) SavedNames() []string

func (*Image) SetCmd

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

func (*Image) SetEntrypoint

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

func (*Image) SetEnv

func (i *Image) SetEnv(k string, v string) error

func (*Image) SetIdentifier

func (i *Image) SetIdentifier(identifier imgutil.Identifier)

func (*Image) SetLabel

func (i *Image) SetLabel(k string, v string) error

func (*Image) SetWorkingDir

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

func (*Image) TopLayer

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

func (*Image) WorkingDir

func (i *Image) WorkingDir() string

Jump to

Keyboard shortcuts

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