Documentation ¶
Index ¶
- func CreatePolicies(policyScopeMap PolicyScopeMap, policyEventsMap PolicyEventMap, newBinary bool) ([]*policy.Policy, error)
- func GetHelpString(key string) string
- func InvalidEventError(event string) error
- func InvalidEventExcludeError(event string) error
- func InvalidFilterFlagFormat(expression string) error
- func InvalidFlagEmpty() error
- func InvalidFlagOperator(expression string) error
- func InvalidFlagValue(expression string) error
- func InvalidScopeOptionError(expr string, newBinary bool) error
- func PrepareCache(cacheSlice []string) (queue.CacheConfig, error)
- func PrepareCapabilities(capsSlice []string) (config.CapabilitiesConfig, error)
- func PrepareCapture(captureSlice []string, newBinary bool) (config.CaptureConfig, error)
- func PrepareContainers(containerFlags []string) (runtime.Sockets, error)
- func PrepareDnsCache(cacheSlice []string) (dnscache.Config, error)
- func PrepareFilterMapsFromPolicies(policies []k8s.PolicyInterface) (PolicyScopeMap, PolicyEventMap, error)
- func PrepareGRPCServer(listenAddr string) (*grpc.Server, error)
- func PrepareLogger(logOptions []string, newBinary bool) (logger.LoggingConfig, error)
- func PrepareProcTree(cacheSlice []string) (proctree.ProcTreeConfig, error)
- func PrepareRego(regoSlice []string) (rego.Config, error)
- func PrintAndExitIfHelp(ctx *cli.Context)
- type PolicyEventMap
- type PolicyScopeMap
- type PrepareOutputResult
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 InvalidEventError ¶
func InvalidFilterFlagFormat ¶ added in v0.17.0
func InvalidFlagEmpty ¶ added in v0.13.0
func InvalidFlagEmpty() error
func InvalidFlagOperator ¶ added in v0.13.0
func InvalidFlagValue ¶ added in v0.13.0
func InvalidScopeOptionError ¶ added in v0.17.0
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 PrepareDnsCache ¶ added in v0.20.0
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 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 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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.