layer2

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 30 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ERROR_NotContainsIP = "node's IP is not in the same network segment as the announced IP."
)

Variables

This section is empty.

Functions

func NewSpeaker

func NewSpeaker(client *kubernetes.Clientset, opt *Options, reloadChan chan event.GenericEvent) (speaker.Speaker, error)

Types

type Announcer added in v0.6.0

type Announcer interface {
	AddAnnouncedIP(net.IP) error
	DelAnnouncedIP(net.IP) error
	Start() error
	Stop() error
	ContainsIP(net.IP) bool
	RegisterIPRange(string, iprange.Range)
	UnregisterIPRange(string)
	Size() int
}

type Options added in v0.6.0

type Options struct {
	EnableLayer2 bool
	NodeName     string
	BindAddr     string
	BindPort     int
	SecretKey    string
}

func NewOptions added in v0.6.0

func NewOptions() *Options

func (*Options) AddFlags added in v0.6.0

func (v *Options) AddFlags(fs *pflag.FlagSet)

Jump to

Keyboard shortcuts

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