runners

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCoildServer

func NewCoildServer(l net.Listener, mgr manager.Manager, nodeIPAM ipam.NodeIPAM, podNet nodenet.PodNetwork, setup NATSetup, logger *zap.Logger) manager.Runnable

NewCoildServer returns an implementation of cnirpc.CNIServer for coild.

func NewGarbageCollector

func NewGarbageCollector(mgr manager.Manager, log logr.Logger, interval time.Duration) manager.Runnable

NewGarbageCollector creates a manager.Runnable to collect orphaned AddressBlocks of deleted nodes.

func NewRouter

func NewRouter(mgr manager.Manager, log logr.Logger, nodeName string, notifyCh <-chan struct{}, syncer nodenet.RouteSyncer, interval time.Duration) manager.Runnable

NewRouter creates a manager.Runnable for coil-router.

Types

type GWNets

type GWNets struct {
	Gateway   net.IP
	Networks  []*net.IPNet
	SportAuto bool
}

GWNets represents networks for a destination.

type NATSetup

type NATSetup interface {
	Hook([]GWNets, *zap.Logger) func(ipv4, ipv6 net.IP) error
}

NATSetup represents a NAT setup function for Pods.

func NewNATSetup

func NewNATSetup(port int) NATSetup

NewNATSetup creates a NATSetup using founat package. `port` is the UDP port number to accept Foo-over-UDP packets.

Jump to

Keyboard shortcuts

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