cmd

package
v1.1.138 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 22 Imported by: 17 modules, 22 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

View Source
const (
	EnvFileFlag            = "envFile"
	EnvFileFlagDescription = "Path of the file with environment variables to override configuration"
)

Constants for cmd flags

Variables

View Source
var BuildAgentDescription string

BuildAgentDescription - agent name you wish to display in things like the version and help command

View Source
var BuildAgentName string

BuildAgentName - internal identification name for the agent

View Source
var BuildCommitSha string

BuildCommitSha -

View Source
var BuildDataPlaneType string

BuildDataPlaneType -

View Source
var BuildTime string

BuildTime -

View Source
var BuildVersion string

BuildVersion -

View Source
var SDKBuildVersion string

SDKBuildVersion -

Functions

func GetBuildDataPlaneType

func GetBuildDataPlaneType() string

GetBuildDataPlaneType - returns the BuildDataPlaneType

Types

type AgentRootCmd

type AgentRootCmd interface {
	RootCmd() *cobra.Command
	Execute() error

	// Get the agentType
	GetAgentType() config.AgentType
	AddCommand(*cobra.Command)

	GetProperties() properties.Properties
}

AgentRootCmd - Root Command for the Agents

func NewCmd

func NewCmd(rootCmd *cobra.Command, exeName, desc string, initConfigHandler InitConfigHandler, commandHandler CommandHandler, agentType config.AgentType, opts ...NewCommandOption) AgentRootCmd

NewCmd - Creates a new Agent Root Command using existing cmd

func NewRootCmd

func NewRootCmd(exeName, desc string, initConfigHandler InitConfigHandler, commandHandler CommandHandler, agentType config.AgentType, opts ...NewCommandOption) AgentRootCmd

NewRootCmd - Creates a new Agent Root Command

type AgentVersionCheckJob

type AgentVersionCheckJob struct {
	jobs.Job
	// contains filtered or unexported fields
}

AgentVersionCheckJob - polls for agent versions

func NewAgentVersionCheckJob

func NewAgentVersionCheckJob(cfg config.CentralConfig) (*AgentVersionCheckJob, error)

NewAgentVersionCheckJob - creates a new agent version check job structure

func (*AgentVersionCheckJob) Execute

func (avj *AgentVersionCheckJob) Execute() error

Execute - run agent version check job one time

func (*AgentVersionCheckJob) Ready

func (avj *AgentVersionCheckJob) Ready() bool

Ready -

func (*AgentVersionCheckJob) Status

func (avj *AgentVersionCheckJob) Status() error

Status -

type CommandHandler

type CommandHandler func() error

CommandHandler - Root command execution handler

type FinalizeAgentInitHandler added in v1.1.105

type FinalizeAgentInitHandler func() error

type InitConfigHandler

type InitConfigHandler func(centralConfig config.CentralConfig) (interface{}, error)

InitConfigHandler - Handler to be invoked on config initialization

type NewCommandOption added in v1.1.105

type NewCommandOption func(*agentRootCommand)

func WithFinalizeAgentInitFunc added in v1.1.105

func WithFinalizeAgentInitFunc(f FinalizeAgentInitHandler) NewCommandOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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