dockerprune

package
v0.33.13 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerPruner

type DockerPruner struct {
	// contains filtered or unexported fields
}

func NewDockerPruner

func NewDockerPruner(dCli docker.Client) *DockerPruner

func (*DockerPruner) DisabledForTesting

func (dp *DockerPruner) DisabledForTesting(disabled bool)

func (*DockerPruner) OnChange

func (dp *DockerPruner) OnChange(ctx context.Context, st store.RStore, summary store.ChangeSummary) error

OnChange determines if any Tilt-built Docker images should be pruned based on settings and invokes the pruning process if necessary.

Care should be taken when modifying this method to not introduce expensive operations unless necessary, as this is invoked for EVERY store action change batch. Because of this, the store (un)locking is done somewhat manually, so care must be taken to avoid locking issues.

func (*DockerPruner) Prune

func (dp *DockerPruner) Prune(ctx context.Context, maxAge time.Duration, keepRecent int, imgSelectors []container.RefSelector)

func (*DockerPruner) PruneAndRecordState

func (dp *DockerPruner) PruneAndRecordState(ctx context.Context, maxAge time.Duration, keepRecent int, imgSelectors []container.RefSelector, curBuildCount int)

func (*DockerPruner) SetUp added in v0.10.22

func (dp *DockerPruner) SetUp(ctx context.Context, _ store.RStore) error

Jump to

Keyboard shortcuts

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