Documentation ¶
Index ¶
- func FlowOutputLog(flows []ebpfmap.Flow, out string, o ipfix.OutputLog) error
- func NewCommand() *cobra.Command
- func NewCommandAgent() *cobra.Command
- func NewCommandDependencyCheck() *cobra.Command
- func NewCommandDump() *cobra.Command
- func NewCommandEbpf() *cobra.Command
- func NewCommandEbpfCodeDump() *cobra.Command
- func NewCommandFlush() *cobra.Command
- func NewCommandIpfix() *cobra.Command
- func NewCommandIpfixDump() *cobra.Command
- func NewCommandIpfixTemplate() *cobra.Command
- func NewCommandMeter() *cobra.Command
- func NewCommandMeterAttach() *cobra.Command
- func NewCommandMeterDetach() *cobra.Command
- func NewCommandMeterStatus() *cobra.Command
- type FlowMeterByteCode
- type SystemCapability
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
func NewCommandAgent ¶ added in v0.0.6
func NewCommandDump ¶
func NewCommandEbpf ¶
func NewCommandEbpfCodeDump ¶
func NewCommandFlush ¶
func NewCommandIpfix ¶
func NewCommandIpfixDump ¶
func NewCommandIpfixTemplate ¶
func NewCommandMeter ¶
func NewCommandMeterAttach ¶
func NewCommandMeterDetach ¶
func NewCommandMeterStatus ¶
Types ¶
type FlowMeterByteCode ¶ added in v0.0.6
type FlowMeterByteCode struct { // AttachedTime indicates when the tc filter was created. AttachedTime time.Time // Digest is a Hash of Code. It is used to determine if the Bytecode // currently in use needs to be changed. // Code contains the source code of the BPF program. This is useful // to check the differences between versions, since the table entry // size is not embedded. Digest string // NetnsName indicates network namespace name like ns0, ns1, etc... // It's not include device information. // Currently we are expecting the name is not include special characters, // like .,:/-? NetnsName string // DeviceName indicates network interface name like eth0, eth1, etc... // It's not include namespace information // It is possible to include special characters like .-@ DeviceName string // InterfaceMaxFlowLimit will be mapped on follow // #define INTERFACE_MAX_FLOW_LIMIT 6 InterfaceMaxFlowLimit uint16 }
func DecodeFromBpfName ¶ added in v0.0.6
func DecodeFromBpfName(bpfname string) (*FlowMeterByteCode, error)
func DecodeFromFullpath ¶ added in v0.0.6
func DecodeFromFullpath(s string) (*FlowMeterByteCode, error)
func NewFlowMeterByteCode ¶ added in v0.0.6
func NewFlowMeterByteCode(netns, device string, lim uint16) (*FlowMeterByteCode, error)
func (FlowMeterByteCode) EncodeToFilename ¶ added in v0.0.6
func (v FlowMeterByteCode) EncodeToFilename() string
func (FlowMeterByteCode) SameDigest ¶ added in v0.0.6
func (v FlowMeterByteCode) SameDigest(bpfname string) (bool, error)
type SystemCapability ¶
type SystemCapability struct { ClangVersionCurrent string ClangVersionExpected string KernelVersionCurrent string KernelVersionExpected string Iproute2binVersionCurrent string Iproute2binVersionExpected string Iproute2lbpfVersionCurrent string Iproute2lbpfVersionExpected string }
func (SystemCapability) Capable ¶
func (sc SystemCapability) Capable() bool
func (SystemCapability) DumpToStdout ¶
func (sc SystemCapability) DumpToStdout()
func (*SystemCapability) Get ¶
func (sc *SystemCapability) Get() error
Click to show internal directories.
Click to hide internal directories.