Documentation
¶
Index ¶
Constants ¶
View Source
const (
// LayerFormat = "%-15s %7s %s"
LayerFormat = "%7s %s"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalysisResult ¶ added in v0.5.0
type AnalysisResult struct {
Layers []Layer
RefTrees []*filetree.FileTree
Efficiency float64
SizeBytes uint64
UserSizeByes uint64 // this is all bytes except for the base image
WastedUserPercent float64 // = wasted-bytes/user-size-bytes
WastedBytes uint64
Inefficiencies filetree.EfficiencySlice
}
func TestLoadDockerImageTar ¶ added in v0.6.0
func TestLoadDockerImageTar(tarPath string) (*AnalysisResult, error)
type Analyzer ¶ added in v0.5.0
type Analyzer interface {
Fetch() (io.ReadCloser, error)
Parse(io.ReadCloser) error
Analyze() (*AnalysisResult, error)
}
func GetAnalyzer ¶ added in v0.5.0
type AnalyzerFactory ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.