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 ¶
This file was generated by counterfeiter
Index ¶
- type CNIController
- func (fake *CNIController) Down(namespacePath string, handle string) error
- func (fake *CNIController) DownArgsForCall(i int) (string, string)
- func (fake *CNIController) DownCallCount() int
- func (fake *CNIController) DownReturns(result1 error)
- func (fake *CNIController) Invocations() map[string][][]interface{}
- func (fake *CNIController) Up(namespacePath string, handle string, properties map[string]string) (*types.Result, error)
- func (fake *CNIController) UpArgsForCall(i int) (string, string, map[string]string)
- func (fake *CNIController) UpCallCount() int
- func (fake *CNIController) UpReturns(result1 *types.Result, result2 error)
- type ChainNamer
- type FileLocker
- type Mounter
- func (fake *Mounter) IdempotentlyMount(source string, target string) error
- func (fake *Mounter) IdempotentlyMountArgsForCall(i int) (string, string)
- func (fake *Mounter) IdempotentlyMountCallCount() int
- func (fake *Mounter) IdempotentlyMountReturns(result1 error)
- func (fake *Mounter) Invocations() map[string][][]interface{}
- func (fake *Mounter) RemoveMount(target string) error
- func (fake *Mounter) RemoveMountArgsForCall(i int) string
- func (fake *Mounter) RemoveMountCallCount() int
- func (fake *Mounter) RemoveMountReturns(result1 error)
- type NetInProvider
- func (fake *NetInProvider) AddRule(containerHandle string, hostPort int, containerPort int, hostIP string, ...) error
- func (fake *NetInProvider) AddRuleArgsForCall(i int) (string, int, int, string, string)
- func (fake *NetInProvider) AddRuleCallCount() int
- func (fake *NetInProvider) AddRuleReturns(result1 error)
- func (fake *NetInProvider) Cleanup(containerHandle string) error
- func (fake *NetInProvider) CleanupArgsForCall(i int) string
- func (fake *NetInProvider) CleanupCallCount() int
- func (fake *NetInProvider) CleanupReturns(result1 error)
- func (fake *NetInProvider) Initialize(containerHandle string) error
- func (fake *NetInProvider) InitializeArgsForCall(i int) string
- func (fake *NetInProvider) InitializeCallCount() int
- func (fake *NetInProvider) InitializeReturns(result1 error)
- func (fake *NetInProvider) Invocations() map[string][][]interface{}
- type NetOutProvider
- func (fake *NetOutProvider) Cleanup(containerHandle string) error
- func (fake *NetOutProvider) CleanupArgsForCall(i int) string
- func (fake *NetOutProvider) CleanupCallCount() int
- func (fake *NetOutProvider) CleanupReturns(result1 error)
- func (fake *NetOutProvider) Initialize(logger lager.Logger, containerHandle string, containerIP net.IP, ...) error
- func (fake *NetOutProvider) InitializeArgsForCall(i int) (lager.Logger, string, net.IP, string)
- func (fake *NetOutProvider) InitializeCallCount() int
- func (fake *NetOutProvider) InitializeReturns(result1 error)
- func (fake *NetOutProvider) InsertRule(containerHandle string, rule garden.NetOutRule, containerIP string) error
- func (fake *NetOutProvider) InsertRuleArgsForCall(i int) (string, garden.NetOutRule, string)
- func (fake *NetOutProvider) InsertRuleCallCount() int
- func (fake *NetOutProvider) InsertRuleReturns(result1 error)
- func (fake *NetOutProvider) Invocations() map[string][][]interface{}
- type OverwriteableFile
- func (fake *OverwriteableFile) Invocations() map[string][][]interface{}
- func (fake *OverwriteableFile) Read(p []byte) (n int, err error)
- func (fake *OverwriteableFile) ReadArgsForCall(i int) []byte
- func (fake *OverwriteableFile) ReadCallCount() int
- func (fake *OverwriteableFile) ReadReturns(result1 int, result2 error)
- func (fake *OverwriteableFile) Seek(offset int64, whence int) (int64, error)
- func (fake *OverwriteableFile) SeekArgsForCall(i int) (int64, int)
- func (fake *OverwriteableFile) SeekCallCount() int
- func (fake *OverwriteableFile) SeekReturns(result1 int64, result2 error)
- func (fake *OverwriteableFile) Truncate(size int64) error
- func (fake *OverwriteableFile) TruncateArgsForCall(i int) int64
- func (fake *OverwriteableFile) TruncateCallCount() int
- func (fake *OverwriteableFile) TruncateReturns(result1 error)
- func (fake *OverwriteableFile) Write(p []byte) (n int, err error)
- func (fake *OverwriteableFile) WriteArgsForCall(i int) []byte
- func (fake *OverwriteableFile) WriteCallCount() int
- func (fake *OverwriteableFile) WriteReturns(result1 int, result2 error)
- type PortAllocator
- func (fake *PortAllocator) AllocatePort(handle string, port int) (int, error)
- func (fake *PortAllocator) AllocatePortArgsForCall(i int) (string, int)
- func (fake *PortAllocator) AllocatePortCallCount() int
- func (fake *PortAllocator) AllocatePortReturns(result1 int, result2 error)
- func (fake *PortAllocator) Invocations() map[string][][]interface{}
- func (fake *PortAllocator) ReleaseAllPorts(handle string) error
- func (fake *PortAllocator) ReleaseAllPortsArgsForCall(i int) string
- func (fake *PortAllocator) ReleaseAllPortsCallCount() int
- func (fake *PortAllocator) ReleaseAllPortsReturns(result1 error)
- type Serializer
- func (fake *Serializer) DecodeAll(file io.ReadSeeker, outData interface{}) error
- func (fake *Serializer) DecodeAllArgsForCall(i int) (io.ReadSeeker, interface{})
- func (fake *Serializer) DecodeAllCallCount() int
- func (fake *Serializer) DecodeAllReturns(result1 error)
- func (fake *Serializer) EncodeAndOverwrite(file port_allocator.OverwriteableFile, outData interface{}) error
- func (fake *Serializer) EncodeAndOverwriteArgsForCall(i int) (port_allocator.OverwriteableFile, interface{})
- func (fake *Serializer) EncodeAndOverwriteCallCount() int
- func (fake *Serializer) EncodeAndOverwriteReturns(result1 error)
- func (fake *Serializer) Invocations() map[string][][]interface{}
- type Tracker
- func (fake *Tracker) AcquireOne(pool *port_allocator.Pool, handle string) (int, error)
- func (fake *Tracker) AcquireOneArgsForCall(i int) (*port_allocator.Pool, string)
- func (fake *Tracker) AcquireOneCallCount() int
- func (fake *Tracker) AcquireOneReturns(result1 int, result2 error)
- func (fake *Tracker) InRange(port int) bool
- func (fake *Tracker) InRangeArgsForCall(i int) int
- func (fake *Tracker) InRangeCallCount() int
- func (fake *Tracker) InRangeReturns(result1 bool)
- func (fake *Tracker) Invocations() map[string][][]interface{}
- func (fake *Tracker) ReleaseAll(pool *port_allocator.Pool, handle string) error
- func (fake *Tracker) ReleaseAllArgsForCall(i int) (*port_allocator.Pool, string)
- func (fake *Tracker) ReleaseAllCallCount() int
- func (fake *Tracker) ReleaseAllReturns(result1 error)
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) UpArgsForCall ¶
func (*CNIController) UpCallCount ¶
func (fake *CNIController) UpCallCount() int
type ChainNamer ¶
type ChainNamer struct { NameStub func(prefix, containerHandle string) string // contains filtered or unexported fields }
func (*ChainNamer) Invocations ¶
func (fake *ChainNamer) Invocations() map[string][][]interface{}
func (*ChainNamer) Name ¶
func (fake *ChainNamer) Name(prefix string, containerHandle string) string
func (*ChainNamer) NameArgsForCall ¶
func (fake *ChainNamer) NameArgsForCall(i int) (string, string)
func (*ChainNamer) NameCallCount ¶
func (fake *ChainNamer) NameCallCount() int
func (*ChainNamer) NameReturns ¶
func (fake *ChainNamer) NameReturns(result1 string)
type FileLocker ¶
type FileLocker struct { OpenStub func() (*os.File, error) // contains filtered or unexported fields }
func (*FileLocker) Invocations ¶
func (fake *FileLocker) Invocations() map[string][][]interface{}
func (*FileLocker) OpenCallCount ¶
func (fake *FileLocker) OpenCallCount() int
func (*FileLocker) OpenReturns ¶
func (fake *FileLocker) OpenReturns(result1 *os.File, 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 (*Mounter) IdempotentlyMountArgsForCall ¶
func (*Mounter) IdempotentlyMountCallCount ¶
func (*Mounter) IdempotentlyMountReturns ¶
func (*Mounter) Invocations ¶
func (*Mounter) RemoveMount ¶
func (*Mounter) RemoveMountArgsForCall ¶
func (*Mounter) RemoveMountCallCount ¶
func (*Mounter) RemoveMountReturns ¶
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) AddRuleArgsForCall ¶
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 // contains filtered or unexported fields }
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 (*NetOutProvider) InitializeArgsForCall ¶
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 OverwriteableFile ¶
type OverwriteableFile struct { ReadStub func(p []byte) (n int, err error) WriteStub func(p []byte) (n int, err error) SeekStub func(offset int64, whence int) (int64, error) TruncateStub func(size int64) error // contains filtered or unexported fields }
func (*OverwriteableFile) Invocations ¶
func (fake *OverwriteableFile) Invocations() map[string][][]interface{}
func (*OverwriteableFile) ReadArgsForCall ¶
func (fake *OverwriteableFile) ReadArgsForCall(i int) []byte
func (*OverwriteableFile) ReadCallCount ¶
func (fake *OverwriteableFile) ReadCallCount() int
func (*OverwriteableFile) ReadReturns ¶
func (fake *OverwriteableFile) ReadReturns(result1 int, result2 error)
func (*OverwriteableFile) Seek ¶
func (fake *OverwriteableFile) Seek(offset int64, whence int) (int64, error)
func (*OverwriteableFile) SeekArgsForCall ¶
func (fake *OverwriteableFile) SeekArgsForCall(i int) (int64, int)
func (*OverwriteableFile) SeekCallCount ¶
func (fake *OverwriteableFile) SeekCallCount() int
func (*OverwriteableFile) SeekReturns ¶
func (fake *OverwriteableFile) SeekReturns(result1 int64, result2 error)
func (*OverwriteableFile) Truncate ¶
func (fake *OverwriteableFile) Truncate(size int64) error
func (*OverwriteableFile) TruncateArgsForCall ¶
func (fake *OverwriteableFile) TruncateArgsForCall(i int) int64
func (*OverwriteableFile) TruncateCallCount ¶
func (fake *OverwriteableFile) TruncateCallCount() int
func (*OverwriteableFile) TruncateReturns ¶
func (fake *OverwriteableFile) TruncateReturns(result1 error)
func (*OverwriteableFile) WriteArgsForCall ¶
func (fake *OverwriteableFile) WriteArgsForCall(i int) []byte
func (*OverwriteableFile) WriteCallCount ¶
func (fake *OverwriteableFile) WriteCallCount() int
func (*OverwriteableFile) WriteReturns ¶
func (fake *OverwriteableFile) WriteReturns(result1 int, result2 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) 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 Serializer ¶
type Serializer struct { DecodeAllStub func(file io.ReadSeeker, outData interface{}) error EncodeAndOverwriteStub func(file port_allocator.OverwriteableFile, outData interface{}) error // contains filtered or unexported fields }
func (*Serializer) DecodeAll ¶
func (fake *Serializer) DecodeAll(file io.ReadSeeker, outData interface{}) error
func (*Serializer) DecodeAllArgsForCall ¶
func (fake *Serializer) DecodeAllArgsForCall(i int) (io.ReadSeeker, interface{})
func (*Serializer) DecodeAllCallCount ¶
func (fake *Serializer) DecodeAllCallCount() int
func (*Serializer) DecodeAllReturns ¶
func (fake *Serializer) DecodeAllReturns(result1 error)
func (*Serializer) EncodeAndOverwrite ¶
func (fake *Serializer) EncodeAndOverwrite(file port_allocator.OverwriteableFile, outData interface{}) error
func (*Serializer) EncodeAndOverwriteArgsForCall ¶
func (fake *Serializer) EncodeAndOverwriteArgsForCall(i int) (port_allocator.OverwriteableFile, interface{})
func (*Serializer) EncodeAndOverwriteCallCount ¶
func (fake *Serializer) EncodeAndOverwriteCallCount() int
func (*Serializer) EncodeAndOverwriteReturns ¶
func (fake *Serializer) EncodeAndOverwriteReturns(result1 error)
func (*Serializer) Invocations ¶
func (fake *Serializer) Invocations() map[string][][]interface{}
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 (*Tracker) AcquireOneArgsForCall ¶
func (fake *Tracker) AcquireOneArgsForCall(i int) (*port_allocator.Pool, string)
func (*Tracker) AcquireOneCallCount ¶
func (*Tracker) AcquireOneReturns ¶
func (*Tracker) InRangeArgsForCall ¶
func (*Tracker) InRangeCallCount ¶
func (*Tracker) InRangeReturns ¶
func (*Tracker) Invocations ¶
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 (*Tracker) ReleaseAllReturns ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.