fakes

package
v0.0.0-...-dd9aec0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

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 DeviceNameGenerator

type DeviceNameGenerator struct {
	GenerateForHostStub func(containerIP net.IP) (string, error)

	GenerateTemporaryForContainerStub func(containerIP net.IP) (string, error)
	// contains filtered or unexported fields
}

func (*DeviceNameGenerator) GenerateForHost

func (fake *DeviceNameGenerator) GenerateForHost(containerIP net.IP) (string, error)

func (*DeviceNameGenerator) GenerateForHostArgsForCall

func (fake *DeviceNameGenerator) GenerateForHostArgsForCall(i int) net.IP

func (*DeviceNameGenerator) GenerateForHostCallCount

func (fake *DeviceNameGenerator) GenerateForHostCallCount() int

func (*DeviceNameGenerator) GenerateForHostReturns

func (fake *DeviceNameGenerator) GenerateForHostReturns(result1 string, result2 error)

func (*DeviceNameGenerator) GenerateForHostReturnsOnCall

func (fake *DeviceNameGenerator) GenerateForHostReturnsOnCall(i int, result1 string, result2 error)

func (*DeviceNameGenerator) GenerateTemporaryForContainer

func (fake *DeviceNameGenerator) GenerateTemporaryForContainer(containerIP net.IP) (string, error)

func (*DeviceNameGenerator) GenerateTemporaryForContainerArgsForCall

func (fake *DeviceNameGenerator) GenerateTemporaryForContainerArgsForCall(i int) net.IP

func (*DeviceNameGenerator) GenerateTemporaryForContainerCallCount

func (fake *DeviceNameGenerator) GenerateTemporaryForContainerCallCount() int

func (*DeviceNameGenerator) GenerateTemporaryForContainerReturns

func (fake *DeviceNameGenerator) GenerateTemporaryForContainerReturns(result1 string, result2 error)

func (*DeviceNameGenerator) GenerateTemporaryForContainerReturnsOnCall

func (fake *DeviceNameGenerator) GenerateTemporaryForContainerReturnsOnCall(i int, result1 string, result2 error)

func (*DeviceNameGenerator) Invocations

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

type HardwareAddressGenerator

type HardwareAddressGenerator struct {
	GenerateForContainerStub func(containerIP net.IP) (net.HardwareAddr, error)

	GenerateForHostStub func(containerIP net.IP) (net.HardwareAddr, error)
	// contains filtered or unexported fields
}

func (*HardwareAddressGenerator) GenerateForContainer

func (fake *HardwareAddressGenerator) GenerateForContainer(containerIP net.IP) (net.HardwareAddr, error)

func (*HardwareAddressGenerator) GenerateForContainerArgsForCall

func (fake *HardwareAddressGenerator) GenerateForContainerArgsForCall(i int) net.IP

func (*HardwareAddressGenerator) GenerateForContainerCallCount

func (fake *HardwareAddressGenerator) GenerateForContainerCallCount() int

func (*HardwareAddressGenerator) GenerateForContainerReturns

func (fake *HardwareAddressGenerator) GenerateForContainerReturns(result1 net.HardwareAddr, result2 error)

func (*HardwareAddressGenerator) GenerateForContainerReturnsOnCall

func (fake *HardwareAddressGenerator) GenerateForContainerReturnsOnCall(i int, result1 net.HardwareAddr, result2 error)

func (*HardwareAddressGenerator) GenerateForHost

func (fake *HardwareAddressGenerator) GenerateForHost(containerIP net.IP) (net.HardwareAddr, error)

func (*HardwareAddressGenerator) GenerateForHostArgsForCall

func (fake *HardwareAddressGenerator) GenerateForHostArgsForCall(i int) net.IP

func (*HardwareAddressGenerator) GenerateForHostCallCount

func (fake *HardwareAddressGenerator) GenerateForHostCallCount() int

func (*HardwareAddressGenerator) GenerateForHostReturns

func (fake *HardwareAddressGenerator) GenerateForHostReturns(result1 net.HardwareAddr, result2 error)

func (*HardwareAddressGenerator) GenerateForHostReturnsOnCall

func (fake *HardwareAddressGenerator) GenerateForHostReturnsOnCall(i int, result1 net.HardwareAddr, result2 error)

func (*HardwareAddressGenerator) Invocations

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

type NamespaceAdapter

type NamespaceAdapter struct {
	GetNSStub func(string) (ns.NetNS, error)

	GetCurrentNSStub func() (ns.NetNS, error)
	// contains filtered or unexported fields
}

func (*NamespaceAdapter) GetCurrentNS

func (fake *NamespaceAdapter) GetCurrentNS() (ns.NetNS, error)

func (*NamespaceAdapter) GetCurrentNSCallCount

func (fake *NamespaceAdapter) GetCurrentNSCallCount() int

func (*NamespaceAdapter) GetCurrentNSReturns

func (fake *NamespaceAdapter) GetCurrentNSReturns(result1 ns.NetNS, result2 error)

func (*NamespaceAdapter) GetCurrentNSReturnsOnCall

func (fake *NamespaceAdapter) GetCurrentNSReturnsOnCall(i int, result1 ns.NetNS, result2 error)

func (*NamespaceAdapter) GetNS

func (fake *NamespaceAdapter) GetNS(arg1 string) (ns.NetNS, error)

func (*NamespaceAdapter) GetNSArgsForCall

func (fake *NamespaceAdapter) GetNSArgsForCall(i int) string

func (*NamespaceAdapter) GetNSCallCount

func (fake *NamespaceAdapter) GetNSCallCount() int

func (*NamespaceAdapter) GetNSReturns

func (fake *NamespaceAdapter) GetNSReturns(result1 ns.NetNS, result2 error)

func (*NamespaceAdapter) GetNSReturnsOnCall

func (fake *NamespaceAdapter) GetNSReturnsOnCall(i int, result1 ns.NetNS, result2 error)

func (*NamespaceAdapter) Invocations

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

type NetNS

type NetNS struct {
	DoStub func(toRun func(ns.NetNS) error) error

	SetStub func() error

	PathStub func() string

	FdStub func() uintptr

	CloseStub func() error
	// contains filtered or unexported fields
}

func (*NetNS) Close

func (fake *NetNS) Close() error

func (*NetNS) CloseCallCount

func (fake *NetNS) CloseCallCount() int

func (*NetNS) CloseReturns

func (fake *NetNS) CloseReturns(result1 error)

func (*NetNS) CloseReturnsOnCall

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

func (*NetNS) Do

func (fake *NetNS) Do(toRun func(ns.NetNS) error) error

func (*NetNS) DoArgsForCall

func (fake *NetNS) DoArgsForCall(i int) func(ns.NetNS) error

func (*NetNS) DoCallCount

func (fake *NetNS) DoCallCount() int

func (*NetNS) DoReturns

func (fake *NetNS) DoReturns(result1 error)

func (*NetNS) DoReturnsOnCall

func (fake *NetNS) DoReturnsOnCall(i int, result1 error)

func (*NetNS) Fd

func (fake *NetNS) Fd() uintptr

func (*NetNS) FdCallCount

func (fake *NetNS) FdCallCount() int

func (*NetNS) FdReturns

func (fake *NetNS) FdReturns(result1 uintptr)

func (*NetNS) FdReturnsOnCall

func (fake *NetNS) FdReturnsOnCall(i int, result1 uintptr)

func (*NetNS) Invocations

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

func (*NetNS) Path

func (fake *NetNS) Path() string

func (*NetNS) PathCallCount

func (fake *NetNS) PathCallCount() int

func (*NetNS) PathReturns

func (fake *NetNS) PathReturns(result1 string)

func (*NetNS) PathReturnsOnCall

func (fake *NetNS) PathReturnsOnCall(i int, result1 string)

func (*NetNS) Set

func (fake *NetNS) Set() error

func (*NetNS) SetCallCount

func (fake *NetNS) SetCallCount() int

func (*NetNS) SetReturns

func (fake *NetNS) SetReturns(result1 error)

func (*NetNS) SetReturnsOnCall

func (fake *NetNS) SetReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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