hibernation

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 3

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

Directories

Path Synopsis
Code generated by mockery v2.9.4.
Code generated by mockery v2.9.4.

Jump to

Keyboard shortcuts

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