flowctl

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlowOutputLog

func FlowOutputLog(flows []ebpfmap.Flow, out string, o ipfix.OutputLog) error

func NewCommand

func NewCommand() *cobra.Command

func NewCommandAgent added in v0.0.6

func NewCommandAgent() *cobra.Command

func NewCommandDependencyCheck

func NewCommandDependencyCheck() *cobra.Command

func NewCommandDump

func NewCommandDump() *cobra.Command

func NewCommandEbpf

func NewCommandEbpf() *cobra.Command

func NewCommandEbpfCodeDump

func NewCommandEbpfCodeDump() *cobra.Command

func NewCommandFlush

func NewCommandFlush() *cobra.Command

func NewCommandIpfix

func NewCommandIpfix() *cobra.Command

func NewCommandIpfixDump

func NewCommandIpfixDump() *cobra.Command

func NewCommandIpfixTemplate

func NewCommandIpfixTemplate() *cobra.Command

func NewCommandMeter

func NewCommandMeter() *cobra.Command

func NewCommandMeterAttach

func NewCommandMeterAttach() *cobra.Command

func NewCommandMeterDetach

func NewCommandMeterDetach() *cobra.Command

func NewCommandMeterStatus

func NewCommandMeterStatus() *cobra.Command

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL