Documentation ¶
Overview ¶
Package haagent handles states for HA Agent feature.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component interface { // Enabled returns true if ha_agent.enabled is set to true Enabled() bool // GetGroup returns the value of ha_agent.group GetGroup() string // GetState returns current HA agent state GetState() State // SetLeader takes the leader agent hostname as input, if it matches the current agent hostname, // the state is set to active, otherwise standby. SetLeader(leaderAgentHostname string) // ShouldRunIntegration returns true if the integration should be run ShouldRunIntegration(integrationName string) bool }
Component is the component type.
Click to show internal directories.
Click to hide internal directories.