Documentation ¶
Overview ¶
Package hibernation is responsible for the agent in hibernate mode.
Package hibernation is responsible for the agent in hibernate mode. It depends on health pings in an exponential backoff to check if the agent needs to move to active mode.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteHibernation ¶
func ExecuteHibernation(m *Hibernate) health.AgentState
ExecuteHibernation Starts the hibernate mode by blocking agent start and by scheduling health pings
Types ¶
type Hibernate ¶
type Hibernate struct {
// contains filtered or unexported fields
}
Hibernate holds information about the current agent state
func NewHibernateMode ¶
func NewHibernateMode(healthModule *health.HealthCheck, context context.T) *Hibernate
NewHibernateMode creates an object of type NewHibernateMode
Click to show internal directories.
Click to hide internal directories.