agent

package
v15.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkSource added in v15.4.0

type WorkSource interface {
	ID() string
	Configuration() proto.Message
}

type Worker added in v15.4.0

type Worker interface {
	Run(context.Context)
}

type WorkerFactory added in v15.4.0

type WorkerFactory interface {
	New(agentId int64, source WorkSource) Worker
	SourcesFromConfiguration(*agentcfg.AgentConfiguration) []WorkSource
}

type WorkerManager added in v15.4.0

type WorkerManager struct {
	// contains filtered or unexported fields
}

func NewWorkerManager added in v15.4.0

func NewWorkerManager(log *zap.Logger, workerFactory WorkerFactory) *WorkerManager

func (*WorkerManager) ApplyConfiguration added in v15.4.0

func (m *WorkerManager) ApplyConfiguration(agentId int64, cfg *agentcfg.AgentConfiguration) error

func (*WorkerManager) StopAllWorkers added in v15.4.0

func (m *WorkerManager) StopAllWorkers()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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