flags

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

View Source
const ContainersFlag = "containers"

Variables

This section is empty.

Functions

func CreateOutputFile added in v0.23.0

func CreateOutputFile(path string) (*os.File, error)

creates *os.File for the given path

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 DuplicateOutputPathError added in v0.24.0

func DuplicateOutputPathError(path string) error

func EmptyOutputFlagError added in v0.24.0

func EmptyOutputFlagError(flagType string) error

func GetHelpString added in v0.14.0

func GetHelpString(key string) string

func InvalidCaptureOptionError added in v0.24.0

func InvalidCaptureOptionError() error

Help-related error messages

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 InvalidLogOptionError added in v0.24.0

func InvalidLogOptionError(opt, details string) error

func InvalidLogOptionValueError added in v0.24.0

func InvalidLogOptionValueError(opt, details string) error

func InvalidOutputFlagError added in v0.24.0

func InvalidOutputFlagError(flag string) error

func InvalidOutputOptionError added in v0.24.0

func InvalidOutputOptionError(option string) error

func InvalidOutputURIError added in v0.24.0

func InvalidOutputURIError(flag, uri string) error

func InvalidScopeOptionError added in v0.17.0

func InvalidScopeOptionError(expr string, newBinary bool) error

func NoneOutputPathError added in v0.24.0

func NoneOutputPathError() 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 PrepareDnsCache(cacheSlice []string) (dns.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 PrepareLogger added in v0.11.0

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

func PreparePrinterConfig added in v0.23.0

func PreparePrinterConfig(printerKind string, outputPath string) (config.PrinterConfig, error)

func PrepareProcTree added in v0.18.0

func PrepareProcTree(cacheSlice []string) (process.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).

func UnrecognizedOutputFormatError added in v0.24.0

func UnrecognizedOutputFormatError(format string) error

func UnsupportedContainerRuntimeError added in v0.24.0

func UnsupportedContainerRuntimeError() error

Types

type CgroupFlagsResult added in v0.24.0

type CgroupFlagsResult struct {
	NoEnrich      bool
	Sockets       runtime.Sockets
	CgroupfsPath  string
	CgroupfsForce bool
}

func PrepareContainers

func PrepareContainers(containerFlags []string) (CgroupFlagsResult, error)

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) (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