Documentation
¶
Index ¶
Constants ¶
View Source
const (
LayerFormat = "%-25s %7s %s"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageConfig ¶
type ImageConfig struct {
History []ImageHistoryEntry `json:"history"`
RootFs RootFs `json:"rootfs"`
}
func GetImageConfig ¶
func GetImageConfig(imageTarPath string, manifest ImageManifest) ImageConfig
func NewImageConfig ¶
func NewImageConfig(reader *tar.Reader, header *tar.Header) ImageConfig
type ImageHistoryEntry ¶
type ImageManifest ¶
type ImageManifest struct {
ConfigPath string `json:"Config"`
RepoTags []string `json:"RepoTags"`
LayerTarPaths []string `json:"Layers"`
}
func NewImageManifest ¶
func NewImageManifest(reader *tar.Reader, header *tar.Header) ImageManifest
type Layer ¶
type Layer struct {
TarPath string
History ImageHistoryEntry
Index int
Tree *filetree.FileTree
RefTrees []*filetree.FileTree
}
Layer represents a Docker image layer and metadata
type ProgressBar ¶
type ProgressBar struct {
// contains filtered or unexported fields
}
func NewProgressBar ¶
func NewProgressBar(total int64) *ProgressBar
func (*ProgressBar) Done ¶
func (pb *ProgressBar) Done()
func (*ProgressBar) String ¶
func (pb *ProgressBar) String() string
func (*ProgressBar) Update ¶
func (pb *ProgressBar) Update(currentValue int64) (hasChanged bool)
Click to show internal directories.
Click to hide internal directories.