Documentation
¶
Index ¶
Constants ¶
const SupportsIsolationCommand = daemon.SupportsIsolationCommand
SupportsIsolationCommand is the subcommand an agent binary answers to say whether it can operate an isolation mode. The daemon runs it on an agent upgrade candidate, and the recovery script on the last-good binary, before either is allowed to run a node in a mode other than nspawn. A binary that predates the subcommand fails it, which is the answer wanted: it cannot operate those modes.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandContext ¶
CommandContext holds cross-cutting configuration shared by all agent subcommands. It mirrors the pattern used in forge (see hack/cmd/forge/forge/cmd/common.go) but carries only the fields relevant to the agent: logging configuration.
Persistent flags are bound directly to this struct's exported fields in Run(), and Setup() is called inside each subcommand's RunE — after cobra has finished parsing — to initialize the Logger.
func (*CommandContext) Setup ¶
func (c *CommandContext) Setup()
Setup initializes the Logger from the current flag values.
Source Files
¶
- access.go
- agentupgrade.go
- allocation_launch_check.go
- bootstrap.go
- cmd.go
- config.go
- context.go
- daemon.go
- isolation_reprovision.go
- modes.go
- node_lifecycle.go
- nspawn_config.go
- nspawn_lifecycle.go
- preflight.go
- reset.go
- stageplan.go
- stageplan_container.go
- stageplan_hostnode.go
- stageplan_none.go
- stageplan_nspawn.go
- start.go
- supports_isolation.go
- version.go