fakes

package
v1.4.2 Latest Latest
Warning

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

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

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CNIController

type CNIController struct {
	UpStub func(namespacePath, handle string, metadata map[string]interface{}, legacyNetConf map[string]interface{}) (types.Result, error)

	DownStub func(namespacePath, handle string) error
	// contains filtered or unexported fields
}

func (*CNIController) Down

func (fake *CNIController) Down(namespacePath string, handle string) error

func (*CNIController) DownArgsForCall

func (fake *CNIController) DownArgsForCall(i int) (string, string)

func (*CNIController) DownCallCount

func (fake *CNIController) DownCallCount() int

func (*CNIController) DownReturns

func (fake *CNIController) DownReturns(result1 error)

func (*CNIController) DownReturnsOnCall

func (fake *CNIController) DownReturnsOnCall(i int, result1 error)

func (*CNIController) Invocations

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

func (*CNIController) Up

func (fake *CNIController) Up(namespacePath string, handle string, metadata map[string]interface{}, legacyNetConf map[string]interface{}) (types.Result, error)

func (*CNIController) UpArgsForCall

func (fake *CNIController) UpArgsForCall(i int) (string, string, map[string]interface{}, map[string]interface{})

func (*CNIController) UpCallCount

func (fake *CNIController) UpCallCount() int

func (*CNIController) UpReturns

func (fake *CNIController) UpReturns(result1 types.Result, result2 error)

func (*CNIController) UpReturnsOnCall

func (fake *CNIController) UpReturnsOnCall(i int, result1 types.Result, result2 error)

type CNILibrary

type CNILibrary struct {
	AddNetworkListStub func(net *libcni.NetworkConfigList, rt *libcni.RuntimeConf) (types.Result, error)

	DelNetworkListStub func(net *libcni.NetworkConfigList, rt *libcni.RuntimeConf) error

	AddNetworkStub func(net *libcni.NetworkConfig, rt *libcni.RuntimeConf) (types.Result, error)

	DelNetworkStub func(net *libcni.NetworkConfig, rt *libcni.RuntimeConf) error
	// contains filtered or unexported fields
}

func (*CNILibrary) AddNetwork

func (fake *CNILibrary) AddNetwork(net *libcni.NetworkConfig, rt *libcni.RuntimeConf) (types.Result, error)

func (*CNILibrary) AddNetworkArgsForCall

func (fake *CNILibrary) AddNetworkArgsForCall(i int) (*libcni.NetworkConfig, *libcni.RuntimeConf)

func (*CNILibrary) AddNetworkCallCount

func (fake *CNILibrary) AddNetworkCallCount() int

func (*CNILibrary) AddNetworkList

func (fake *CNILibrary) AddNetworkList(net *libcni.NetworkConfigList, rt *libcni.RuntimeConf) (types.Result, error)

func (*CNILibrary) AddNetworkListArgsForCall

func (fake *CNILibrary) AddNetworkListArgsForCall(i int) (*libcni.NetworkConfigList, *libcni.RuntimeConf)

func (*CNILibrary) AddNetworkListCallCount

func (fake *CNILibrary) AddNetworkListCallCount() int

func (*CNILibrary) AddNetworkListReturns

func (fake *CNILibrary) AddNetworkListReturns(result1 types.Result, result2 error)

func (*CNILibrary) AddNetworkListReturnsOnCall

func (fake *CNILibrary) AddNetworkListReturnsOnCall(i int, result1 types.Result, result2 error)

func (*CNILibrary) AddNetworkReturns

func (fake *CNILibrary) AddNetworkReturns(result1 types.Result, result2 error)

func (*CNILibrary) AddNetworkReturnsOnCall

func (fake *CNILibrary) AddNetworkReturnsOnCall(i int, result1 types.Result, result2 error)

func (*CNILibrary) DelNetwork

func (fake *CNILibrary) DelNetwork(net *libcni.NetworkConfig, rt *libcni.RuntimeConf) error

func (*CNILibrary) DelNetworkArgsForCall

func (fake *CNILibrary) DelNetworkArgsForCall(i int) (*libcni.NetworkConfig, *libcni.RuntimeConf)

func (*CNILibrary) DelNetworkCallCount

func (fake *CNILibrary) DelNetworkCallCount() int

func (*CNILibrary) DelNetworkList

func (fake *CNILibrary) DelNetworkList(net *libcni.NetworkConfigList, rt *libcni.RuntimeConf) error

func (*CNILibrary) DelNetworkListArgsForCall

func (fake *CNILibrary) DelNetworkListArgsForCall(i int) (*libcni.NetworkConfigList, *libcni.RuntimeConf)

func (*CNILibrary) DelNetworkListCallCount

func (fake *CNILibrary) DelNetworkListCallCount() int

func (*CNILibrary) DelNetworkListReturns

func (fake *CNILibrary) DelNetworkListReturns(result1 error)

func (*CNILibrary) DelNetworkListReturnsOnCall

func (fake *CNILibrary) DelNetworkListReturnsOnCall(i int, result1 error)

func (*CNILibrary) DelNetworkReturns

func (fake *CNILibrary) DelNetworkReturns(result1 error)

func (*CNILibrary) DelNetworkReturnsOnCall

func (fake *CNILibrary) DelNetworkReturnsOnCall(i int, result1 error)

func (*CNILibrary) Invocations

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

type Mounter

type Mounter struct {
	IdempotentlyMountStub func(source, target string) error

	RemoveMountStub func(target string) error
	// contains filtered or unexported fields
}

func (*Mounter) IdempotentlyMount

func (fake *Mounter) IdempotentlyMount(source string, target string) error

func (*Mounter) IdempotentlyMountArgsForCall

func (fake *Mounter) IdempotentlyMountArgsForCall(i int) (string, string)

func (*Mounter) IdempotentlyMountCallCount

func (fake *Mounter) IdempotentlyMountCallCount() int

func (*Mounter) IdempotentlyMountReturns

func (fake *Mounter) IdempotentlyMountReturns(result1 error)

func (*Mounter) IdempotentlyMountReturnsOnCall

func (fake *Mounter) IdempotentlyMountReturnsOnCall(i int, result1 error)

func (*Mounter) Invocations

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

func (*Mounter) RemoveMount

func (fake *Mounter) RemoveMount(target string) error

func (*Mounter) RemoveMountArgsForCall

func (fake *Mounter) RemoveMountArgsForCall(i int) string

func (*Mounter) RemoveMountCallCount

func (fake *Mounter) RemoveMountCallCount() int

func (*Mounter) RemoveMountReturns

func (fake *Mounter) RemoveMountReturns(result1 error)

func (*Mounter) RemoveMountReturnsOnCall

func (fake *Mounter) RemoveMountReturnsOnCall(i int, result1 error)

type PortAllocator

type PortAllocator struct {
	AllocatePortStub func(handle string, port int) (int, error)

	ReleaseAllPortsStub func(handle string) error
	// contains filtered or unexported fields
}

func (*PortAllocator) AllocatePort

func (fake *PortAllocator) AllocatePort(handle string, port int) (int, error)

func (*PortAllocator) AllocatePortArgsForCall

func (fake *PortAllocator) AllocatePortArgsForCall(i int) (string, int)

func (*PortAllocator) AllocatePortCallCount

func (fake *PortAllocator) AllocatePortCallCount() int

func (*PortAllocator) AllocatePortReturns

func (fake *PortAllocator) AllocatePortReturns(result1 int, result2 error)

func (*PortAllocator) AllocatePortReturnsOnCall

func (fake *PortAllocator) AllocatePortReturnsOnCall(i int, result1 int, result2 error)

func (*PortAllocator) Invocations

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

func (*PortAllocator) ReleaseAllPorts

func (fake *PortAllocator) ReleaseAllPorts(handle string) error

func (*PortAllocator) ReleaseAllPortsArgsForCall

func (fake *PortAllocator) ReleaseAllPortsArgsForCall(i int) string

func (*PortAllocator) ReleaseAllPortsCallCount

func (fake *PortAllocator) ReleaseAllPortsCallCount() int

func (*PortAllocator) ReleaseAllPortsReturns

func (fake *PortAllocator) ReleaseAllPortsReturns(result1 error)

func (*PortAllocator) ReleaseAllPortsReturnsOnCall

func (fake *PortAllocator) ReleaseAllPortsReturnsOnCall(i int, result1 error)

type Tracker

type Tracker struct {
	AcquireOneStub func(pool *port_allocator.Pool, handle string) (int, error)

	ReleaseAllStub func(pool *port_allocator.Pool, handle string) error

	InRangeStub func(port int) bool
	// contains filtered or unexported fields
}

func (*Tracker) AcquireOne

func (fake *Tracker) AcquireOne(pool *port_allocator.Pool, handle string) (int, error)

func (*Tracker) AcquireOneArgsForCall

func (fake *Tracker) AcquireOneArgsForCall(i int) (*port_allocator.Pool, string)

func (*Tracker) AcquireOneCallCount

func (fake *Tracker) AcquireOneCallCount() int

func (*Tracker) AcquireOneReturns

func (fake *Tracker) AcquireOneReturns(result1 int, result2 error)

func (*Tracker) AcquireOneReturnsOnCall

func (fake *Tracker) AcquireOneReturnsOnCall(i int, result1 int, result2 error)

func (*Tracker) InRange

func (fake *Tracker) InRange(port int) bool

func (*Tracker) InRangeArgsForCall

func (fake *Tracker) InRangeArgsForCall(i int) int

func (*Tracker) InRangeCallCount

func (fake *Tracker) InRangeCallCount() int

func (*Tracker) InRangeReturns

func (fake *Tracker) InRangeReturns(result1 bool)

func (*Tracker) InRangeReturnsOnCall

func (fake *Tracker) InRangeReturnsOnCall(i int, result1 bool)

func (*Tracker) Invocations

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

func (*Tracker) ReleaseAll

func (fake *Tracker) ReleaseAll(pool *port_allocator.Pool, handle string) error

func (*Tracker) ReleaseAllArgsForCall

func (fake *Tracker) ReleaseAllArgsForCall(i int) (*port_allocator.Pool, string)

func (*Tracker) ReleaseAllCallCount

func (fake *Tracker) ReleaseAllCallCount() int

func (*Tracker) ReleaseAllReturns

func (fake *Tracker) ReleaseAllReturns(result1 error)

func (*Tracker) ReleaseAllReturnsOnCall

func (fake *Tracker) ReleaseAllReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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