libcontainerdfakes

package
v6.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	ContainersStub func(context.Context, ...string) ([]containerd.Container, error)

	DestroyStub func(context.Context, string) error

	GetContainerStub func(context.Context, string) (containerd.Container, error)

	InitStub func() error

	NewContainerStub func(context.Context, string, map[string]string, *specs.Spec) (containerd.Container, error)

	StopStub func() error

	VersionStub func(context.Context) error
	// contains filtered or unexported fields
}

func (*FakeClient) Containers

func (fake *FakeClient) Containers(arg1 context.Context, arg2 ...string) ([]containerd.Container, error)

func (*FakeClient) ContainersArgsForCall

func (fake *FakeClient) ContainersArgsForCall(i int) (context.Context, []string)

func (*FakeClient) ContainersCallCount

func (fake *FakeClient) ContainersCallCount() int

func (*FakeClient) ContainersCalls

func (fake *FakeClient) ContainersCalls(stub func(context.Context, ...string) ([]containerd.Container, error))

func (*FakeClient) ContainersReturns

func (fake *FakeClient) ContainersReturns(result1 []containerd.Container, result2 error)

func (*FakeClient) ContainersReturnsOnCall

func (fake *FakeClient) ContainersReturnsOnCall(i int, result1 []containerd.Container, result2 error)

func (*FakeClient) Destroy

func (fake *FakeClient) Destroy(arg1 context.Context, arg2 string) error

func (*FakeClient) DestroyArgsForCall

func (fake *FakeClient) DestroyArgsForCall(i int) (context.Context, string)

func (*FakeClient) DestroyCallCount

func (fake *FakeClient) DestroyCallCount() int

func (*FakeClient) DestroyCalls

func (fake *FakeClient) DestroyCalls(stub func(context.Context, string) error)

func (*FakeClient) DestroyReturns

func (fake *FakeClient) DestroyReturns(result1 error)

func (*FakeClient) DestroyReturnsOnCall

func (fake *FakeClient) DestroyReturnsOnCall(i int, result1 error)

func (*FakeClient) GetContainer

func (fake *FakeClient) GetContainer(arg1 context.Context, arg2 string) (containerd.Container, error)

func (*FakeClient) GetContainerArgsForCall

func (fake *FakeClient) GetContainerArgsForCall(i int) (context.Context, string)

func (*FakeClient) GetContainerCallCount

func (fake *FakeClient) GetContainerCallCount() int

func (*FakeClient) GetContainerCalls

func (fake *FakeClient) GetContainerCalls(stub func(context.Context, string) (containerd.Container, error))

func (*FakeClient) GetContainerReturns

func (fake *FakeClient) GetContainerReturns(result1 containerd.Container, result2 error)

func (*FakeClient) GetContainerReturnsOnCall

func (fake *FakeClient) GetContainerReturnsOnCall(i int, result1 containerd.Container, result2 error)

func (*FakeClient) Init

func (fake *FakeClient) Init() error

func (*FakeClient) InitCallCount

func (fake *FakeClient) InitCallCount() int

func (*FakeClient) InitCalls

func (fake *FakeClient) InitCalls(stub func() error)

func (*FakeClient) InitReturns

func (fake *FakeClient) InitReturns(result1 error)

func (*FakeClient) InitReturnsOnCall

func (fake *FakeClient) InitReturnsOnCall(i int, result1 error)

func (*FakeClient) Invocations

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

func (*FakeClient) NewContainer

func (fake *FakeClient) NewContainer(arg1 context.Context, arg2 string, arg3 map[string]string, arg4 *specs.Spec) (containerd.Container, error)

func (*FakeClient) NewContainerArgsForCall

func (fake *FakeClient) NewContainerArgsForCall(i int) (context.Context, string, map[string]string, *specs.Spec)

func (*FakeClient) NewContainerCallCount

func (fake *FakeClient) NewContainerCallCount() int

func (*FakeClient) NewContainerCalls

func (fake *FakeClient) NewContainerCalls(stub func(context.Context, string, map[string]string, *specs.Spec) (containerd.Container, error))

func (*FakeClient) NewContainerReturns

func (fake *FakeClient) NewContainerReturns(result1 containerd.Container, result2 error)

func (*FakeClient) NewContainerReturnsOnCall

func (fake *FakeClient) NewContainerReturnsOnCall(i int, result1 containerd.Container, result2 error)

func (*FakeClient) Stop

func (fake *FakeClient) Stop() error

func (*FakeClient) StopCallCount

func (fake *FakeClient) StopCallCount() int

func (*FakeClient) StopCalls

func (fake *FakeClient) StopCalls(stub func() error)

func (*FakeClient) StopReturns

func (fake *FakeClient) StopReturns(result1 error)

func (*FakeClient) StopReturnsOnCall

func (fake *FakeClient) StopReturnsOnCall(i int, result1 error)

func (*FakeClient) Version

func (fake *FakeClient) Version(arg1 context.Context) error

func (*FakeClient) VersionArgsForCall

func (fake *FakeClient) VersionArgsForCall(i int) context.Context

func (*FakeClient) VersionCallCount

func (fake *FakeClient) VersionCallCount() int

func (*FakeClient) VersionCalls

func (fake *FakeClient) VersionCalls(stub func(context.Context) error)

func (*FakeClient) VersionReturns

func (fake *FakeClient) VersionReturns(result1 error)

func (*FakeClient) VersionReturnsOnCall

func (fake *FakeClient) VersionReturnsOnCall(i int, result1 error)

type FakeContainer

type FakeContainer struct {
	CheckpointStub func(context.Context, string, ...containerd.CheckpointOpts) (containerd.Image, error)

	DeleteStub func(context.Context, ...containerd.DeleteOpts) error

	ExtensionsStub func(context.Context) (map[string]types.Any, error)

	IDStub func() string

	ImageStub func(context.Context) (containerd.Image, error)

	InfoStub func(context.Context, ...containerd.InfoOpts) (containers.Container, error)

	LabelsStub func(context.Context) (map[string]string, error)

	NewTaskStub func(context.Context, cio.Creator, ...containerd.NewTaskOpts) (containerd.Task, error)

	SetLabelsStub func(context.Context, map[string]string) (map[string]string, error)

	SpecStub func(context.Context) (*specs.Spec, error)

	TaskStub func(context.Context, cio.Attach) (containerd.Task, error)

	UpdateStub func(context.Context, ...containerd.UpdateContainerOpts) error
	// contains filtered or unexported fields
}

func (*FakeContainer) Checkpoint

func (fake *FakeContainer) Checkpoint(arg1 context.Context, arg2 string, arg3 ...containerd.CheckpointOpts) (containerd.Image, error)

func (*FakeContainer) CheckpointArgsForCall

func (fake *FakeContainer) CheckpointArgsForCall(i int) (context.Context, string, []containerd.CheckpointOpts)

func (*FakeContainer) CheckpointCallCount

func (fake *FakeContainer) CheckpointCallCount() int

func (*FakeContainer) CheckpointCalls

func (fake *FakeContainer) CheckpointCalls(stub func(context.Context, string, ...containerd.CheckpointOpts) (containerd.Image, error))

func (*FakeContainer) CheckpointReturns

func (fake *FakeContainer) CheckpointReturns(result1 containerd.Image, result2 error)

func (*FakeContainer) CheckpointReturnsOnCall

func (fake *FakeContainer) CheckpointReturnsOnCall(i int, result1 containerd.Image, result2 error)

func (*FakeContainer) Delete

func (fake *FakeContainer) Delete(arg1 context.Context, arg2 ...containerd.DeleteOpts) error

func (*FakeContainer) DeleteArgsForCall

func (fake *FakeContainer) DeleteArgsForCall(i int) (context.Context, []containerd.DeleteOpts)

func (*FakeContainer) DeleteCallCount

func (fake *FakeContainer) DeleteCallCount() int

func (*FakeContainer) DeleteCalls

func (fake *FakeContainer) DeleteCalls(stub func(context.Context, ...containerd.DeleteOpts) error)

func (*FakeContainer) DeleteReturns

func (fake *FakeContainer) DeleteReturns(result1 error)

func (*FakeContainer) DeleteReturnsOnCall

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

func (*FakeContainer) Extensions

func (fake *FakeContainer) Extensions(arg1 context.Context) (map[string]types.Any, error)

func (*FakeContainer) ExtensionsArgsForCall

func (fake *FakeContainer) ExtensionsArgsForCall(i int) context.Context

func (*FakeContainer) ExtensionsCallCount

func (fake *FakeContainer) ExtensionsCallCount() int

func (*FakeContainer) ExtensionsCalls

func (fake *FakeContainer) ExtensionsCalls(stub func(context.Context) (map[string]types.Any, error))

func (*FakeContainer) ExtensionsReturns

func (fake *FakeContainer) ExtensionsReturns(result1 map[string]types.Any, result2 error)

func (*FakeContainer) ExtensionsReturnsOnCall

func (fake *FakeContainer) ExtensionsReturnsOnCall(i int, result1 map[string]types.Any, result2 error)

func (*FakeContainer) ID

func (fake *FakeContainer) ID() string

func (*FakeContainer) IDCallCount

func (fake *FakeContainer) IDCallCount() int

func (*FakeContainer) IDCalls

func (fake *FakeContainer) IDCalls(stub func() string)

func (*FakeContainer) IDReturns

func (fake *FakeContainer) IDReturns(result1 string)

func (*FakeContainer) IDReturnsOnCall

func (fake *FakeContainer) IDReturnsOnCall(i int, result1 string)

func (*FakeContainer) Image

func (fake *FakeContainer) Image(arg1 context.Context) (containerd.Image, error)

func (*FakeContainer) ImageArgsForCall

func (fake *FakeContainer) ImageArgsForCall(i int) context.Context

func (*FakeContainer) ImageCallCount

func (fake *FakeContainer) ImageCallCount() int

func (*FakeContainer) ImageCalls

func (fake *FakeContainer) ImageCalls(stub func(context.Context) (containerd.Image, error))

func (*FakeContainer) ImageReturns

func (fake *FakeContainer) ImageReturns(result1 containerd.Image, result2 error)

func (*FakeContainer) ImageReturnsOnCall

func (fake *FakeContainer) ImageReturnsOnCall(i int, result1 containerd.Image, result2 error)

func (*FakeContainer) Info

func (*FakeContainer) InfoArgsForCall

func (fake *FakeContainer) InfoArgsForCall(i int) (context.Context, []containerd.InfoOpts)

func (*FakeContainer) InfoCallCount

func (fake *FakeContainer) InfoCallCount() int

func (*FakeContainer) InfoCalls

func (fake *FakeContainer) InfoCalls(stub func(context.Context, ...containerd.InfoOpts) (containers.Container, error))

func (*FakeContainer) InfoReturns

func (fake *FakeContainer) InfoReturns(result1 containers.Container, result2 error)

func (*FakeContainer) InfoReturnsOnCall

func (fake *FakeContainer) InfoReturnsOnCall(i int, result1 containers.Container, result2 error)

func (*FakeContainer) Invocations

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

func (*FakeContainer) Labels

func (fake *FakeContainer) Labels(arg1 context.Context) (map[string]string, error)

func (*FakeContainer) LabelsArgsForCall

func (fake *FakeContainer) LabelsArgsForCall(i int) context.Context

func (*FakeContainer) LabelsCallCount

func (fake *FakeContainer) LabelsCallCount() int

func (*FakeContainer) LabelsCalls

func (fake *FakeContainer) LabelsCalls(stub func(context.Context) (map[string]string, error))

func (*FakeContainer) LabelsReturns

func (fake *FakeContainer) LabelsReturns(result1 map[string]string, result2 error)

func (*FakeContainer) LabelsReturnsOnCall

func (fake *FakeContainer) LabelsReturnsOnCall(i int, result1 map[string]string, result2 error)

func (*FakeContainer) NewTask

func (fake *FakeContainer) NewTask(arg1 context.Context, arg2 cio.Creator, arg3 ...containerd.NewTaskOpts) (containerd.Task, error)

func (*FakeContainer) NewTaskArgsForCall

func (fake *FakeContainer) NewTaskArgsForCall(i int) (context.Context, cio.Creator, []containerd.NewTaskOpts)

func (*FakeContainer) NewTaskCallCount

func (fake *FakeContainer) NewTaskCallCount() int

func (*FakeContainer) NewTaskCalls

func (fake *FakeContainer) NewTaskCalls(stub func(context.Context, cio.Creator, ...containerd.NewTaskOpts) (containerd.Task, error))

func (*FakeContainer) NewTaskReturns

func (fake *FakeContainer) NewTaskReturns(result1 containerd.Task, result2 error)

func (*FakeContainer) NewTaskReturnsOnCall

func (fake *FakeContainer) NewTaskReturnsOnCall(i int, result1 containerd.Task, result2 error)

func (*FakeContainer) SetLabels

func (fake *FakeContainer) SetLabels(arg1 context.Context, arg2 map[string]string) (map[string]string, error)

func (*FakeContainer) SetLabelsArgsForCall

func (fake *FakeContainer) SetLabelsArgsForCall(i int) (context.Context, map[string]string)

func (*FakeContainer) SetLabelsCallCount

func (fake *FakeContainer) SetLabelsCallCount() int

func (*FakeContainer) SetLabelsCalls

func (fake *FakeContainer) SetLabelsCalls(stub func(context.Context, map[string]string) (map[string]string, error))

func (*FakeContainer) SetLabelsReturns

func (fake *FakeContainer) SetLabelsReturns(result1 map[string]string, result2 error)

func (*FakeContainer) SetLabelsReturnsOnCall

func (fake *FakeContainer) SetLabelsReturnsOnCall(i int, result1 map[string]string, result2 error)

func (*FakeContainer) Spec

func (fake *FakeContainer) Spec(arg1 context.Context) (*specs.Spec, error)

func (*FakeContainer) SpecArgsForCall

func (fake *FakeContainer) SpecArgsForCall(i int) context.Context

func (*FakeContainer) SpecCallCount

func (fake *FakeContainer) SpecCallCount() int

func (*FakeContainer) SpecCalls

func (fake *FakeContainer) SpecCalls(stub func(context.Context) (*specs.Spec, error))

func (*FakeContainer) SpecReturns

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

func (*FakeContainer) SpecReturnsOnCall

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

func (*FakeContainer) Task

func (fake *FakeContainer) Task(arg1 context.Context, arg2 cio.Attach) (containerd.Task, error)

func (*FakeContainer) TaskArgsForCall

func (fake *FakeContainer) TaskArgsForCall(i int) (context.Context, cio.Attach)

func (*FakeContainer) TaskCallCount

func (fake *FakeContainer) TaskCallCount() int

func (*FakeContainer) TaskCalls

func (fake *FakeContainer) TaskCalls(stub func(context.Context, cio.Attach) (containerd.Task, error))

func (*FakeContainer) TaskReturns

func (fake *FakeContainer) TaskReturns(result1 containerd.Task, result2 error)

func (*FakeContainer) TaskReturnsOnCall

func (fake *FakeContainer) TaskReturnsOnCall(i int, result1 containerd.Task, result2 error)

func (*FakeContainer) Update

func (fake *FakeContainer) Update(arg1 context.Context, arg2 ...containerd.UpdateContainerOpts) error

func (*FakeContainer) UpdateArgsForCall

func (fake *FakeContainer) UpdateArgsForCall(i int) (context.Context, []containerd.UpdateContainerOpts)

func (*FakeContainer) UpdateCallCount

func (fake *FakeContainer) UpdateCallCount() int

func (*FakeContainer) UpdateCalls

func (fake *FakeContainer) UpdateCalls(stub func(context.Context, ...containerd.UpdateContainerOpts) error)

func (*FakeContainer) UpdateReturns

func (fake *FakeContainer) UpdateReturns(result1 error)

func (*FakeContainer) UpdateReturnsOnCall

func (fake *FakeContainer) UpdateReturnsOnCall(i int, result1 error)

type FakeIO

type FakeIO struct {
	CancelStub func()

	CloseStub func() error

	ConfigStub func() cio.Config

	WaitStub func()
	// contains filtered or unexported fields
}

func (*FakeIO) Cancel

func (fake *FakeIO) Cancel()

func (*FakeIO) CancelCallCount

func (fake *FakeIO) CancelCallCount() int

func (*FakeIO) CancelCalls

func (fake *FakeIO) CancelCalls(stub func())

func (*FakeIO) Close

func (fake *FakeIO) Close() error

func (*FakeIO) CloseCallCount

func (fake *FakeIO) CloseCallCount() int

func (*FakeIO) CloseCalls

func (fake *FakeIO) CloseCalls(stub func() error)

func (*FakeIO) CloseReturns

func (fake *FakeIO) CloseReturns(result1 error)

func (*FakeIO) CloseReturnsOnCall

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

func (*FakeIO) Config

func (fake *FakeIO) Config() cio.Config

func (*FakeIO) ConfigCallCount

func (fake *FakeIO) ConfigCallCount() int

func (*FakeIO) ConfigCalls

func (fake *FakeIO) ConfigCalls(stub func() cio.Config)

func (*FakeIO) ConfigReturns

func (fake *FakeIO) ConfigReturns(result1 cio.Config)

func (*FakeIO) ConfigReturnsOnCall

func (fake *FakeIO) ConfigReturnsOnCall(i int, result1 cio.Config)

func (*FakeIO) Invocations

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

func (*FakeIO) Wait

func (fake *FakeIO) Wait()

func (*FakeIO) WaitCallCount

func (fake *FakeIO) WaitCallCount() int

func (*FakeIO) WaitCalls

func (fake *FakeIO) WaitCalls(stub func())

type FakeProcess

type FakeProcess struct {
	CloseIOStub func(context.Context, ...containerd.IOCloserOpts) error

	DeleteStub func(context.Context, ...containerd.ProcessDeleteOpts) (*containerd.ExitStatus, error)

	IDStub func() string

	IOStub func() cio.IO

	KillStub func(context.Context, syscall.Signal, ...containerd.KillOpts) error

	PidStub func() uint32

	ResizeStub func(context.Context, uint32, uint32) error

	StartStub func(context.Context) error

	StatusStub func(context.Context) (containerd.Status, error)

	WaitStub func(context.Context) (<-chan containerd.ExitStatus, error)
	// contains filtered or unexported fields
}

func (*FakeProcess) CloseIO

func (fake *FakeProcess) CloseIO(arg1 context.Context, arg2 ...containerd.IOCloserOpts) error

func (*FakeProcess) CloseIOArgsForCall

func (fake *FakeProcess) CloseIOArgsForCall(i int) (context.Context, []containerd.IOCloserOpts)

func (*FakeProcess) CloseIOCallCount

func (fake *FakeProcess) CloseIOCallCount() int

func (*FakeProcess) CloseIOCalls

func (fake *FakeProcess) CloseIOCalls(stub func(context.Context, ...containerd.IOCloserOpts) error)

func (*FakeProcess) CloseIOReturns

func (fake *FakeProcess) CloseIOReturns(result1 error)

func (*FakeProcess) CloseIOReturnsOnCall

func (fake *FakeProcess) CloseIOReturnsOnCall(i int, result1 error)

func (*FakeProcess) Delete

func (*FakeProcess) DeleteArgsForCall

func (fake *FakeProcess) DeleteArgsForCall(i int) (context.Context, []containerd.ProcessDeleteOpts)

func (*FakeProcess) DeleteCallCount

func (fake *FakeProcess) DeleteCallCount() int

func (*FakeProcess) DeleteCalls

func (fake *FakeProcess) DeleteCalls(stub func(context.Context, ...containerd.ProcessDeleteOpts) (*containerd.ExitStatus, error))

func (*FakeProcess) DeleteReturns

func (fake *FakeProcess) DeleteReturns(result1 *containerd.ExitStatus, result2 error)

func (*FakeProcess) DeleteReturnsOnCall

func (fake *FakeProcess) DeleteReturnsOnCall(i int, result1 *containerd.ExitStatus, result2 error)

func (*FakeProcess) ID

func (fake *FakeProcess) ID() string

func (*FakeProcess) IDCallCount

func (fake *FakeProcess) IDCallCount() int

func (*FakeProcess) IDCalls

func (fake *FakeProcess) IDCalls(stub func() string)

func (*FakeProcess) IDReturns

func (fake *FakeProcess) IDReturns(result1 string)

func (*FakeProcess) IDReturnsOnCall

func (fake *FakeProcess) IDReturnsOnCall(i int, result1 string)

func (*FakeProcess) IO

func (fake *FakeProcess) IO() cio.IO

func (*FakeProcess) IOCallCount

func (fake *FakeProcess) IOCallCount() int

func (*FakeProcess) IOCalls

func (fake *FakeProcess) IOCalls(stub func() cio.IO)

func (*FakeProcess) IOReturns

func (fake *FakeProcess) IOReturns(result1 cio.IO)

func (*FakeProcess) IOReturnsOnCall

func (fake *FakeProcess) IOReturnsOnCall(i int, result1 cio.IO)

func (*FakeProcess) Invocations

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

func (*FakeProcess) Kill

func (fake *FakeProcess) Kill(arg1 context.Context, arg2 syscall.Signal, arg3 ...containerd.KillOpts) error

func (*FakeProcess) KillArgsForCall

func (fake *FakeProcess) KillArgsForCall(i int) (context.Context, syscall.Signal, []containerd.KillOpts)

func (*FakeProcess) KillCallCount

func (fake *FakeProcess) KillCallCount() int

func (*FakeProcess) KillCalls

func (fake *FakeProcess) KillCalls(stub func(context.Context, syscall.Signal, ...containerd.KillOpts) error)

func (*FakeProcess) KillReturns

func (fake *FakeProcess) KillReturns(result1 error)

func (*FakeProcess) KillReturnsOnCall

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

func (*FakeProcess) Pid

func (fake *FakeProcess) Pid() uint32

func (*FakeProcess) PidCallCount

func (fake *FakeProcess) PidCallCount() int

func (*FakeProcess) PidCalls

func (fake *FakeProcess) PidCalls(stub func() uint32)

func (*FakeProcess) PidReturns

func (fake *FakeProcess) PidReturns(result1 uint32)

func (*FakeProcess) PidReturnsOnCall

func (fake *FakeProcess) PidReturnsOnCall(i int, result1 uint32)

func (*FakeProcess) Resize

func (fake *FakeProcess) Resize(arg1 context.Context, arg2 uint32, arg3 uint32) error

func (*FakeProcess) ResizeArgsForCall

func (fake *FakeProcess) ResizeArgsForCall(i int) (context.Context, uint32, uint32)

func (*FakeProcess) ResizeCallCount

func (fake *FakeProcess) ResizeCallCount() int

func (*FakeProcess) ResizeCalls

func (fake *FakeProcess) ResizeCalls(stub func(context.Context, uint32, uint32) error)

func (*FakeProcess) ResizeReturns

func (fake *FakeProcess) ResizeReturns(result1 error)

func (*FakeProcess) ResizeReturnsOnCall

func (fake *FakeProcess) ResizeReturnsOnCall(i int, result1 error)

func (*FakeProcess) Start

func (fake *FakeProcess) Start(arg1 context.Context) error

func (*FakeProcess) StartArgsForCall

func (fake *FakeProcess) StartArgsForCall(i int) context.Context

func (*FakeProcess) StartCallCount

func (fake *FakeProcess) StartCallCount() int

func (*FakeProcess) StartCalls

func (fake *FakeProcess) StartCalls(stub func(context.Context) error)

func (*FakeProcess) StartReturns

func (fake *FakeProcess) StartReturns(result1 error)

func (*FakeProcess) StartReturnsOnCall

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

func (*FakeProcess) Status

func (fake *FakeProcess) Status(arg1 context.Context) (containerd.Status, error)

func (*FakeProcess) StatusArgsForCall

func (fake *FakeProcess) StatusArgsForCall(i int) context.Context

func (*FakeProcess) StatusCallCount

func (fake *FakeProcess) StatusCallCount() int

func (*FakeProcess) StatusCalls

func (fake *FakeProcess) StatusCalls(stub func(context.Context) (containerd.Status, error))

func (*FakeProcess) StatusReturns

func (fake *FakeProcess) StatusReturns(result1 containerd.Status, result2 error)

func (*FakeProcess) StatusReturnsOnCall

func (fake *FakeProcess) StatusReturnsOnCall(i int, result1 containerd.Status, result2 error)

func (*FakeProcess) Wait

func (fake *FakeProcess) Wait(arg1 context.Context) (<-chan containerd.ExitStatus, error)

func (*FakeProcess) WaitArgsForCall

func (fake *FakeProcess) WaitArgsForCall(i int) context.Context

func (*FakeProcess) WaitCallCount

func (fake *FakeProcess) WaitCallCount() int

func (*FakeProcess) WaitCalls

func (fake *FakeProcess) WaitCalls(stub func(context.Context) (<-chan containerd.ExitStatus, error))

func (*FakeProcess) WaitReturns

func (fake *FakeProcess) WaitReturns(result1 <-chan containerd.ExitStatus, result2 error)

func (*FakeProcess) WaitReturnsOnCall

func (fake *FakeProcess) WaitReturnsOnCall(i int, result1 <-chan containerd.ExitStatus, result2 error)

type FakeTask

type FakeTask struct {
	CheckpointStub func(context.Context, ...containerd.CheckpointTaskOpts) (containerd.Image, error)

	CloseIOStub func(context.Context, ...containerd.IOCloserOpts) error

	DeleteStub func(context.Context, ...containerd.ProcessDeleteOpts) (*containerd.ExitStatus, error)

	ExecStub func(context.Context, string, *specs.Process, cio.Creator) (containerd.Process, error)

	IDStub func() string

	IOStub func() cio.IO

	KillStub func(context.Context, syscall.Signal, ...containerd.KillOpts) error

	LoadProcessStub func(context.Context, string, cio.Attach) (containerd.Process, error)

	MetricsStub func(context.Context) (*types.Metric, error)

	PauseStub func(context.Context) error

	PidStub func() uint32

	PidsStub func(context.Context) ([]containerd.ProcessInfo, error)

	ResizeStub func(context.Context, uint32, uint32) error

	ResumeStub func(context.Context) error

	StartStub func(context.Context) error

	StatusStub func(context.Context) (containerd.Status, error)

	UpdateStub func(context.Context, ...containerd.UpdateTaskOpts) error

	WaitStub func(context.Context) (<-chan containerd.ExitStatus, error)
	// contains filtered or unexported fields
}

func (*FakeTask) Checkpoint

func (fake *FakeTask) Checkpoint(arg1 context.Context, arg2 ...containerd.CheckpointTaskOpts) (containerd.Image, error)

func (*FakeTask) CheckpointArgsForCall

func (fake *FakeTask) CheckpointArgsForCall(i int) (context.Context, []containerd.CheckpointTaskOpts)

func (*FakeTask) CheckpointCallCount

func (fake *FakeTask) CheckpointCallCount() int

func (*FakeTask) CheckpointCalls

func (fake *FakeTask) CheckpointCalls(stub func(context.Context, ...containerd.CheckpointTaskOpts) (containerd.Image, error))

func (*FakeTask) CheckpointReturns

func (fake *FakeTask) CheckpointReturns(result1 containerd.Image, result2 error)

func (*FakeTask) CheckpointReturnsOnCall

func (fake *FakeTask) CheckpointReturnsOnCall(i int, result1 containerd.Image, result2 error)

func (*FakeTask) CloseIO

func (fake *FakeTask) CloseIO(arg1 context.Context, arg2 ...containerd.IOCloserOpts) error

func (*FakeTask) CloseIOArgsForCall

func (fake *FakeTask) CloseIOArgsForCall(i int) (context.Context, []containerd.IOCloserOpts)

func (*FakeTask) CloseIOCallCount

func (fake *FakeTask) CloseIOCallCount() int

func (*FakeTask) CloseIOCalls

func (fake *FakeTask) CloseIOCalls(stub func(context.Context, ...containerd.IOCloserOpts) error)

func (*FakeTask) CloseIOReturns

func (fake *FakeTask) CloseIOReturns(result1 error)

func (*FakeTask) CloseIOReturnsOnCall

func (fake *FakeTask) CloseIOReturnsOnCall(i int, result1 error)

func (*FakeTask) Delete

func (*FakeTask) DeleteArgsForCall

func (fake *FakeTask) DeleteArgsForCall(i int) (context.Context, []containerd.ProcessDeleteOpts)

func (*FakeTask) DeleteCallCount

func (fake *FakeTask) DeleteCallCount() int

func (*FakeTask) DeleteCalls

func (fake *FakeTask) DeleteCalls(stub func(context.Context, ...containerd.ProcessDeleteOpts) (*containerd.ExitStatus, error))

func (*FakeTask) DeleteReturns

func (fake *FakeTask) DeleteReturns(result1 *containerd.ExitStatus, result2 error)

func (*FakeTask) DeleteReturnsOnCall

func (fake *FakeTask) DeleteReturnsOnCall(i int, result1 *containerd.ExitStatus, result2 error)

func (*FakeTask) Exec

func (fake *FakeTask) Exec(arg1 context.Context, arg2 string, arg3 *specs.Process, arg4 cio.Creator) (containerd.Process, error)

func (*FakeTask) ExecArgsForCall

func (fake *FakeTask) ExecArgsForCall(i int) (context.Context, string, *specs.Process, cio.Creator)

func (*FakeTask) ExecCallCount

func (fake *FakeTask) ExecCallCount() int

func (*FakeTask) ExecCalls

func (fake *FakeTask) ExecCalls(stub func(context.Context, string, *specs.Process, cio.Creator) (containerd.Process, error))

func (*FakeTask) ExecReturns

func (fake *FakeTask) ExecReturns(result1 containerd.Process, result2 error)

func (*FakeTask) ExecReturnsOnCall

func (fake *FakeTask) ExecReturnsOnCall(i int, result1 containerd.Process, result2 error)

func (*FakeTask) ID

func (fake *FakeTask) ID() string

func (*FakeTask) IDCallCount

func (fake *FakeTask) IDCallCount() int

func (*FakeTask) IDCalls

func (fake *FakeTask) IDCalls(stub func() string)

func (*FakeTask) IDReturns

func (fake *FakeTask) IDReturns(result1 string)

func (*FakeTask) IDReturnsOnCall

func (fake *FakeTask) IDReturnsOnCall(i int, result1 string)

func (*FakeTask) IO

func (fake *FakeTask) IO() cio.IO

func (*FakeTask) IOCallCount

func (fake *FakeTask) IOCallCount() int

func (*FakeTask) IOCalls

func (fake *FakeTask) IOCalls(stub func() cio.IO)

func (*FakeTask) IOReturns

func (fake *FakeTask) IOReturns(result1 cio.IO)

func (*FakeTask) IOReturnsOnCall

func (fake *FakeTask) IOReturnsOnCall(i int, result1 cio.IO)

func (*FakeTask) Invocations

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

func (*FakeTask) Kill

func (fake *FakeTask) Kill(arg1 context.Context, arg2 syscall.Signal, arg3 ...containerd.KillOpts) error

func (*FakeTask) KillArgsForCall

func (fake *FakeTask) KillArgsForCall(i int) (context.Context, syscall.Signal, []containerd.KillOpts)

func (*FakeTask) KillCallCount

func (fake *FakeTask) KillCallCount() int

func (*FakeTask) KillCalls

func (fake *FakeTask) KillCalls(stub func(context.Context, syscall.Signal, ...containerd.KillOpts) error)

func (*FakeTask) KillReturns

func (fake *FakeTask) KillReturns(result1 error)

func (*FakeTask) KillReturnsOnCall

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

func (*FakeTask) LoadProcess

func (fake *FakeTask) LoadProcess(arg1 context.Context, arg2 string, arg3 cio.Attach) (containerd.Process, error)

func (*FakeTask) LoadProcessArgsForCall

func (fake *FakeTask) LoadProcessArgsForCall(i int) (context.Context, string, cio.Attach)

func (*FakeTask) LoadProcessCallCount

func (fake *FakeTask) LoadProcessCallCount() int

func (*FakeTask) LoadProcessCalls

func (fake *FakeTask) LoadProcessCalls(stub func(context.Context, string, cio.Attach) (containerd.Process, error))

func (*FakeTask) LoadProcessReturns

func (fake *FakeTask) LoadProcessReturns(result1 containerd.Process, result2 error)

func (*FakeTask) LoadProcessReturnsOnCall

func (fake *FakeTask) LoadProcessReturnsOnCall(i int, result1 containerd.Process, result2 error)

func (*FakeTask) Metrics

func (fake *FakeTask) Metrics(arg1 context.Context) (*types.Metric, error)

func (*FakeTask) MetricsArgsForCall

func (fake *FakeTask) MetricsArgsForCall(i int) context.Context

func (*FakeTask) MetricsCallCount

func (fake *FakeTask) MetricsCallCount() int

func (*FakeTask) MetricsCalls

func (fake *FakeTask) MetricsCalls(stub func(context.Context) (*types.Metric, error))

func (*FakeTask) MetricsReturns

func (fake *FakeTask) MetricsReturns(result1 *types.Metric, result2 error)

func (*FakeTask) MetricsReturnsOnCall

func (fake *FakeTask) MetricsReturnsOnCall(i int, result1 *types.Metric, result2 error)

func (*FakeTask) Pause

func (fake *FakeTask) Pause(arg1 context.Context) error

func (*FakeTask) PauseArgsForCall

func (fake *FakeTask) PauseArgsForCall(i int) context.Context

func (*FakeTask) PauseCallCount

func (fake *FakeTask) PauseCallCount() int

func (*FakeTask) PauseCalls

func (fake *FakeTask) PauseCalls(stub func(context.Context) error)

func (*FakeTask) PauseReturns

func (fake *FakeTask) PauseReturns(result1 error)

func (*FakeTask) PauseReturnsOnCall

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

func (*FakeTask) Pid

func (fake *FakeTask) Pid() uint32

func (*FakeTask) PidCallCount

func (fake *FakeTask) PidCallCount() int

func (*FakeTask) PidCalls

func (fake *FakeTask) PidCalls(stub func() uint32)

func (*FakeTask) PidReturns

func (fake *FakeTask) PidReturns(result1 uint32)

func (*FakeTask) PidReturnsOnCall

func (fake *FakeTask) PidReturnsOnCall(i int, result1 uint32)

func (*FakeTask) Pids

func (fake *FakeTask) Pids(arg1 context.Context) ([]containerd.ProcessInfo, error)

func (*FakeTask) PidsArgsForCall

func (fake *FakeTask) PidsArgsForCall(i int) context.Context

func (*FakeTask) PidsCallCount

func (fake *FakeTask) PidsCallCount() int

func (*FakeTask) PidsCalls

func (fake *FakeTask) PidsCalls(stub func(context.Context) ([]containerd.ProcessInfo, error))

func (*FakeTask) PidsReturns

func (fake *FakeTask) PidsReturns(result1 []containerd.ProcessInfo, result2 error)

func (*FakeTask) PidsReturnsOnCall

func (fake *FakeTask) PidsReturnsOnCall(i int, result1 []containerd.ProcessInfo, result2 error)

func (*FakeTask) Resize

func (fake *FakeTask) Resize(arg1 context.Context, arg2 uint32, arg3 uint32) error

func (*FakeTask) ResizeArgsForCall

func (fake *FakeTask) ResizeArgsForCall(i int) (context.Context, uint32, uint32)

func (*FakeTask) ResizeCallCount

func (fake *FakeTask) ResizeCallCount() int

func (*FakeTask) ResizeCalls

func (fake *FakeTask) ResizeCalls(stub func(context.Context, uint32, uint32) error)

func (*FakeTask) ResizeReturns

func (fake *FakeTask) ResizeReturns(result1 error)

func (*FakeTask) ResizeReturnsOnCall

func (fake *FakeTask) ResizeReturnsOnCall(i int, result1 error)

func (*FakeTask) Resume

func (fake *FakeTask) Resume(arg1 context.Context) error

func (*FakeTask) ResumeArgsForCall

func (fake *FakeTask) ResumeArgsForCall(i int) context.Context

func (*FakeTask) ResumeCallCount

func (fake *FakeTask) ResumeCallCount() int

func (*FakeTask) ResumeCalls

func (fake *FakeTask) ResumeCalls(stub func(context.Context) error)

func (*FakeTask) ResumeReturns

func (fake *FakeTask) ResumeReturns(result1 error)

func (*FakeTask) ResumeReturnsOnCall

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

func (*FakeTask) Start

func (fake *FakeTask) Start(arg1 context.Context) error

func (*FakeTask) StartArgsForCall

func (fake *FakeTask) StartArgsForCall(i int) context.Context

func (*FakeTask) StartCallCount

func (fake *FakeTask) StartCallCount() int

func (*FakeTask) StartCalls

func (fake *FakeTask) StartCalls(stub func(context.Context) error)

func (*FakeTask) StartReturns

func (fake *FakeTask) StartReturns(result1 error)

func (*FakeTask) StartReturnsOnCall

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

func (*FakeTask) Status

func (fake *FakeTask) Status(arg1 context.Context) (containerd.Status, error)

func (*FakeTask) StatusArgsForCall

func (fake *FakeTask) StatusArgsForCall(i int) context.Context

func (*FakeTask) StatusCallCount

func (fake *FakeTask) StatusCallCount() int

func (*FakeTask) StatusCalls

func (fake *FakeTask) StatusCalls(stub func(context.Context) (containerd.Status, error))

func (*FakeTask) StatusReturns

func (fake *FakeTask) StatusReturns(result1 containerd.Status, result2 error)

func (*FakeTask) StatusReturnsOnCall

func (fake *FakeTask) StatusReturnsOnCall(i int, result1 containerd.Status, result2 error)

func (*FakeTask) Update

func (fake *FakeTask) Update(arg1 context.Context, arg2 ...containerd.UpdateTaskOpts) error

func (*FakeTask) UpdateArgsForCall

func (fake *FakeTask) UpdateArgsForCall(i int) (context.Context, []containerd.UpdateTaskOpts)

func (*FakeTask) UpdateCallCount

func (fake *FakeTask) UpdateCallCount() int

func (*FakeTask) UpdateCalls

func (fake *FakeTask) UpdateCalls(stub func(context.Context, ...containerd.UpdateTaskOpts) error)

func (*FakeTask) UpdateReturns

func (fake *FakeTask) UpdateReturns(result1 error)

func (*FakeTask) UpdateReturnsOnCall

func (fake *FakeTask) UpdateReturnsOnCall(i int, result1 error)

func (*FakeTask) Wait

func (fake *FakeTask) Wait(arg1 context.Context) (<-chan containerd.ExitStatus, error)

func (*FakeTask) WaitArgsForCall

func (fake *FakeTask) WaitArgsForCall(i int) context.Context

func (*FakeTask) WaitCallCount

func (fake *FakeTask) WaitCallCount() int

func (*FakeTask) WaitCalls

func (fake *FakeTask) WaitCalls(stub func(context.Context) (<-chan containerd.ExitStatus, error))

func (*FakeTask) WaitReturns

func (fake *FakeTask) WaitReturns(result1 <-chan containerd.ExitStatus, result2 error)

func (*FakeTask) WaitReturnsOnCall

func (fake *FakeTask) WaitReturnsOnCall(i int, result1 <-chan containerd.ExitStatus, result2 error)

Jump to

Keyboard shortcuts

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