mocks

package
v0.35.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudAPIClient added in v0.26.0

type CloudAPIClient struct {
	mock.Mock
}

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

func (_m *CloudAPIClient) BootstrapBundle(_a0 context.Context, _a1 string) (string, error)

BootstrapBundle provides a mock function with given fields: _a0, _a1

func (*CloudAPIClient) EXPECT added in v0.26.0

func (*CloudAPIClient) GetBundle added in v0.26.0

func (_m *CloudAPIClient) GetBundle(_a0 context.Context, _a1 string) (string, error)

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

type CloudAPIClient_BootstrapBundle_Call struct {
	*mock.Call
}

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 (*CloudAPIClient_BootstrapBundle_Call) Run added in v0.26.0

func (*CloudAPIClient_BootstrapBundle_Call) RunAndReturn added in v0.26.0

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

type CloudAPIClient_GetBundle_Call struct {
	*mock.Call
}

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 (*CloudAPIClient_GetBundle_Call) Run added in v0.26.0

func (*CloudAPIClient_GetBundle_Call) RunAndReturn added in v0.26.0

type CloudAPIClient_GetCachedBundle_Call added in v0.26.0

type CloudAPIClient_GetCachedBundle_Call struct {
	*mock.Call
}

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 (*CloudAPIClient_GetCachedBundle_Call) Run added in v0.26.0

func (*CloudAPIClient_GetCachedBundle_Call) RunAndReturn added in v0.26.0

type CloudAPIClient_WatchBundle_Call added in v0.26.0

type CloudAPIClient_WatchBundle_Call struct {
	*mock.Call
}

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 (*CloudAPIClient_WatchBundle_Call) Run added in v0.26.0

func (*CloudAPIClient_WatchBundle_Call) RunAndReturn added in v0.26.0

type Index

type Index struct {
	mock.Mock
}

Index is an autogenerated mock type for the Index type

func NewIndex added in v0.16.0

func NewIndex(t interface {
	mock.TestingT
	Cleanup(func())
}) *Index

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

func (_m *Index) AddOrUpdate(_a0 index.Entry) (storage.Event, error)

AddOrUpdate provides a mock function with given fields: _a0

func (*Index) Clear

func (_m *Index) Clear() error

Clear provides a mock function with given fields:

func (*Index) Close added in v0.30.0

func (_m *Index) Close() error

Close provides a mock function with given fields:

func (*Index) Delete

func (_m *Index) Delete(_a0 index.Entry) (storage.Event, error)

Delete 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

func (_m *Index) GetDependents(_a0 ...namer.ModuleID) (map[namer.ModuleID][]namer.ModuleID, error)

GetDependents provides a mock function with given fields: _a0

func (*Index) GetFiles

func (_m *Index) GetFiles() []string

GetFiles provides a mock function with given fields:

func (*Index) GetFirstMatch added in v0.29.0

func (_m *Index) GetFirstMatch(_a0 []namer.ModuleID) (*policy.CompilationUnit, error)

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

func (_m *Index) ListPolicyIDs(_a0 context.Context) ([]string, error)

ListPolicyIDs provides a mock function with given fields: _a0

func (*Index) ListSchemaIDs added in v0.11.0

func (_m *Index) ListSchemaIDs(_a0 context.Context) ([]string, error)

ListSchemaIDs provides a mock function with given fields: _a0

func (*Index) LoadPolicy added in v0.12.0

func (_m *Index) LoadPolicy(_a0 context.Context, _a1 ...string) ([]*policy.Wrapper, error)

LoadPolicy provides a mock function with given fields: _a0, _a1

func (*Index) LoadSchema added in v0.11.0

func (_m *Index) LoadSchema(_a0 context.Context, _a1 string) (io.ReadCloser, error)

LoadSchema provides a mock function with given fields: _a0, _a1

func (*Index) Reload added in v0.15.0

func (_m *Index) Reload(ctx context.Context) ([]storage.Event, error)

Reload provides a mock function with given fields: ctx

func (*Index) RepoStats added in v0.15.0

func (_m *Index) RepoStats(_a0 context.Context) storage.RepoStats

RepoStats provides a mock function with given fields: _a0

type Index_AddOrUpdate_Call added in v0.26.0

type Index_AddOrUpdate_Call struct {
	*mock.Call
}

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 (*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

type Index_Clear_Call added in v0.26.0

type Index_Clear_Call struct {
	*mock.Call
}

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

type Index_Close_Call struct {
	*mock.Call
}

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

type Index_Delete_Call struct {
	*mock.Call
}

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

type Index_GetAllCompilationUnits_Call struct {
	*mock.Call
}

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 (*Index_GetAllCompilationUnits_Call) Run added in v0.26.0

func (*Index_GetAllCompilationUnits_Call) RunAndReturn added in v0.26.0

type Index_GetCompilationUnits_Call added in v0.26.0

type Index_GetCompilationUnits_Call struct {
	*mock.Call
}

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 (*Index_GetCompilationUnits_Call) Run added in v0.26.0

func (*Index_GetCompilationUnits_Call) RunAndReturn added in v0.26.0

type Index_GetDependents_Call added in v0.26.0

type Index_GetDependents_Call struct {
	*mock.Call
}

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 (*Index_GetDependents_Call) Run added in v0.26.0

func (*Index_GetDependents_Call) RunAndReturn added in v0.26.0

type Index_GetFiles_Call added in v0.26.0

type Index_GetFiles_Call struct {
	*mock.Call
}

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

type Index_GetFirstMatch_Call struct {
	*mock.Call
}

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 (*Index_GetFirstMatch_Call) Run added in v0.29.0

func (*Index_GetFirstMatch_Call) RunAndReturn added in v0.29.0

type Index_InspectPolicies_Call added in v0.35.0

type Index_InspectPolicies_Call struct {
	*mock.Call
}

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 (*Index_InspectPolicies_Call) Run added in v0.35.0

func (*Index_InspectPolicies_Call) RunAndReturn added in v0.35.0

type Index_ListPolicyIDs_Call added in v0.26.0

type Index_ListPolicyIDs_Call struct {
	*mock.Call
}

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 (*Index_ListPolicyIDs_Call) Run added in v0.26.0

func (*Index_ListPolicyIDs_Call) RunAndReturn added in v0.26.0

type Index_ListSchemaIDs_Call added in v0.26.0

type Index_ListSchemaIDs_Call struct {
	*mock.Call
}

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 (*Index_ListSchemaIDs_Call) Run added in v0.26.0

func (*Index_ListSchemaIDs_Call) RunAndReturn added in v0.26.0

type Index_LoadPolicy_Call added in v0.26.0

type Index_LoadPolicy_Call struct {
	*mock.Call
}

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 (*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

type Index_LoadSchema_Call struct {
	*mock.Call
}

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 (*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

type Index_Reload_Call added in v0.26.0

type Index_Reload_Call struct {
	*mock.Call
}

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

type Index_RepoStats_Call struct {
	*mock.Call
}

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 (*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

type IngestSyncer added in v0.35.0

type IngestSyncer struct {
	mock.Mock
}

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

type IngestSyncer_Sync_Call struct {
	*mock.Call
}

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 (*IngestSyncer_Sync_Call) Run added in v0.35.0

func (*IngestSyncer_Sync_Call) RunAndReturn added in v0.35.0

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore added in v0.16.0

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

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) Driver added in v0.5.0

func (_m *Store) Driver() string

Driver provides a mock function with given fields:

func (*Store) EXPECT added in v0.26.0

func (_m *Store) EXPECT() *Store_Expecter

func (*Store) InspectPolicies added in v0.35.0

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

func (_m *Store) ListSchemaIDs(_a0 context.Context) ([]string, error)

ListSchemaIDs provides a mock function with given fields: _a0

func (*Store) LoadSchema added in v0.15.0

func (_m *Store) LoadSchema(_a0 context.Context, _a1 string) (io.ReadCloser, error)

LoadSchema provides a mock function with given fields: _a0, _a1

type Store_Driver_Call added in v0.26.0

type Store_Driver_Call struct {
	*mock.Call
}

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

type Store_InspectPolicies_Call struct {
	*mock.Call
}

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 (*Store_InspectPolicies_Call) Run added in v0.35.0

func (*Store_InspectPolicies_Call) RunAndReturn added in v0.35.0

type Store_ListPolicyIDs_Call added in v0.26.0

type Store_ListPolicyIDs_Call struct {
	*mock.Call
}

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 (*Store_ListPolicyIDs_Call) Run added in v0.26.0

func (*Store_ListPolicyIDs_Call) RunAndReturn added in v0.26.0

type Store_ListSchemaIDs_Call added in v0.26.0

type Store_ListSchemaIDs_Call struct {
	*mock.Call
}

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 (*Store_ListSchemaIDs_Call) Run added in v0.26.0

func (*Store_ListSchemaIDs_Call) RunAndReturn added in v0.26.0

type Store_LoadSchema_Call added in v0.26.0

type Store_LoadSchema_Call struct {
	*mock.Call
}

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 (*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

type WatchHandle added in v0.26.0

type WatchHandle struct {
	mock.Mock
}

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

type WatchHandle_ActiveBundleChanged_Call struct {
	*mock.Call
}

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 (*WatchHandle_ActiveBundleChanged_Call) Run added in v0.26.0

func (*WatchHandle_ActiveBundleChanged_Call) RunAndReturn added in v0.26.0

type WatchHandle_Errors_Call added in v0.26.0

type WatchHandle_Errors_Call struct {
	*mock.Call
}

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

Errors is a helper method to define mock.On call

func (*WatchHandle_Expecter) ServerEvents added in v0.26.0

ServerEvents is a helper method to define mock.On call

type WatchHandle_ServerEvents_Call added in v0.26.0

type WatchHandle_ServerEvents_Call struct {
	*mock.Call
}

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 (*WatchHandle_ServerEvents_Call) Run added in v0.26.0

func (*WatchHandle_ServerEvents_Call) RunAndReturn added in v0.26.0

Jump to

Keyboard shortcuts

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