agent

package
v1.3.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 39 Imported by: 0 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

This section is empty.

Functions

This section is empty.

Types

type Agent

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

func New

func New(log *log.PrefixLogger, config *agent_config.Config, configFile string, opts ...AgentOption) *Agent

New creates a new agent.

func (*Agent) GetLogPrefix

func (a *Agent) GetLogPrefix() string

func (*Agent) Run

func (a *Agent) Run(ctx context.Context) error

type AgentOption added in v1.2.0

type AgentOption func(*Agent)

AgentOption is a function that configures an Agent

func WithExecuter added in v1.2.0

func WithExecuter(exec executer.Executer) AgentOption

WithExecuter sets a custom executer for the agent (e.g., for testing). This allows tests to inject a safe executer that prevents dangerous commands from executing.

Directories

Path Synopsis
Package client is a generated GoMock package.
Package client is a generated GoMock package.
applications
Package applications is a generated GoMock package.
Package applications is a generated GoMock package.
applications/console
Package console is a generated GoMock package.
Package console is a generated GoMock package.
applications/helm
Package helm provides utilities for working with Helm charts and rendered manifests.
Package helm provides utilities for working with Helm charts and rendered manifests.
applications/lifecycle
Package lifecycle is a generated GoMock package.
Package lifecycle is a generated GoMock package.
applications/provider
Package provider is a generated GoMock package.
Package provider is a generated GoMock package.
console
Package console is a generated GoMock package.
Package console is a generated GoMock package.
dependency
Package dependency is a generated GoMock package.
Package dependency is a generated GoMock package.
fileio
Package fileio is a generated GoMock package.
Package fileio is a generated GoMock package.
hook
Package hook is a generated GoMock package.
Package hook is a generated GoMock package.
image_pruning
Package imagepruning is a generated GoMock package.
Package imagepruning is a generated GoMock package.
lifecycle
Package lifecycle is a generated GoMock package.
Package lifecycle is a generated GoMock package.
os
Package os is a generated GoMock package.
Package os is a generated GoMock package.
policy
Package policy is a generated GoMock package.
Package policy is a generated GoMock package.
resource
Package resource is a generated GoMock package.
Package resource is a generated GoMock package.
spec
Package spec is a generated GoMock package.
Package spec is a generated GoMock package.
spec/audit
Package audit provides structured audit logging for device spec transitions.
Package audit provides structured audit logging for device spec transitions.
status
Package status is a generated GoMock package.
Package status is a generated GoMock package.
systemd
Package systemd is a generated GoMock package.
Package systemd is a generated GoMock package.
systeminfo
Package systeminfo is a generated GoMock package.
Package systeminfo is a generated GoMock package.
Package health provides health check functionality for the flightctl-agent.
Package health provides health check functionality for the flightctl-agent.
Package identity is a generated GoMock package.
Package identity is a generated GoMock package.

Jump to

Keyboard shortcuts

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