resource

package
v1.1.117 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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

Errors related to agent resource

Functions

func MergeComplianceAgentWithConfig added in v1.1.115

func MergeComplianceAgentWithConfig(agentRes *v1.ResourceInstance, centralCfg config.CentralConfig)

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)
	RegisterHandler(handler interface{})
	GetHandler() interface{}
}

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