Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrorExitCode = 1 SuccessExitCode = 0 )
Variables ¶
This section is empty.
Functions ¶
func SeverityNames ¶ added in v0.1.0
func SeverityNames() []string
Types ¶
type Check ¶
type Check struct { Type checktypes.ChecktypeRef `yaml:"type"` Target string `yaml:"target"` Options map[string]interface{} `yaml:"options,omitempty"` Timeout *int `yaml:"timeout,omitempty"` AssetType string `yaml:"assetType,omitempty"` NewTarget string Id string Checktype *checktypes.Checktype }
type Conf ¶
type Conf struct { DockerBin string `yaml:"dockerBin"` GitBin string `yaml:"gitBin"` PullPolicy agentconfig.PullPolicy `yaml:"pullPolicy"` Vars map[string]string `yaml:"vars"` Repositories []string `yaml:"repositories"` Registries []Registry `yaml:"registries"` LogLevel logrus.Level `yaml:"logLevel"` Concurrency int `yaml:"concurrency"` IfName string `yaml:"ifName"` Exclude string `yaml:"exclude"` Include string `yaml:"include"` IncludeR *regexp.Regexp ExcludeR *regexp.Regexp Policy string }
type Config ¶
type Config struct { Conf Conf `yaml:"conf"` Reporting Reporting `yaml:"reporting,omitempty"` Checks []Check `yaml:"checks"` Targets []Target `yaml:"targets"` CheckTypes checktypes.Checktypes `yaml:"checkTypes"` Policies []Policy `yaml:"policies"` }
type Policy ¶ added in v0.1.0
type Policy struct { Name string `yaml:"name"` CheckTypes []PolicyCheck `yaml:"checks"` }
type PolicyCheck ¶ added in v0.1.0
type PolicyCheck struct { CheckType checktypes.ChecktypeRef `yaml:"type"` Options map[string]interface{} `yaml:"options,omitempty"` }
type Severity ¶ added in v0.1.0
type Severity int
func FindSeverityByScore ¶ added in v0.1.0
func Severities ¶ added in v0.1.0
func Severities() []Severity
func (Severity) Data ¶ added in v0.1.0
func (a Severity) Data() *SeverityData
func (*Severity) MarshalText ¶ added in v0.1.0
MarshalText returns string representation of a Severity instance.
func (*Severity) UnmarshalText ¶ added in v0.1.0
UnmarshalText creates a Severity from its string representation.
type SeverityData ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.