resource

package
v1.1.82 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedAgentType = errors.New(1000, "unsupported agent type")
)

Errors related to agent resource

Functions

This section is empty.

Types

type EventSyncCache added in v1.1.61

type EventSyncCache interface {
	RebuildCache()
}

type Manager

type Manager interface {
	OnConfigChange(cfg config.CentralConfig, apicClient apic.Client)
	GetAgentResource() *apiv1.ResourceInstance
	SetAgentResource(agentResource *apiv1.ResourceInstance)
	FetchAgentResource() error
	UpdateAgentStatus(status, prevStatus, message string) error
	AddUpdateAgentDetails(key, value string)
	SetRebuildCacheFunc(rebuildCache EventSyncCache)
}

Manager - interface to manage agent resource

func NewAgentResourceManager

func NewAgentResourceManager(cfg config.CentralConfig, apicClient executeAPIClient, agentResourceChangeHandler func()) (Manager, error)

NewAgentResourceManager - Create a new agent resource manager

Jump to

Keyboard shortcuts

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