cmd

package
v1.1.33 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 24 Imported by: 18

Documentation

Index

Constants

View Source
const (
	EnvFileFlag           = "envFile"
	EnvFileFlagDesciption = "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) 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) 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 InitConfigHandler

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

InitConfigHandler - Handler to be invoked on config initialization

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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