Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandArgs ¶
type CommandArgs struct { Daemonize bool RetainCount int KeepLatest bool PruneImages bool PruneBuildCache bool IntervalSec int }
func NewCommandArgs ¶
func NewCommandArgs() *CommandArgs
func (*CommandArgs) Set ¶
func (a *CommandArgs) Set(flags *pflag.FlagSet)
type DockerManager ¶
type DockerManager struct {
// contains filtered or unexported fields
}
func NewDockerManager ¶
func NewDockerManager(ops ...client.Opt) (*DockerManager, error)
func (*DockerManager) DeleteImage ¶
func (m *DockerManager) DeleteImage(ctx context.Context, imageID string) error
func (*DockerManager) PruneBuildCache ¶
func (m *DockerManager) PruneBuildCache(ctx context.Context) error
func (*DockerManager) PruneImages ¶
func (m *DockerManager) PruneImages(ctx context.Context) error
type IDockerClient ¶
type IDockerClient interface { ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error) ImageRemove(ctx context.Context, imageID string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error) ImagesPrune(ctx context.Context, pruneFilters filters.Args) (types.ImagesPruneReport, error) BuildCachePrune(ctx context.Context, opts types.BuildCachePruneOptions) (*types.BuildCachePruneReport, error) }
モック用インタフェース
type TagInfo ¶
type TagInfo struct { Tag string Summary *types.ImageSummary }
Click to show internal directories.
Click to hide internal directories.