recorderfakes

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 11 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 {
	BPFLSMEnabledStub func() bool

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

	CommandWaitStub func(*command.Command) error

	CreateStub func(string) (io.WriteCloser, 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

	StartBpfRecordingStub func(*bpfrecorder.BpfRecorder) error

	StopBpfRecordingStub func(*bpfrecorder.BpfRecorder) error

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

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

	WaitForPidExitStub func(*bpfrecorder.BpfRecorder, context.Context, uint32) error
	// contains filtered or unexported fields
}

func (*FakeImpl) BPFLSMEnabled added in v0.9.0

func (fake *FakeImpl) BPFLSMEnabled() bool

func (*FakeImpl) BPFLSMEnabledCallCount added in v0.9.0

func (fake *FakeImpl) BPFLSMEnabledCallCount() int

func (*FakeImpl) BPFLSMEnabledCalls added in v0.9.0

func (fake *FakeImpl) BPFLSMEnabledCalls(stub func() bool)

func (*FakeImpl) BPFLSMEnabledReturns added in v0.9.0

func (fake *FakeImpl) BPFLSMEnabledReturns(result1 bool)

func (*FakeImpl) BPFLSMEnabledReturnsOnCall added in v0.9.0

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

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) (io.WriteCloser, 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) (io.WriteCloser, error))

func (*FakeImpl) CreateReturns

func (fake *FakeImpl) CreateReturns(result1 io.WriteCloser, result2 error)

func (*FakeImpl) CreateReturnsOnCall

func (fake *FakeImpl) CreateReturnsOnCall(i int, result1 io.WriteCloser, 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) StartBpfRecording added in v0.9.0

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

func (*FakeImpl) StartBpfRecordingArgsForCall added in v0.9.0

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

func (*FakeImpl) StartBpfRecordingCallCount added in v0.9.0

func (fake *FakeImpl) StartBpfRecordingCallCount() int

func (*FakeImpl) StartBpfRecordingCalls added in v0.9.0

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

func (*FakeImpl) StartBpfRecordingReturns added in v0.9.0

func (fake *FakeImpl) StartBpfRecordingReturns(result1 error)

func (*FakeImpl) StartBpfRecordingReturnsOnCall added in v0.9.0

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

func (*FakeImpl) StopBpfRecording added in v0.9.0

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

func (*FakeImpl) StopBpfRecordingArgsForCall added in v0.9.0

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

func (*FakeImpl) StopBpfRecordingCallCount added in v0.9.0

func (fake *FakeImpl) StopBpfRecordingCallCount() int

func (*FakeImpl) StopBpfRecordingCalls added in v0.9.0

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

func (*FakeImpl) StopBpfRecordingReturns added in v0.9.0

func (fake *FakeImpl) StopBpfRecordingReturns(result1 error)

func (*FakeImpl) StopBpfRecordingReturnsOnCall added in v0.9.0

func (fake *FakeImpl) StopBpfRecordingReturnsOnCall(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) WaitForPidExit added in v0.8.3

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

func (*FakeImpl) WaitForPidExitArgsForCall added in v0.8.3

func (fake *FakeImpl) WaitForPidExitArgsForCall(i int) (*bpfrecorder.BpfRecorder, context.Context, uint32)

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, context.Context, uint32) 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)

Jump to

Keyboard shortcuts

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