address

package
v0.0.0-...-d91f73c Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInterfaceIP

func AddInterfaceIP(ip net.IP, mask net.IPMask, iface string) error

func ManageAddress

func ManageAddress(ipNetwork InterfaceAddress) error

func RemoveInterfaceIP

func RemoveInterfaceIP(ip net.IP, mask net.IPMask, iface string) error

func Setup

func Setup()

Types

type InterfaceAddress

type InterfaceAddress struct {
	Network   net.IPNet
	Interface string
	Remove    bool
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func SetupAddressClient

func SetupAddressClient(out *os.File) (Manager, error)

func (*Manager) Configure

func (m *Manager) Configure(settings *ManagerSettings) (result string, err error)

func (*Manager) Manage

func (m *Manager) Manage(ipNetwork *InterfaceAddress) (result string, err error)

type ManagerSettings

type ManagerSettings struct {
	LogLevel string
}

Jump to

Keyboard shortcuts

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