Documentation
¶
Index ¶
- type DepTree
- type Manager
- func (m *Manager) ApplyPlan(ctx context.Context, plan Refs) (Refs, error)
- func (m *Manager) Cleanup(maxAge time.Duration, keep Refs) (Refs, error)
- func (m *Manager) DepTree(ctx context.Context, ref Ref) *DepTree
- func (m *Manager) Install(ctx context.Context, refs Refs) (Refs, error)
- func (m *Manager) Plan(ctx context.Context, refs Refs) (Refs, error)
- func (m *Manager) Reinstall(ctx context.Context, refs Refs, withDeps bool) (Refs, error)
- func (m *Manager) TouchLastUsed(refs Refs)
- func (m *Manager) Uninstall(ctx context.Context, refs Refs, withDeps bool) (Refs, error)
- type ProgressTracker
- type Ref
- type Refs
- type Reporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) TouchLastUsed ¶
TouchLastUsed bumps the last-used timestamp for every ref. Errors are swallowed: the timestamp is best-effort bookkeeping, and a missing install dir is silently no-op'd inside storage.TouchLastUsed.
type ProgressTracker ¶
type Ref ¶
func ParseStrict ¶
type Reporter ¶
type Reporter interface {
Info(format string, args ...any)
Completed(format string, args ...any)
Warn(format string, args ...any)
NewProgressTracker(jobs []string) ProgressTracker
Phase(label string) report.Phase
}
Reporter is the narrow output surface the pkg layer renders through; the App supplies the real implementation and tests inject Discard. Completion is reported in two modes: Completed for an operation that finishes instantly (e.g. uninstall, a directory removal), and Phase for one with duration whose Done call reports the finished result.
var Discard Reporter = discardReporter{}
Click to show internal directories.
Click to hide internal directories.