Documentation
¶
Overview ¶
Package actions holds CCL business logic that is independent of command parsing: pure, testable functions over config types.
Index ¶
Constants ¶
View Source
const DoctorNetTimeout = 5 * time.Second
DoctorNetTimeout bounds each reachability HEAD probe (--check-net).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResult ¶
CheckResult is the outcome of one diagnostic check on one provider. Fields are derived from logic outcomes only — never from credential values.
func ProbeReachability ¶
func ProbeReachability(ctx context.Context, client *http.Client, name string, p config.Provider) CheckResult
ProbeReachability sends an unauthenticated HEAD to the provider's BaseURL and classifies reachability. Any HTTP response (incl. 4xx/5xx) means the host is live → PASS. Timeout, DNS, or transport error → WARN. NEVER attach auth credentials to this request.
Click to show internal directories.
Click to hide internal directories.