dive/dive/image/analyzer.go
2019-10-07 12:09:31 -04:00

21 lines
492 B
Go

package image
import (
"github.com/wagoodman/dive/dive/filetree"
)
type Analyzer interface {
Analyze() (*AnalysisResult, error)
}
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
}