Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Spinner *spinner.Spinner
Functions ¶
func LineBreakReplacer ¶
LineBreakReplacer replaces carriage return (\r), linefeed (\n), formfeed (\f) and other similar characters with a space.
func LogConfigState ¶ added in v0.3.0
func LogConfigState()
func SetLogFilter ¶ added in v0.4.0
Override the minmium log level.
func ValidateConfigPath ¶
ValidateConfigPath simply ensures the file exists
Types ¶
type ConfigVars ¶
type ConfigVars struct { // NOTE: Env and Defaults are ONLY available if corresponding logic is added to defaults.go and getters.go ServicePacks servicePacks `yaml:"ServicePacks"` CloudProviders cloudProviders `yaml:"CloudProviders"` OutputType string `yaml:"OutputType"` CucumberDir string `yaml:"CucumberDir"` AuditDir string `yaml:"AuditDir"` AuditEnabled string `yaml:"AuditEnabled"` LogLevel string `yaml:"LogLevel"` OverwriteHistoricalAudits string `yaml:"OverwriteHistoricalAudits"` AuthorisedContainerRegistry string `yaml:"AuthorisedContainerRegistry"` ProbeImage string `yaml:"ProbeImage"` ProbeExclusions []ProbeExclusion `yaml:"ProbeExclusions"` TagExclusions []string `yaml:"TagExclusions"` Tags string // set by flags VarsFile string // set by flags only NoSummary bool // set by flags only Silent bool // set by flags only }
ConfigVars contains all possible config vars
var Vars ConfigVars
Vars is a singleton instance of ConfigVars
func NewConfig ¶
func NewConfig(c string) (ConfigVars, error)
NewConfig overrides the current config.Vars values
func (*ConfigVars) GetTags ¶ added in v0.3.0
func (ctx *ConfigVars) GetTags() string
GetTags returns Tags, prioritising command line parameter over vars file
type ProbeExclusion ¶ added in v0.4.1
Click to show internal directories.
Click to hide internal directories.