config

package
v0.0.225 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CleanupInterval            time.Duration `mapstructure:"cleanupInterval"`
	DefaultNamespace           string        `mapstructure:"defaultNamespace"`
	DisableVirtualCRDs         bool          `mapstructure:"disableVirtualCRDs"`
	ExcludeJsonPaths           []string      `mapstructure:"excludeJsonPaths"`
	MaxApplicationProfileSize  int           `mapstructure:"maxApplicationProfileSize"`
	MaxNetworkNeighborhoodSize int           `mapstructure:"maxNetworkNeighborhoodSize"`
	MaxSniffingTime            time.Duration `mapstructure:"maxSniffingTimePerContainer"`
	RateLimitPerClient         float64       `mapstructure:"rateLimitPerClient"`
	RateLimitTotal             int           `mapstructure:"rateLimitTotal"`
	ServerBindPort             int           `mapstructure:"serverBindPort"`
	TlsClientCaFile            string        `mapstructure:"tlsClientCaFile"`
	TlsServerCertFile          string        `mapstructure:"tlsServerCertFile"`
	TlsServerKeyFile           string        `mapstructure:"tlsServerKeyFile"`

	// New fields for per-kind queue/worker/object size config
	KindQueues           map[string]KindQueueConfig `mapstructure:"kindQueues"`
	DefaultQueueLength   int                        `mapstructure:"defaultQueueLength"`
	DefaultWorkerCount   int                        `mapstructure:"defaultWorkerCount"`
	DefaultMaxObjectSize int                        `mapstructure:"defaultMaxObjectSize"`

	// Debugging
	QueueManagerEnabled       bool `mapstructure:"queueManagerEnabled"`
	QueueTimeoutPrint         bool `mapstructure:"queueTimeoutPrint"`
	QueueTimeout              int  `mapstructure:"queueTimeout"`
	QueueProcessingStatsPrint bool `mapstructure:"queueProcessingStatsPrint"`
}

func LoadConfig

func LoadConfig(path string) (Config, error)

LoadConfig reads configuration from file or environment variables.

type KindQueueConfig added in v0.0.199

type KindQueueConfig struct {
	QueueLength   int `mapstructure:"queueLength"`
	WorkerCount   int `mapstructure:"workerCount"`
	MaxObjectSize int `mapstructure:"maxObjectSize"`
}

Jump to

Keyboard shortcuts

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