Documentation ¶
Index ¶
- type CloudAPIClient
- func (_m *CloudAPIClient) BootstrapBundle(_a0 context.Context, _a1 string) (string, error)
- func (_m *CloudAPIClient) EXPECT() *CloudAPIClient_Expecter
- func (_m *CloudAPIClient) GetBundle(_a0 context.Context, _a1 string) (string, error)
- func (_m *CloudAPIClient) GetCachedBundle(_a0 string) (string, error)
- func (_m *CloudAPIClient) WatchBundle(_a0 context.Context, _a1 string) (cloud_apibundle.WatchHandle, error)
- type CloudAPIClient_BootstrapBundle_Call
- func (_c *CloudAPIClient_BootstrapBundle_Call) Return(_a0 string, _a1 error) *CloudAPIClient_BootstrapBundle_Call
- func (_c *CloudAPIClient_BootstrapBundle_Call) Run(run func(_a0 context.Context, _a1 string)) *CloudAPIClient_BootstrapBundle_Call
- func (_c *CloudAPIClient_BootstrapBundle_Call) RunAndReturn(run func(context.Context, string) (string, error)) *CloudAPIClient_BootstrapBundle_Call
- type CloudAPIClient_Expecter
- func (_e *CloudAPIClient_Expecter) BootstrapBundle(_a0 interface{}, _a1 interface{}) *CloudAPIClient_BootstrapBundle_Call
- func (_e *CloudAPIClient_Expecter) GetBundle(_a0 interface{}, _a1 interface{}) *CloudAPIClient_GetBundle_Call
- func (_e *CloudAPIClient_Expecter) GetCachedBundle(_a0 interface{}) *CloudAPIClient_GetCachedBundle_Call
- func (_e *CloudAPIClient_Expecter) WatchBundle(_a0 interface{}, _a1 interface{}) *CloudAPIClient_WatchBundle_Call
- type CloudAPIClient_GetBundle_Call
- func (_c *CloudAPIClient_GetBundle_Call) Return(_a0 string, _a1 error) *CloudAPIClient_GetBundle_Call
- func (_c *CloudAPIClient_GetBundle_Call) Run(run func(_a0 context.Context, _a1 string)) *CloudAPIClient_GetBundle_Call
- func (_c *CloudAPIClient_GetBundle_Call) RunAndReturn(run func(context.Context, string) (string, error)) *CloudAPIClient_GetBundle_Call
- type CloudAPIClient_GetCachedBundle_Call
- func (_c *CloudAPIClient_GetCachedBundle_Call) Return(_a0 string, _a1 error) *CloudAPIClient_GetCachedBundle_Call
- func (_c *CloudAPIClient_GetCachedBundle_Call) Run(run func(_a0 string)) *CloudAPIClient_GetCachedBundle_Call
- func (_c *CloudAPIClient_GetCachedBundle_Call) RunAndReturn(run func(string) (string, error)) *CloudAPIClient_GetCachedBundle_Call
- type CloudAPIClient_WatchBundle_Call
- func (_c *CloudAPIClient_WatchBundle_Call) Return(_a0 cloud_apibundle.WatchHandle, _a1 error) *CloudAPIClient_WatchBundle_Call
- func (_c *CloudAPIClient_WatchBundle_Call) Run(run func(_a0 context.Context, _a1 string)) *CloudAPIClient_WatchBundle_Call
- func (_c *CloudAPIClient_WatchBundle_Call) RunAndReturn(run func(context.Context, string) (cloud_apibundle.WatchHandle, error)) *CloudAPIClient_WatchBundle_Call
- type Index
- func (_m *Index) AddOrUpdate(_a0 index.Entry) (storage.Event, error)
- func (_m *Index) Clear() error
- func (_m *Index) Close() error
- func (_m *Index) Delete(_a0 index.Entry) (storage.Event, error)
- func (_m *Index) EXPECT() *Index_Expecter
- func (_m *Index) GetAllCompilationUnits(_a0 context.Context) <-chan *policy.CompilationUnit
- func (_m *Index) GetCompilationUnits(_a0 ...namer.ModuleID) (map[namer.ModuleID]*policy.CompilationUnit, error)
- func (_m *Index) GetDependents(_a0 ...namer.ModuleID) (map[namer.ModuleID][]namer.ModuleID, error)
- func (_m *Index) GetFiles() []string
- func (_m *Index) GetFirstMatch(_a0 []namer.ModuleID) (*policy.CompilationUnit, error)
- func (_m *Index) InspectPolicies(_a0 context.Context) (map[string]*responsev1.InspectPoliciesResponse_Result, error)
- func (_m *Index) ListPolicyIDs(_a0 context.Context) ([]string, error)
- func (_m *Index) ListSchemaIDs(_a0 context.Context) ([]string, error)
- func (_m *Index) LoadPolicy(_a0 context.Context, _a1 ...string) ([]*policy.Wrapper, error)
- func (_m *Index) LoadSchema(_a0 context.Context, _a1 string) (io.ReadCloser, error)
- func (_m *Index) Reload(ctx context.Context) ([]storage.Event, error)
- func (_m *Index) RepoStats(_a0 context.Context) storage.RepoStats
- type Index_AddOrUpdate_Call
- func (_c *Index_AddOrUpdate_Call) Return(_a0 storage.Event, _a1 error) *Index_AddOrUpdate_Call
- func (_c *Index_AddOrUpdate_Call) Run(run func(_a0 index.Entry)) *Index_AddOrUpdate_Call
- func (_c *Index_AddOrUpdate_Call) RunAndReturn(run func(index.Entry) (storage.Event, error)) *Index_AddOrUpdate_Call
- type Index_Clear_Call
- type Index_Close_Call
- type Index_Delete_Call
- type Index_Expecter
- func (_e *Index_Expecter) AddOrUpdate(_a0 interface{}) *Index_AddOrUpdate_Call
- func (_e *Index_Expecter) Clear() *Index_Clear_Call
- func (_e *Index_Expecter) Close() *Index_Close_Call
- func (_e *Index_Expecter) Delete(_a0 interface{}) *Index_Delete_Call
- func (_e *Index_Expecter) GetAllCompilationUnits(_a0 interface{}) *Index_GetAllCompilationUnits_Call
- func (_e *Index_Expecter) GetCompilationUnits(_a0 ...interface{}) *Index_GetCompilationUnits_Call
- func (_e *Index_Expecter) GetDependents(_a0 ...interface{}) *Index_GetDependents_Call
- func (_e *Index_Expecter) GetFiles() *Index_GetFiles_Call
- func (_e *Index_Expecter) GetFirstMatch(_a0 interface{}) *Index_GetFirstMatch_Call
- func (_e *Index_Expecter) InspectPolicies(_a0 interface{}) *Index_InspectPolicies_Call
- func (_e *Index_Expecter) ListPolicyIDs(_a0 interface{}) *Index_ListPolicyIDs_Call
- func (_e *Index_Expecter) ListSchemaIDs(_a0 interface{}) *Index_ListSchemaIDs_Call
- func (_e *Index_Expecter) LoadPolicy(_a0 interface{}, _a1 ...interface{}) *Index_LoadPolicy_Call
- func (_e *Index_Expecter) LoadSchema(_a0 interface{}, _a1 interface{}) *Index_LoadSchema_Call
- func (_e *Index_Expecter) Reload(ctx interface{}) *Index_Reload_Call
- func (_e *Index_Expecter) RepoStats(_a0 interface{}) *Index_RepoStats_Call
- type Index_GetAllCompilationUnits_Call
- func (_c *Index_GetAllCompilationUnits_Call) Return(_a0 <-chan *policy.CompilationUnit) *Index_GetAllCompilationUnits_Call
- func (_c *Index_GetAllCompilationUnits_Call) Run(run func(_a0 context.Context)) *Index_GetAllCompilationUnits_Call
- func (_c *Index_GetAllCompilationUnits_Call) RunAndReturn(run func(context.Context) <-chan *policy.CompilationUnit) *Index_GetAllCompilationUnits_Call
- type Index_GetCompilationUnits_Call
- func (_c *Index_GetCompilationUnits_Call) Return(_a0 map[namer.ModuleID]*policy.CompilationUnit, _a1 error) *Index_GetCompilationUnits_Call
- func (_c *Index_GetCompilationUnits_Call) Run(run func(_a0 ...namer.ModuleID)) *Index_GetCompilationUnits_Call
- func (_c *Index_GetCompilationUnits_Call) RunAndReturn(...) *Index_GetCompilationUnits_Call
- type Index_GetDependents_Call
- func (_c *Index_GetDependents_Call) Return(_a0 map[namer.ModuleID][]namer.ModuleID, _a1 error) *Index_GetDependents_Call
- func (_c *Index_GetDependents_Call) Run(run func(_a0 ...namer.ModuleID)) *Index_GetDependents_Call
- func (_c *Index_GetDependents_Call) RunAndReturn(run func(...namer.ModuleID) (map[namer.ModuleID][]namer.ModuleID, error)) *Index_GetDependents_Call
- type Index_GetFiles_Call
- type Index_GetFirstMatch_Call
- func (_c *Index_GetFirstMatch_Call) Return(_a0 *policy.CompilationUnit, _a1 error) *Index_GetFirstMatch_Call
- func (_c *Index_GetFirstMatch_Call) Run(run func(_a0 []namer.ModuleID)) *Index_GetFirstMatch_Call
- func (_c *Index_GetFirstMatch_Call) RunAndReturn(run func([]namer.ModuleID) (*policy.CompilationUnit, error)) *Index_GetFirstMatch_Call
- type Index_InspectPolicies_Call
- func (_c *Index_InspectPolicies_Call) Return(_a0 map[string]*responsev1.InspectPoliciesResponse_Result, _a1 error) *Index_InspectPolicies_Call
- func (_c *Index_InspectPolicies_Call) Run(run func(_a0 context.Context)) *Index_InspectPolicies_Call
- func (_c *Index_InspectPolicies_Call) RunAndReturn(...) *Index_InspectPolicies_Call
- type Index_ListPolicyIDs_Call
- func (_c *Index_ListPolicyIDs_Call) Return(_a0 []string, _a1 error) *Index_ListPolicyIDs_Call
- func (_c *Index_ListPolicyIDs_Call) Run(run func(_a0 context.Context)) *Index_ListPolicyIDs_Call
- func (_c *Index_ListPolicyIDs_Call) RunAndReturn(run func(context.Context) ([]string, error)) *Index_ListPolicyIDs_Call
- type Index_ListSchemaIDs_Call
- func (_c *Index_ListSchemaIDs_Call) Return(_a0 []string, _a1 error) *Index_ListSchemaIDs_Call
- func (_c *Index_ListSchemaIDs_Call) Run(run func(_a0 context.Context)) *Index_ListSchemaIDs_Call
- func (_c *Index_ListSchemaIDs_Call) RunAndReturn(run func(context.Context) ([]string, error)) *Index_ListSchemaIDs_Call
- type Index_LoadPolicy_Call
- func (_c *Index_LoadPolicy_Call) Return(_a0 []*policy.Wrapper, _a1 error) *Index_LoadPolicy_Call
- func (_c *Index_LoadPolicy_Call) Run(run func(_a0 context.Context, _a1 ...string)) *Index_LoadPolicy_Call
- func (_c *Index_LoadPolicy_Call) RunAndReturn(run func(context.Context, ...string) ([]*policy.Wrapper, error)) *Index_LoadPolicy_Call
- type Index_LoadSchema_Call
- func (_c *Index_LoadSchema_Call) Return(_a0 io.ReadCloser, _a1 error) *Index_LoadSchema_Call
- func (_c *Index_LoadSchema_Call) Run(run func(_a0 context.Context, _a1 string)) *Index_LoadSchema_Call
- func (_c *Index_LoadSchema_Call) RunAndReturn(run func(context.Context, string) (io.ReadCloser, error)) *Index_LoadSchema_Call
- type Index_Reload_Call
- type Index_RepoStats_Call
- type IngestSyncer
- type IngestSyncer_Expecter
- type IngestSyncer_Sync_Call
- func (_c *IngestSyncer_Sync_Call) Return(_a0 error) *IngestSyncer_Sync_Call
- func (_c *IngestSyncer_Sync_Call) Run(run func(_a0 context.Context, _a1 *logsv1.IngestBatch)) *IngestSyncer_Sync_Call
- func (_c *IngestSyncer_Sync_Call) RunAndReturn(run func(context.Context, *logsv1.IngestBatch) error) *IngestSyncer_Sync_Call
- type Store
- func (_m *Store) Driver() string
- func (_m *Store) EXPECT() *Store_Expecter
- func (_m *Store) InspectPolicies(_a0 context.Context, _a1 storage.ListPolicyIDsParams) (map[string]*responsev1.InspectPoliciesResponse_Result, error)
- func (_m *Store) ListPolicyIDs(_a0 context.Context, _a1 storage.ListPolicyIDsParams) ([]string, error)
- func (_m *Store) ListSchemaIDs(_a0 context.Context) ([]string, error)
- func (_m *Store) LoadSchema(_a0 context.Context, _a1 string) (io.ReadCloser, error)
- type Store_Driver_Call
- type Store_Expecter
- func (_e *Store_Expecter) Driver() *Store_Driver_Call
- func (_e *Store_Expecter) InspectPolicies(_a0 interface{}, _a1 interface{}) *Store_InspectPolicies_Call
- func (_e *Store_Expecter) ListPolicyIDs(_a0 interface{}, _a1 interface{}) *Store_ListPolicyIDs_Call
- func (_e *Store_Expecter) ListSchemaIDs(_a0 interface{}) *Store_ListSchemaIDs_Call
- func (_e *Store_Expecter) LoadSchema(_a0 interface{}, _a1 interface{}) *Store_LoadSchema_Call
- type Store_InspectPolicies_Call
- func (_c *Store_InspectPolicies_Call) Return(_a0 map[string]*responsev1.InspectPoliciesResponse_Result, _a1 error) *Store_InspectPolicies_Call
- func (_c *Store_InspectPolicies_Call) Run(run func(_a0 context.Context, _a1 storage.ListPolicyIDsParams)) *Store_InspectPolicies_Call
- func (_c *Store_InspectPolicies_Call) RunAndReturn(...) *Store_InspectPolicies_Call
- type Store_ListPolicyIDs_Call
- func (_c *Store_ListPolicyIDs_Call) Return(_a0 []string, _a1 error) *Store_ListPolicyIDs_Call
- func (_c *Store_ListPolicyIDs_Call) Run(run func(_a0 context.Context, _a1 storage.ListPolicyIDsParams)) *Store_ListPolicyIDs_Call
- func (_c *Store_ListPolicyIDs_Call) RunAndReturn(run func(context.Context, storage.ListPolicyIDsParams) ([]string, error)) *Store_ListPolicyIDs_Call
- type Store_ListSchemaIDs_Call
- func (_c *Store_ListSchemaIDs_Call) Return(_a0 []string, _a1 error) *Store_ListSchemaIDs_Call
- func (_c *Store_ListSchemaIDs_Call) Run(run func(_a0 context.Context)) *Store_ListSchemaIDs_Call
- func (_c *Store_ListSchemaIDs_Call) RunAndReturn(run func(context.Context) ([]string, error)) *Store_ListSchemaIDs_Call
- type Store_LoadSchema_Call
- func (_c *Store_LoadSchema_Call) Return(_a0 io.ReadCloser, _a1 error) *Store_LoadSchema_Call
- func (_c *Store_LoadSchema_Call) Run(run func(_a0 context.Context, _a1 string)) *Store_LoadSchema_Call
- func (_c *Store_LoadSchema_Call) RunAndReturn(run func(context.Context, string) (io.ReadCloser, error)) *Store_LoadSchema_Call
- type WatchHandle
- type WatchHandle_ActiveBundleChanged_Call
- func (_c *WatchHandle_ActiveBundleChanged_Call) Return(_a0 error) *WatchHandle_ActiveBundleChanged_Call
- func (_c *WatchHandle_ActiveBundleChanged_Call) Run(run func(_a0 string)) *WatchHandle_ActiveBundleChanged_Call
- func (_c *WatchHandle_ActiveBundleChanged_Call) RunAndReturn(run func(string) error) *WatchHandle_ActiveBundleChanged_Call
- type WatchHandle_Errors_Call
- type WatchHandle_Expecter
- type WatchHandle_ServerEvents_Call
- func (_c *WatchHandle_ServerEvents_Call) Return(_a0 <-chan bundle.ServerEvent) *WatchHandle_ServerEvents_Call
- func (_c *WatchHandle_ServerEvents_Call) Run(run func()) *WatchHandle_ServerEvents_Call
- func (_c *WatchHandle_ServerEvents_Call) RunAndReturn(run func() <-chan bundle.ServerEvent) *WatchHandle_ServerEvents_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudAPIClient ¶ added in v0.26.0
CloudAPIClient is an autogenerated mock type for the CloudAPIClient type
func NewCloudAPIClient ¶ added in v0.26.0
func NewCloudAPIClient(t interface { mock.TestingT Cleanup(func()) }) *CloudAPIClient
NewCloudAPIClient creates a new instance of CloudAPIClient. 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 (*CloudAPIClient) BootstrapBundle ¶ added in v0.26.0
BootstrapBundle provides a mock function with given fields: _a0, _a1
func (*CloudAPIClient) EXPECT ¶ added in v0.26.0
func (_m *CloudAPIClient) EXPECT() *CloudAPIClient_Expecter
func (*CloudAPIClient) GetBundle ¶ added in v0.26.0
GetBundle provides a mock function with given fields: _a0, _a1
func (*CloudAPIClient) GetCachedBundle ¶ added in v0.26.0
func (_m *CloudAPIClient) GetCachedBundle(_a0 string) (string, error)
GetCachedBundle provides a mock function with given fields: _a0
func (*CloudAPIClient) WatchBundle ¶ added in v0.26.0
func (_m *CloudAPIClient) WatchBundle(_a0 context.Context, _a1 string) (cloud_apibundle.WatchHandle, error)
WatchBundle provides a mock function with given fields: _a0, _a1
type CloudAPIClient_BootstrapBundle_Call ¶ added in v0.26.0
CloudAPIClient_BootstrapBundle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BootstrapBundle'
func (*CloudAPIClient_BootstrapBundle_Call) Return ¶ added in v0.26.0
func (_c *CloudAPIClient_BootstrapBundle_Call) Return(_a0 string, _a1 error) *CloudAPIClient_BootstrapBundle_Call
func (*CloudAPIClient_BootstrapBundle_Call) Run ¶ added in v0.26.0
func (_c *CloudAPIClient_BootstrapBundle_Call) Run(run func(_a0 context.Context, _a1 string)) *CloudAPIClient_BootstrapBundle_Call
func (*CloudAPIClient_BootstrapBundle_Call) RunAndReturn ¶ added in v0.26.0
func (_c *CloudAPIClient_BootstrapBundle_Call) RunAndReturn(run func(context.Context, string) (string, error)) *CloudAPIClient_BootstrapBundle_Call
type CloudAPIClient_Expecter ¶ added in v0.26.0
type CloudAPIClient_Expecter struct {
// contains filtered or unexported fields
}
func (*CloudAPIClient_Expecter) BootstrapBundle ¶ added in v0.26.0
func (_e *CloudAPIClient_Expecter) BootstrapBundle(_a0 interface{}, _a1 interface{}) *CloudAPIClient_BootstrapBundle_Call
BootstrapBundle is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*CloudAPIClient_Expecter) GetBundle ¶ added in v0.26.0
func (_e *CloudAPIClient_Expecter) GetBundle(_a0 interface{}, _a1 interface{}) *CloudAPIClient_GetBundle_Call
GetBundle is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*CloudAPIClient_Expecter) GetCachedBundle ¶ added in v0.26.0
func (_e *CloudAPIClient_Expecter) GetCachedBundle(_a0 interface{}) *CloudAPIClient_GetCachedBundle_Call
GetCachedBundle is a helper method to define mock.On call
- _a0 string
func (*CloudAPIClient_Expecter) WatchBundle ¶ added in v0.26.0
func (_e *CloudAPIClient_Expecter) WatchBundle(_a0 interface{}, _a1 interface{}) *CloudAPIClient_WatchBundle_Call
WatchBundle is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
type CloudAPIClient_GetBundle_Call ¶ added in v0.26.0
CloudAPIClient_GetBundle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBundle'
func (*CloudAPIClient_GetBundle_Call) Return ¶ added in v0.26.0
func (_c *CloudAPIClient_GetBundle_Call) Return(_a0 string, _a1 error) *CloudAPIClient_GetBundle_Call
func (*CloudAPIClient_GetBundle_Call) Run ¶ added in v0.26.0
func (_c *CloudAPIClient_GetBundle_Call) Run(run func(_a0 context.Context, _a1 string)) *CloudAPIClient_GetBundle_Call
func (*CloudAPIClient_GetBundle_Call) RunAndReturn ¶ added in v0.26.0
func (_c *CloudAPIClient_GetBundle_Call) RunAndReturn(run func(context.Context, string) (string, error)) *CloudAPIClient_GetBundle_Call
type CloudAPIClient_GetCachedBundle_Call ¶ added in v0.26.0
CloudAPIClient_GetCachedBundle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCachedBundle'
func (*CloudAPIClient_GetCachedBundle_Call) Return ¶ added in v0.26.0
func (_c *CloudAPIClient_GetCachedBundle_Call) Return(_a0 string, _a1 error) *CloudAPIClient_GetCachedBundle_Call
func (*CloudAPIClient_GetCachedBundle_Call) Run ¶ added in v0.26.0
func (_c *CloudAPIClient_GetCachedBundle_Call) Run(run func(_a0 string)) *CloudAPIClient_GetCachedBundle_Call
func (*CloudAPIClient_GetCachedBundle_Call) RunAndReturn ¶ added in v0.26.0
func (_c *CloudAPIClient_GetCachedBundle_Call) RunAndReturn(run func(string) (string, error)) *CloudAPIClient_GetCachedBundle_Call
type CloudAPIClient_WatchBundle_Call ¶ added in v0.26.0
CloudAPIClient_WatchBundle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WatchBundle'
func (*CloudAPIClient_WatchBundle_Call) Return ¶ added in v0.26.0
func (_c *CloudAPIClient_WatchBundle_Call) Return(_a0 cloud_apibundle.WatchHandle, _a1 error) *CloudAPIClient_WatchBundle_Call
func (*CloudAPIClient_WatchBundle_Call) Run ¶ added in v0.26.0
func (_c *CloudAPIClient_WatchBundle_Call) Run(run func(_a0 context.Context, _a1 string)) *CloudAPIClient_WatchBundle_Call
func (*CloudAPIClient_WatchBundle_Call) RunAndReturn ¶ added in v0.26.0
func (_c *CloudAPIClient_WatchBundle_Call) RunAndReturn(run func(context.Context, string) (cloud_apibundle.WatchHandle, error)) *CloudAPIClient_WatchBundle_Call
type Index ¶
Index is an autogenerated mock type for the Index type
func NewIndex ¶ added in v0.16.0
NewIndex creates a new instance of Index. 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 (*Index) AddOrUpdate ¶
AddOrUpdate provides a mock function with given fields: _a0
func (*Index) EXPECT ¶ added in v0.26.0
func (_m *Index) EXPECT() *Index_Expecter
func (*Index) GetAllCompilationUnits ¶
func (_m *Index) GetAllCompilationUnits(_a0 context.Context) <-chan *policy.CompilationUnit
GetAllCompilationUnits provides a mock function with given fields: _a0
func (*Index) GetCompilationUnits ¶
func (_m *Index) GetCompilationUnits(_a0 ...namer.ModuleID) (map[namer.ModuleID]*policy.CompilationUnit, error)
GetCompilationUnits provides a mock function with given fields: _a0
func (*Index) GetDependents ¶
GetDependents provides a mock function with given fields: _a0
func (*Index) GetFirstMatch ¶ added in v0.29.0
GetFirstMatch provides a mock function with given fields: _a0
func (*Index) InspectPolicies ¶ added in v0.35.0
func (_m *Index) InspectPolicies(_a0 context.Context) (map[string]*responsev1.InspectPoliciesResponse_Result, error)
InspectPolicies provides a mock function with given fields: _a0
func (*Index) ListPolicyIDs ¶ added in v0.12.0
ListPolicyIDs provides a mock function with given fields: _a0
func (*Index) ListSchemaIDs ¶ added in v0.11.0
ListSchemaIDs provides a mock function with given fields: _a0
func (*Index) LoadPolicy ¶ added in v0.12.0
LoadPolicy provides a mock function with given fields: _a0, _a1
func (*Index) LoadSchema ¶ added in v0.11.0
LoadSchema provides a mock function with given fields: _a0, _a1
type Index_AddOrUpdate_Call ¶ added in v0.26.0
Index_AddOrUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOrUpdate'
func (*Index_AddOrUpdate_Call) Return ¶ added in v0.26.0
func (_c *Index_AddOrUpdate_Call) Return(_a0 storage.Event, _a1 error) *Index_AddOrUpdate_Call
func (*Index_AddOrUpdate_Call) Run ¶ added in v0.26.0
func (_c *Index_AddOrUpdate_Call) Run(run func(_a0 index.Entry)) *Index_AddOrUpdate_Call
func (*Index_AddOrUpdate_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Index_AddOrUpdate_Call) RunAndReturn(run func(index.Entry) (storage.Event, error)) *Index_AddOrUpdate_Call
type Index_Clear_Call ¶ added in v0.26.0
Index_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'
func (*Index_Clear_Call) Return ¶ added in v0.26.0
func (_c *Index_Clear_Call) Return(_a0 error) *Index_Clear_Call
func (*Index_Clear_Call) Run ¶ added in v0.26.0
func (_c *Index_Clear_Call) Run(run func()) *Index_Clear_Call
func (*Index_Clear_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Index_Clear_Call) RunAndReturn(run func() error) *Index_Clear_Call
type Index_Close_Call ¶ added in v0.30.0
Index_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*Index_Close_Call) Return ¶ added in v0.30.0
func (_c *Index_Close_Call) Return(_a0 error) *Index_Close_Call
func (*Index_Close_Call) Run ¶ added in v0.30.0
func (_c *Index_Close_Call) Run(run func()) *Index_Close_Call
func (*Index_Close_Call) RunAndReturn ¶ added in v0.30.0
func (_c *Index_Close_Call) RunAndReturn(run func() error) *Index_Close_Call
type Index_Delete_Call ¶ added in v0.26.0
Index_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Index_Delete_Call) Return ¶ added in v0.26.0
func (_c *Index_Delete_Call) Return(_a0 storage.Event, _a1 error) *Index_Delete_Call
func (*Index_Delete_Call) Run ¶ added in v0.26.0
func (_c *Index_Delete_Call) Run(run func(_a0 index.Entry)) *Index_Delete_Call
func (*Index_Delete_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Index_Delete_Call) RunAndReturn(run func(index.Entry) (storage.Event, error)) *Index_Delete_Call
type Index_Expecter ¶ added in v0.26.0
type Index_Expecter struct {
// contains filtered or unexported fields
}
func (*Index_Expecter) AddOrUpdate ¶ added in v0.26.0
func (_e *Index_Expecter) AddOrUpdate(_a0 interface{}) *Index_AddOrUpdate_Call
AddOrUpdate is a helper method to define mock.On call
- _a0 index.Entry
func (*Index_Expecter) Clear ¶ added in v0.26.0
func (_e *Index_Expecter) Clear() *Index_Clear_Call
Clear is a helper method to define mock.On call
func (*Index_Expecter) Close ¶ added in v0.30.0
func (_e *Index_Expecter) Close() *Index_Close_Call
Close is a helper method to define mock.On call
func (*Index_Expecter) Delete ¶ added in v0.26.0
func (_e *Index_Expecter) Delete(_a0 interface{}) *Index_Delete_Call
Delete is a helper method to define mock.On call
- _a0 index.Entry
func (*Index_Expecter) GetAllCompilationUnits ¶ added in v0.26.0
func (_e *Index_Expecter) GetAllCompilationUnits(_a0 interface{}) *Index_GetAllCompilationUnits_Call
GetAllCompilationUnits is a helper method to define mock.On call
- _a0 context.Context
func (*Index_Expecter) GetCompilationUnits ¶ added in v0.26.0
func (_e *Index_Expecter) GetCompilationUnits(_a0 ...interface{}) *Index_GetCompilationUnits_Call
GetCompilationUnits is a helper method to define mock.On call
- _a0 ...namer.ModuleID
func (*Index_Expecter) GetDependents ¶ added in v0.26.0
func (_e *Index_Expecter) GetDependents(_a0 ...interface{}) *Index_GetDependents_Call
GetDependents is a helper method to define mock.On call
- _a0 ...namer.ModuleID
func (*Index_Expecter) GetFiles ¶ added in v0.26.0
func (_e *Index_Expecter) GetFiles() *Index_GetFiles_Call
GetFiles is a helper method to define mock.On call
func (*Index_Expecter) GetFirstMatch ¶ added in v0.29.0
func (_e *Index_Expecter) GetFirstMatch(_a0 interface{}) *Index_GetFirstMatch_Call
GetFirstMatch is a helper method to define mock.On call
- _a0 []namer.ModuleID
func (*Index_Expecter) InspectPolicies ¶ added in v0.35.0
func (_e *Index_Expecter) InspectPolicies(_a0 interface{}) *Index_InspectPolicies_Call
InspectPolicies is a helper method to define mock.On call
- _a0 context.Context
func (*Index_Expecter) ListPolicyIDs ¶ added in v0.26.0
func (_e *Index_Expecter) ListPolicyIDs(_a0 interface{}) *Index_ListPolicyIDs_Call
ListPolicyIDs is a helper method to define mock.On call
- _a0 context.Context
func (*Index_Expecter) ListSchemaIDs ¶ added in v0.26.0
func (_e *Index_Expecter) ListSchemaIDs(_a0 interface{}) *Index_ListSchemaIDs_Call
ListSchemaIDs is a helper method to define mock.On call
- _a0 context.Context
func (*Index_Expecter) LoadPolicy ¶ added in v0.26.0
func (_e *Index_Expecter) LoadPolicy(_a0 interface{}, _a1 ...interface{}) *Index_LoadPolicy_Call
LoadPolicy is a helper method to define mock.On call
- _a0 context.Context
- _a1 ...string
func (*Index_Expecter) LoadSchema ¶ added in v0.26.0
func (_e *Index_Expecter) LoadSchema(_a0 interface{}, _a1 interface{}) *Index_LoadSchema_Call
LoadSchema is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*Index_Expecter) Reload ¶ added in v0.26.0
func (_e *Index_Expecter) Reload(ctx interface{}) *Index_Reload_Call
Reload is a helper method to define mock.On call
- ctx context.Context
func (*Index_Expecter) RepoStats ¶ added in v0.26.0
func (_e *Index_Expecter) RepoStats(_a0 interface{}) *Index_RepoStats_Call
RepoStats is a helper method to define mock.On call
- _a0 context.Context
type Index_GetAllCompilationUnits_Call ¶ added in v0.26.0
Index_GetAllCompilationUnits_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllCompilationUnits'
func (*Index_GetAllCompilationUnits_Call) Return ¶ added in v0.26.0
func (_c *Index_GetAllCompilationUnits_Call) Return(_a0 <-chan *policy.CompilationUnit) *Index_GetAllCompilationUnits_Call
func (*Index_GetAllCompilationUnits_Call) Run ¶ added in v0.26.0
func (_c *Index_GetAllCompilationUnits_Call) Run(run func(_a0 context.Context)) *Index_GetAllCompilationUnits_Call
func (*Index_GetAllCompilationUnits_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Index_GetAllCompilationUnits_Call) RunAndReturn(run func(context.Context) <-chan *policy.CompilationUnit) *Index_GetAllCompilationUnits_Call
type Index_GetCompilationUnits_Call ¶ added in v0.26.0
Index_GetCompilationUnits_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCompilationUnits'
func (*Index_GetCompilationUnits_Call) Return ¶ added in v0.26.0
func (_c *Index_GetCompilationUnits_Call) Return(_a0 map[namer.ModuleID]*policy.CompilationUnit, _a1 error) *Index_GetCompilationUnits_Call
func (*Index_GetCompilationUnits_Call) Run ¶ added in v0.26.0
func (_c *Index_GetCompilationUnits_Call) Run(run func(_a0 ...namer.ModuleID)) *Index_GetCompilationUnits_Call
func (*Index_GetCompilationUnits_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Index_GetCompilationUnits_Call) RunAndReturn(run func(...namer.ModuleID) (map[namer.ModuleID]*policy.CompilationUnit, error)) *Index_GetCompilationUnits_Call
type Index_GetDependents_Call ¶ added in v0.26.0
Index_GetDependents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDependents'
func (*Index_GetDependents_Call) Return ¶ added in v0.26.0
func (_c *Index_GetDependents_Call) Return(_a0 map[namer.ModuleID][]namer.ModuleID, _a1 error) *Index_GetDependents_Call
func (*Index_GetDependents_Call) Run ¶ added in v0.26.0
func (_c *Index_GetDependents_Call) Run(run func(_a0 ...namer.ModuleID)) *Index_GetDependents_Call
func (*Index_GetDependents_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Index_GetDependents_Call) RunAndReturn(run func(...namer.ModuleID) (map[namer.ModuleID][]namer.ModuleID, error)) *Index_GetDependents_Call
type Index_GetFiles_Call ¶ added in v0.26.0
Index_GetFiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFiles'
func (*Index_GetFiles_Call) Return ¶ added in v0.26.0
func (_c *Index_GetFiles_Call) Return(_a0 []string) *Index_GetFiles_Call
func (*Index_GetFiles_Call) Run ¶ added in v0.26.0
func (_c *Index_GetFiles_Call) Run(run func()) *Index_GetFiles_Call
func (*Index_GetFiles_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Index_GetFiles_Call) RunAndReturn(run func() []string) *Index_GetFiles_Call
type Index_GetFirstMatch_Call ¶ added in v0.29.0
Index_GetFirstMatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFirstMatch'
func (*Index_GetFirstMatch_Call) Return ¶ added in v0.29.0
func (_c *Index_GetFirstMatch_Call) Return(_a0 *policy.CompilationUnit, _a1 error) *Index_GetFirstMatch_Call
func (*Index_GetFirstMatch_Call) Run ¶ added in v0.29.0
func (_c *Index_GetFirstMatch_Call) Run(run func(_a0 []namer.ModuleID)) *Index_GetFirstMatch_Call
func (*Index_GetFirstMatch_Call) RunAndReturn ¶ added in v0.29.0
func (_c *Index_GetFirstMatch_Call) RunAndReturn(run func([]namer.ModuleID) (*policy.CompilationUnit, error)) *Index_GetFirstMatch_Call
type Index_InspectPolicies_Call ¶ added in v0.35.0
Index_InspectPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InspectPolicies'
func (*Index_InspectPolicies_Call) Return ¶ added in v0.35.0
func (_c *Index_InspectPolicies_Call) Return(_a0 map[string]*responsev1.InspectPoliciesResponse_Result, _a1 error) *Index_InspectPolicies_Call
func (*Index_InspectPolicies_Call) Run ¶ added in v0.35.0
func (_c *Index_InspectPolicies_Call) Run(run func(_a0 context.Context)) *Index_InspectPolicies_Call
func (*Index_InspectPolicies_Call) RunAndReturn ¶ added in v0.35.0
func (_c *Index_InspectPolicies_Call) RunAndReturn(run func(context.Context) (map[string]*responsev1.InspectPoliciesResponse_Result, error)) *Index_InspectPolicies_Call
type Index_ListPolicyIDs_Call ¶ added in v0.26.0
Index_ListPolicyIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPolicyIDs'
func (*Index_ListPolicyIDs_Call) Return ¶ added in v0.26.0
func (_c *Index_ListPolicyIDs_Call) Return(_a0 []string, _a1 error) *Index_ListPolicyIDs_Call
func (*Index_ListPolicyIDs_Call) Run ¶ added in v0.26.0
func (_c *Index_ListPolicyIDs_Call) Run(run func(_a0 context.Context)) *Index_ListPolicyIDs_Call
func (*Index_ListPolicyIDs_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Index_ListPolicyIDs_Call) RunAndReturn(run func(context.Context) ([]string, error)) *Index_ListPolicyIDs_Call
type Index_ListSchemaIDs_Call ¶ added in v0.26.0
Index_ListSchemaIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSchemaIDs'
func (*Index_ListSchemaIDs_Call) Return ¶ added in v0.26.0
func (_c *Index_ListSchemaIDs_Call) Return(_a0 []string, _a1 error) *Index_ListSchemaIDs_Call
func (*Index_ListSchemaIDs_Call) Run ¶ added in v0.26.0
func (_c *Index_ListSchemaIDs_Call) Run(run func(_a0 context.Context)) *Index_ListSchemaIDs_Call
func (*Index_ListSchemaIDs_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Index_ListSchemaIDs_Call) RunAndReturn(run func(context.Context) ([]string, error)) *Index_ListSchemaIDs_Call
type Index_LoadPolicy_Call ¶ added in v0.26.0
Index_LoadPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadPolicy'
func (*Index_LoadPolicy_Call) Return ¶ added in v0.26.0
func (_c *Index_LoadPolicy_Call) Return(_a0 []*policy.Wrapper, _a1 error) *Index_LoadPolicy_Call
func (*Index_LoadPolicy_Call) Run ¶ added in v0.26.0
func (_c *Index_LoadPolicy_Call) Run(run func(_a0 context.Context, _a1 ...string)) *Index_LoadPolicy_Call
func (*Index_LoadPolicy_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Index_LoadPolicy_Call) RunAndReturn(run func(context.Context, ...string) ([]*policy.Wrapper, error)) *Index_LoadPolicy_Call
type Index_LoadSchema_Call ¶ added in v0.26.0
Index_LoadSchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadSchema'
func (*Index_LoadSchema_Call) Return ¶ added in v0.26.0
func (_c *Index_LoadSchema_Call) Return(_a0 io.ReadCloser, _a1 error) *Index_LoadSchema_Call
func (*Index_LoadSchema_Call) Run ¶ added in v0.26.0
func (_c *Index_LoadSchema_Call) Run(run func(_a0 context.Context, _a1 string)) *Index_LoadSchema_Call
func (*Index_LoadSchema_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Index_LoadSchema_Call) RunAndReturn(run func(context.Context, string) (io.ReadCloser, error)) *Index_LoadSchema_Call
type Index_Reload_Call ¶ added in v0.26.0
Index_Reload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reload'
func (*Index_Reload_Call) Return ¶ added in v0.26.0
func (_c *Index_Reload_Call) Return(_a0 []storage.Event, _a1 error) *Index_Reload_Call
func (*Index_Reload_Call) Run ¶ added in v0.26.0
func (_c *Index_Reload_Call) Run(run func(ctx context.Context)) *Index_Reload_Call
func (*Index_Reload_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Index_Reload_Call) RunAndReturn(run func(context.Context) ([]storage.Event, error)) *Index_Reload_Call
type Index_RepoStats_Call ¶ added in v0.26.0
Index_RepoStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RepoStats'
func (*Index_RepoStats_Call) Return ¶ added in v0.26.0
func (_c *Index_RepoStats_Call) Return(_a0 storage.RepoStats) *Index_RepoStats_Call
func (*Index_RepoStats_Call) Run ¶ added in v0.26.0
func (_c *Index_RepoStats_Call) Run(run func(_a0 context.Context)) *Index_RepoStats_Call
func (*Index_RepoStats_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Index_RepoStats_Call) RunAndReturn(run func(context.Context) storage.RepoStats) *Index_RepoStats_Call
type IngestSyncer ¶ added in v0.35.0
IngestSyncer is an autogenerated mock type for the IngestSyncer type
func NewIngestSyncer ¶ added in v0.35.0
func NewIngestSyncer(t interface { mock.TestingT Cleanup(func()) }) *IngestSyncer
NewIngestSyncer creates a new instance of IngestSyncer. 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 (*IngestSyncer) EXPECT ¶ added in v0.35.0
func (_m *IngestSyncer) EXPECT() *IngestSyncer_Expecter
func (*IngestSyncer) Sync ¶ added in v0.35.0
func (_m *IngestSyncer) Sync(_a0 context.Context, _a1 *logsv1.IngestBatch) error
Sync provides a mock function with given fields: _a0, _a1
type IngestSyncer_Expecter ¶ added in v0.35.0
type IngestSyncer_Expecter struct {
// contains filtered or unexported fields
}
func (*IngestSyncer_Expecter) Sync ¶ added in v0.35.0
func (_e *IngestSyncer_Expecter) Sync(_a0 interface{}, _a1 interface{}) *IngestSyncer_Sync_Call
Sync is a helper method to define mock.On call
- _a0 context.Context
- _a1 *logsv1.IngestBatch
type IngestSyncer_Sync_Call ¶ added in v0.35.0
IngestSyncer_Sync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sync'
func (*IngestSyncer_Sync_Call) Return ¶ added in v0.35.0
func (_c *IngestSyncer_Sync_Call) Return(_a0 error) *IngestSyncer_Sync_Call
func (*IngestSyncer_Sync_Call) Run ¶ added in v0.35.0
func (_c *IngestSyncer_Sync_Call) Run(run func(_a0 context.Context, _a1 *logsv1.IngestBatch)) *IngestSyncer_Sync_Call
func (*IngestSyncer_Sync_Call) RunAndReturn ¶ added in v0.35.0
func (_c *IngestSyncer_Sync_Call) RunAndReturn(run func(context.Context, *logsv1.IngestBatch) error) *IngestSyncer_Sync_Call
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶ added in v0.16.0
NewStore creates a new instance of Store. 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 (*Store) EXPECT ¶ added in v0.26.0
func (_m *Store) EXPECT() *Store_Expecter
func (*Store) InspectPolicies ¶ added in v0.35.0
func (_m *Store) InspectPolicies(_a0 context.Context, _a1 storage.ListPolicyIDsParams) (map[string]*responsev1.InspectPoliciesResponse_Result, error)
InspectPolicies provides a mock function with given fields: _a0, _a1
func (*Store) ListPolicyIDs ¶ added in v0.15.0
func (_m *Store) ListPolicyIDs(_a0 context.Context, _a1 storage.ListPolicyIDsParams) ([]string, error)
ListPolicyIDs provides a mock function with given fields: _a0, _a1
func (*Store) ListSchemaIDs ¶ added in v0.15.0
ListSchemaIDs provides a mock function with given fields: _a0
func (*Store) LoadSchema ¶ added in v0.15.0
LoadSchema provides a mock function with given fields: _a0, _a1
type Store_Driver_Call ¶ added in v0.26.0
Store_Driver_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Driver'
func (*Store_Driver_Call) Return ¶ added in v0.26.0
func (_c *Store_Driver_Call) Return(_a0 string) *Store_Driver_Call
func (*Store_Driver_Call) Run ¶ added in v0.26.0
func (_c *Store_Driver_Call) Run(run func()) *Store_Driver_Call
func (*Store_Driver_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Store_Driver_Call) RunAndReturn(run func() string) *Store_Driver_Call
type Store_Expecter ¶ added in v0.26.0
type Store_Expecter struct {
// contains filtered or unexported fields
}
func (*Store_Expecter) Driver ¶ added in v0.26.0
func (_e *Store_Expecter) Driver() *Store_Driver_Call
Driver is a helper method to define mock.On call
func (*Store_Expecter) InspectPolicies ¶ added in v0.35.0
func (_e *Store_Expecter) InspectPolicies(_a0 interface{}, _a1 interface{}) *Store_InspectPolicies_Call
InspectPolicies is a helper method to define mock.On call
- _a0 context.Context
- _a1 storage.ListPolicyIDsParams
func (*Store_Expecter) ListPolicyIDs ¶ added in v0.26.0
func (_e *Store_Expecter) ListPolicyIDs(_a0 interface{}, _a1 interface{}) *Store_ListPolicyIDs_Call
ListPolicyIDs is a helper method to define mock.On call
- _a0 context.Context
- _a1 storage.ListPolicyIDsParams
func (*Store_Expecter) ListSchemaIDs ¶ added in v0.26.0
func (_e *Store_Expecter) ListSchemaIDs(_a0 interface{}) *Store_ListSchemaIDs_Call
ListSchemaIDs is a helper method to define mock.On call
- _a0 context.Context
func (*Store_Expecter) LoadSchema ¶ added in v0.26.0
func (_e *Store_Expecter) LoadSchema(_a0 interface{}, _a1 interface{}) *Store_LoadSchema_Call
LoadSchema is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
type Store_InspectPolicies_Call ¶ added in v0.35.0
Store_InspectPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InspectPolicies'
func (*Store_InspectPolicies_Call) Return ¶ added in v0.35.0
func (_c *Store_InspectPolicies_Call) Return(_a0 map[string]*responsev1.InspectPoliciesResponse_Result, _a1 error) *Store_InspectPolicies_Call
func (*Store_InspectPolicies_Call) Run ¶ added in v0.35.0
func (_c *Store_InspectPolicies_Call) Run(run func(_a0 context.Context, _a1 storage.ListPolicyIDsParams)) *Store_InspectPolicies_Call
func (*Store_InspectPolicies_Call) RunAndReturn ¶ added in v0.35.0
func (_c *Store_InspectPolicies_Call) RunAndReturn(run func(context.Context, storage.ListPolicyIDsParams) (map[string]*responsev1.InspectPoliciesResponse_Result, error)) *Store_InspectPolicies_Call
type Store_ListPolicyIDs_Call ¶ added in v0.26.0
Store_ListPolicyIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPolicyIDs'
func (*Store_ListPolicyIDs_Call) Return ¶ added in v0.26.0
func (_c *Store_ListPolicyIDs_Call) Return(_a0 []string, _a1 error) *Store_ListPolicyIDs_Call
func (*Store_ListPolicyIDs_Call) Run ¶ added in v0.26.0
func (_c *Store_ListPolicyIDs_Call) Run(run func(_a0 context.Context, _a1 storage.ListPolicyIDsParams)) *Store_ListPolicyIDs_Call
func (*Store_ListPolicyIDs_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Store_ListPolicyIDs_Call) RunAndReturn(run func(context.Context, storage.ListPolicyIDsParams) ([]string, error)) *Store_ListPolicyIDs_Call
type Store_ListSchemaIDs_Call ¶ added in v0.26.0
Store_ListSchemaIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSchemaIDs'
func (*Store_ListSchemaIDs_Call) Return ¶ added in v0.26.0
func (_c *Store_ListSchemaIDs_Call) Return(_a0 []string, _a1 error) *Store_ListSchemaIDs_Call
func (*Store_ListSchemaIDs_Call) Run ¶ added in v0.26.0
func (_c *Store_ListSchemaIDs_Call) Run(run func(_a0 context.Context)) *Store_ListSchemaIDs_Call
func (*Store_ListSchemaIDs_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Store_ListSchemaIDs_Call) RunAndReturn(run func(context.Context) ([]string, error)) *Store_ListSchemaIDs_Call
type Store_LoadSchema_Call ¶ added in v0.26.0
Store_LoadSchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadSchema'
func (*Store_LoadSchema_Call) Return ¶ added in v0.26.0
func (_c *Store_LoadSchema_Call) Return(_a0 io.ReadCloser, _a1 error) *Store_LoadSchema_Call
func (*Store_LoadSchema_Call) Run ¶ added in v0.26.0
func (_c *Store_LoadSchema_Call) Run(run func(_a0 context.Context, _a1 string)) *Store_LoadSchema_Call
func (*Store_LoadSchema_Call) RunAndReturn ¶ added in v0.26.0
func (_c *Store_LoadSchema_Call) RunAndReturn(run func(context.Context, string) (io.ReadCloser, error)) *Store_LoadSchema_Call
type WatchHandle ¶ added in v0.26.0
WatchHandle is an autogenerated mock type for the WatchHandle type
func NewWatchHandle ¶ added in v0.26.0
func NewWatchHandle(t interface { mock.TestingT Cleanup(func()) }) *WatchHandle
NewWatchHandle creates a new instance of WatchHandle. 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 (*WatchHandle) ActiveBundleChanged ¶ added in v0.26.0
func (_m *WatchHandle) ActiveBundleChanged(_a0 string) error
ActiveBundleChanged provides a mock function with given fields: _a0
func (*WatchHandle) EXPECT ¶ added in v0.26.0
func (_m *WatchHandle) EXPECT() *WatchHandle_Expecter
func (*WatchHandle) Errors ¶ added in v0.26.0
func (_m *WatchHandle) Errors() <-chan error
Errors provides a mock function with given fields:
func (*WatchHandle) ServerEvents ¶ added in v0.26.0
func (_m *WatchHandle) ServerEvents() <-chan bundle.ServerEvent
ServerEvents provides a mock function with given fields:
type WatchHandle_ActiveBundleChanged_Call ¶ added in v0.26.0
WatchHandle_ActiveBundleChanged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ActiveBundleChanged'
func (*WatchHandle_ActiveBundleChanged_Call) Return ¶ added in v0.26.0
func (_c *WatchHandle_ActiveBundleChanged_Call) Return(_a0 error) *WatchHandle_ActiveBundleChanged_Call
func (*WatchHandle_ActiveBundleChanged_Call) Run ¶ added in v0.26.0
func (_c *WatchHandle_ActiveBundleChanged_Call) Run(run func(_a0 string)) *WatchHandle_ActiveBundleChanged_Call
func (*WatchHandle_ActiveBundleChanged_Call) RunAndReturn ¶ added in v0.26.0
func (_c *WatchHandle_ActiveBundleChanged_Call) RunAndReturn(run func(string) error) *WatchHandle_ActiveBundleChanged_Call
type WatchHandle_Errors_Call ¶ added in v0.26.0
WatchHandle_Errors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Errors'
func (*WatchHandle_Errors_Call) Return ¶ added in v0.26.0
func (_c *WatchHandle_Errors_Call) Return(_a0 <-chan error) *WatchHandle_Errors_Call
func (*WatchHandle_Errors_Call) Run ¶ added in v0.26.0
func (_c *WatchHandle_Errors_Call) Run(run func()) *WatchHandle_Errors_Call
func (*WatchHandle_Errors_Call) RunAndReturn ¶ added in v0.26.0
func (_c *WatchHandle_Errors_Call) RunAndReturn(run func() <-chan error) *WatchHandle_Errors_Call
type WatchHandle_Expecter ¶ added in v0.26.0
type WatchHandle_Expecter struct {
// contains filtered or unexported fields
}
func (*WatchHandle_Expecter) ActiveBundleChanged ¶ added in v0.26.0
func (_e *WatchHandle_Expecter) ActiveBundleChanged(_a0 interface{}) *WatchHandle_ActiveBundleChanged_Call
ActiveBundleChanged is a helper method to define mock.On call
- _a0 string
func (*WatchHandle_Expecter) Errors ¶ added in v0.26.0
func (_e *WatchHandle_Expecter) Errors() *WatchHandle_Errors_Call
Errors is a helper method to define mock.On call
func (*WatchHandle_Expecter) ServerEvents ¶ added in v0.26.0
func (_e *WatchHandle_Expecter) ServerEvents() *WatchHandle_ServerEvents_Call
ServerEvents is a helper method to define mock.On call
type WatchHandle_ServerEvents_Call ¶ added in v0.26.0
WatchHandle_ServerEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerEvents'
func (*WatchHandle_ServerEvents_Call) Return ¶ added in v0.26.0
func (_c *WatchHandle_ServerEvents_Call) Return(_a0 <-chan bundle.ServerEvent) *WatchHandle_ServerEvents_Call
func (*WatchHandle_ServerEvents_Call) Run ¶ added in v0.26.0
func (_c *WatchHandle_ServerEvents_Call) Run(run func()) *WatchHandle_ServerEvents_Call
func (*WatchHandle_ServerEvents_Call) RunAndReturn ¶ added in v0.26.0
func (_c *WatchHandle_ServerEvents_Call) RunAndReturn(run func() <-chan bundle.ServerEvent) *WatchHandle_ServerEvents_Call