Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupAgentLogging ¶
func SetupAgentLogging(loggerContext corelogger.LoggerContext, config agent.Config)
Types ¶
type AgentConf ¶
type AgentConf interface { config.AgentConf // AddFlags injects common agent flags into f. AddFlags(f *gnuflag.FlagSet) // CheckArgs reports whether the given args are valid for this agent. CheckArgs(args []string) error }
AgentConf is a terribly confused interface.
Parts of it are a mixin for cmd.Command implementations; others are a mixin for agent.Agent implementations; others bridge the two. We should be aiming to separate the cmd responsibilities from the agent responsibilities.
func NewAgentConf ¶
NewAgentConf returns a new value that satisfies AgentConf
Click to show internal directories.
Click to hide internal directories.