ipassigner

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIPAssigner

func NewIPAssigner(nodeIPAddr net.IP, dummyDeviceName string) (*ipAssigner, error)

NewIPAssigner returns an *ipAssigner.

Types

type IPAssigner

type IPAssigner interface {
	// AssignIP ensures the provided IP is assigned to the system.
	AssignIP(ip string) error
	// UnassignIP ensures the provided IP is not assigned to the system.
	UnassignIP(ip string) error
	// AssignedIPs return the IPs that are assigned to the system by this IPAssigner.
	AssignedIPs() sets.String
}

IPAssigner provides methods to assign or unassign IP.

Directories

Path Synopsis
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.

Jump to

Keyboard shortcuts

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