agentconfigupdater

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifold

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold defines a simple start function which runs after the API connection has come up. If the machine agent is a controller, it grabs the state serving info over the API and records it to agent configuration, and then stops.

func NewWorker

func NewWorker(config WorkerConfig) (worker.Worker, error)

NewWorker creates a new agent config updater worker.

Types

type ManifoldConfig

type ManifoldConfig struct {
	AgentName      string
	APICallerName  string
	CentralHubName string
	TraceName      string
	Logger         logger.Logger
}

ManifoldConfig provides the dependencies for the agent config updater manifold.

type WorkerConfig

type WorkerConfig struct {
	Agent                              coreagent.Agent
	Hub                                *pubsub.StructuredHub
	MongoProfile                       mongo.MemoryProfile
	JujuDBSnapChannel                  string
	QueryTracingEnabled                bool
	QueryTracingThreshold              time.Duration
	OpenTelemetryEnabled               bool
	OpenTelemetryEndpoint              string
	OpenTelemetryInsecure              bool
	OpenTelemetryStackTraces           bool
	OpenTelemetrySampleRatio           float64
	OpenTelemetryTailSamplingThreshold time.Duration
	ObjectStoreType                    objectstore.BackendType
	Logger                             logger.Logger
}

WorkerConfig contains the information necessary to run the agent config updater worker.

func (*WorkerConfig) Validate

func (c *WorkerConfig) Validate() error

Validate ensures that the required values are set in the structure.

Jump to

Keyboard shortcuts

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