hibernation

package
v0.0.0-...-a9ed6da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL