configuration

package
v0.1.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 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"
	// SHA1 from git, output of $(git rev-parse HEAD)
	GitCommit = "unknown"
	// State of git tree, either "clean" or "dirty"
	GitTreeState = "unknown"
	// Build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ')
	BuildDate = "unknown"
)

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 AwsConfig

type AwsConfig struct {
	Region     string `mapstructure:"region"`
	AccessKey  string `mapstructure:"access_key"`
	SecretKey  string `mapstructure:"secret_key"`
	RoleArn    string `mapstructure:"role_arn"`
	ExternalID string `mapstructure:"external_id"`
}

type Configuration

type Configuration struct {
	Notifiers                      map[string]map[string]interface{} `mapstructure:"notifiers"`
	AwsConfig                      AwsConfig                         `mapstructure:"aws"`
	LogFormat                      string                            `mapstructure:"log_format"`
	KubeConfig                     string                            `mapstructure:"kubeconfig"`
	ListenAddress                  string                            `mapstructure:"listen_address"`
	RulesFiles                     []string                          `mapstructure:"rules_files"`
	DefaultNotifiers               []string                          `mapstructure:"default_notifiers"`
	ListenPort                     int                               `mapstructure:"listen_port"`
	DeduplicationTimeWindowSeconds int                               `mapstructure:"deduplication_time_window_seconds"`
	WatchRules                     bool                              `mapstructure:"watch_rules"`
	PrintAllEvents                 bool                              `mapstructure:"print_all_events"`
	DeduplicationLeaderLease       bool                              `mapstructure:"deduplication_leader_lease"`
}

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 GetInfo

func GetInfo() *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