kernel

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: GPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	A = false
	B = true
)
View Source
const NAMESPACE = "vc5"
View Source
const PREFIXES = 1048576

Variables

View Source
var BPF_O []byte

Functions

This section is empty.

Types

type Balancer added in v0.1.4

type Balancer struct {
	// contains filtered or unexported fields
}

func (*Balancer) BlockList added in v0.1.16

func (b *Balancer) BlockList(list [PREFIXES]bool)

func (*Balancer) Close added in v0.1.4

func (b *Balancer) Close()

func (*Balancer) Configure added in v0.1.4

func (b *Balancer) Configure(r Healthchecks)

func (*Balancer) FlowQueue added in v0.1.16

func (b *Balancer) FlowQueue() []byte

func (*Balancer) Global added in v0.1.4

func (b *Balancer) Global() Counter

func (*Balancer) NoBlockList added in v0.1.20

func (b *Balancer) NoBlockList()

func (*Balancer) Stats added in v0.1.4

func (b *Balancer) Stats() map[Target]Counter

func (*Balancer) StoreFlow added in v0.1.16

func (b *Balancer) StoreFlow(fs []byte)

type Counter

type Counter struct {
	Octets      uint64
	Packets     uint64
	Flows       uint64
	Concurrent  uint64
	Blocked     uint64
	Latency     uint64 // global only
	QueueFailed uint64 // global only
	DEFCON      uint8  // global only
}

func (*Counter) Add added in v0.1.20

func (c *Counter) Add(n Counter)

type Healthchecks

type Healthchecks = healthchecks.Healthchecks

type ICMPs added in v0.1.1

type ICMPs struct {
	// contains filtered or unexported fields
}

func ICMP added in v0.1.1

func ICMP() *ICMPs

func (*ICMPs) Close added in v0.1.6

func (s *ICMPs) Close()

func (*ICMPs) Ping added in v0.1.1

func (s *ICMPs) Ping(target string)

type IP4

type IP4 = types.IP4
var IP IP4 = IP4{10, 255, 255, 254}

func LookupNAT added in v0.1.20

func LookupNAT(vip, rip IP4) IP4

type IP4s

type IP4s = types.IP4s

type L4

type L4 = types.L4

type MAC

type MAC = types.MAC

type Maps

type Maps struct {
	// contains filtered or unexported fields
}

func Open

func Open(native bool, vetha, vethb string, eth ...string) (*Maps, error)

type NAT

type NAT struct {
	C      chan *Healthchecks
	Logger types.Logger
	Maps   *maps
	NetNS  *NetNS

	DefaultIP     IP4
	PhysicalMAC   MAC
	PhysicalIndex int
	// contains filtered or unexported fields
}

func (*NAT) Close added in v0.1.4

func (n *NAT) Close()

func (*NAT) Configure added in v0.1.4

func (n *NAT) Configure(h *Healthchecks)

func (*NAT) NAT added in v0.1.4

func (n *NAT) NAT(h *Healthchecks) (*Healthchecks, error)

type NetNS added in v0.1.11

type NetNS struct {
	IfA, IfB string
	IpA, IpB [4]byte
	HwA, HwB [6]byte
	Index    int
	NS       string
}

func (*NetNS) Close added in v0.1.11

func (n *NetNS) Close()

func (*NetNS) Init added in v0.1.11

func (n *NetNS) Init() error

func (*NetNS) Open added in v0.1.11

func (n *NetNS) Open() error

type Protocol

type Protocol = types.Protocol

type Real

type Real = healthchecks.Real

type Report

type Report = monitor.Report

type Service added in v0.1.4

type Service = healthchecks.Service

type Target

type Target struct {
	VIP      IP4
	RIP      IP4
	Port     uint16
	Protocol uint8
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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