Documentation ¶
Overview ¶
Copyright © 2023 William Wang <williamw0825@gmail.com>
Copyright © 2023 William Wang <williamw0825@gmail.com>
Index ¶
- func ExportImages(dockerCli docker.Cli, images []string) (io.ReadCloser, error)
- func ExportUntarImages(dockerCli docker.Cli, opts commonImageOptions, getPatternFunc GetPatternFunc) (string, error)
- func ImageInspect(dockerCli docker.Cli, images []string) ([]types.ImageInspect, error)
- func ImagesConcatFmt(images []string) string
- func NewDiffCommand(dockerCli docker.Cli) *cobra.Command
- func NewSaveCommand(dockerCli docker.Cli) *cobra.Command
- func NewStatsCommand(dockerCli docker.Cli) *cobra.Command
- func OmitString(str string, maxLength int) string
- func ResolveManifests(workDir string) ([]manifestItem, error)
- func RunDiff(dockerCli docker.Cli, opts diffOptions) error
- func RunSave(dockerCli docker.Cli, opts saveOptions) error
- func RunStats(dockerCli docker.Cli, opts statsOptions) error
- type GetPatternFunc
- type LayerStatsItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportImages ¶
ExportImages export images
func ExportUntarImages ¶
func ExportUntarImages(dockerCli docker.Cli, opts commonImageOptions, getPatternFunc GetPatternFunc) (string, error)
ExportUntarImages export and untar images
func ImageInspect ¶
func ImagesConcatFmt ¶
func NewDiffCommand ¶
NewDiffCommand compare two images and show diff between layers
func NewSaveCommand ¶
NewSaveCommand creates a new `docker save` command
func NewStatsCommand ¶
NewStatsCommand creates a new `docker-save stat` command
func OmitString ¶
func ResolveManifests ¶
Types ¶
type GetPatternFunc ¶
type GetPatternFunc func() string
GetPatternFunc is a function which used to generate temp dir pattern
type LayerStatsItem ¶
type LayerStatsItem struct { Number int `json:"number"` DiffID digest.Digest `json:"diff_id"` Layer string `json:"layer"` Created *time.Time `json:"created,omitempty"` Command string `json:"command"` Size int64 `json:"size"` }
func (LayerStatsItem) Format ¶
func (layer LayerStatsItem) Format() string
Click to show internal directories.
Click to hide internal directories.