fakes

package
v0.0.0-...-bef4977 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 2

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

func (i *Image) AddLayerWithDiffID(path string, diffID string) error

func (*Image) AddLayerWithDiffIDAndHistory

func (i *Image) AddLayerWithDiffIDAndHistory(path, diffID string, history v1.History) error

func (*Image) AddOrReuseLayerWithHistory

func (i *Image) AddOrReuseLayerWithHistory(_, _ string, _ v1.History) error

func (*Image) AddPreviousLayer

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

func (*Image) AnnotateRefName

func (i *Image) AnnotateRefName(refName string) error

func (*Image) AppLayerPath

func (i *Image) AppLayerPath() string

func (*Image) Architecture

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

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

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

func (*Image) GetLayer

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

func (*Image) History

func (i *Image) History() ([]v1.History, error)

func (*Image) Identifier

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

func (*Image) IsSaved

func (i *Image) IsSaved() bool

func (*Image) Kind

func (i *Image) Kind() string

func (*Image) Label

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

func (*Image) Labels

func (i *Image) Labels() (map[string]string, error)

func (*Image) ManifestSize

func (i *Image) ManifestSize() (int64, error)

func (*Image) Name

func (i *Image) Name() string

func (*Image) NumberOfAddedLayers

func (i *Image) NumberOfAddedLayers() int

func (*Image) OS

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

func (*Image) OSVersion

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

func (*Image) Rebase

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

func (*Image) RemoveLabel

func (i *Image) RemoveLabel(key string) error

func (*Image) Rename

func (i *Image) Rename(name string)

func (*Image) ReuseLayer

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

func (*Image) ReuseLayerWithHistory

func (i *Image) ReuseLayerWithHistory(sha string, history v1.History) error

func (*Image) ReusedLayers

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

func (*Image) Save

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

func (*Image) SaveAs

func (i *Image) SaveAs(name string, additionalNames ...string) error

func (*Image) SaveFile

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

func (*Image) SavedAnnotations

func (i *Image) SavedAnnotations() map[string]string

func (*Image) SavedNames

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

func (*Image) SetArchitecture

func (i *Image) SetArchitecture(a string) error

func (*Image) SetCmd

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

func (*Image) SetCreatedAt

func (i *Image) SetCreatedAt(t time.Time) 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) SetHistory

func (i *Image) SetHistory(history []v1.History) 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) SetManifestSize

func (i *Image) SetManifestSize(size int64)

func (*Image) SetOS

func (i *Image) SetOS(o string) error

func (*Image) SetOSVersion

func (i *Image) SetOSVersion(v string) error

func (*Image) SetVariant

func (i *Image) SetVariant(a string) error

func (*Image) SetWorkingDir

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

func (*Image) TopLayer

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

func (*Image) UnderlyingImage

func (i *Image) UnderlyingImage() v1.Image

func (*Image) Valid

func (i *Image) Valid() bool

func (*Image) Variant

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

func (*Image) WorkingDir

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

Jump to

Keyboard shortcuts

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