fake_subnet_pool

package
v0.0.0-...-7f502db Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakePool

type FakePool struct {
	AcquireStub func(lager.Logger, subnets.SubnetSelector, subnets.IPSelector) (*net.IPNet, net.IP, error)

	ReleaseStub func(*net.IPNet, net.IP) error

	RemoveStub func(*net.IPNet, net.IP) error

	CapacityStub func() int

	RunIfFreeStub func(*net.IPNet, func() error) error
	// contains filtered or unexported fields
}

func (*FakePool) Acquire

func (fake *FakePool) Acquire(arg1 lager.Logger, arg2 subnets.SubnetSelector, arg3 subnets.IPSelector) (*net.IPNet, net.IP, error)

func (*FakePool) AcquireArgsForCall

func (fake *FakePool) AcquireArgsForCall(i int) (lager.Logger, subnets.SubnetSelector, subnets.IPSelector)

func (*FakePool) AcquireCallCount

func (fake *FakePool) AcquireCallCount() int

func (*FakePool) AcquireReturns

func (fake *FakePool) AcquireReturns(result1 *net.IPNet, result2 net.IP, result3 error)

func (*FakePool) Capacity

func (fake *FakePool) Capacity() int

func (*FakePool) CapacityCallCount

func (fake *FakePool) CapacityCallCount() int

func (*FakePool) CapacityReturns

func (fake *FakePool) CapacityReturns(result1 int)

func (*FakePool) Invocations

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

func (*FakePool) Release

func (fake *FakePool) Release(arg1 *net.IPNet, arg2 net.IP) error

func (*FakePool) ReleaseArgsForCall

func (fake *FakePool) ReleaseArgsForCall(i int) (*net.IPNet, net.IP)

func (*FakePool) ReleaseCallCount

func (fake *FakePool) ReleaseCallCount() int

func (*FakePool) ReleaseReturns

func (fake *FakePool) ReleaseReturns(result1 error)

func (*FakePool) Remove

func (fake *FakePool) Remove(arg1 *net.IPNet, arg2 net.IP) error

func (*FakePool) RemoveArgsForCall

func (fake *FakePool) RemoveArgsForCall(i int) (*net.IPNet, net.IP)

func (*FakePool) RemoveCallCount

func (fake *FakePool) RemoveCallCount() int

func (*FakePool) RemoveReturns

func (fake *FakePool) RemoveReturns(result1 error)

func (*FakePool) RunIfFree

func (fake *FakePool) RunIfFree(arg1 *net.IPNet, arg2 func() error) error

func (*FakePool) RunIfFreeArgsForCall

func (fake *FakePool) RunIfFreeArgsForCall(i int) (*net.IPNet, func() error)

func (*FakePool) RunIfFreeCallCount

func (fake *FakePool) RunIfFreeCallCount() int

func (*FakePool) RunIfFreeReturns

func (fake *FakePool) RunIfFreeReturns(result1 error)

Jump to

Keyboard shortcuts

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