Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetModeInBPFMap ¶
func SetPolicyMode ¶
func SetPolicyMode(tp tracingpolicy.TracingPolicy, m Mode) error
Types ¶
type Mode ¶
type Mode uint8
func ModeFromBPFMap ¶
func PolicyMode ¶
func PolicyMode(tp tracingpolicy.TracingPolicy) (Mode, error)
type PolicyConf ¶
type PolicyConf struct {
Mode Mode
}
NB: if we add more fields here, we would need to modify SetModeInBPFMap to do a read-modify operation to set the mode.
Click to show internal directories.
Click to hide internal directories.