runtimefakes

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: 8 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCNI

type FakeCNI struct {
	GetConfigStub func() *cni.ConfigResult

	LoadStub func(...cni.CNIOpt) error

	RemoveStub func(context.Context, string, string, ...cni.NamespaceOpts) error

	SetupStub func(context.Context, string, string, ...cni.NamespaceOpts) (*cni.CNIResult, error)

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

func (*FakeCNI) GetConfig

func (fake *FakeCNI) GetConfig() *cni.ConfigResult

func (*FakeCNI) GetConfigCallCount

func (fake *FakeCNI) GetConfigCallCount() int

func (*FakeCNI) GetConfigCalls

func (fake *FakeCNI) GetConfigCalls(stub func() *cni.ConfigResult)

func (*FakeCNI) GetConfigReturns

func (fake *FakeCNI) GetConfigReturns(result1 *cni.ConfigResult)

func (*FakeCNI) GetConfigReturnsOnCall

func (fake *FakeCNI) GetConfigReturnsOnCall(i int, result1 *cni.ConfigResult)

func (*FakeCNI) Invocations

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

func (*FakeCNI) Load

func (fake *FakeCNI) Load(arg1 ...cni.CNIOpt) error

func (*FakeCNI) LoadArgsForCall

func (fake *FakeCNI) LoadArgsForCall(i int) []cni.CNIOpt

func (*FakeCNI) LoadCallCount

func (fake *FakeCNI) LoadCallCount() int

func (*FakeCNI) LoadCalls

func (fake *FakeCNI) LoadCalls(stub func(...cni.CNIOpt) error)

func (*FakeCNI) LoadReturns

func (fake *FakeCNI) LoadReturns(result1 error)

func (*FakeCNI) LoadReturnsOnCall

func (fake *FakeCNI) LoadReturnsOnCall(i int, result1 error)

func (*FakeCNI) Remove

func (fake *FakeCNI) Remove(arg1 context.Context, arg2 string, arg3 string, arg4 ...cni.NamespaceOpts) error

func (*FakeCNI) RemoveArgsForCall

func (fake *FakeCNI) RemoveArgsForCall(i int) (context.Context, string, string, []cni.NamespaceOpts)

func (*FakeCNI) RemoveCallCount

func (fake *FakeCNI) RemoveCallCount() int

func (*FakeCNI) RemoveCalls

func (fake *FakeCNI) RemoveCalls(stub func(context.Context, string, string, ...cni.NamespaceOpts) error)

func (*FakeCNI) RemoveReturns

func (fake *FakeCNI) RemoveReturns(result1 error)

func (*FakeCNI) RemoveReturnsOnCall

func (fake *FakeCNI) RemoveReturnsOnCall(i int, result1 error)

func (*FakeCNI) Setup

func (fake *FakeCNI) Setup(arg1 context.Context, arg2 string, arg3 string, arg4 ...cni.NamespaceOpts) (*cni.CNIResult, error)

func (*FakeCNI) SetupArgsForCall

func (fake *FakeCNI) SetupArgsForCall(i int) (context.Context, string, string, []cni.NamespaceOpts)

func (*FakeCNI) SetupCallCount

func (fake *FakeCNI) SetupCallCount() int

func (*FakeCNI) SetupCalls

func (fake *FakeCNI) SetupCalls(stub func(context.Context, string, string, ...cni.NamespaceOpts) (*cni.CNIResult, error))

func (*FakeCNI) SetupReturns

func (fake *FakeCNI) SetupReturns(result1 *cni.CNIResult, result2 error)

func (*FakeCNI) SetupReturnsOnCall

func (fake *FakeCNI) SetupReturnsOnCall(i int, result1 *cni.CNIResult, result2 error)

func (*FakeCNI) Status

func (fake *FakeCNI) Status() error

func (*FakeCNI) StatusCallCount

func (fake *FakeCNI) StatusCallCount() int

func (*FakeCNI) StatusCalls

func (fake *FakeCNI) StatusCalls(stub func() error)

func (*FakeCNI) StatusReturns

func (fake *FakeCNI) StatusReturns(result1 error)

func (*FakeCNI) StatusReturnsOnCall

func (fake *FakeCNI) StatusReturnsOnCall(i int, result1 error)

type FakeFileStore

type FakeFileStore struct {
	CreateStub func(string, []byte) (string, error)

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

func (*FakeFileStore) Create

func (fake *FakeFileStore) Create(arg1 string, arg2 []byte) (string, error)

func (*FakeFileStore) CreateArgsForCall

func (fake *FakeFileStore) CreateArgsForCall(i int) (string, []byte)

func (*FakeFileStore) CreateCallCount

func (fake *FakeFileStore) CreateCallCount() int

func (*FakeFileStore) CreateCalls

func (fake *FakeFileStore) CreateCalls(stub func(string, []byte) (string, error))

func (*FakeFileStore) CreateReturns

func (fake *FakeFileStore) CreateReturns(result1 string, result2 error)

func (*FakeFileStore) CreateReturnsOnCall

func (fake *FakeFileStore) CreateReturnsOnCall(i int, result1 string, result2 error)

func (*FakeFileStore) Delete

func (fake *FakeFileStore) Delete(arg1 string) error

func (*FakeFileStore) DeleteArgsForCall

func (fake *FakeFileStore) DeleteArgsForCall(i int) string

func (*FakeFileStore) DeleteCallCount

func (fake *FakeFileStore) DeleteCallCount() int

func (*FakeFileStore) DeleteCalls

func (fake *FakeFileStore) DeleteCalls(stub func(string) error)

func (*FakeFileStore) DeleteReturns

func (fake *FakeFileStore) DeleteReturns(result1 error)

func (*FakeFileStore) DeleteReturnsOnCall

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

func (*FakeFileStore) Invocations

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

type FakeKiller

type FakeKiller struct {
	KillStub func(context.Context, containerd.Task, runtime.KillBehaviour) error
	// contains filtered or unexported fields
}

func (*FakeKiller) Invocations

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

func (*FakeKiller) Kill

func (fake *FakeKiller) Kill(arg1 context.Context, arg2 containerd.Task, arg3 runtime.KillBehaviour) error

func (*FakeKiller) KillArgsForCall

func (fake *FakeKiller) KillArgsForCall(i int) (context.Context, containerd.Task, runtime.KillBehaviour)

func (*FakeKiller) KillCallCount

func (fake *FakeKiller) KillCallCount() int

func (*FakeKiller) KillCalls

func (fake *FakeKiller) KillCalls(stub func(context.Context, containerd.Task, runtime.KillBehaviour) error)

func (*FakeKiller) KillReturns

func (fake *FakeKiller) KillReturns(result1 error)

func (*FakeKiller) KillReturnsOnCall

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

type FakeNetwork

type FakeNetwork struct {
	AddStub func(context.Context, containerd.Task) error

	RemoveStub func(context.Context, containerd.Task) error

	SetupMountsStub func(string) ([]specs.Mount, error)

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

func (*FakeNetwork) Add

func (fake *FakeNetwork) Add(arg1 context.Context, arg2 containerd.Task) error

func (*FakeNetwork) AddArgsForCall

func (fake *FakeNetwork) AddArgsForCall(i int) (context.Context, containerd.Task)

func (*FakeNetwork) AddCallCount

func (fake *FakeNetwork) AddCallCount() int

func (*FakeNetwork) AddCalls

func (fake *FakeNetwork) AddCalls(stub func(context.Context, containerd.Task) error)

func (*FakeNetwork) AddReturns

func (fake *FakeNetwork) AddReturns(result1 error)

func (*FakeNetwork) AddReturnsOnCall

func (fake *FakeNetwork) AddReturnsOnCall(i int, result1 error)

func (*FakeNetwork) Invocations

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

func (*FakeNetwork) Remove

func (fake *FakeNetwork) Remove(arg1 context.Context, arg2 containerd.Task) error

func (*FakeNetwork) RemoveArgsForCall

func (fake *FakeNetwork) RemoveArgsForCall(i int) (context.Context, containerd.Task)

func (*FakeNetwork) RemoveCallCount

func (fake *FakeNetwork) RemoveCallCount() int

func (*FakeNetwork) RemoveCalls

func (fake *FakeNetwork) RemoveCalls(stub func(context.Context, containerd.Task) error)

func (*FakeNetwork) RemoveReturns

func (fake *FakeNetwork) RemoveReturns(result1 error)

func (*FakeNetwork) RemoveReturnsOnCall

func (fake *FakeNetwork) RemoveReturnsOnCall(i int, result1 error)

func (*FakeNetwork) SetupMounts

func (fake *FakeNetwork) SetupMounts(arg1 string) ([]specs.Mount, error)

func (*FakeNetwork) SetupMountsArgsForCall

func (fake *FakeNetwork) SetupMountsArgsForCall(i int) string

func (*FakeNetwork) SetupMountsCallCount

func (fake *FakeNetwork) SetupMountsCallCount() int

func (*FakeNetwork) SetupMountsCalls

func (fake *FakeNetwork) SetupMountsCalls(stub func(string) ([]specs.Mount, error))

func (*FakeNetwork) SetupMountsReturns

func (fake *FakeNetwork) SetupMountsReturns(result1 []specs.Mount, result2 error)

func (*FakeNetwork) SetupMountsReturnsOnCall

func (fake *FakeNetwork) SetupMountsReturnsOnCall(i int, result1 []specs.Mount, result2 error)

func (*FakeNetwork) SetupRestrictedNetworks

func (fake *FakeNetwork) SetupRestrictedNetworks() error

func (*FakeNetwork) SetupRestrictedNetworksCallCount

func (fake *FakeNetwork) SetupRestrictedNetworksCallCount() int

func (*FakeNetwork) SetupRestrictedNetworksCalls

func (fake *FakeNetwork) SetupRestrictedNetworksCalls(stub func() error)

func (*FakeNetwork) SetupRestrictedNetworksReturns

func (fake *FakeNetwork) SetupRestrictedNetworksReturns(result1 error)

func (*FakeNetwork) SetupRestrictedNetworksReturnsOnCall

func (fake *FakeNetwork) SetupRestrictedNetworksReturnsOnCall(i int, result1 error)

type FakeProcessKiller

type FakeProcessKiller struct {
	KillStub func(context.Context, containerd.Process, syscall.Signal, time.Duration) error
	// contains filtered or unexported fields
}

func (*FakeProcessKiller) Invocations

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

func (*FakeProcessKiller) Kill

func (fake *FakeProcessKiller) Kill(arg1 context.Context, arg2 containerd.Process, arg3 syscall.Signal, arg4 time.Duration) error

func (*FakeProcessKiller) KillArgsForCall

func (*FakeProcessKiller) KillCallCount

func (fake *FakeProcessKiller) KillCallCount() int

func (*FakeProcessKiller) KillCalls

func (*FakeProcessKiller) KillReturns

func (fake *FakeProcessKiller) KillReturns(result1 error)

func (*FakeProcessKiller) KillReturnsOnCall

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

type FakeRootfsManager

type FakeRootfsManager struct {
	LookupUserStub func(string, string) (specs.User, bool, error)

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

func (*FakeRootfsManager) Invocations

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

func (*FakeRootfsManager) LookupUser

func (fake *FakeRootfsManager) LookupUser(arg1 string, arg2 string) (specs.User, bool, error)

func (*FakeRootfsManager) LookupUserArgsForCall

func (fake *FakeRootfsManager) LookupUserArgsForCall(i int) (string, string)

func (*FakeRootfsManager) LookupUserCallCount

func (fake *FakeRootfsManager) LookupUserCallCount() int

func (*FakeRootfsManager) LookupUserCalls

func (fake *FakeRootfsManager) LookupUserCalls(stub func(string, string) (specs.User, bool, error))

func (*FakeRootfsManager) LookupUserReturns

func (fake *FakeRootfsManager) LookupUserReturns(result1 specs.User, result2 bool, result3 error)

func (*FakeRootfsManager) LookupUserReturnsOnCall

func (fake *FakeRootfsManager) LookupUserReturnsOnCall(i int, result1 specs.User, result2 bool, result3 error)

func (*FakeRootfsManager) SetupCwd

func (fake *FakeRootfsManager) SetupCwd(arg1 string, arg2 string) error

func (*FakeRootfsManager) SetupCwdArgsForCall

func (fake *FakeRootfsManager) SetupCwdArgsForCall(i int) (string, string)

func (*FakeRootfsManager) SetupCwdCallCount

func (fake *FakeRootfsManager) SetupCwdCallCount() int

func (*FakeRootfsManager) SetupCwdCalls

func (fake *FakeRootfsManager) SetupCwdCalls(stub func(string, string) error)

func (*FakeRootfsManager) SetupCwdReturns

func (fake *FakeRootfsManager) SetupCwdReturns(result1 error)

func (*FakeRootfsManager) SetupCwdReturnsOnCall

func (fake *FakeRootfsManager) SetupCwdReturnsOnCall(i int, result1 error)

type FakeUserNamespace

type FakeUserNamespace struct {
	MaxValidIdsStub func() (uint32, uint32, error)
	// contains filtered or unexported fields
}

func (*FakeUserNamespace) Invocations

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

func (*FakeUserNamespace) MaxValidIds

func (fake *FakeUserNamespace) MaxValidIds() (uint32, uint32, error)

func (*FakeUserNamespace) MaxValidIdsCallCount

func (fake *FakeUserNamespace) MaxValidIdsCallCount() int

func (*FakeUserNamespace) MaxValidIdsCalls

func (fake *FakeUserNamespace) MaxValidIdsCalls(stub func() (uint32, uint32, error))

func (*FakeUserNamespace) MaxValidIdsReturns

func (fake *FakeUserNamespace) MaxValidIdsReturns(result1 uint32, result2 uint32, result3 error)

func (*FakeUserNamespace) MaxValidIdsReturnsOnCall

func (fake *FakeUserNamespace) MaxValidIdsReturnsOnCall(i int, result1 uint32, result2 uint32, result3 error)

Jump to

Keyboard shortcuts

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