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: 5 Imported by: 0

Documentation

Overview

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 Container

type Container struct {
	StartStub func() error

	ShutdownStub func() error

	TerminateStub func() error

	WaitStub func() error

	WaitTimeoutStub func(time.Duration) error

	PauseStub func() error

	ResumeStub func() error

	HasPendingUpdatesStub func() (bool, error)

	StatisticsStub func() (hcsshim.Statistics, error)

	ProcessListStub func() ([]hcsshim.ProcessListItem, error)

	MappedVirtualDisksStub func() (map[int]hcsshim.MappedVirtualDiskController, error)

	CreateProcessStub func(c *hcsshim.ProcessConfig) (hcsshim.Process, error)

	OpenProcessStub func(pid int) (hcsshim.Process, error)

	CloseStub func() error

	ModifyStub func(config *hcsshim.ResourceModificationRequestResponse) error
	// contains filtered or unexported fields
}

func (*Container) Close

func (fake *Container) Close() error

func (*Container) CloseCallCount

func (fake *Container) CloseCallCount() int

func (*Container) CloseReturns

func (fake *Container) CloseReturns(result1 error)

func (*Container) CloseReturnsOnCall

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

func (*Container) CreateProcess

func (fake *Container) CreateProcess(c *hcsshim.ProcessConfig) (hcsshim.Process, error)

func (*Container) CreateProcessArgsForCall

func (fake *Container) CreateProcessArgsForCall(i int) *hcsshim.ProcessConfig

func (*Container) CreateProcessCallCount

func (fake *Container) CreateProcessCallCount() int

func (*Container) CreateProcessReturns

func (fake *Container) CreateProcessReturns(result1 hcsshim.Process, result2 error)

func (*Container) CreateProcessReturnsOnCall

func (fake *Container) CreateProcessReturnsOnCall(i int, result1 hcsshim.Process, result2 error)

func (*Container) HasPendingUpdates

func (fake *Container) HasPendingUpdates() (bool, error)

func (*Container) HasPendingUpdatesCallCount

func (fake *Container) HasPendingUpdatesCallCount() int

func (*Container) HasPendingUpdatesReturns

func (fake *Container) HasPendingUpdatesReturns(result1 bool, result2 error)

func (*Container) HasPendingUpdatesReturnsOnCall

func (fake *Container) HasPendingUpdatesReturnsOnCall(i int, result1 bool, result2 error)

func (*Container) Invocations

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

func (*Container) MappedVirtualDisks

func (fake *Container) MappedVirtualDisks() (map[int]hcsshim.MappedVirtualDiskController, error)

func (*Container) MappedVirtualDisksCallCount

func (fake *Container) MappedVirtualDisksCallCount() int

func (*Container) MappedVirtualDisksReturns

func (fake *Container) MappedVirtualDisksReturns(result1 map[int]hcsshim.MappedVirtualDiskController, result2 error)

func (*Container) MappedVirtualDisksReturnsOnCall

func (fake *Container) MappedVirtualDisksReturnsOnCall(i int, result1 map[int]hcsshim.MappedVirtualDiskController, result2 error)

func (*Container) Modify

func (*Container) ModifyArgsForCall

func (fake *Container) ModifyArgsForCall(i int) *hcsshim.ResourceModificationRequestResponse

func (*Container) ModifyCallCount

func (fake *Container) ModifyCallCount() int

func (*Container) ModifyReturns

func (fake *Container) ModifyReturns(result1 error)

func (*Container) ModifyReturnsOnCall

func (fake *Container) ModifyReturnsOnCall(i int, result1 error)

func (*Container) OpenProcess

func (fake *Container) OpenProcess(pid int) (hcsshim.Process, error)

func (*Container) OpenProcessArgsForCall

func (fake *Container) OpenProcessArgsForCall(i int) int

func (*Container) OpenProcessCallCount

func (fake *Container) OpenProcessCallCount() int

func (*Container) OpenProcessReturns

func (fake *Container) OpenProcessReturns(result1 hcsshim.Process, result2 error)

func (*Container) OpenProcessReturnsOnCall

func (fake *Container) OpenProcessReturnsOnCall(i int, result1 hcsshim.Process, result2 error)

func (*Container) Pause

func (fake *Container) Pause() error

func (*Container) PauseCallCount

func (fake *Container) PauseCallCount() int

func (*Container) PauseReturns

func (fake *Container) PauseReturns(result1 error)

func (*Container) PauseReturnsOnCall

func (fake *Container) PauseReturnsOnCall(i int, result1 error)

func (*Container) ProcessList

func (fake *Container) ProcessList() ([]hcsshim.ProcessListItem, error)

func (*Container) ProcessListCallCount

func (fake *Container) ProcessListCallCount() int

func (*Container) ProcessListReturns

func (fake *Container) ProcessListReturns(result1 []hcsshim.ProcessListItem, result2 error)

func (*Container) ProcessListReturnsOnCall

func (fake *Container) ProcessListReturnsOnCall(i int, result1 []hcsshim.ProcessListItem, result2 error)

func (*Container) Resume

func (fake *Container) Resume() error

func (*Container) ResumeCallCount

func (fake *Container) ResumeCallCount() int

func (*Container) ResumeReturns

func (fake *Container) ResumeReturns(result1 error)

func (*Container) ResumeReturnsOnCall

func (fake *Container) ResumeReturnsOnCall(i int, result1 error)

func (*Container) Shutdown

func (fake *Container) Shutdown() error

func (*Container) ShutdownCallCount

func (fake *Container) ShutdownCallCount() int

func (*Container) ShutdownReturns

func (fake *Container) ShutdownReturns(result1 error)

func (*Container) ShutdownReturnsOnCall

func (fake *Container) ShutdownReturnsOnCall(i int, result1 error)

func (*Container) Start

func (fake *Container) Start() error

func (*Container) StartCallCount

func (fake *Container) StartCallCount() int

func (*Container) StartReturns

func (fake *Container) StartReturns(result1 error)

func (*Container) StartReturnsOnCall

func (fake *Container) StartReturnsOnCall(i int, result1 error)

func (*Container) Statistics

func (fake *Container) Statistics() (hcsshim.Statistics, error)

func (*Container) StatisticsCallCount

func (fake *Container) StatisticsCallCount() int

func (*Container) StatisticsReturns

func (fake *Container) StatisticsReturns(result1 hcsshim.Statistics, result2 error)

func (*Container) StatisticsReturnsOnCall

func (fake *Container) StatisticsReturnsOnCall(i int, result1 hcsshim.Statistics, result2 error)

func (*Container) Terminate

func (fake *Container) Terminate() error

func (*Container) TerminateCallCount

func (fake *Container) TerminateCallCount() int

func (*Container) TerminateReturns

func (fake *Container) TerminateReturns(result1 error)

func (*Container) TerminateReturnsOnCall

func (fake *Container) TerminateReturnsOnCall(i int, result1 error)

func (*Container) Wait

func (fake *Container) Wait() error

func (*Container) WaitCallCount

func (fake *Container) WaitCallCount() int

func (*Container) WaitReturns

func (fake *Container) WaitReturns(result1 error)

func (*Container) WaitReturnsOnCall

func (fake *Container) WaitReturnsOnCall(i int, result1 error)

func (*Container) WaitTimeout

func (fake *Container) WaitTimeout(arg1 time.Duration) error

func (*Container) WaitTimeoutArgsForCall

func (fake *Container) WaitTimeoutArgsForCall(i int) time.Duration

func (*Container) WaitTimeoutCallCount

func (fake *Container) WaitTimeoutCallCount() int

func (*Container) WaitTimeoutReturns

func (fake *Container) WaitTimeoutReturns(result1 error)

func (*Container) WaitTimeoutReturnsOnCall

func (fake *Container) WaitTimeoutReturnsOnCall(i int, result1 error)

type Process

type Process struct {
	PidStub func() int

	KillStub func() error

	WaitStub func() error

	WaitTimeoutStub func(time.Duration) error

	ExitCodeStub func() (int, error)

	ResizeConsoleStub func(width, height uint16) error

	StdioStub func() (io.WriteCloser, io.ReadCloser, io.ReadCloser, error)

	CloseStdinStub func() error

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

func (*Process) Close

func (fake *Process) Close() error

func (*Process) CloseCallCount

func (fake *Process) CloseCallCount() int

func (*Process) CloseReturns

func (fake *Process) CloseReturns(result1 error)

func (*Process) CloseReturnsOnCall

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

func (*Process) CloseStdin

func (fake *Process) CloseStdin() error

func (*Process) CloseStdinCallCount

func (fake *Process) CloseStdinCallCount() int

func (*Process) CloseStdinReturns

func (fake *Process) CloseStdinReturns(result1 error)

func (*Process) CloseStdinReturnsOnCall

func (fake *Process) CloseStdinReturnsOnCall(i int, result1 error)

func (*Process) ExitCode

func (fake *Process) ExitCode() (int, error)

func (*Process) ExitCodeCallCount

func (fake *Process) ExitCodeCallCount() int

func (*Process) ExitCodeReturns

func (fake *Process) ExitCodeReturns(result1 int, result2 error)

func (*Process) ExitCodeReturnsOnCall

func (fake *Process) ExitCodeReturnsOnCall(i int, result1 int, result2 error)

func (*Process) Invocations

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

func (*Process) Kill

func (fake *Process) Kill() error

func (*Process) KillCallCount

func (fake *Process) KillCallCount() int

func (*Process) KillReturns

func (fake *Process) KillReturns(result1 error)

func (*Process) KillReturnsOnCall

func (fake *Process) KillReturnsOnCall(i int, result1 error)

func (*Process) Pid

func (fake *Process) Pid() int

func (*Process) PidCallCount

func (fake *Process) PidCallCount() int

func (*Process) PidReturns

func (fake *Process) PidReturns(result1 int)

func (*Process) PidReturnsOnCall

func (fake *Process) PidReturnsOnCall(i int, result1 int)

func (*Process) ResizeConsole

func (fake *Process) ResizeConsole(width uint16, height uint16) error

func (*Process) ResizeConsoleArgsForCall

func (fake *Process) ResizeConsoleArgsForCall(i int) (uint16, uint16)

func (*Process) ResizeConsoleCallCount

func (fake *Process) ResizeConsoleCallCount() int

func (*Process) ResizeConsoleReturns

func (fake *Process) ResizeConsoleReturns(result1 error)

func (*Process) ResizeConsoleReturnsOnCall

func (fake *Process) ResizeConsoleReturnsOnCall(i int, result1 error)

func (*Process) Stdio

func (fake *Process) Stdio() (io.WriteCloser, io.ReadCloser, io.ReadCloser, error)

func (*Process) StdioCallCount

func (fake *Process) StdioCallCount() int

func (*Process) StdioReturns

func (fake *Process) StdioReturns(result1 io.WriteCloser, result2 io.ReadCloser, result3 io.ReadCloser, result4 error)

func (*Process) StdioReturnsOnCall

func (fake *Process) StdioReturnsOnCall(i int, result1 io.WriteCloser, result2 io.ReadCloser, result3 io.ReadCloser, result4 error)

func (*Process) Wait

func (fake *Process) Wait() error

func (*Process) WaitCallCount

func (fake *Process) WaitCallCount() int

func (*Process) WaitReturns

func (fake *Process) WaitReturns(result1 error)

func (*Process) WaitReturnsOnCall

func (fake *Process) WaitReturnsOnCall(i int, result1 error)

func (*Process) WaitTimeout

func (fake *Process) WaitTimeout(arg1 time.Duration) error

func (*Process) WaitTimeoutArgsForCall

func (fake *Process) WaitTimeoutArgsForCall(i int) time.Duration

func (*Process) WaitTimeoutCallCount

func (fake *Process) WaitTimeoutCallCount() int

func (*Process) WaitTimeoutReturns

func (fake *Process) WaitTimeoutReturns(result1 error)

func (*Process) WaitTimeoutReturnsOnCall

func (fake *Process) WaitTimeoutReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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