Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MetricsLabels []string `mapstructure:"cis-metrics-labels"`
ScanInterval time.Duration `mapstructure:"scan-interval"`
ScanJobNamespace string `mapstructure:"scan-job-namespace"`
ScanJobServiceAccount string `mapstructure:"scan-job-service-account"`
ScanNamespaces []string `mapstructure:"namespaces"`
ScanNamespaceExcludeRegexp *regexp.Regexp `mapstructure:"scan-namespace-exclude-regexp"`
ScanNamespaceIncludeRegexp *regexp.Regexp `mapstructure:"scan-namespace-include-regexp"`
ScanWorkloadResources []string `mapstructure:"scan-workload-resources"`
TrivyImage string `mapstructure:"trivy-image"`
TrivyCommand TrivyCommand `mapstructure:"trivy-command"`
ActiveScanJobLimit int `mapstructure:"active-scan-job-limit"`
}
type TrivyCommand ¶ added in v0.7.1
type TrivyCommand string
const ( FilesystemTrivyCommand TrivyCommand = "filesystem" RootfsTrivyCommand TrivyCommand = "rootfs" )
func (*TrivyCommand) UnmarshalText ¶ added in v0.7.1
func (c *TrivyCommand) UnmarshalText(text []byte) error
UnmarshalText unmarshals text to a trivy command.
Click to show internal directories.
Click to hide internal directories.