Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BackoffMaxTime time.Duration
BackoffMaxTime is the maximum time for which data gatherers will be retried
View Source
var ConfigFilePath string
ConfigFilePath is where the agent will try to load the configuration from
View Source
var CredentialsPath string
CredentialsPath is where the agent will try to loads the credentials. (Experimental)
View Source
var InputPath string
InputPath is where the agent will read data from instead of gathering from clusters if specified
View Source
var OneShot bool
OneShot flag causes agent to run once
View Source
var OutputPath string
OutputPath is where the agent will write data to locally if specified
View Source
var Period time.Duration
Period is the time waited between scans
View Source
var StrictMode bool
StrictMode flag causes the agent to fail at the first attempt
Functions ¶
Types ¶
type Config ¶
type Config struct { Schedule string `yaml:"schedule"` Period time.Duration `yaml:"period"` // Deprecated: Endpoint is being replaced with Server. Endpoint Endpoint `yaml:"endpoint"` // Server is the base url for the Preflight server. // It defaults to https://preflight.jetstack.io. Server string `yaml:"server"` // OrganizationID within Preflight that will receive the data. OrganizationID string `yaml:"organization_id"` // ClusterID is the cluster that the agent is scanning. ClusterID string `yaml:"cluster_id"` DataGatherers []dataGatherer `yaml:"data-gatherers"` // InputPath replaces DataGatherers with input data file InputPath string `yaml:"input-path"` // OutputPath replaces Server with output data file OutputPath string `yaml:"output-path"` }
Config wraps the options for a run of the agent.
func ParseConfig ¶
ParseConfig reads config into a struct used to configure running agents
Click to show internal directories.
Click to hide internal directories.