fakes

package
v0.0.0-...-dd9aec0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CIDRPool

type CIDRPool struct {
	GetAvailableBlockStub func([]string) string

	GetAvailableSingleIPStub func([]string) string

	IsMemberStub func(string) bool
	// contains filtered or unexported fields
}

func (*CIDRPool) GetAvailableBlock

func (fake *CIDRPool) GetAvailableBlock(arg1 []string) string

func (*CIDRPool) GetAvailableBlockArgsForCall

func (fake *CIDRPool) GetAvailableBlockArgsForCall(i int) []string

func (*CIDRPool) GetAvailableBlockCallCount

func (fake *CIDRPool) GetAvailableBlockCallCount() int

func (*CIDRPool) GetAvailableBlockReturns

func (fake *CIDRPool) GetAvailableBlockReturns(result1 string)

func (*CIDRPool) GetAvailableBlockReturnsOnCall

func (fake *CIDRPool) GetAvailableBlockReturnsOnCall(i int, result1 string)

func (*CIDRPool) GetAvailableSingleIP

func (fake *CIDRPool) GetAvailableSingleIP(arg1 []string) string

func (*CIDRPool) GetAvailableSingleIPArgsForCall

func (fake *CIDRPool) GetAvailableSingleIPArgsForCall(i int) []string

func (*CIDRPool) GetAvailableSingleIPCallCount

func (fake *CIDRPool) GetAvailableSingleIPCallCount() int

func (*CIDRPool) GetAvailableSingleIPReturns

func (fake *CIDRPool) GetAvailableSingleIPReturns(result1 string)

func (*CIDRPool) GetAvailableSingleIPReturnsOnCall

func (fake *CIDRPool) GetAvailableSingleIPReturnsOnCall(i int, result1 string)

func (*CIDRPool) Invocations

func (fake *CIDRPool) Invocations() map[string][][]interface{}

func (*CIDRPool) IsMember

func (fake *CIDRPool) IsMember(arg1 string) bool

func (*CIDRPool) IsMemberArgsForCall

func (fake *CIDRPool) IsMemberArgsForCall(i int) string

func (*CIDRPool) IsMemberCallCount

func (fake *CIDRPool) IsMemberCallCount() int

func (*CIDRPool) IsMemberReturns

func (fake *CIDRPool) IsMemberReturns(result1 bool)

func (*CIDRPool) IsMemberReturnsOnCall

func (fake *CIDRPool) IsMemberReturnsOnCall(i int, result1 bool)

type DatabaseHandler

type DatabaseHandler struct {
	AddEntryStub func(controller.Lease) error

	DeleteEntryStub func(string) error

	LeaseForUnderlayIPStub func(string) (*controller.Lease, error)

	LastRenewedAtForUnderlayIPStub func(string) (int64, error)

	RenewLeaseForUnderlayIPStub func(string) error

	AllStub func() ([]controller.Lease, error)

	AllBlockSubnetsStub func() ([]controller.Lease, error)

	AllSingleIPSubnetsStub func() ([]controller.Lease, error)

	AllActiveStub func(int) ([]controller.Lease, error)

	OldestExpiredBlockSubnetStub func(int) (*controller.Lease, error)

	OldestExpiredSingleIPStub func(int) (*controller.Lease, error)
	// contains filtered or unexported fields
}

func (*DatabaseHandler) AddEntry

func (fake *DatabaseHandler) AddEntry(arg1 controller.Lease) error

func (*DatabaseHandler) AddEntryArgsForCall

func (fake *DatabaseHandler) AddEntryArgsForCall(i int) controller.Lease

func (*DatabaseHandler) AddEntryCallCount

func (fake *DatabaseHandler) AddEntryCallCount() int

func (*DatabaseHandler) AddEntryReturns

func (fake *DatabaseHandler) AddEntryReturns(result1 error)

func (*DatabaseHandler) AddEntryReturnsOnCall

func (fake *DatabaseHandler) AddEntryReturnsOnCall(i int, result1 error)

func (*DatabaseHandler) All

func (fake *DatabaseHandler) All() ([]controller.Lease, error)

func (*DatabaseHandler) AllActive

func (fake *DatabaseHandler) AllActive(arg1 int) ([]controller.Lease, error)

func (*DatabaseHandler) AllActiveArgsForCall

func (fake *DatabaseHandler) AllActiveArgsForCall(i int) int

func (*DatabaseHandler) AllActiveCallCount

func (fake *DatabaseHandler) AllActiveCallCount() int

func (*DatabaseHandler) AllActiveReturns

func (fake *DatabaseHandler) AllActiveReturns(result1 []controller.Lease, result2 error)

func (*DatabaseHandler) AllActiveReturnsOnCall

func (fake *DatabaseHandler) AllActiveReturnsOnCall(i int, result1 []controller.Lease, result2 error)

func (*DatabaseHandler) AllBlockSubnets

func (fake *DatabaseHandler) AllBlockSubnets() ([]controller.Lease, error)

func (*DatabaseHandler) AllBlockSubnetsCallCount

func (fake *DatabaseHandler) AllBlockSubnetsCallCount() int

func (*DatabaseHandler) AllBlockSubnetsReturns

func (fake *DatabaseHandler) AllBlockSubnetsReturns(result1 []controller.Lease, result2 error)

func (*DatabaseHandler) AllBlockSubnetsReturnsOnCall

func (fake *DatabaseHandler) AllBlockSubnetsReturnsOnCall(i int, result1 []controller.Lease, result2 error)

func (*DatabaseHandler) AllCallCount

func (fake *DatabaseHandler) AllCallCount() int

func (*DatabaseHandler) AllReturns

func (fake *DatabaseHandler) AllReturns(result1 []controller.Lease, result2 error)

func (*DatabaseHandler) AllReturnsOnCall

func (fake *DatabaseHandler) AllReturnsOnCall(i int, result1 []controller.Lease, result2 error)

func (*DatabaseHandler) AllSingleIPSubnets

func (fake *DatabaseHandler) AllSingleIPSubnets() ([]controller.Lease, error)

func (*DatabaseHandler) AllSingleIPSubnetsCallCount

func (fake *DatabaseHandler) AllSingleIPSubnetsCallCount() int

func (*DatabaseHandler) AllSingleIPSubnetsReturns

func (fake *DatabaseHandler) AllSingleIPSubnetsReturns(result1 []controller.Lease, result2 error)

func (*DatabaseHandler) AllSingleIPSubnetsReturnsOnCall

func (fake *DatabaseHandler) AllSingleIPSubnetsReturnsOnCall(i int, result1 []controller.Lease, result2 error)

func (*DatabaseHandler) DeleteEntry

func (fake *DatabaseHandler) DeleteEntry(arg1 string) error

func (*DatabaseHandler) DeleteEntryArgsForCall

func (fake *DatabaseHandler) DeleteEntryArgsForCall(i int) string

func (*DatabaseHandler) DeleteEntryCallCount

func (fake *DatabaseHandler) DeleteEntryCallCount() int

func (*DatabaseHandler) DeleteEntryReturns

func (fake *DatabaseHandler) DeleteEntryReturns(result1 error)

func (*DatabaseHandler) DeleteEntryReturnsOnCall

func (fake *DatabaseHandler) DeleteEntryReturnsOnCall(i int, result1 error)

func (*DatabaseHandler) Invocations

func (fake *DatabaseHandler) Invocations() map[string][][]interface{}

func (*DatabaseHandler) LastRenewedAtForUnderlayIP

func (fake *DatabaseHandler) LastRenewedAtForUnderlayIP(arg1 string) (int64, error)

func (*DatabaseHandler) LastRenewedAtForUnderlayIPArgsForCall

func (fake *DatabaseHandler) LastRenewedAtForUnderlayIPArgsForCall(i int) string

func (*DatabaseHandler) LastRenewedAtForUnderlayIPCallCount

func (fake *DatabaseHandler) LastRenewedAtForUnderlayIPCallCount() int

func (*DatabaseHandler) LastRenewedAtForUnderlayIPReturns

func (fake *DatabaseHandler) LastRenewedAtForUnderlayIPReturns(result1 int64, result2 error)

func (*DatabaseHandler) LastRenewedAtForUnderlayIPReturnsOnCall

func (fake *DatabaseHandler) LastRenewedAtForUnderlayIPReturnsOnCall(i int, result1 int64, result2 error)

func (*DatabaseHandler) LeaseForUnderlayIP

func (fake *DatabaseHandler) LeaseForUnderlayIP(arg1 string) (*controller.Lease, error)

func (*DatabaseHandler) LeaseForUnderlayIPArgsForCall

func (fake *DatabaseHandler) LeaseForUnderlayIPArgsForCall(i int) string

func (*DatabaseHandler) LeaseForUnderlayIPCallCount

func (fake *DatabaseHandler) LeaseForUnderlayIPCallCount() int

func (*DatabaseHandler) LeaseForUnderlayIPReturns

func (fake *DatabaseHandler) LeaseForUnderlayIPReturns(result1 *controller.Lease, result2 error)

func (*DatabaseHandler) LeaseForUnderlayIPReturnsOnCall

func (fake *DatabaseHandler) LeaseForUnderlayIPReturnsOnCall(i int, result1 *controller.Lease, result2 error)

func (*DatabaseHandler) OldestExpiredBlockSubnet

func (fake *DatabaseHandler) OldestExpiredBlockSubnet(arg1 int) (*controller.Lease, error)

func (*DatabaseHandler) OldestExpiredBlockSubnetArgsForCall

func (fake *DatabaseHandler) OldestExpiredBlockSubnetArgsForCall(i int) int

func (*DatabaseHandler) OldestExpiredBlockSubnetCallCount

func (fake *DatabaseHandler) OldestExpiredBlockSubnetCallCount() int

func (*DatabaseHandler) OldestExpiredBlockSubnetReturns

func (fake *DatabaseHandler) OldestExpiredBlockSubnetReturns(result1 *controller.Lease, result2 error)

func (*DatabaseHandler) OldestExpiredBlockSubnetReturnsOnCall

func (fake *DatabaseHandler) OldestExpiredBlockSubnetReturnsOnCall(i int, result1 *controller.Lease, result2 error)

func (*DatabaseHandler) OldestExpiredSingleIP

func (fake *DatabaseHandler) OldestExpiredSingleIP(arg1 int) (*controller.Lease, error)

func (*DatabaseHandler) OldestExpiredSingleIPArgsForCall

func (fake *DatabaseHandler) OldestExpiredSingleIPArgsForCall(i int) int

func (*DatabaseHandler) OldestExpiredSingleIPCallCount

func (fake *DatabaseHandler) OldestExpiredSingleIPCallCount() int

func (*DatabaseHandler) OldestExpiredSingleIPReturns

func (fake *DatabaseHandler) OldestExpiredSingleIPReturns(result1 *controller.Lease, result2 error)

func (*DatabaseHandler) OldestExpiredSingleIPReturnsOnCall

func (fake *DatabaseHandler) OldestExpiredSingleIPReturnsOnCall(i int, result1 *controller.Lease, result2 error)

func (*DatabaseHandler) RenewLeaseForUnderlayIP

func (fake *DatabaseHandler) RenewLeaseForUnderlayIP(arg1 string) error

func (*DatabaseHandler) RenewLeaseForUnderlayIPArgsForCall

func (fake *DatabaseHandler) RenewLeaseForUnderlayIPArgsForCall(i int) string

func (*DatabaseHandler) RenewLeaseForUnderlayIPCallCount

func (fake *DatabaseHandler) RenewLeaseForUnderlayIPCallCount() int

func (*DatabaseHandler) RenewLeaseForUnderlayIPReturns

func (fake *DatabaseHandler) RenewLeaseForUnderlayIPReturns(result1 error)

func (*DatabaseHandler) RenewLeaseForUnderlayIPReturnsOnCall

func (fake *DatabaseHandler) RenewLeaseForUnderlayIPReturnsOnCall(i int, result1 error)

type HardwareAddressGenerator

type HardwareAddressGenerator struct {
	GenerateForVTEPStub func(containerIP net.IP) (net.HardwareAddr, error)
	// contains filtered or unexported fields
}

func (*HardwareAddressGenerator) GenerateForVTEP

func (fake *HardwareAddressGenerator) GenerateForVTEP(containerIP net.IP) (net.HardwareAddr, error)

func (*HardwareAddressGenerator) GenerateForVTEPArgsForCall

func (fake *HardwareAddressGenerator) GenerateForVTEPArgsForCall(i int) net.IP

func (*HardwareAddressGenerator) GenerateForVTEPCallCount

func (fake *HardwareAddressGenerator) GenerateForVTEPCallCount() int

func (*HardwareAddressGenerator) GenerateForVTEPReturns

func (fake *HardwareAddressGenerator) GenerateForVTEPReturns(result1 net.HardwareAddr, result2 error)

func (*HardwareAddressGenerator) GenerateForVTEPReturnsOnCall

func (fake *HardwareAddressGenerator) GenerateForVTEPReturnsOnCall(i int, result1 net.HardwareAddr, result2 error)

func (*HardwareAddressGenerator) Invocations

func (fake *HardwareAddressGenerator) Invocations() map[string][][]interface{}

type LeaseValidator

type LeaseValidator struct {
	ValidateStub func(controller.Lease) error
	// contains filtered or unexported fields
}

func (*LeaseValidator) Invocations

func (fake *LeaseValidator) Invocations() map[string][][]interface{}

func (*LeaseValidator) Validate

func (fake *LeaseValidator) Validate(arg1 controller.Lease) error

func (*LeaseValidator) ValidateArgsForCall

func (fake *LeaseValidator) ValidateArgsForCall(i int) controller.Lease

func (*LeaseValidator) ValidateCallCount

func (fake *LeaseValidator) ValidateCallCount() int

func (*LeaseValidator) ValidateReturns

func (fake *LeaseValidator) ValidateReturns(result1 error)

func (*LeaseValidator) ValidateReturnsOnCall

func (fake *LeaseValidator) ValidateReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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