config

package
v0.0.0-...-0e5b682 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Verbose                 = "VERBOSE"
	ListeningPort           = "LISTENING_PORT"
	GrypeAddress            = "GRYPE_ADDR"
	KlarTrace               = "KLAR_TRACE"
	KlarResultServicePath   = "KLAR_RESULT_SERVICE_PATH"
	DockleImageName         = "DOCKLE_IMAGE_NAME"
	DockleTimeoutSec        = "DOCKLE_TIMEOUT_SEC"
	DockleResultServicePath = "DOCKLE_RESULT_SERVICE_PATH"
	ResultListenPort        = "RESULT_LISTEN_PORT"
	ScannerHttpsProxy       = "SCANNER_HTTPS_PROXY"
	ScannerHttpProxy        = "SCANNER_HTTP_PROXY"
	CredsSecretNamespace    = "CREDS_SECRET_NAMESPACE"
)
View Source
const (
	MaxParallelism        = "MAX_PARALLELISM"
	TargetNamespace       = "TARGET_NAMESPACE"
	SeverityThreshold     = "SEVERITY_THRESHOLD"
	IgnoreNamespaces      = "IGNORE_NAMESPACES"
	JobResultTimeout      = "JOB_RESULT_TIMEOUT"
	KlarImageName         = "KLAR_IMAGE_NAME"
	DeleteJobPolicy       = "DELETE_JOB_POLICY"
	ShouldScanDockerFile  = "SHOULD_SCAN_DOCKERFILE"
	ScannerServiceAccount = "SCANNER_SERVICE_ACCOUNT"
	RegistryInsecure      = "REGISTRY_INSECURE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Verbose                 bool
	WebappPort              string
	GrypeAddress            string
	KlarTrace               bool
	KlarResultServicePath   string
	DockleImageName         string
	DockleTimeoutSec        string
	DockleResultServicePath string
	ResultListenPort        string
	ResultServiceAddress    string
	ScannerHttpsProxy       string
	ScannerHttpProxy        string
	CredsSecretNamespace    string
}

func LoadConfig

func LoadConfig() *Config

type DeleteJobPolicyType

type DeleteJobPolicyType string
const (
	DeleteJobPolicyAll        DeleteJobPolicyType = "All"
	DeleteJobPolicyNever      DeleteJobPolicyType = "Never"
	DeleteJobPolicySuccessful DeleteJobPolicyType = "Successful"
)

func (DeleteJobPolicyType) IsValid

func (dj DeleteJobPolicyType) IsValid() bool

type ScanConfig

type ScanConfig struct {
	MaxScanParallelism    int
	TargetNamespace       string
	SeverityThreshold     string
	KlarImageName         string
	IgnoredNamespaces     []string
	JobResultTimeout      time.Duration
	DeleteJobPolicy       DeleteJobPolicyType
	ShouldScanDockerFile  bool
	ScannerServiceAccount string
	RegistryInsecure      string
}

func LoadScanConfig

func LoadScanConfig() *ScanConfig

Jump to

Keyboard shortcuts

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