config

package
v0.0.0-...-20e6130 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the current version of the app, generated at build time
	Version = "unknown"
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Master                 string
	KubeConfig             string
	FluentdRPCPort         int
	TemplatesDir           string
	OutputDir              string
	LogLevel               string
	FluentdLogLevel        string
	BufferMountFolder      string
	AnnotConfigmapName     string
	AnnotStatus            string
	DefaultConfigmapName   string
	IntervalSeconds        int
	Datasource             string
	CRDMigrationMode       bool
	FsDatasourceDir        string
	AllowFile              bool
	ID                     string
	FluentdValidateCommand string
	MetaKey                string
	MetaValues             string
	LabelSelector          string
	KubeletRoot            string
	Namespaces             []string
	NamespaceSelector      string
	PrometheusEnabled      bool
	MetricsPort            int
	AllowTagExpansion      bool
	AdminNamespace         string
	AllowLabel             string
	AllowLabelAnnotation   string

	ParsedMetaValues    map[string]string
	ParsedLabelSelector labels.Set
	ExecTimeoutSeconds  int
	ReadBytesLimit      int
	// contains filtered or unexported fields
}

Config is a project-wide configuration

func (*Config) GetLogLevel

func (cfg *Config) GetLogLevel() logrus.Level

func (*Config) ParseFlags

func (cfg *Config) ParseFlags(args []string) error

func (*Config) ParseFluentdLogLevel

func (cfg *Config) ParseFluentdLogLevel() (string, error)

ParseFluentdLogLevel takes a string level and returns the Fluentd log level constant.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate performs validation on the Config object nolint:gocognit

Jump to

Keyboard shortcuts

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