Documentation
¶
Overview ¶
Package bpf2go generate c to go struct
Index ¶
- func LoadKmeshCgroupSockWorkload() (*ebpf.CollectionSpec, error)
- func LoadKmeshCgroupSockWorkloadObjects(obj interface{}, opts *ebpf.CollectionOptions) error
- type KmeshCgroupSockWorkloadMapSpecs
- type KmeshCgroupSockWorkloadMaps
- type KmeshCgroupSockWorkloadObjects
- type KmeshCgroupSockWorkloadProgramSpecs
- type KmeshCgroupSockWorkloadPrograms
- type KmeshCgroupSockWorkloadSpecs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadKmeshCgroupSockWorkload ¶
func LoadKmeshCgroupSockWorkload() (*ebpf.CollectionSpec, error)
LoadKmeshCgroupSockWorkload returns the embedded CollectionSpec for KmeshCgroupSockWorkload.
func LoadKmeshCgroupSockWorkloadObjects ¶
func LoadKmeshCgroupSockWorkloadObjects(obj interface{}, opts *ebpf.CollectionOptions) error
LoadKmeshCgroupSockWorkloadObjects loads KmeshCgroupSockWorkload and converts it into a struct.
The following types are suitable as obj argument:
*KmeshCgroupSockWorkloadObjects *KmeshCgroupSockWorkloadPrograms *KmeshCgroupSockWorkloadMaps
See ebpf.CollectionSpec.LoadAndAssign documentation for details.
Types ¶
type KmeshCgroupSockWorkloadMapSpecs ¶
type KmeshCgroupSockWorkloadMapSpecs struct { KmeshBackend *ebpf.MapSpec `ebpf:"kmesh_backend"` KmeshEndpoint *ebpf.MapSpec `ebpf:"kmesh_endpoint"` KmeshFrontend *ebpf.MapSpec `ebpf:"kmesh_frontend"` KmeshService *ebpf.MapSpec `ebpf:"kmesh_service"` }
KmeshCgroupSockWorkloadMapSpecs contains maps before they are loaded into the kernel.
It can be passed ebpf.CollectionSpec.Assign.
type KmeshCgroupSockWorkloadMaps ¶
type KmeshCgroupSockWorkloadMaps struct { KmeshBackend *ebpf.Map `ebpf:"kmesh_backend"` KmeshEndpoint *ebpf.Map `ebpf:"kmesh_endpoint"` KmeshFrontend *ebpf.Map `ebpf:"kmesh_frontend"` KmeshService *ebpf.Map `ebpf:"kmesh_service"` }
KmeshCgroupSockWorkloadMaps contains all maps after they have been loaded into the kernel.
It can be passed to LoadKmeshCgroupSockWorkloadObjects or ebpf.CollectionSpec.LoadAndAssign.
func (*KmeshCgroupSockWorkloadMaps) Close ¶
func (m *KmeshCgroupSockWorkloadMaps) Close() error
type KmeshCgroupSockWorkloadObjects ¶
type KmeshCgroupSockWorkloadObjects struct { KmeshCgroupSockWorkloadPrograms KmeshCgroupSockWorkloadMaps }
KmeshCgroupSockWorkloadObjects contains all objects after they have been loaded into the kernel.
It can be passed to LoadKmeshCgroupSockWorkloadObjects or ebpf.CollectionSpec.LoadAndAssign.
func (*KmeshCgroupSockWorkloadObjects) Close ¶
func (o *KmeshCgroupSockWorkloadObjects) Close() error
type KmeshCgroupSockWorkloadProgramSpecs ¶
type KmeshCgroupSockWorkloadProgramSpecs struct {
CgroupConnect4Prog *ebpf.ProgramSpec `ebpf:"cgroup_connect4_prog"`
}
KmeshCgroupSockWorkloadSpecs contains programs before they are loaded into the kernel.
It can be passed ebpf.CollectionSpec.Assign.
type KmeshCgroupSockWorkloadPrograms ¶
type KmeshCgroupSockWorkloadPrograms struct {
CgroupConnect4Prog *ebpf.Program `ebpf:"cgroup_connect4_prog"`
}
KmeshCgroupSockWorkloadPrograms contains all programs after they have been loaded into the kernel.
It can be passed to LoadKmeshCgroupSockWorkloadObjects or ebpf.CollectionSpec.LoadAndAssign.
func (*KmeshCgroupSockWorkloadPrograms) Close ¶
func (p *KmeshCgroupSockWorkloadPrograms) Close() error
type KmeshCgroupSockWorkloadSpecs ¶
type KmeshCgroupSockWorkloadSpecs struct { KmeshCgroupSockWorkloadProgramSpecs KmeshCgroupSockWorkloadMapSpecs }
KmeshCgroupSockWorkloadSpecs contains maps and programs before they are loaded into the kernel.
It can be passed ebpf.CollectionSpec.Assign.