Documentation ¶
Index ¶
- type DockerPruner
- func (dp *DockerPruner) DisabledForTesting(disabled bool)
- func (dp *DockerPruner) OnChange(ctx context.Context, st store.RStore, summary store.ChangeSummary) error
- func (dp *DockerPruner) Prune(ctx context.Context, maxAge time.Duration, keepRecent int, ...)
- func (dp *DockerPruner) PruneAndRecordState(ctx context.Context, maxAge time.Duration, keepRecent int, ...)
- func (dp *DockerPruner) SetUp(ctx context.Context, _ store.RStore) error
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)
Click to show internal directories.
Click to hide internal directories.