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 // GetConfigID returns the value of config_id GetConfigID() 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 // IsHaIntegration return true if it's an HA integration. IsHaIntegration(integrationName string) bool }
Component is the component type.
Click to show internal directories.
Click to hide internal directories.