config

package
v0.8.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 5 Imported by: 0

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"`
	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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL