Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultMutableFeatureGate is a mutable version of DefaultFeatureGate. // Only top-level commands/options setup should make use of this. DefaultMutableFeatureGate featuregate.MutableFeatureGate = featuregate.NewFeatureGate() // DefaultFeatureGate is a shared global FeatureGate. // Top-level commands/options setup that needs to modify this feature gate should use DefaultMutableFeatureGate. DefaultFeatureGate featuregate.FeatureGate = DefaultMutableFeatureGate )
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"`
ScanJobTTLSecondsAfterFinished int32 `mapstructure:"scan-job-ttl-seconds-after-finished"`
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"`
SkipScanPodWaitingReasons []string `mapstructure:"skip-scan-pod-waiting-reasons"`
TrivyImage string `mapstructure:"trivy-image"`
TrivyCommand TrivyCommand `mapstructure:"trivy-command"`
ActiveScanJobLimit int `mapstructure:"active-scan-job-limit"`
ReuseScanResults bool `mapstructure:"reuse-scan-results"`
}
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.