Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffResult ¶
type DiffResult struct {
NewImage *remote.ImageMetadata
BaseImage *remote.ImageMetadata
LayerDiffs []LayerDiff
NewLayers []LayerDiff
// Size statistics
NewLayersSize int64
TotalNewImageSize int64
SavingsSize int64
SavingsPercentage float64
}
DiffResult contains the result of comparing two images
type Differ ¶
type Differ struct {
// contains filtered or unexported fields
}
Differ compares two container images
type FormatOptions ¶
type FormatOptions struct {
Format OutputFormat
Verbose bool
}
FormatOptions contains options for formatting output
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter formats diff results for output
func NewFormatter ¶
func NewFormatter(options FormatOptions) *Formatter
NewFormatter creates a new Formatter with the given options
type LayerDiff ¶
type LayerDiff struct {
DiffID v1.Hash
Digest v1.Hash
Size int64
Command string
Status LayerStatus
}
LayerDiff represents the difference information for a single layer
type LayerStatus ¶
type LayerStatus string
LayerStatus represents the status of a layer in the diff
const ( LayerStatusNew LayerStatus = "NEW" )
type OutputFormat ¶
type OutputFormat string
OutputFormat represents the output format type
const ( OutputFormatText OutputFormat = "text" OutputFormatJSON OutputFormat = "json" )
Click to show internal directories.
Click to hide internal directories.