free_addresses

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AddressLimit      = 8000
	MinSubnetMaskSize = 22
)

Variables

This section is empty.

Functions

func GetFreeAddresses

func GetFreeAddresses(freeAddressesRequestStr string, e Executer, log logrus.FieldLogger) (stdout string, stderr string, exitCode int)

Types

type Executer

type Executer interface {
	Execute(command string, args ...string) (stdout string, stderr string, exitCode int)
}

type MockExecuter

type MockExecuter struct {
	mock.Mock
}

MockExecuter is an autogenerated mock type for the Executer type

func (*MockExecuter) Execute

func (_m *MockExecuter) Execute(command string, args ...string) (string, string, int)

Execute provides a mock function with given fields: command, args

type ProcessExecuter

type ProcessExecuter struct{}

func (*ProcessExecuter) Execute

func (e *ProcessExecuter) Execute(command string, args ...string) (stdout string, stderr string, exitCode int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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