cmd

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

type LayerInfo added in v0.3.0

type LayerInfo struct {
	Digest    string  `json:"digest,omitempty"`
	CreatedBy string  `json:"created_by"`
	Size      int64   `json:"size"`
	SizeMB    float64 `json:"size_mb"`
}

LayerInfo represents a single layer

type RegistryInsights added in v0.3.0

type RegistryInsights struct {
	BloatTag         string  `json:"bloat_tag,omitempty"`
	BloatSizeDiff    float64 `json:"bloat_size_diff_mb,omitempty"`
	OptimizationTag  string  `json:"optimization_tag,omitempty"`
	OptimizationDiff float64 `json:"optimization_size_diff_mb,omitempty"`
}

RegistryInsights holds bloat/optimization findings

type RegistryJSONReport added in v0.3.0

type RegistryJSONReport struct {
	Image           string                    `json:"image"`
	Summary         RegistrySummary           `json:"summary"`
	Insights        RegistryInsights          `json:"insights"`
	Results         []RegistryResult          `json:"results"`
	LayerComparison []RegistryLayerComparison `json:"layer_comparison"`
	TagOrder        []string                  `json:"tag_order"`
}

RegistryJSONReport is the structure for JSON output

type RegistryLayerComparison added in v0.3.0

type RegistryLayerComparison struct {
	LayerCommand string             `json:"layer_command"`
	SizeByTag    map[string]float64 `json:"size_by_tag"`
}

RegistryLayerComparison represents layer sizes across tags

type RegistryResult added in v0.3.0

type RegistryResult struct {
	Tag        string      `json:"tag"`
	Digest     string      `json:"digest"`
	Created    time.Time   `json:"created"`
	Size       int64       `json:"size"`
	SizeMB     float64     `json:"size_mb"`
	LayerCount int         `json:"layer_count"`
	Layers     []LayerInfo `json:"layers,omitempty"`
	SizeDiff   int64       `json:"size_diff,omitempty"`
	Error      string      `json:"error,omitempty"`
}

RegistryResult holds analysis results for a registry image

type RegistrySummary added in v0.3.0

type RegistrySummary struct {
	TagsAnalyzed  int     `json:"tags_analyzed"`
	FirstTagSize  float64 `json:"first_tag_size_mb"`
	FirstTag      string  `json:"first_tag"`
	LastTagSize   float64 `json:"last_tag_size_mb"`
	LastTag       string  `json:"last_tag"`
	TotalChangeMB float64 `json:"total_change_mb"`
}

RegistrySummary holds summary statistics

Jump to

Keyboard shortcuts

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