flags

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePolicies

func CreatePolicies(policyScopeMap PolicyScopeMap, policyEventsMap PolicyEventMap, newBinary bool) (*policy.Policies, error)

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

func GetHelpString

func GetHelpString(key string) string

func InvalidEventError

func InvalidEventError(event string) error

func InvalidEventExcludeError

func InvalidEventExcludeError(event string) error

func InvalidFilterFlagFormat

func InvalidFilterFlagFormat(expression string) error

func InvalidFlagEmpty

func InvalidFlagEmpty() error

func InvalidFlagOperator

func InvalidFlagOperator(expression string) error

func InvalidFlagValue

func InvalidFlagValue(expression string) error

func InvalidScopeOptionError

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 PrepareFilterMapsFromPolicies

func PrepareFilterMapsFromPolicies(policies []v1beta1.PolicyFile) (PolicyScopeMap, PolicyEventMap, error)

PrepareFilterMapsForPolicies prepares the scope and events PolicyFilterMap for the policies

func PrepareLogger

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)

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

Types

type PolicyEventMap

type PolicyEventMap map[int]policyEvents

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

func PrepareEventMapFromFlags

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

type PolicyScopeMap

type PolicyScopeMap map[int]policyScopes

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

func PrepareScopeMapFromFlags

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

type PrepareOutputResult

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

func PrepareOutput

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

func TrackerEbpfPrepareOutput

func TrackerEbpfPrepareOutput(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