Documentation
¶
Overview ¶
Package cmddisk binds disk-report arguments to the disk collection operation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dependencies ¶
type Dependencies struct {
Collect func(context.Context, disk.Options) (disk.Report, error)
DependencyCache func(context.Context, []string, io.Writer, io.Writer) error
Prune PruneDependencies
}
Dependencies contains the disk-report operation supplied by composition.
type PruneDependencies ¶
type PruneDependencies struct {
Env func() diskprune.Env
Run func(context.Context, diskprune.Env, diskprune.Options) diskprune.Report
// ConfigPath is the user-level wb.yaml, whose disk.minimum_available
// wb disk reports against.
ConfigPath func() string
}
PruneDependencies are wb disk prune's seams.
func DefaultPruneDependencies ¶
func DefaultPruneDependencies() PruneDependencies
DefaultPruneDependencies wires the real machine.