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 ¶
This section is empty.
Types ¶
type Hibernate ¶
type Hibernate struct {
// contains filtered or unexported fields
}
func NewHibernateMode ¶
func NewHibernateMode(healthModule health.IHealthCheck, context context.T) *Hibernate
NewHibernateMode creates an object of type NewHibernateMode
func (*Hibernate) ExecuteHibernation ¶
func (m *Hibernate) ExecuteHibernation(context context.T) health.AgentState
ExecuteHibernation Starts the hibernate mode by blocking agent start and by scheduling health pings
type IHibernate ¶
type IHibernate interface {
ExecuteHibernation(context context.T) health.AgentState
}
IHibernate holds information about the current agent state
Click to show internal directories.
Click to hide internal directories.