mock

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 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 MockData

type MockData struct {
	IPList []string

	SkipARecord bool
	// contains filtered or unexported fields
}

type MockManager

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

func NewMockIPAMManager

func NewMockIPAMManager(mockData MockData) (*MockManager, error)

func (*MockManager) AllocateNextIPAddress

func (fm *MockManager) AllocateNextIPAddress(req ipamspec.IPAMRequest) string

Gets and reserves the next available IP address

func (*MockManager) CreateARecord

func (fm *MockManager) CreateARecord(req ipamspec.IPAMRequest) bool

Creates an A record

func (*MockManager) DeleteARecord

func (fm *MockManager) DeleteARecord(req ipamspec.IPAMRequest)

Deletes an A record and releases the IP address

func (*MockManager) GetIPAddress

func (fm *MockManager) GetIPAddress(req ipamspec.IPAMRequest) string

func (*MockManager) ReleaseIPAddress

func (fm *MockManager) ReleaseIPAddress(req ipamspec.IPAMRequest)

Releases an IP address

Jump to

Keyboard shortcuts

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