Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller tracks unused cached images and deletes them after a retention window.
func NewController ¶
func NewController(p *paths.Paths, imageManager images.Manager, unusedFor time.Duration, allowed []string, logger *slog.Logger, meter metric.Meter) (*Controller, error)
NewController creates a new image retention controller.
func (*Controller) MarkUsed ¶
func (c *Controller) MarkUsed(ctx context.Context, imageName, digest string) error
MarkUsed clears retention state for a digest that is about to be referenced by a new instance.
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics holds the OTel instruments for image retention.
func (*Metrics) RecordDelete ¶
RecordDelete records the outcome of an image delete attempt.
Click to show internal directories.
Click to hide internal directories.