Documentation
¶
Index ¶
- func CreateAllocationArray(dnet *danmtypes.DanmNet) (*bitarray.BitArray, error)
- func Int2ip(nn uint32) net.IP
- func Int2ip6(nn *big.Int) net.IP
- func Ip2int(ip net.IP) uint32
- func Ip62int(ip6 net.IP) *big.Int
- func PutDanmNet(client client.DanmNetInterface, dnet *danmtypes.DanmNet) (bool, error)
- func ValidateAllocationPool(dnet *danmtypes.DanmNet) error
- type Handler
- type LinkInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAllocationArray ¶
func Int2ip ¶
Int2ip converts an IP address stored as a native Golang big endian, 32-bit integer to an IP represented according to the Golang net package
func Int2ip6 ¶
Int2ip6 converts an IP address stored as a native Golang big endian, 64-bit integer to an IP represented according to the Golang net package
func Ip2int ¶
Ip2int converts an IP address stored according to the Golang net package to a native Golang big endian, 32-bit integer
func Ip62int ¶
Ip62int converts an IPv6 address stored according to the Golang net package to a native Golang big endian, 64-bit integer
func PutDanmNet ¶
func ValidateAllocationPool ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler represents an object watching the K8s API for changes in the DanmNet API path Upon the reception of a notification it validates the body, and handles the related VxLAN/VLAN/RT creation/deletions on the host
func NewHandler ¶
NewHandler initializes and returns a new Handler object Upon the reception of a notification it performs DanmNet validation, and host network management operations Handler contains additional members: one performing HTTPS operations, the other to interact with DamnEp objects
func (Handler) CreateController ¶
func (dnetHandler Handler) CreateController() cache.Controller