config

package
v0.2.218 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const NamespaceEnvVar = "NAMESPACE_NAME"
View Source
const NodeNameEnvVar = "NODE_NAME"
View Source
const PodNameEnvVar = "POD_NAME"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Exporters                exporters.ExportersConfig `mapstructure:"exporters"`
	InitialDelay             time.Duration             `mapstructure:"initialDelay"`
	MaxSniffingTime          time.Duration             `mapstructure:"maxSniffingTimePerContainer"`
	UpdateDataPeriod         time.Duration             `mapstructure:"updateDataPeriod"`
	MaxDelaySeconds          int                       `mapstructure:"maxDelaySeconds"`
	MaxJitterPercentage      int                       `mapstructure:"maxJitterPercentage"`
	MaxImageSize             int64                     `mapstructure:"maxImageSize"`
	MaxSBOMSize              int                       `mapstructure:"maxSBOMSize"`
	EnableFullPathTracing    bool                      `mapstructure:"fullPathTracingEnabled"`
	EnableApplicationProfile bool                      `mapstructure:"applicationProfileServiceEnabled"`
	EnableMalwareDetection   bool                      `mapstructure:"malwareDetectionEnabled"`
	EnablePrometheusExporter bool                      `mapstructure:"prometheusExporterEnabled"`
	EnableRuntimeDetection   bool                      `mapstructure:"runtimeDetectionEnabled"`
	EnableHttpDetection      bool                      `mapstructure:"httpDetectionEnabled"`
	EnableNetworkTracing     bool                      `mapstructure:"networkServiceEnabled"`
	EnableNodeProfile        bool                      `mapstructure:"nodeProfileServiceEnabled"`
	NodeProfileInterval      time.Duration             `mapstructure:"nodeProfileInterval"`
	EnableSeccomp            bool                      `mapstructure:"seccompServiceEnabled"`
	ExcludeNamespaces        []string                  `mapstructure:"excludeNamespaces"`
	IncludeNamespaces        []string                  `mapstructure:"includeNamespaces"`
	EnableSbomGeneration     bool                      `mapstructure:"sbomGenerationEnabled"`
	NamespaceName            string                    `mapstructure:"namespaceName"`
	NodeName                 string                    `mapstructure:"nodeName"`
	PodName                  string                    `mapstructure:"podName"`
}

func LoadConfig

func LoadConfig(path string) (Config, error)

LoadConfig reads configuration from file or environment variables.

func (*Config) SkipNamespace added in v0.2.101

func (c *Config) SkipNamespace(ns string) bool

Jump to

Keyboard shortcuts

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