flags

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 22 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 PolicyFilterMap, 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 InvalidSetError

func InvalidSetError(set string) error

func PrepareCache

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

func PrepareCapabilities

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

func PrepareCapture

func PrepareCapture(captureSlice []string, newBinary bool) (config.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 PolicyFilterMap added in v0.16.0

type PolicyFilterMap map[int]policyFilters

PolicyFilterMap maps policy id to its pre-parsed filter flag fields

func PrepareFilterMapFromFlags added in v0.13.0

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

func PrepareFilterMapFromPolicies added in v0.13.0

func PrepareFilterMapFromPolicies(policies []policy.PolicyFile) (PolicyFilterMap, error)

PrepareFilterMapForPolicies prepares the PolicyFilterMap for the policies

type PrepareOutputResult added in v0.16.0

type PrepareOutputResult struct {
	TraceeConfig   *config.OutputConfig
	PrinterConfigs []config.PrinterConfig
}

func PrepareOutput

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

func TraceeEbpfPrepareOutput added in v0.12.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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