mocks

package
v0.0.0-...-988c895 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecurityModuleClientWrapper

type SecurityModuleClientWrapper struct {
	mock.Mock
}

SecurityModuleClientWrapper is an autogenerated mock type for the SecurityModuleClientWrapper type

func NewSecurityModuleClientWrapper

func NewSecurityModuleClientWrapper(t interface {
	mock.TestingT
	Cleanup(func())
}) *SecurityModuleClientWrapper

NewSecurityModuleClientWrapper creates a new instance of SecurityModuleClientWrapper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SecurityModuleClientWrapper) Close

func (_m *SecurityModuleClientWrapper) Close()

Close provides a mock function with no fields

func (*SecurityModuleClientWrapper) DumpDiscarders

func (_m *SecurityModuleClientWrapper) DumpDiscarders() (string, error)

DumpDiscarders provides a mock function with no fields

func (*SecurityModuleClientWrapper) DumpNetworkNamespace

func (_m *SecurityModuleClientWrapper) DumpNetworkNamespace(snapshotInterfaces bool) (*api.DumpNetworkNamespaceMessage, error)

DumpNetworkNamespace provides a mock function with given fields: snapshotInterfaces

func (*SecurityModuleClientWrapper) DumpProcessCache

func (_m *SecurityModuleClientWrapper) DumpProcessCache(withArgs bool, format string) (string, error)

DumpProcessCache provides a mock function with given fields: withArgs, format

func (*SecurityModuleClientWrapper) EXPECT

func (*SecurityModuleClientWrapper) GenerateActivityDump

func (_m *SecurityModuleClientWrapper) GenerateActivityDump(request *api.ActivityDumpParams) (*api.ActivityDumpMessage, error)

GenerateActivityDump provides a mock function with given fields: request

func (*SecurityModuleClientWrapper) GenerateEncoding

GenerateEncoding provides a mock function with given fields: request

func (*SecurityModuleClientWrapper) GetActivityDumpStream

GetActivityDumpStream provides a mock function with no fields

func (*SecurityModuleClientWrapper) GetConfig

GetConfig provides a mock function with no fields

func (*SecurityModuleClientWrapper) GetEvents

GetEvents provides a mock function with no fields

func (*SecurityModuleClientWrapper) GetRuleSetReport

GetRuleSetReport provides a mock function with no fields

func (*SecurityModuleClientWrapper) GetStatus

func (_m *SecurityModuleClientWrapper) GetStatus() (*api.Status, error)

GetStatus provides a mock function with no fields

func (*SecurityModuleClientWrapper) ListActivityDumps

func (_m *SecurityModuleClientWrapper) ListActivityDumps() (*api.ActivityDumpListMessage, error)

ListActivityDumps provides a mock function with no fields

func (*SecurityModuleClientWrapper) ListSecurityProfiles

func (_m *SecurityModuleClientWrapper) ListSecurityProfiles(includeCache bool) (*api.SecurityProfileListMessage, error)

ListSecurityProfiles provides a mock function with given fields: includeCache

func (*SecurityModuleClientWrapper) ReloadPolicies

ReloadPolicies provides a mock function with no fields

func (*SecurityModuleClientWrapper) RunSelfTest

RunSelfTest provides a mock function with no fields

func (*SecurityModuleClientWrapper) SaveSecurityProfile

func (_m *SecurityModuleClientWrapper) SaveSecurityProfile(name string, tag string) (*api.SecurityProfileSaveMessage, error)

SaveSecurityProfile provides a mock function with given fields: name, tag

func (*SecurityModuleClientWrapper) StopActivityDump

func (_m *SecurityModuleClientWrapper) StopActivityDump(name string, container string, cgroup string) (*api.ActivityDumpStopMessage, error)

StopActivityDump provides a mock function with given fields: name, container, cgroup

type SecurityModuleClientWrapper_Close_Call

type SecurityModuleClientWrapper_Close_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*SecurityModuleClientWrapper_Close_Call) Return

func (*SecurityModuleClientWrapper_Close_Call) Run

func (*SecurityModuleClientWrapper_Close_Call) RunAndReturn

type SecurityModuleClientWrapper_DumpDiscarders_Call

type SecurityModuleClientWrapper_DumpDiscarders_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_DumpDiscarders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DumpDiscarders'

func (*SecurityModuleClientWrapper_DumpDiscarders_Call) Return

func (*SecurityModuleClientWrapper_DumpDiscarders_Call) Run

func (*SecurityModuleClientWrapper_DumpDiscarders_Call) RunAndReturn

type SecurityModuleClientWrapper_DumpNetworkNamespace_Call

type SecurityModuleClientWrapper_DumpNetworkNamespace_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_DumpNetworkNamespace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DumpNetworkNamespace'

func (*SecurityModuleClientWrapper_DumpNetworkNamespace_Call) Return

func (*SecurityModuleClientWrapper_DumpNetworkNamespace_Call) Run

func (*SecurityModuleClientWrapper_DumpNetworkNamespace_Call) RunAndReturn

type SecurityModuleClientWrapper_DumpProcessCache_Call

type SecurityModuleClientWrapper_DumpProcessCache_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_DumpProcessCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DumpProcessCache'

func (*SecurityModuleClientWrapper_DumpProcessCache_Call) Return

func (*SecurityModuleClientWrapper_DumpProcessCache_Call) Run

func (*SecurityModuleClientWrapper_DumpProcessCache_Call) RunAndReturn

type SecurityModuleClientWrapper_Expecter

type SecurityModuleClientWrapper_Expecter struct {
	// contains filtered or unexported fields
}

func (*SecurityModuleClientWrapper_Expecter) Close

Close is a helper method to define mock.On call

func (*SecurityModuleClientWrapper_Expecter) DumpDiscarders

DumpDiscarders is a helper method to define mock.On call

func (*SecurityModuleClientWrapper_Expecter) DumpNetworkNamespace

func (_e *SecurityModuleClientWrapper_Expecter) DumpNetworkNamespace(snapshotInterfaces interface{}) *SecurityModuleClientWrapper_DumpNetworkNamespace_Call

DumpNetworkNamespace is a helper method to define mock.On call

  • snapshotInterfaces bool

func (*SecurityModuleClientWrapper_Expecter) DumpProcessCache

func (_e *SecurityModuleClientWrapper_Expecter) DumpProcessCache(withArgs interface{}, format interface{}) *SecurityModuleClientWrapper_DumpProcessCache_Call

DumpProcessCache is a helper method to define mock.On call

  • withArgs bool
  • format string

func (*SecurityModuleClientWrapper_Expecter) GenerateActivityDump

GenerateActivityDump is a helper method to define mock.On call

  • request *api.ActivityDumpParams

func (*SecurityModuleClientWrapper_Expecter) GenerateEncoding

GenerateEncoding is a helper method to define mock.On call

  • request *api.TranscodingRequestParams

func (*SecurityModuleClientWrapper_Expecter) GetActivityDumpStream

GetActivityDumpStream is a helper method to define mock.On call

func (*SecurityModuleClientWrapper_Expecter) GetConfig

GetConfig is a helper method to define mock.On call

func (*SecurityModuleClientWrapper_Expecter) GetEvents

GetEvents is a helper method to define mock.On call

func (*SecurityModuleClientWrapper_Expecter) GetRuleSetReport

GetRuleSetReport is a helper method to define mock.On call

func (*SecurityModuleClientWrapper_Expecter) GetStatus

GetStatus is a helper method to define mock.On call

func (*SecurityModuleClientWrapper_Expecter) ListActivityDumps

ListActivityDumps is a helper method to define mock.On call

func (*SecurityModuleClientWrapper_Expecter) ListSecurityProfiles

func (_e *SecurityModuleClientWrapper_Expecter) ListSecurityProfiles(includeCache interface{}) *SecurityModuleClientWrapper_ListSecurityProfiles_Call

ListSecurityProfiles is a helper method to define mock.On call

  • includeCache bool

func (*SecurityModuleClientWrapper_Expecter) ReloadPolicies

ReloadPolicies is a helper method to define mock.On call

func (*SecurityModuleClientWrapper_Expecter) RunSelfTest

RunSelfTest is a helper method to define mock.On call

func (*SecurityModuleClientWrapper_Expecter) SaveSecurityProfile

func (_e *SecurityModuleClientWrapper_Expecter) SaveSecurityProfile(name interface{}, tag interface{}) *SecurityModuleClientWrapper_SaveSecurityProfile_Call

SaveSecurityProfile is a helper method to define mock.On call

  • name string
  • tag string

func (*SecurityModuleClientWrapper_Expecter) StopActivityDump

func (_e *SecurityModuleClientWrapper_Expecter) StopActivityDump(name interface{}, container interface{}, cgroup interface{}) *SecurityModuleClientWrapper_StopActivityDump_Call

StopActivityDump is a helper method to define mock.On call

  • name string
  • container string
  • cgroup string

type SecurityModuleClientWrapper_GenerateActivityDump_Call

type SecurityModuleClientWrapper_GenerateActivityDump_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_GenerateActivityDump_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateActivityDump'

func (*SecurityModuleClientWrapper_GenerateActivityDump_Call) Return

func (*SecurityModuleClientWrapper_GenerateActivityDump_Call) Run

func (*SecurityModuleClientWrapper_GenerateActivityDump_Call) RunAndReturn

type SecurityModuleClientWrapper_GenerateEncoding_Call

type SecurityModuleClientWrapper_GenerateEncoding_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_GenerateEncoding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateEncoding'

func (*SecurityModuleClientWrapper_GenerateEncoding_Call) Return

func (*SecurityModuleClientWrapper_GenerateEncoding_Call) Run

type SecurityModuleClientWrapper_GetActivityDumpStream_Call

type SecurityModuleClientWrapper_GetActivityDumpStream_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_GetActivityDumpStream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActivityDumpStream'

func (*SecurityModuleClientWrapper_GetActivityDumpStream_Call) Run

type SecurityModuleClientWrapper_GetConfig_Call

type SecurityModuleClientWrapper_GetConfig_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_GetConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfig'

func (*SecurityModuleClientWrapper_GetConfig_Call) Return

func (*SecurityModuleClientWrapper_GetConfig_Call) Run

func (*SecurityModuleClientWrapper_GetConfig_Call) RunAndReturn

type SecurityModuleClientWrapper_GetEvents_Call

type SecurityModuleClientWrapper_GetEvents_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_GetEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEvents'

func (*SecurityModuleClientWrapper_GetEvents_Call) Return

func (*SecurityModuleClientWrapper_GetEvents_Call) Run

func (*SecurityModuleClientWrapper_GetEvents_Call) RunAndReturn

type SecurityModuleClientWrapper_GetRuleSetReport_Call

type SecurityModuleClientWrapper_GetRuleSetReport_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_GetRuleSetReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRuleSetReport'

func (*SecurityModuleClientWrapper_GetRuleSetReport_Call) Return

func (*SecurityModuleClientWrapper_GetRuleSetReport_Call) Run

func (*SecurityModuleClientWrapper_GetRuleSetReport_Call) RunAndReturn

type SecurityModuleClientWrapper_GetStatus_Call

type SecurityModuleClientWrapper_GetStatus_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_GetStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatus'

func (*SecurityModuleClientWrapper_GetStatus_Call) Return

func (*SecurityModuleClientWrapper_GetStatus_Call) Run

func (*SecurityModuleClientWrapper_GetStatus_Call) RunAndReturn

type SecurityModuleClientWrapper_ListActivityDumps_Call

type SecurityModuleClientWrapper_ListActivityDumps_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_ListActivityDumps_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListActivityDumps'

func (*SecurityModuleClientWrapper_ListActivityDumps_Call) Return

func (*SecurityModuleClientWrapper_ListActivityDumps_Call) Run

func (*SecurityModuleClientWrapper_ListActivityDumps_Call) RunAndReturn

type SecurityModuleClientWrapper_ListSecurityProfiles_Call

type SecurityModuleClientWrapper_ListSecurityProfiles_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_ListSecurityProfiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSecurityProfiles'

func (*SecurityModuleClientWrapper_ListSecurityProfiles_Call) Return

func (*SecurityModuleClientWrapper_ListSecurityProfiles_Call) Run

func (*SecurityModuleClientWrapper_ListSecurityProfiles_Call) RunAndReturn

type SecurityModuleClientWrapper_ReloadPolicies_Call

type SecurityModuleClientWrapper_ReloadPolicies_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_ReloadPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReloadPolicies'

func (*SecurityModuleClientWrapper_ReloadPolicies_Call) Return

func (*SecurityModuleClientWrapper_ReloadPolicies_Call) Run

func (*SecurityModuleClientWrapper_ReloadPolicies_Call) RunAndReturn

type SecurityModuleClientWrapper_RunSelfTest_Call

type SecurityModuleClientWrapper_RunSelfTest_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_RunSelfTest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunSelfTest'

func (*SecurityModuleClientWrapper_RunSelfTest_Call) Return

func (*SecurityModuleClientWrapper_RunSelfTest_Call) Run

func (*SecurityModuleClientWrapper_RunSelfTest_Call) RunAndReturn

type SecurityModuleClientWrapper_SaveSecurityProfile_Call

type SecurityModuleClientWrapper_SaveSecurityProfile_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_SaveSecurityProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveSecurityProfile'

func (*SecurityModuleClientWrapper_SaveSecurityProfile_Call) Return

func (*SecurityModuleClientWrapper_SaveSecurityProfile_Call) Run

func (*SecurityModuleClientWrapper_SaveSecurityProfile_Call) RunAndReturn

type SecurityModuleClientWrapper_StopActivityDump_Call

type SecurityModuleClientWrapper_StopActivityDump_Call struct {
	*mock.Call
}

SecurityModuleClientWrapper_StopActivityDump_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopActivityDump'

func (*SecurityModuleClientWrapper_StopActivityDump_Call) Return

func (*SecurityModuleClientWrapper_StopActivityDump_Call) Run

func (*SecurityModuleClientWrapper_StopActivityDump_Call) RunAndReturn

Jump to

Keyboard shortcuts

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