recorderfakes

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

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 FakeImpl

type FakeImpl struct {
	CloseFileStub func(*os.File)

	CommandRunStub func(*command.Command) (uint32, error)

	CommandWaitStub func(*command.Command) error

	CreateStub func(string) (*os.File, error)

	FindProcMountNamespaceStub func(*bpfrecorder.BpfRecorder, uint32) (uint32, error)

	GetNameStub func(seccomp.ScmpSyscall) (string, error)

	GoArchToSeccompArchStub func(string) (seccompa.Arch, error)

	IteratorKeyStub func(*libbpfgo.BPFMapIterator) []byte

	IteratorNextStub func(*libbpfgo.BPFMapIterator) bool

	LoadBpfRecorderStub func(*bpfrecorder.BpfRecorder) error

	MarshalIndentStub func(any, string, string) ([]byte, error)

	NotifyStub func(chan<- os.Signal, ...os.Signal)

	PrintObjStub func(printers.YAMLPrinter, runtime.Object, io.Writer) error

	SyscallsGetValueStub func(*bpfrecorder.BpfRecorder, uint32) ([]byte, error)

	SyscallsIteratorStub func(*bpfrecorder.BpfRecorder) *libbpfgo.BPFMapIterator

	UnloadBpfRecorderStub func(*bpfrecorder.BpfRecorder)

	WaitForPidExitStub func(*bpfrecorder.BpfRecorder, uint32, time.Duration) error

	WriteFileStub func(string, []byte, fs.FileMode) error
	// contains filtered or unexported fields
}

func (*FakeImpl) CloseFile

func (fake *FakeImpl) CloseFile(arg1 *os.File)

func (*FakeImpl) CloseFileArgsForCall

func (fake *FakeImpl) CloseFileArgsForCall(i int) *os.File

func (*FakeImpl) CloseFileCallCount

func (fake *FakeImpl) CloseFileCallCount() int

func (*FakeImpl) CloseFileCalls

func (fake *FakeImpl) CloseFileCalls(stub func(*os.File))

func (*FakeImpl) CommandRun

func (fake *FakeImpl) CommandRun(arg1 *command.Command) (uint32, error)

func (*FakeImpl) CommandRunArgsForCall

func (fake *FakeImpl) CommandRunArgsForCall(i int) *command.Command

func (*FakeImpl) CommandRunCallCount

func (fake *FakeImpl) CommandRunCallCount() int

func (*FakeImpl) CommandRunCalls

func (fake *FakeImpl) CommandRunCalls(stub func(*command.Command) (uint32, error))

func (*FakeImpl) CommandRunReturns

func (fake *FakeImpl) CommandRunReturns(result1 uint32, result2 error)

func (*FakeImpl) CommandRunReturnsOnCall

func (fake *FakeImpl) CommandRunReturnsOnCall(i int, result1 uint32, result2 error)

func (*FakeImpl) CommandWait

func (fake *FakeImpl) CommandWait(arg1 *command.Command) error

func (*FakeImpl) CommandWaitArgsForCall

func (fake *FakeImpl) CommandWaitArgsForCall(i int) *command.Command

func (*FakeImpl) CommandWaitCallCount

func (fake *FakeImpl) CommandWaitCallCount() int

func (*FakeImpl) CommandWaitCalls

func (fake *FakeImpl) CommandWaitCalls(stub func(*command.Command) error)

func (*FakeImpl) CommandWaitReturns

func (fake *FakeImpl) CommandWaitReturns(result1 error)

func (*FakeImpl) CommandWaitReturnsOnCall

func (fake *FakeImpl) CommandWaitReturnsOnCall(i int, result1 error)

func (*FakeImpl) Create

func (fake *FakeImpl) Create(arg1 string) (*os.File, error)

func (*FakeImpl) CreateArgsForCall

func (fake *FakeImpl) CreateArgsForCall(i int) string

func (*FakeImpl) CreateCallCount

func (fake *FakeImpl) CreateCallCount() int

func (*FakeImpl) CreateCalls

func (fake *FakeImpl) CreateCalls(stub func(string) (*os.File, error))

func (*FakeImpl) CreateReturns

func (fake *FakeImpl) CreateReturns(result1 *os.File, result2 error)

func (*FakeImpl) CreateReturnsOnCall

func (fake *FakeImpl) CreateReturnsOnCall(i int, result1 *os.File, result2 error)

func (*FakeImpl) FindProcMountNamespace

func (fake *FakeImpl) FindProcMountNamespace(arg1 *bpfrecorder.BpfRecorder, arg2 uint32) (uint32, error)

func (*FakeImpl) FindProcMountNamespaceArgsForCall

func (fake *FakeImpl) FindProcMountNamespaceArgsForCall(i int) (*bpfrecorder.BpfRecorder, uint32)

func (*FakeImpl) FindProcMountNamespaceCallCount

func (fake *FakeImpl) FindProcMountNamespaceCallCount() int

func (*FakeImpl) FindProcMountNamespaceCalls

func (fake *FakeImpl) FindProcMountNamespaceCalls(stub func(*bpfrecorder.BpfRecorder, uint32) (uint32, error))

func (*FakeImpl) FindProcMountNamespaceReturns

func (fake *FakeImpl) FindProcMountNamespaceReturns(result1 uint32, result2 error)

func (*FakeImpl) FindProcMountNamespaceReturnsOnCall

func (fake *FakeImpl) FindProcMountNamespaceReturnsOnCall(i int, result1 uint32, result2 error)

func (*FakeImpl) GetName

func (fake *FakeImpl) GetName(arg1 seccomp.ScmpSyscall) (string, error)

func (*FakeImpl) GetNameArgsForCall

func (fake *FakeImpl) GetNameArgsForCall(i int) seccomp.ScmpSyscall

func (*FakeImpl) GetNameCallCount

func (fake *FakeImpl) GetNameCallCount() int

func (*FakeImpl) GetNameCalls

func (fake *FakeImpl) GetNameCalls(stub func(seccomp.ScmpSyscall) (string, error))

func (*FakeImpl) GetNameReturns

func (fake *FakeImpl) GetNameReturns(result1 string, result2 error)

func (*FakeImpl) GetNameReturnsOnCall

func (fake *FakeImpl) GetNameReturnsOnCall(i int, result1 string, result2 error)

func (*FakeImpl) GoArchToSeccompArch

func (fake *FakeImpl) GoArchToSeccompArch(arg1 string) (seccompa.Arch, error)

func (*FakeImpl) GoArchToSeccompArchArgsForCall

func (fake *FakeImpl) GoArchToSeccompArchArgsForCall(i int) string

func (*FakeImpl) GoArchToSeccompArchCallCount

func (fake *FakeImpl) GoArchToSeccompArchCallCount() int

func (*FakeImpl) GoArchToSeccompArchCalls

func (fake *FakeImpl) GoArchToSeccompArchCalls(stub func(string) (seccompa.Arch, error))

func (*FakeImpl) GoArchToSeccompArchReturns

func (fake *FakeImpl) GoArchToSeccompArchReturns(result1 seccompa.Arch, result2 error)

func (*FakeImpl) GoArchToSeccompArchReturnsOnCall

func (fake *FakeImpl) GoArchToSeccompArchReturnsOnCall(i int, result1 seccompa.Arch, result2 error)

func (*FakeImpl) Invocations

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

func (*FakeImpl) IteratorKey

func (fake *FakeImpl) IteratorKey(arg1 *libbpfgo.BPFMapIterator) []byte

func (*FakeImpl) IteratorKeyArgsForCall

func (fake *FakeImpl) IteratorKeyArgsForCall(i int) *libbpfgo.BPFMapIterator

func (*FakeImpl) IteratorKeyCallCount

func (fake *FakeImpl) IteratorKeyCallCount() int

func (*FakeImpl) IteratorKeyCalls

func (fake *FakeImpl) IteratorKeyCalls(stub func(*libbpfgo.BPFMapIterator) []byte)

func (*FakeImpl) IteratorKeyReturns

func (fake *FakeImpl) IteratorKeyReturns(result1 []byte)

func (*FakeImpl) IteratorKeyReturnsOnCall

func (fake *FakeImpl) IteratorKeyReturnsOnCall(i int, result1 []byte)

func (*FakeImpl) IteratorNext

func (fake *FakeImpl) IteratorNext(arg1 *libbpfgo.BPFMapIterator) bool

func (*FakeImpl) IteratorNextArgsForCall

func (fake *FakeImpl) IteratorNextArgsForCall(i int) *libbpfgo.BPFMapIterator

func (*FakeImpl) IteratorNextCallCount

func (fake *FakeImpl) IteratorNextCallCount() int

func (*FakeImpl) IteratorNextCalls

func (fake *FakeImpl) IteratorNextCalls(stub func(*libbpfgo.BPFMapIterator) bool)

func (*FakeImpl) IteratorNextReturns

func (fake *FakeImpl) IteratorNextReturns(result1 bool)

func (*FakeImpl) IteratorNextReturnsOnCall

func (fake *FakeImpl) IteratorNextReturnsOnCall(i int, result1 bool)

func (*FakeImpl) LoadBpfRecorder

func (fake *FakeImpl) LoadBpfRecorder(arg1 *bpfrecorder.BpfRecorder) error

func (*FakeImpl) LoadBpfRecorderArgsForCall

func (fake *FakeImpl) LoadBpfRecorderArgsForCall(i int) *bpfrecorder.BpfRecorder

func (*FakeImpl) LoadBpfRecorderCallCount

func (fake *FakeImpl) LoadBpfRecorderCallCount() int

func (*FakeImpl) LoadBpfRecorderCalls

func (fake *FakeImpl) LoadBpfRecorderCalls(stub func(*bpfrecorder.BpfRecorder) error)

func (*FakeImpl) LoadBpfRecorderReturns

func (fake *FakeImpl) LoadBpfRecorderReturns(result1 error)

func (*FakeImpl) LoadBpfRecorderReturnsOnCall

func (fake *FakeImpl) LoadBpfRecorderReturnsOnCall(i int, result1 error)

func (*FakeImpl) MarshalIndent

func (fake *FakeImpl) MarshalIndent(arg1 any, arg2 string, arg3 string) ([]byte, error)

func (*FakeImpl) MarshalIndentArgsForCall

func (fake *FakeImpl) MarshalIndentArgsForCall(i int) (any, string, string)

func (*FakeImpl) MarshalIndentCallCount

func (fake *FakeImpl) MarshalIndentCallCount() int

func (*FakeImpl) MarshalIndentCalls

func (fake *FakeImpl) MarshalIndentCalls(stub func(any, string, string) ([]byte, error))

func (*FakeImpl) MarshalIndentReturns

func (fake *FakeImpl) MarshalIndentReturns(result1 []byte, result2 error)

func (*FakeImpl) MarshalIndentReturnsOnCall

func (fake *FakeImpl) MarshalIndentReturnsOnCall(i int, result1 []byte, result2 error)

func (*FakeImpl) Notify added in v0.8.3

func (fake *FakeImpl) Notify(arg1 chan<- os.Signal, arg2 ...os.Signal)

func (*FakeImpl) NotifyArgsForCall added in v0.8.3

func (fake *FakeImpl) NotifyArgsForCall(i int) (chan<- os.Signal, []os.Signal)

func (*FakeImpl) NotifyCallCount added in v0.8.3

func (fake *FakeImpl) NotifyCallCount() int

func (*FakeImpl) NotifyCalls added in v0.8.3

func (fake *FakeImpl) NotifyCalls(stub func(chan<- os.Signal, ...os.Signal))

func (*FakeImpl) PrintObj

func (fake *FakeImpl) PrintObj(arg1 printers.YAMLPrinter, arg2 runtime.Object, arg3 io.Writer) error

func (*FakeImpl) PrintObjArgsForCall

func (fake *FakeImpl) PrintObjArgsForCall(i int) (printers.YAMLPrinter, runtime.Object, io.Writer)

func (*FakeImpl) PrintObjCallCount

func (fake *FakeImpl) PrintObjCallCount() int

func (*FakeImpl) PrintObjCalls

func (fake *FakeImpl) PrintObjCalls(stub func(printers.YAMLPrinter, runtime.Object, io.Writer) error)

func (*FakeImpl) PrintObjReturns

func (fake *FakeImpl) PrintObjReturns(result1 error)

func (*FakeImpl) PrintObjReturnsOnCall

func (fake *FakeImpl) PrintObjReturnsOnCall(i int, result1 error)

func (*FakeImpl) SyscallsGetValue

func (fake *FakeImpl) SyscallsGetValue(arg1 *bpfrecorder.BpfRecorder, arg2 uint32) ([]byte, error)

func (*FakeImpl) SyscallsGetValueArgsForCall

func (fake *FakeImpl) SyscallsGetValueArgsForCall(i int) (*bpfrecorder.BpfRecorder, uint32)

func (*FakeImpl) SyscallsGetValueCallCount

func (fake *FakeImpl) SyscallsGetValueCallCount() int

func (*FakeImpl) SyscallsGetValueCalls

func (fake *FakeImpl) SyscallsGetValueCalls(stub func(*bpfrecorder.BpfRecorder, uint32) ([]byte, error))

func (*FakeImpl) SyscallsGetValueReturns

func (fake *FakeImpl) SyscallsGetValueReturns(result1 []byte, result2 error)

func (*FakeImpl) SyscallsGetValueReturnsOnCall

func (fake *FakeImpl) SyscallsGetValueReturnsOnCall(i int, result1 []byte, result2 error)

func (*FakeImpl) SyscallsIterator

func (fake *FakeImpl) SyscallsIterator(arg1 *bpfrecorder.BpfRecorder) *libbpfgo.BPFMapIterator

func (*FakeImpl) SyscallsIteratorArgsForCall

func (fake *FakeImpl) SyscallsIteratorArgsForCall(i int) *bpfrecorder.BpfRecorder

func (*FakeImpl) SyscallsIteratorCallCount

func (fake *FakeImpl) SyscallsIteratorCallCount() int

func (*FakeImpl) SyscallsIteratorCalls

func (fake *FakeImpl) SyscallsIteratorCalls(stub func(*bpfrecorder.BpfRecorder) *libbpfgo.BPFMapIterator)

func (*FakeImpl) SyscallsIteratorReturns

func (fake *FakeImpl) SyscallsIteratorReturns(result1 *libbpfgo.BPFMapIterator)

func (*FakeImpl) SyscallsIteratorReturnsOnCall

func (fake *FakeImpl) SyscallsIteratorReturnsOnCall(i int, result1 *libbpfgo.BPFMapIterator)

func (*FakeImpl) UnloadBpfRecorder

func (fake *FakeImpl) UnloadBpfRecorder(arg1 *bpfrecorder.BpfRecorder)

func (*FakeImpl) UnloadBpfRecorderArgsForCall

func (fake *FakeImpl) UnloadBpfRecorderArgsForCall(i int) *bpfrecorder.BpfRecorder

func (*FakeImpl) UnloadBpfRecorderCallCount

func (fake *FakeImpl) UnloadBpfRecorderCallCount() int

func (*FakeImpl) UnloadBpfRecorderCalls

func (fake *FakeImpl) UnloadBpfRecorderCalls(stub func(*bpfrecorder.BpfRecorder))

func (*FakeImpl) WaitForPidExit added in v0.8.3

func (fake *FakeImpl) WaitForPidExit(arg1 *bpfrecorder.BpfRecorder, arg2 uint32, arg3 time.Duration) error

func (*FakeImpl) WaitForPidExitArgsForCall added in v0.8.3

func (fake *FakeImpl) WaitForPidExitArgsForCall(i int) (*bpfrecorder.BpfRecorder, uint32, time.Duration)

func (*FakeImpl) WaitForPidExitCallCount added in v0.8.3

func (fake *FakeImpl) WaitForPidExitCallCount() int

func (*FakeImpl) WaitForPidExitCalls added in v0.8.3

func (fake *FakeImpl) WaitForPidExitCalls(stub func(*bpfrecorder.BpfRecorder, uint32, time.Duration) error)

func (*FakeImpl) WaitForPidExitReturns added in v0.8.3

func (fake *FakeImpl) WaitForPidExitReturns(result1 error)

func (*FakeImpl) WaitForPidExitReturnsOnCall added in v0.8.3

func (fake *FakeImpl) WaitForPidExitReturnsOnCall(i int, result1 error)

func (*FakeImpl) WriteFile

func (fake *FakeImpl) WriteFile(arg1 string, arg2 []byte, arg3 fs.FileMode) error

func (*FakeImpl) WriteFileArgsForCall

func (fake *FakeImpl) WriteFileArgsForCall(i int) (string, []byte, fs.FileMode)

func (*FakeImpl) WriteFileCallCount

func (fake *FakeImpl) WriteFileCallCount() int

func (*FakeImpl) WriteFileCalls

func (fake *FakeImpl) WriteFileCalls(stub func(string, []byte, fs.FileMode) error)

func (*FakeImpl) WriteFileReturns

func (fake *FakeImpl) WriteFileReturns(result1 error)

func (*FakeImpl) WriteFileReturnsOnCall

func (fake *FakeImpl) WriteFileReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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