node

package
v0.0.0-...-a143e3c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node interface {
	GetName() string

	Print()
	Clean() error // clean environment

	GetPrivateIP() net.IP
	SetPrivateIP(ip net.IP) error

	GetPrivateMask() net.IPMask
	SetPrivateMask(mask net.IPMask) error

	GetPublicIP() net.IP
	SetPublicIP(ip net.IP) error

	GetDirectRouting() bool
	SetDirectRouting(direct bool) error

	GetVpcMode() string
	SetVpcMode(mode string) error

	SetVpc(key string, value string) error

	Update(new Node) error

	GetPodCIDR() *net.IPNet
	GetVPodCIDR() *net.IPNet

	GetRouterIP() *net.IPNet // this is vxlan specific, generalize?
}

represents a node in the cluster

type NodeStorage

type NodeStorage interface {
	Init() error
	GetNode(name string) (Node, bool)
	GetAllNodes() []Node
	AddNode(node Node) error
	DeleteNode(name string)
}

Jump to

Keyboard shortcuts

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