config

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 7 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 {
	Url                           string
	ProjectId                     string
	ClusterName                   string
	OutfileName                   string
	LogfileName                   string
	PollInterval                  time.Duration
	LagInterval                   time.Duration
	MaxAuditEventsBatch           int
	PrometheusPort                int
	ApiPort                       int
	LogLevel                      string
	SupressObjectConversionErrors bool
	// contains filtered or unexported fields
}

func New

func New(configDir string, commandLine *pflag.FlagSet) (*Config, error)

func (*Config) LoadFile

func (c *Config) LoadFile(configDir string) error

func (*Config) LogSettings

func (c *Config) LogSettings()

func (*Config) UpdateValues

func (c *Config) UpdateValues()

Jump to

Keyboard shortcuts

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