fakes

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: Apache-2.0 Imports: 8 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

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, properties map[string]string) (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) Invocations

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

func (*CNIController) Up

func (fake *CNIController) Up(namespacePath string, handle string, properties map[string]string) (types.Result, error)

func (*CNIController) UpArgsForCall

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

func (*CNIController) UpCallCount

func (fake *CNIController) UpCallCount() int

func (*CNIController) UpReturns

func (fake *CNIController) UpReturns(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) AddNetworkReturns added in v0.5.0

func (fake *CNILibrary) AddNetworkReturns(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) DelNetworkReturns added in v0.5.0

func (fake *CNILibrary) DelNetworkReturns(result1 error)

func (*CNILibrary) Invocations added in v0.5.0

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

type ChainNamer

type ChainNamer struct {
	PrefixStub func(prefix, body string) string

	PostfixStub func(body, suffix string) (string, error)
	// contains filtered or unexported fields
}

func (*ChainNamer) Invocations

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

func (*ChainNamer) Postfix added in v0.7.0

func (fake *ChainNamer) Postfix(body string, suffix string) (string, error)

func (*ChainNamer) PostfixArgsForCall added in v0.7.0

func (fake *ChainNamer) PostfixArgsForCall(i int) (string, string)

func (*ChainNamer) PostfixCallCount added in v0.7.0

func (fake *ChainNamer) PostfixCallCount() int

func (*ChainNamer) PostfixReturns added in v0.7.0

func (fake *ChainNamer) PostfixReturns(result1 string, result2 error)

func (*ChainNamer) Prefix added in v0.7.0

func (fake *ChainNamer) Prefix(prefix string, body string) string

func (*ChainNamer) PrefixArgsForCall added in v0.7.0

func (fake *ChainNamer) PrefixArgsForCall(i int) (string, string)

func (*ChainNamer) PrefixCallCount added in v0.7.0

func (fake *ChainNamer) PrefixCallCount() int

func (*ChainNamer) PrefixReturns added in v0.7.0

func (fake *ChainNamer) PrefixReturns(result1 string)

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) 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)

type NetInProvider

type NetInProvider struct {
	InitializeStub func(containerHandle string) error

	CleanupStub func(containerHandle string) error

	AddRuleStub func(containerHandle string, hostPort, containerPort int, hostIP, containerIP string) error
	// contains filtered or unexported fields
}

func (*NetInProvider) AddRule

func (fake *NetInProvider) AddRule(containerHandle string, hostPort int, containerPort int, hostIP string, containerIP string) error

func (*NetInProvider) AddRuleArgsForCall

func (fake *NetInProvider) AddRuleArgsForCall(i int) (string, int, int, string, string)

func (*NetInProvider) AddRuleCallCount

func (fake *NetInProvider) AddRuleCallCount() int

func (*NetInProvider) AddRuleReturns

func (fake *NetInProvider) AddRuleReturns(result1 error)

func (*NetInProvider) Cleanup

func (fake *NetInProvider) Cleanup(containerHandle string) error

func (*NetInProvider) CleanupArgsForCall

func (fake *NetInProvider) CleanupArgsForCall(i int) string

func (*NetInProvider) CleanupCallCount

func (fake *NetInProvider) CleanupCallCount() int

func (*NetInProvider) CleanupReturns

func (fake *NetInProvider) CleanupReturns(result1 error)

func (*NetInProvider) Initialize

func (fake *NetInProvider) Initialize(containerHandle string) error

func (*NetInProvider) InitializeArgsForCall

func (fake *NetInProvider) InitializeArgsForCall(i int) string

func (*NetInProvider) InitializeCallCount

func (fake *NetInProvider) InitializeCallCount() int

func (*NetInProvider) InitializeReturns

func (fake *NetInProvider) InitializeReturns(result1 error)

func (*NetInProvider) Invocations

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

type NetOutProvider

type NetOutProvider struct {
	InitializeStub func(logger lager.Logger, containerHandle string, containerIP net.IP, overlayNetwork string) error

	CleanupStub func(containerHandle string) error

	InsertRuleStub func(containerHandle string, rule garden.NetOutRule, containerIP string) error

	BulkInsertRulesStub func(containerHandle string, rules []garden.NetOutRule, containerIP string) error
	// contains filtered or unexported fields
}

func (*NetOutProvider) BulkInsertRules added in v0.7.0

func (fake *NetOutProvider) BulkInsertRules(containerHandle string, rules []garden.NetOutRule, containerIP string) error

func (*NetOutProvider) BulkInsertRulesArgsForCall added in v0.7.0

func (fake *NetOutProvider) BulkInsertRulesArgsForCall(i int) (string, []garden.NetOutRule, string)

func (*NetOutProvider) BulkInsertRulesCallCount added in v0.7.0

func (fake *NetOutProvider) BulkInsertRulesCallCount() int

func (*NetOutProvider) BulkInsertRulesReturns added in v0.7.0

func (fake *NetOutProvider) BulkInsertRulesReturns(result1 error)

func (*NetOutProvider) Cleanup

func (fake *NetOutProvider) Cleanup(containerHandle string) error

func (*NetOutProvider) CleanupArgsForCall

func (fake *NetOutProvider) CleanupArgsForCall(i int) string

func (*NetOutProvider) CleanupCallCount

func (fake *NetOutProvider) CleanupCallCount() int

func (*NetOutProvider) CleanupReturns

func (fake *NetOutProvider) CleanupReturns(result1 error)

func (*NetOutProvider) Initialize

func (fake *NetOutProvider) Initialize(logger lager.Logger, containerHandle string, containerIP net.IP, overlayNetwork string) error

func (*NetOutProvider) InitializeArgsForCall

func (fake *NetOutProvider) InitializeArgsForCall(i int) (lager.Logger, string, net.IP, string)

func (*NetOutProvider) InitializeCallCount

func (fake *NetOutProvider) InitializeCallCount() int

func (*NetOutProvider) InitializeReturns

func (fake *NetOutProvider) InitializeReturns(result1 error)

func (*NetOutProvider) InsertRule

func (fake *NetOutProvider) InsertRule(containerHandle string, rule garden.NetOutRule, containerIP string) error

func (*NetOutProvider) InsertRuleArgsForCall

func (fake *NetOutProvider) InsertRuleArgsForCall(i int) (string, garden.NetOutRule, string)

func (*NetOutProvider) InsertRuleCallCount

func (fake *NetOutProvider) InsertRuleCallCount() int

func (*NetOutProvider) InsertRuleReturns

func (fake *NetOutProvider) InsertRuleReturns(result1 error)

func (*NetOutProvider) Invocations

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

type NetOutRuleConverter added in v0.7.0

type NetOutRuleConverter struct {
	ConvertStub func(rule garden.NetOutRule, containerIP, logChainName string) []rules.IPTablesRule

	BulkConvertStub func(rules []garden.NetOutRule, containerIP, logChainName string) []rules.IPTablesRule
	// contains filtered or unexported fields
}

func (*NetOutRuleConverter) BulkConvert added in v0.7.0

func (fake *NetOutRuleConverter) BulkConvert(rules []garden.NetOutRule, containerIP string, logChainName string) []rules.IPTablesRule

func (*NetOutRuleConverter) BulkConvertArgsForCall added in v0.7.0

func (fake *NetOutRuleConverter) BulkConvertArgsForCall(i int) ([]garden.NetOutRule, string, string)

func (*NetOutRuleConverter) BulkConvertCallCount added in v0.7.0

func (fake *NetOutRuleConverter) BulkConvertCallCount() int

func (*NetOutRuleConverter) BulkConvertReturns added in v0.7.0

func (fake *NetOutRuleConverter) BulkConvertReturns(result1 []rules.IPTablesRule)

func (*NetOutRuleConverter) Convert added in v0.7.0

func (fake *NetOutRuleConverter) Convert(rule garden.NetOutRule, containerIP string, logChainName string) []rules.IPTablesRule

func (*NetOutRuleConverter) ConvertArgsForCall added in v0.7.0

func (fake *NetOutRuleConverter) ConvertArgsForCall(i int) (garden.NetOutRule, string, string)

func (*NetOutRuleConverter) ConvertCallCount added in v0.7.0

func (fake *NetOutRuleConverter) ConvertCallCount() int

func (*NetOutRuleConverter) ConvertReturns added in v0.7.0

func (fake *NetOutRuleConverter) ConvertReturns(result1 []rules.IPTablesRule)

func (*NetOutRuleConverter) Invocations added in v0.7.0

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

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) 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)

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) 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) 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)

Jump to

Keyboard shortcuts

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