configuration

package
v0.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRulesFile string = "/etc/falco-talon/rules.yaml"
)

Variables

View Source
var (
	// Output of "git describe". The prerequisite is that the branch should be
	// tagged using the correct versioning strategy.
	GitVersion = "devel"
)

Base version information.

This is the fallback data used when version information from git is not provided via go ldflags (e.g. via Makefile).

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Notifiers        map[string]map[string]interface{}
	LogFormat        string
	KubeConfig       string
	ListenAddress    string
	RulesFile        string
	DefaultNotifiers []string
	ListenPort       int
	WatchRules       bool
	PrintAllEvents   bool
}

func CreateConfiguration

func CreateConfiguration(configFile string) *Configuration

func GetConfiguration

func GetConfiguration() *Configuration

func (*Configuration) GetDefaultNotifiers

func (c *Configuration) GetDefaultNotifiers() []string

type Info

type Info struct {
	GitVersion   string
	GitCommit    string
	GitTreeState string
	BuildDate    string
	GoVersion    string
	Compiler     string
	Platform     string
}

func GetVersionInfo

func GetVersionInfo() *Info

func (*Info) String

func (i *Info) String() string

String returns the string representation of the version info

Jump to

Keyboard shortcuts

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