image

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2019 License: MIT Imports: 15 Imported by: 0

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

func GetAnalyzer(imageID string) Analyzer

type AnalyzerFactory added in v0.5.0

type AnalyzerFactory func(string) Analyzer

type Layer

type Layer interface {
	Id() string
	ShortId() string
	Index() int
	Command() string
	Size() uint64
	Tree() *filetree.FileTree
	String() string
}

type Parser added in v0.5.0

type Parser interface {
}

Jump to

Keyboard shortcuts

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