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
Click to show internal directories.
Click to hide internal directories.