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 {
report.Basic
NewProgressTracker(jobs []string) ProgressTracker
Phase(format string, args ...any) report.Phase
}
Reporter is the narrow output surface the pkg layer renders through; the App supplies the real implementation and tests inject Discard. Every operation — instant or durational — is reported through Phase: begin it with Phase, then call Done or Fail on the returned report.Phase when the work finishes.
var Discard Reporter = discardReporter{}
Click to show internal directories.
Click to hide internal directories.