Documentation
¶
Index ¶
- Constants
- func CreateOutputFile(path string) (*os.File, error)
- func CreatePolicies(policyScopeMap PolicyScopeMap, policyEventsMap PolicyEventMap, newBinary bool) ([]*policy.Policy, error)
- func DuplicateOutputPathError(path string) error
- func EmptyOutputFlagError(flagType string) error
- func GetHelpString(key string) string
- func InvalidCaptureOptionError() error
- 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 InvalidLogOptionError(opt, details string) error
- func InvalidLogOptionValueError(opt, details string) error
- func InvalidOutputFlagError(flag string) error
- func InvalidOutputOptionError(option string) error
- func InvalidOutputURIError(flag, uri string) error
- func InvalidScopeOptionError(expr string, newBinary bool) error
- func NoneOutputPathError() error
- func PrepareCapabilities(capsSlice []string) (config.CapabilitiesConfig, error)
- func PrepareCapture(captureSlice []string, newBinary bool) (config.CaptureConfig, error)
- func PrepareDnsCache(cacheSlice []string) (dns.Config, error)
- func PrepareFilterMapsFromPolicies(policies []k8s.PolicyInterface) (PolicyScopeMap, PolicyEventMap, error)
- func PrepareLogger(logOptions []string, newBinary bool) (logger.LoggingConfig, error)
- func PreparePrinterConfig(printerKind string, outputPath string) (config.PrinterConfig, error)
- func PrepareProcTree(cacheSlice []string) (process.ProcTreeConfig, error)
- func PrintAndExitIfHelp(ctx *cli.Context)
- func UnrecognizedOutputFormatError(format string) error
- func UnsupportedContainerRuntimeError() error
- type CgroupFlagsResult
- type PolicyEventMap
- type PolicyScopeMap
- type PrepareOutputResult
Constants ¶
View Source
const ContainersFlag = "containers"
Variables ¶
This section is empty.
Functions ¶
func CreateOutputFile ¶ added in v0.23.0
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 EmptyOutputFlagError ¶ added in v0.24.0
func GetHelpString ¶ added in v0.14.0
func InvalidCaptureOptionError ¶ added in v0.24.0
func InvalidCaptureOptionError() error
Help-related error messages
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 InvalidLogOptionError ¶ added in v0.24.0
func InvalidLogOptionValueError ¶ added in v0.24.0
func InvalidOutputFlagError ¶ added in v0.24.0
func InvalidOutputOptionError ¶ added in v0.24.0
func InvalidOutputURIError ¶ added in v0.24.0
func InvalidScopeOptionError ¶ added in v0.17.0
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 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 ¶
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 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)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.