Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probe interface {
ID() string
Category() string
Run(context.Context, *ProbeEnv) ([]contract.DiagnosticItem, error)
}
Probe executes one doctor diagnostic check.
type ProbeFunc ¶
type ProbeFunc struct {
ProbeID string
ProbeCategory string
RunFunc func(context.Context, *ProbeEnv) ([]contract.DiagnosticItem, error)
}
ProbeFunc adapts a function into a Probe for extensions and tests.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry stores doctor probes and returns them sorted by ID.
type RunOptions ¶
type RunOptions struct {
Only []string
Exclude []string
Quiet bool
Timeout time.Duration
ProbeTimeout time.Duration
Env ProbeEnv
}
RunOptions controls doctor execution.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner executes registered probes in deterministic order.
func (*Runner) Run ¶
func (r *Runner) Run(ctx context.Context, opts RunOptions) ([]contract.DiagnosticItem, error)
Run executes every selected probe and sanitizes every returned DiagnosticItem.
Click to show internal directories.
Click to hide internal directories.