Documentation
¶
Overview ¶
Package networkcommand owns explicit setup and read-only network diagnostics. It has no transfer engine authority: changing a host rule cannot change a task's selected connectivity mode or its retry behavior.
Index ¶
Constants ¶
const ( DoctorSynopsis = command.Name + " doctor network [--json]" SetupSynopsis = command.Name + " setup network [--skip|--remove] [--non-interactive] [--json]" )
DoctorSynopsis and SetupSynopsis are the single source of truth for network command lines shared between subcommand usage and top-level wind usage.
Variables ¶
This section is empty.
Functions ¶
func ObserveStartup ¶
func ObserveStartup(reader StartupReader, observe func(platformsetup.StartupReport))
ObserveStartup reads only installation history. Keeping this port separate from Check prevents diagnostics from leaking into ordinary transfer startup.
Types ¶
type Runner ¶
type Service ¶
type Service interface {
Check(context.Context) platformsetup.Report
Setup(context.Context, platformsetup.RuleAction, bool) (platformsetup.Operation, platformsetup.Report)
Skip() error
// SupportsSetup reports whether this host can apply executable firewall
// rules. Explicit setup prints the Windows consent preamble only when true.
SupportsSetup() bool
}
type StartupReader ¶
type StartupReader interface {
Startup() platformsetup.StartupReport
}