Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopiedTag ¶
CopiedTag gets the tag of the copied image, the format should be: ${VERSION}-${ARCH}${VARIANT}${EXTRA}
If the OS is not linux, such as windows, darwin, etc the format should be: ${VERSION}-${OS}-${ARCH}${VARIANT}
If the extra is not empty, the tag format should be: ${VERSION}-${OS}-${ARCH}${VARIANT}-${EXTRA}
Types ¶
type Image ¶
type Image struct { Source string Destination string Tag string Arch string Variant string OS string OsVersion string // Digest is the source image manifest sha256sum Digest string // Directory is the absolute path to save the image Directory string // SavedFolder is the folder name of the saved image SavedFolder string Copied bool Saved bool Loaded bool SourceMediaType string // IID is the ID of the Image IID int // MID is the ID of the Mirror MID int }
func NewImage ¶
func NewImage(opts *ImageOptions) *Image
Click to show internal directories.
Click to hide internal directories.