Documentation
¶
Overview ¶
Package gc provides garbage collection for snapshots.
Index ¶
- func RemoveRuntimePlans(repoRoot string) (int, error)
- type Collector
- func (c *Collector) LoadPlan(planID string) (*model.GCPlan, error)
- func (c *Collector) Plan() (*model.GCPlan, error)
- func (c *Collector) PlanWithPolicy(policy model.RetentionPolicy) (*model.GCPlan, error)
- func (c *Collector) Run(planID string) error
- func (c *Collector) SetProgressCallback(cb func(string, int, int, string))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveRuntimePlans ¶ added in v0.4.7
RemoveRuntimePlans removes top-level cleanup preview/run plan state. Durable cleanup evidence under child directories is left intact.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector handles garbage collection of unused snapshots.
func NewCollector ¶
NewCollector creates a new GC collector.
func (*Collector) PlanWithPolicy ¶
PlanWithPolicy creates a GC plan using the given retention policy.
Click to show internal directories.
Click to hide internal directories.