flags

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePolicies added in v0.13.0

func CreatePolicies(filterMap FilterMap, newBinary bool) (*policy.Policies, error)

func GetHelpString added in v0.14.0

func GetHelpString(key string, newBinary bool) string

func InvalidEventError

func InvalidEventError(event string) error

func InvalidEventExcludeError

func InvalidEventExcludeError(event string) error

func InvalidFilterOptionError

func InvalidFilterOptionError(expr string, newBinary bool) error

func InvalidFlagEmpty added in v0.13.0

func InvalidFlagEmpty() error

func InvalidFlagOperator added in v0.13.0

func InvalidFlagOperator(expression string) error

func InvalidFlagValue added in v0.13.0

func InvalidFlagValue(expression string) error

func InvalidLogOption added in v0.11.1

func InvalidLogOption(opt string, newBinary bool) error

func InvalidSetError

func InvalidSetError(set string) error

func PrepareCache

func PrepareCache(cacheSlice []string) (queue.CacheConfig, error)

func PrepareCapabilities

func PrepareCapabilities(capsSlice []string) (tracee.CapabilitiesConfig, error)

func PrepareCapture

func PrepareCapture(captureSlice []string, newBinary bool) (tracee.CaptureConfig, error)

func PrepareContainers

func PrepareContainers(containerFlags []string) (runtime.Sockets, error)

func PrepareLogger added in v0.11.0

func PrepareLogger(logOptions []string, newBinary bool) (logger.LoggingConfig, error)

func PrepareRego

func PrepareRego(regoSlice []string) (rego.Config, error)

func PrintAndExitIfHelp

func PrintAndExitIfHelp(ctx *cli.Context, newBinary bool)

Types

type FilterMap added in v0.13.0

type FilterMap map[int][]*filterFlag

FilterMap holds pre-parsed filter flag fields

func PrepareFilterMapFromFlags added in v0.13.0

func PrepareFilterMapFromFlags(filtersArr []string) (FilterMap, error)

func PrepareFilterMapFromPolicies added in v0.13.0

func PrepareFilterMapFromPolicies(policies []PolicyFile) (FilterMap, error)

PrepareFilterMapForPolicies prepares the FilterMap for the policies

type OutputConfig

type OutputConfig struct {
	TraceeConfig   *tracee.OutputConfig
	PrinterConfigs []printer.Config
}

func PrepareOutput

func PrepareOutput(outputSlice []string, newBinary bool) (OutputConfig, error)

func TraceeEbpfPrepareOutput added in v0.12.0

func TraceeEbpfPrepareOutput(outputSlice []string, newBinary bool) (OutputConfig, error)

type PolicyFile added in v0.13.0

type PolicyFile struct {
	Name          string   `yaml:"name"`
	Description   string   `yaml:"description"`
	Scope         []string `yaml:"scope"`
	DefaultAction string   `yaml:"defaultAction"`
	Rules         []Rule   `yaml:"rules"`
}

PolicyFile is the structure of the policy file

type Rule added in v0.13.0

type Rule struct {
	Event  string   `yaml:"event"`
	Filter []string `yaml:"filter"`
	Action string   `yaml:"action"`
}

Rule is the structure of the rule in the policy file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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