Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Freezer ¶
type Freezer struct {
// contains filtered or unexported fields
}
Freezer monitors disk usage and triggers a freeze if the usage reaches a specified threshold.
func New ¶
func New(dirPaths []string, freezeAtPercent float64, dstore datastore.Datastore, freezeFunc func() error) (*Freezer, error)
New creates a new Freezer that checks the usage of the file system at dirPath.
Click to show internal directories.
Click to hide internal directories.