Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrImageDoesNotExist = errors.New("image does not exist")
ErrImageDoesNotExist is returned if source image does not exist
Functions ¶
func RandomString ¶
RandomString generates random string of fixed length
Types ¶
type BuildID ¶
type BuildID string
BuildID is unique ID of build
func NewBuildID ¶
NewBuildID returns new random build ID
func ParseBuildID ¶
ParseBuildID parses string into build ID and returns error if string is not a valid one
func (BuildID) IsValidType ¶
IsValidType verifies if format of build ID is valid and type matches
type BuildInfo ¶
type BuildInfo struct { BuildID BuildID BasedOn BuildID CreatedAt time.Time Name string Tags Tags Params Params Mounted string }
BuildInfo stores all the information about build
type BuildKey ¶
BuildKey represents Name-Tag pair
func NewBuildKey ¶
NewBuildKey returns new build key
func ParseBuildKey ¶
ParseBuildKey parses string into build key and returns error if string is not a valid one
type BuildType ¶
type BuildType string
BuildType is the type of build
func (BuildType) Properties ¶
func (bt BuildType) Properties() BuildTypeProperties
Properties returns properties of build type
type BuildTypeProperties ¶
type BuildTypeProperties struct { // Cloneable means image may be cloned Cloneable bool // Revertable means image might be reverted to original state Revertable bool // Mountable means image can't be mounted Mountable bool // AutoMount means image is automatically mounted AutoMount bool // VM means vm in libvirt is defined for this image VM bool }
BuildTypeProperties contains properties of build type
type ImageManifest ¶
ImageManifest contains info about built image