fakes

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

This file was generated by counterfeiter

This file was generated by counterfeiter

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 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 added in v0.19.0

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 added in v0.19.0

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

type CNILibrary added in v0.5.0

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 added in v0.5.0

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

func (*CNILibrary) AddNetworkArgsForCall added in v0.5.0

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

func (*CNILibrary) AddNetworkCallCount added in v0.5.0

func (fake *CNILibrary) AddNetworkCallCount() int

func (*CNILibrary) AddNetworkList added in v0.17.0

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

func (*CNILibrary) AddNetworkListArgsForCall added in v0.17.0

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

func (*CNILibrary) AddNetworkListCallCount added in v0.17.0

func (fake *CNILibrary) AddNetworkListCallCount() int

func (*CNILibrary) AddNetworkListReturns added in v0.17.0

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

func (*CNILibrary) AddNetworkListReturnsOnCall added in v0.19.0

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

func (*CNILibrary) AddNetworkReturns added in v0.5.0

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

func (*CNILibrary) AddNetworkReturnsOnCall added in v0.19.0

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

func (*CNILibrary) DelNetwork added in v0.5.0

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

func (*CNILibrary) DelNetworkArgsForCall added in v0.5.0

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

func (*CNILibrary) DelNetworkCallCount added in v0.5.0

func (fake *CNILibrary) DelNetworkCallCount() int

func (*CNILibrary) DelNetworkList added in v0.17.0

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

func (*CNILibrary) DelNetworkListArgsForCall added in v0.17.0

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

func (*CNILibrary) DelNetworkListCallCount added in v0.17.0

func (fake *CNILibrary) DelNetworkListCallCount() int

func (*CNILibrary) DelNetworkListReturns added in v0.17.0

func (fake *CNILibrary) DelNetworkListReturns(result1 error)

func (*CNILibrary) DelNetworkListReturnsOnCall added in v0.19.0

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

func (*CNILibrary) DelNetworkReturns added in v0.5.0

func (fake *CNILibrary) DelNetworkReturns(result1 error)

func (*CNILibrary) DelNetworkReturnsOnCall added in v0.19.0

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

func (*CNILibrary) Invocations added in v0.5.0

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

type FileLocker

type FileLocker struct {
	OpenStub func() (filelock.LockedFile, error)
	// contains filtered or unexported fields
}

func (*FileLocker) Invocations

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

func (*FileLocker) Open

func (fake *FileLocker) Open() (filelock.LockedFile, error)

func (*FileLocker) OpenCallCount

func (fake *FileLocker) OpenCallCount() int

func (*FileLocker) OpenReturns

func (fake *FileLocker) OpenReturns(result1 filelock.LockedFile, result2 error)

func (*FileLocker) OpenReturnsOnCall added in v1.13.0

func (fake *FileLocker) OpenReturnsOnCall(i int, result1 filelock.LockedFile, result2 error)

type LockedFile added in v1.13.0

type LockedFile struct {
	CloseStub func() error

	ReadStub func([]byte) (int, error)

	TruncateStub func(int64) error

	WriteStub func([]byte) (int, error)

	SeekStub func(int64, int) (int64, error)
	// contains filtered or unexported fields
}

func (*LockedFile) Close added in v1.13.0

func (fake *LockedFile) Close() error

func (*LockedFile) CloseCallCount added in v1.13.0

func (fake *LockedFile) CloseCallCount() int

func (*LockedFile) CloseReturns added in v1.13.0

func (fake *LockedFile) CloseReturns(result1 error)

func (*LockedFile) CloseReturnsOnCall added in v1.13.0

func (fake *LockedFile) CloseReturnsOnCall(i int, result1 error)

func (*LockedFile) Invocations added in v1.13.0

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

func (*LockedFile) Read added in v1.13.0

func (fake *LockedFile) Read(arg1 []byte) (int, error)

func (*LockedFile) ReadArgsForCall added in v1.13.0

func (fake *LockedFile) ReadArgsForCall(i int) []byte

func (*LockedFile) ReadCallCount added in v1.13.0

func (fake *LockedFile) ReadCallCount() int

func (*LockedFile) ReadReturns added in v1.13.0

func (fake *LockedFile) ReadReturns(result1 int, result2 error)

func (*LockedFile) ReadReturnsOnCall added in v1.13.0

func (fake *LockedFile) ReadReturnsOnCall(i int, result1 int, result2 error)

func (*LockedFile) Seek added in v1.13.0

func (fake *LockedFile) Seek(arg1 int64, arg2 int) (int64, error)

func (*LockedFile) SeekArgsForCall added in v1.13.0

func (fake *LockedFile) SeekArgsForCall(i int) (int64, int)

func (*LockedFile) SeekCallCount added in v1.13.0

func (fake *LockedFile) SeekCallCount() int

func (*LockedFile) SeekReturns added in v1.13.0

func (fake *LockedFile) SeekReturns(result1 int64, result2 error)

func (*LockedFile) SeekReturnsOnCall added in v1.13.0

func (fake *LockedFile) SeekReturnsOnCall(i int, result1 int64, result2 error)

func (*LockedFile) Truncate added in v1.13.0

func (fake *LockedFile) Truncate(arg1 int64) error

func (*LockedFile) TruncateArgsForCall added in v1.13.0

func (fake *LockedFile) TruncateArgsForCall(i int) int64

func (*LockedFile) TruncateCallCount added in v1.13.0

func (fake *LockedFile) TruncateCallCount() int

func (*LockedFile) TruncateReturns added in v1.13.0

func (fake *LockedFile) TruncateReturns(result1 error)

func (*LockedFile) TruncateReturnsOnCall added in v1.13.0

func (fake *LockedFile) TruncateReturnsOnCall(i int, result1 error)

func (*LockedFile) Write added in v1.13.0

func (fake *LockedFile) Write(arg1 []byte) (int, error)

func (*LockedFile) WriteArgsForCall added in v1.13.0

func (fake *LockedFile) WriteArgsForCall(i int) []byte

func (*LockedFile) WriteCallCount added in v1.13.0

func (fake *LockedFile) WriteCallCount() int

func (*LockedFile) WriteReturns added in v1.13.0

func (fake *LockedFile) WriteReturns(result1 int, result2 error)

func (*LockedFile) WriteReturnsOnCall added in v1.13.0

func (fake *LockedFile) WriteReturnsOnCall(i int, result1 int, result2 error)

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 added in v0.19.0

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 added in v0.19.0

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 added in v0.19.0

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

func (*PortAllocator) Invocations

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

func (*PortAllocator) ReleaseAllPorts added in v0.3.0

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

func (*PortAllocator) ReleaseAllPortsArgsForCall added in v0.3.0

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

func (*PortAllocator) ReleaseAllPortsCallCount added in v0.3.0

func (fake *PortAllocator) ReleaseAllPortsCallCount() int

func (*PortAllocator) ReleaseAllPortsReturns added in v0.3.0

func (fake *PortAllocator) ReleaseAllPortsReturns(result1 error)

func (*PortAllocator) ReleaseAllPortsReturnsOnCall added in v0.19.0

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 added in v0.19.0

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 added in v0.19.0

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

func (*Tracker) Invocations

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

func (*Tracker) ReleaseAll added in v0.3.0

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

func (*Tracker) ReleaseAllArgsForCall added in v0.3.0

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

func (*Tracker) ReleaseAllCallCount added in v0.3.0

func (fake *Tracker) ReleaseAllCallCount() int

func (*Tracker) ReleaseAllReturns added in v0.3.0

func (fake *Tracker) ReleaseAllReturns(result1 error)

func (*Tracker) ReleaseAllReturnsOnCall added in v0.19.0

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