Documentation ¶
Index ¶
- type BpfEnforcer
- func (enforcer *BpfEnforcer) Close()
- func (enforcer *BpfEnforcer) DeleteBpfProfile(profileName string) error
- func (enforcer *BpfEnforcer) IsBpfProfileExist(profileName string) bool
- func (enforcer *BpfEnforcer) Run(stopCh <-chan struct{})
- func (enforcer *BpfEnforcer) SaveAndApplyBpfProfile(profileName string, bpfContent varmor.BpfContent) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BpfEnforcer ¶
type BpfEnforcer struct { TaskCreateCh chan varmortypes.ContainerInfo TaskDeleteCh chan varmortypes.ContainerInfo TaskDeleteSyncCh chan bool // contains filtered or unexported fields }
func NewBpfEnforcer ¶
func NewBpfEnforcer(log logr.Logger) (*BpfEnforcer, error)
NewBpfEnforcer create a BpfEnforcer, and initialize the BPF settings and resources
func (*BpfEnforcer) Close ¶ added in v0.5.5
func (enforcer *BpfEnforcer) Close()
Close close the BPF resources
func (*BpfEnforcer) DeleteBpfProfile ¶
func (enforcer *BpfEnforcer) DeleteBpfProfile(profileName string) error
DeleteBpfProfile unload the BPF profile from kernel, then delete it from the cache
func (*BpfEnforcer) IsBpfProfileExist ¶
func (enforcer *BpfEnforcer) IsBpfProfileExist(profileName string) bool
func (*BpfEnforcer) Run ¶
func (enforcer *BpfEnforcer) Run(stopCh <-chan struct{})
func (*BpfEnforcer) SaveAndApplyBpfProfile ¶
func (enforcer *BpfEnforcer) SaveAndApplyBpfProfile(profileName string, bpfContent varmor.BpfContent) error
SaveAndApplyBpfProfile save the BPF profile to the cache, and update it to the kernel for the existing BPF profile
Click to show internal directories.
Click to hide internal directories.