Documentation ¶
Index ¶
- func SetEbpfMap(m EbpfMap)
- type EbpfMap
- type Map
- func (m *Map) CreateAndPinArrayMap(dir, name string, defaultKV []ebpf.MapKV) (err error)
- func (m *Map) LookUpMapValue(pinPath string, key, value interface{}) (err error)
- func (m *Map) UnpinArrayMap(pinPath string) (err error)
- func (m *Map) UpdateMapValue(pinPath string, key, value interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetEbpfMap ¶
func SetEbpfMap(m EbpfMap)
Types ¶
type EbpfMap ¶
type EbpfMap interface { // CreateAndPinArrayMap create map with default set of key/value data // only supports map of "array" type, pinning of "pingByName" type // dir is the base path to pin map // $dir/$name is the path to pin map // If the map already existed, CreateAndPinArrayMap(dir, name string, defaultKV []ebpf.MapKV) (err error) // UnpinArrayMap removes the persisted state for the map from the BPF virtual filesystem UnpinArrayMap(pinPath string) (err error) // LookUpMapValue looks up the value of the key LookUpMapValue(pinPath string, key, value interface{}) (err error) // UpdateMapValue updates the value of the key UpdateMapValue(pinPath string, key, value interface{}) (err error) }
EbpfMap is an interface of ebpf map options.
func GetEbpfMap ¶
func GetEbpfMap() EbpfMap
type Map ¶
type Map struct{}
func (*Map) CreateAndPinArrayMap ¶
func (*Map) LookUpMapValue ¶
func (*Map) UnpinArrayMap ¶
func (*Map) UpdateMapValue ¶
Click to show internal directories.
Click to hide internal directories.