fakes

package
v0.0.0-...-6c08e66 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 10 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.

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 ContainerFactory

type ContainerFactory struct {
	NewManagerStub func(*logrus.Entry, *hcs.Client, string) runtime.ContainerManager
	// contains filtered or unexported fields
}

func (*ContainerFactory) Invocations

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

func (*ContainerFactory) NewManager

func (fake *ContainerFactory) NewManager(arg1 *logrus.Entry, arg2 *hcs.Client, arg3 string) runtime.ContainerManager

func (*ContainerFactory) NewManagerArgsForCall

func (fake *ContainerFactory) NewManagerArgsForCall(i int) (*logrus.Entry, *hcs.Client, string)

func (*ContainerFactory) NewManagerCallCount

func (fake *ContainerFactory) NewManagerCallCount() int

func (*ContainerFactory) NewManagerReturns

func (fake *ContainerFactory) NewManagerReturns(result1 runtime.ContainerManager)

func (*ContainerFactory) NewManagerReturnsOnCall

func (fake *ContainerFactory) NewManagerReturnsOnCall(i int, result1 runtime.ContainerManager)

type ContainerManager

type ContainerManager struct {
	CreateStub func(*specs.Spec, string) error

	CredentialSpecStub func(string) (string, error)

	DeleteStub func(bool) error

	ExecStub func(*specs.Process, bool) (hcs.Process, error)

	SpecStub func(string) (*specs.Spec, error)

	StatsStub func() (container.Statistics, error)
	// contains filtered or unexported fields
}

func (*ContainerManager) Create

func (fake *ContainerManager) Create(arg1 *specs.Spec, arg2 string) error

func (*ContainerManager) CreateArgsForCall

func (fake *ContainerManager) CreateArgsForCall(i int) (*specs.Spec, string)

func (*ContainerManager) CreateCallCount

func (fake *ContainerManager) CreateCallCount() int

func (*ContainerManager) CreateCalls

func (fake *ContainerManager) CreateCalls(stub func(*specs.Spec, string) error)

func (*ContainerManager) CreateReturns

func (fake *ContainerManager) CreateReturns(result1 error)

func (*ContainerManager) CreateReturnsOnCall

func (fake *ContainerManager) CreateReturnsOnCall(i int, result1 error)

func (*ContainerManager) CredentialSpec

func (fake *ContainerManager) CredentialSpec(arg1 string) (string, error)

func (*ContainerManager) CredentialSpecArgsForCall

func (fake *ContainerManager) CredentialSpecArgsForCall(i int) string

func (*ContainerManager) CredentialSpecCallCount

func (fake *ContainerManager) CredentialSpecCallCount() int

func (*ContainerManager) CredentialSpecCalls

func (fake *ContainerManager) CredentialSpecCalls(stub func(string) (string, error))

func (*ContainerManager) CredentialSpecReturns

func (fake *ContainerManager) CredentialSpecReturns(result1 string, result2 error)

func (*ContainerManager) CredentialSpecReturnsOnCall

func (fake *ContainerManager) CredentialSpecReturnsOnCall(i int, result1 string, result2 error)

func (*ContainerManager) Delete

func (fake *ContainerManager) Delete(arg1 bool) error

func (*ContainerManager) DeleteArgsForCall

func (fake *ContainerManager) DeleteArgsForCall(i int) bool

func (*ContainerManager) DeleteCallCount

func (fake *ContainerManager) DeleteCallCount() int

func (*ContainerManager) DeleteCalls

func (fake *ContainerManager) DeleteCalls(stub func(bool) error)

func (*ContainerManager) DeleteReturns

func (fake *ContainerManager) DeleteReturns(result1 error)

func (*ContainerManager) DeleteReturnsOnCall

func (fake *ContainerManager) DeleteReturnsOnCall(i int, result1 error)

func (*ContainerManager) Exec

func (fake *ContainerManager) Exec(arg1 *specs.Process, arg2 bool) (hcs.Process, error)

func (*ContainerManager) ExecArgsForCall

func (fake *ContainerManager) ExecArgsForCall(i int) (*specs.Process, bool)

func (*ContainerManager) ExecCallCount

func (fake *ContainerManager) ExecCallCount() int

func (*ContainerManager) ExecCalls

func (fake *ContainerManager) ExecCalls(stub func(*specs.Process, bool) (hcs.Process, error))

func (*ContainerManager) ExecReturns

func (fake *ContainerManager) ExecReturns(result1 hcs.Process, result2 error)

func (*ContainerManager) ExecReturnsOnCall

func (fake *ContainerManager) ExecReturnsOnCall(i int, result1 hcs.Process, result2 error)

func (*ContainerManager) Invocations

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

func (*ContainerManager) Spec

func (fake *ContainerManager) Spec(arg1 string) (*specs.Spec, error)

func (*ContainerManager) SpecArgsForCall

func (fake *ContainerManager) SpecArgsForCall(i int) string

func (*ContainerManager) SpecCallCount

func (fake *ContainerManager) SpecCallCount() int

func (*ContainerManager) SpecCalls

func (fake *ContainerManager) SpecCalls(stub func(string) (*specs.Spec, error))

func (*ContainerManager) SpecReturns

func (fake *ContainerManager) SpecReturns(result1 *specs.Spec, result2 error)

func (*ContainerManager) SpecReturnsOnCall

func (fake *ContainerManager) SpecReturnsOnCall(i int, result1 *specs.Spec, result2 error)

func (*ContainerManager) Stats

func (fake *ContainerManager) Stats() (container.Statistics, error)

func (*ContainerManager) StatsCallCount

func (fake *ContainerManager) StatsCallCount() int

func (*ContainerManager) StatsCalls

func (fake *ContainerManager) StatsCalls(stub func() (container.Statistics, error))

func (*ContainerManager) StatsReturns

func (fake *ContainerManager) StatsReturns(result1 container.Statistics, result2 error)

func (*ContainerManager) StatsReturnsOnCall

func (fake *ContainerManager) StatsReturnsOnCall(i int, result1 container.Statistics, result2 error)

type HCSQuery

type HCSQuery struct {
	GetContainersStub func(hcsshim.ComputeSystemQuery) ([]hcsshim.ContainerProperties, error)
	// contains filtered or unexported fields
}

func (*HCSQuery) GetContainers

func (fake *HCSQuery) GetContainers(arg1 hcsshim.ComputeSystemQuery) ([]hcsshim.ContainerProperties, error)

func (*HCSQuery) GetContainersArgsForCall

func (fake *HCSQuery) GetContainersArgsForCall(i int) hcsshim.ComputeSystemQuery

func (*HCSQuery) GetContainersCallCount

func (fake *HCSQuery) GetContainersCallCount() int

func (*HCSQuery) GetContainersReturns

func (fake *HCSQuery) GetContainersReturns(result1 []hcsshim.ContainerProperties, result2 error)

func (*HCSQuery) GetContainersReturnsOnCall

func (fake *HCSQuery) GetContainersReturnsOnCall(i int, result1 []hcsshim.ContainerProperties, result2 error)

func (*HCSQuery) Invocations

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

type Mounter

type Mounter struct {
	MountStub func(pid int, volumePath string, logger *logrus.Entry) error

	UnmountStub func(pid int) error
	// contains filtered or unexported fields
}

func (*Mounter) Invocations

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

func (*Mounter) Mount

func (fake *Mounter) Mount(pid int, volumePath string, logger *logrus.Entry) error

func (*Mounter) MountArgsForCall

func (fake *Mounter) MountArgsForCall(i int) (int, string, *logrus.Entry)

func (*Mounter) MountCallCount

func (fake *Mounter) MountCallCount() int

func (*Mounter) MountReturns

func (fake *Mounter) MountReturns(result1 error)

func (*Mounter) MountReturnsOnCall

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

func (*Mounter) Unmount

func (fake *Mounter) Unmount(pid int) error

func (*Mounter) UnmountArgsForCall

func (fake *Mounter) UnmountArgsForCall(i int) int

func (*Mounter) UnmountCallCount

func (fake *Mounter) UnmountCallCount() int

func (*Mounter) UnmountReturns

func (fake *Mounter) UnmountReturns(result1 error)

func (*Mounter) UnmountReturnsOnCall

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

type ProcessWrapper

type ProcessWrapper struct {
	WrapStub func(hcs.Process) runtime.WrappedProcess
	// contains filtered or unexported fields
}

func (*ProcessWrapper) Invocations

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

func (*ProcessWrapper) Wrap

func (fake *ProcessWrapper) Wrap(arg1 hcs.Process) runtime.WrappedProcess

func (*ProcessWrapper) WrapArgsForCall

func (fake *ProcessWrapper) WrapArgsForCall(i int) hcs.Process

func (*ProcessWrapper) WrapCallCount

func (fake *ProcessWrapper) WrapCallCount() int

func (*ProcessWrapper) WrapReturns

func (fake *ProcessWrapper) WrapReturns(result1 runtime.WrappedProcess)

func (*ProcessWrapper) WrapReturnsOnCall

func (fake *ProcessWrapper) WrapReturnsOnCall(i int, result1 runtime.WrappedProcess)

type Reader

type Reader struct {
	ReadCall struct {
		Receives struct {
			Bytes []byte
		}
		Returns struct {
			NumBytes int
			Error    error
		}
	}
}

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Read

func (r *Reader) Read(p []byte) (int, error)

type StateFactory

type StateFactory struct {
	NewManagerStub func(*logrus.Entry, *hcs.Client, *winsyscall.WinSyscall, string, string) runtime.StateManager
	// contains filtered or unexported fields
}

func (*StateFactory) Invocations

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

func (*StateFactory) NewManager

func (fake *StateFactory) NewManager(arg1 *logrus.Entry, arg2 *hcs.Client, arg3 *winsyscall.WinSyscall, arg4 string, arg5 string) runtime.StateManager

func (*StateFactory) NewManagerArgsForCall

func (fake *StateFactory) NewManagerArgsForCall(i int) (*logrus.Entry, *hcs.Client, *winsyscall.WinSyscall, string, string)

func (*StateFactory) NewManagerCallCount

func (fake *StateFactory) NewManagerCallCount() int

func (*StateFactory) NewManagerReturns

func (fake *StateFactory) NewManagerReturns(result1 runtime.StateManager)

func (*StateFactory) NewManagerReturnsOnCall

func (fake *StateFactory) NewManagerReturnsOnCall(i int, result1 runtime.StateManager)

type StateManager

type StateManager struct {
	InitializeStub func(string) error

	DeleteStub func() error

	SetFailureStub func() error

	SetSuccessStub func(hcs.Process) error

	StateStub func() (*specs.State, error)
	// contains filtered or unexported fields
}

func (*StateManager) Delete

func (fake *StateManager) Delete() error

func (*StateManager) DeleteCallCount

func (fake *StateManager) DeleteCallCount() int

func (*StateManager) DeleteReturns

func (fake *StateManager) DeleteReturns(result1 error)

func (*StateManager) DeleteReturnsOnCall

func (fake *StateManager) DeleteReturnsOnCall(i int, result1 error)

func (*StateManager) Initialize

func (fake *StateManager) Initialize(arg1 string) error

func (*StateManager) InitializeArgsForCall

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

func (*StateManager) InitializeCallCount

func (fake *StateManager) InitializeCallCount() int

func (*StateManager) InitializeReturns

func (fake *StateManager) InitializeReturns(result1 error)

func (*StateManager) InitializeReturnsOnCall

func (fake *StateManager) InitializeReturnsOnCall(i int, result1 error)

func (*StateManager) Invocations

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

func (*StateManager) SetFailure

func (fake *StateManager) SetFailure() error

func (*StateManager) SetFailureCallCount

func (fake *StateManager) SetFailureCallCount() int

func (*StateManager) SetFailureReturns

func (fake *StateManager) SetFailureReturns(result1 error)

func (*StateManager) SetFailureReturnsOnCall

func (fake *StateManager) SetFailureReturnsOnCall(i int, result1 error)

func (*StateManager) SetSuccess

func (fake *StateManager) SetSuccess(arg1 hcs.Process) error

func (*StateManager) SetSuccessArgsForCall

func (fake *StateManager) SetSuccessArgsForCall(i int) hcs.Process

func (*StateManager) SetSuccessCallCount

func (fake *StateManager) SetSuccessCallCount() int

func (*StateManager) SetSuccessReturns

func (fake *StateManager) SetSuccessReturns(result1 error)

func (*StateManager) SetSuccessReturnsOnCall

func (fake *StateManager) SetSuccessReturnsOnCall(i int, result1 error)

func (*StateManager) State

func (fake *StateManager) State() (*specs.State, error)

func (*StateManager) StateCallCount

func (fake *StateManager) StateCallCount() int

func (*StateManager) StateReturns

func (fake *StateManager) StateReturns(result1 *specs.State, result2 error)

func (*StateManager) StateReturnsOnCall

func (fake *StateManager) StateReturnsOnCall(i int, result1 *specs.State, result2 error)

type WrappedProcess

type WrappedProcess struct {
	AttachIOStub func(io.Reader, io.Writer, io.Writer) (int, error)

	SetInterruptStub func(chan os.Signal)

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

func (*WrappedProcess) AttachIO

func (fake *WrappedProcess) AttachIO(arg1 io.Reader, arg2 io.Writer, arg3 io.Writer) (int, error)

func (*WrappedProcess) AttachIOArgsForCall

func (fake *WrappedProcess) AttachIOArgsForCall(i int) (io.Reader, io.Writer, io.Writer)

func (*WrappedProcess) AttachIOCallCount

func (fake *WrappedProcess) AttachIOCallCount() int

func (*WrappedProcess) AttachIOReturns

func (fake *WrappedProcess) AttachIOReturns(result1 int, result2 error)

func (*WrappedProcess) AttachIOReturnsOnCall

func (fake *WrappedProcess) AttachIOReturnsOnCall(i int, result1 int, result2 error)

func (*WrappedProcess) Invocations

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

func (*WrappedProcess) SetInterrupt

func (fake *WrappedProcess) SetInterrupt(arg1 chan os.Signal)

func (*WrappedProcess) SetInterruptArgsForCall

func (fake *WrappedProcess) SetInterruptArgsForCall(i int) chan os.Signal

func (*WrappedProcess) SetInterruptCallCount

func (fake *WrappedProcess) SetInterruptCallCount() int

func (*WrappedProcess) WritePIDFile

func (fake *WrappedProcess) WritePIDFile(arg1 string) error

func (*WrappedProcess) WritePIDFileArgsForCall

func (fake *WrappedProcess) WritePIDFileArgsForCall(i int) string

func (*WrappedProcess) WritePIDFileCallCount

func (fake *WrappedProcess) WritePIDFileCallCount() int

func (*WrappedProcess) WritePIDFileReturns

func (fake *WrappedProcess) WritePIDFileReturns(result1 error)

func (*WrappedProcess) WritePIDFileReturnsOnCall

func (fake *WrappedProcess) WritePIDFileReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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