flags

package
v0.22.5 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 25 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(policyScopeMap PolicyScopeMap, policyEventsMap PolicyEventMap, newBinary bool) ([]*policy.Policy, error)

CreatePolicies creates a Policies object from the scope and events maps.

func GetHelpString added in v0.14.0

func GetHelpString(key string) string

func InvalidEventError

func InvalidEventError(event string) error

func InvalidEventExcludeError

func InvalidEventExcludeError(event string) error

func InvalidFilterFlagFormat added in v0.17.0

func InvalidFilterFlagFormat(expression string) 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 InvalidScopeOptionError added in v0.17.0

func InvalidScopeOptionError(expr string, newBinary bool) 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 PrepareDnsCache added in v0.20.0

func PrepareDnsCache(cacheSlice []string) (dnscache.Config, error)

func PrepareFilterMapsFromPolicies added in v0.17.0

func PrepareFilterMapsFromPolicies(policies []k8s.PolicyInterface) (PolicyScopeMap, PolicyEventMap, error)

PrepareFilterMapsForPolicies prepares the scope and events PolicyFilterMap for the policies

func PrepareGRPCServer added in v0.18.0

func PrepareGRPCServer(listenAddr string) (*grpc.Server, error)

func PrepareLogger added in v0.11.0

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

func PrepareProcTree added in v0.18.0

func PrepareProcTree(cacheSlice []string) (proctree.ProcTreeConfig, error)

func PrepareRego

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

func PrintAndExitIfHelp

func PrintAndExitIfHelp(ctx *cli.Context)

PrintAndExitIfHelp checks if any of the help flags are set and prints the relevant help message. It is used only by the old binary (tracee-ebpf).

Types

type PolicyEventMap added in v0.17.0

type PolicyEventMap map[int]policyEvents

PolicyEventMap maps policy id to its pre-parsed event flag fields

func PrepareEventMapFromFlags added in v0.17.0

func PrepareEventMapFromFlags(eventsArr []string) (PolicyEventMap, error)

type PolicyScopeMap added in v0.17.0

type PolicyScopeMap map[int]policyScopes

PolicyScopeMap maps policy id to its pre-parsed scope flag fields

func PrepareScopeMapFromFlags added in v0.17.0

func PrepareScopeMapFromFlags(filtersArr []string) (PolicyScopeMap, error)

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