Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CapacityStore ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New(policy Policy, backend Backend) *Controller
func (*Controller) Status ¶
func (c *Controller) Status() Status
type DockerCommands ¶
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
func NewHost ¶
func NewHost(config HostConfig) *Host
func (*Host) Reclaim ¶
func (h *Host) Reclaim(ctx context.Context, request ReclaimRequest) (ReclaimReport, error)
type HostConfig ¶
type Policy ¶
type Policy struct {
SoftFreePercent uint64
SoftFreeMinimumBytes uint64
HardFreePercent uint64
HardFreeMinimumBytes uint64
SweepPercent uint64
SweepMinimumBytes uint64
MinimumFreeInodes uint64
JobRetention time.Duration
CacheHighPercent uint64
CacheLowPercent uint64
NormalObjectAge time.Duration
PressureThrottle time.Duration
}
func DefaultPolicy ¶
func DefaultPolicy() Policy
func (Policy) Thresholds ¶
func (p Policy) Thresholds(total uint64) Thresholds
type ReclaimReport ¶
type ReclaimRequest ¶
type ResourceExhaustedError ¶
type ResourceExhaustedError struct {
FreeBytes uint64
RequiredBytes uint64
FreeInodes uint64
RequiredInodes uint64
}
func (*ResourceExhaustedError) Error ¶
func (e *ResourceExhaustedError) Error() string
type Status ¶
type Status struct {
State string `json:"state"`
Trigger Trigger `json:"trigger"`
Before Snapshot `json:"before"`
After Snapshot `json:"after"`
Thresholds Thresholds `json:"thresholds"`
Reclaim ReclaimReport `json:"reclaim"`
Error string `json:"error,omitempty"`
CompletedAt time.Time `json:"completed_at"`
}
type Thresholds ¶
Click to show internal directories.
Click to hide internal directories.