mocks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 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 MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient

func NewMockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClient

NewMockClient creates a new instance of MockClient. 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 (*MockClient) Apply

func (_mock *MockClient) Apply(ctx context.Context, obj runtime.ApplyConfiguration, opts ...client.ApplyOption) error

Apply provides a mock function for the type MockClient

func (*MockClient) Create

func (_mock *MockClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

Create provides a mock function for the type MockClient

func (*MockClient) Delete

func (_mock *MockClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error

Delete provides a mock function for the type MockClient

func (*MockClient) DeleteAllOf

func (_mock *MockClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error

DeleteAllOf provides a mock function for the type MockClient

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

func (*MockClient) Get

func (_mock *MockClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error

Get provides a mock function for the type MockClient

func (*MockClient) GroupVersionKindFor

func (_mock *MockClient) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)

GroupVersionKindFor provides a mock function for the type MockClient

func (*MockClient) IsObjectNamespaced

func (_mock *MockClient) IsObjectNamespaced(obj runtime.Object) (bool, error)

IsObjectNamespaced provides a mock function for the type MockClient

func (*MockClient) List

func (_mock *MockClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

List provides a mock function for the type MockClient

func (*MockClient) Patch

func (_mock *MockClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

Patch provides a mock function for the type MockClient

func (*MockClient) RESTMapper

func (_mock *MockClient) RESTMapper() meta.RESTMapper

RESTMapper provides a mock function for the type MockClient

func (*MockClient) Scheme

func (_mock *MockClient) Scheme() *runtime.Scheme

Scheme provides a mock function for the type MockClient

func (*MockClient) Status

func (_mock *MockClient) Status() client.SubResourceWriter

Status provides a mock function for the type MockClient

func (*MockClient) SubResource

func (_mock *MockClient) SubResource(subResource string) client.SubResourceClient

SubResource provides a mock function for the type MockClient

func (*MockClient) Update

func (_mock *MockClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error

Update provides a mock function for the type MockClient

type MockClient_Apply_Call

type MockClient_Apply_Call struct {
	*mock.Call
}

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

func (*MockClient_Apply_Call) Return

func (*MockClient_Apply_Call) Run

func (*MockClient_Apply_Call) RunAndReturn

type MockClient_Create_Call

type MockClient_Create_Call struct {
	*mock.Call
}

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

func (*MockClient_Create_Call) Return

func (*MockClient_Create_Call) Run

func (*MockClient_Create_Call) RunAndReturn

func (_c *MockClient_Create_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption) error) *MockClient_Create_Call

type MockClient_DeleteAllOf_Call

type MockClient_DeleteAllOf_Call struct {
	*mock.Call
}

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

func (*MockClient_DeleteAllOf_Call) Return

func (*MockClient_DeleteAllOf_Call) Run

func (*MockClient_DeleteAllOf_Call) RunAndReturn

type MockClient_Delete_Call

type MockClient_Delete_Call struct {
	*mock.Call
}

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

func (*MockClient_Delete_Call) Return

func (*MockClient_Delete_Call) Run

func (*MockClient_Delete_Call) RunAndReturn

func (_c *MockClient_Delete_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error) *MockClient_Delete_Call

type MockClient_Expecter

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

func (*MockClient_Expecter) Apply

func (_e *MockClient_Expecter) Apply(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Apply_Call

Apply is a helper method to define mock.On call

  • ctx context.Context
  • obj runtime.ApplyConfiguration
  • opts ...client.ApplyOption

func (*MockClient_Expecter) Create

func (_e *MockClient_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • obj client.Object
  • opts ...client.CreateOption

func (*MockClient_Expecter) Delete

func (_e *MockClient_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • obj client.Object
  • opts ...client.DeleteOption

func (*MockClient_Expecter) DeleteAllOf

func (_e *MockClient_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_DeleteAllOf_Call

DeleteAllOf is a helper method to define mock.On call

  • ctx context.Context
  • obj client.Object
  • opts ...client.DeleteAllOfOption

func (*MockClient_Expecter) Get

func (_e *MockClient_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *MockClient_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key client.ObjectKey
  • obj client.Object
  • opts ...client.GetOption

func (*MockClient_Expecter) GroupVersionKindFor

func (_e *MockClient_Expecter) GroupVersionKindFor(obj interface{}) *MockClient_GroupVersionKindFor_Call

GroupVersionKindFor is a helper method to define mock.On call

  • obj runtime.Object

func (*MockClient_Expecter) IsObjectNamespaced

func (_e *MockClient_Expecter) IsObjectNamespaced(obj interface{}) *MockClient_IsObjectNamespaced_Call

IsObjectNamespaced is a helper method to define mock.On call

  • obj runtime.Object

func (*MockClient_Expecter) List

func (_e *MockClient_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *MockClient_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • list client.ObjectList
  • opts ...client.ListOption

func (*MockClient_Expecter) Patch

func (_e *MockClient_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *MockClient_Patch_Call

Patch is a helper method to define mock.On call

  • ctx context.Context
  • obj client.Object
  • patch client.Patch
  • opts ...client.PatchOption

func (*MockClient_Expecter) RESTMapper

RESTMapper is a helper method to define mock.On call

func (*MockClient_Expecter) Scheme

Scheme is a helper method to define mock.On call

func (*MockClient_Expecter) Status

Status is a helper method to define mock.On call

func (*MockClient_Expecter) SubResource

func (_e *MockClient_Expecter) SubResource(subResource interface{}) *MockClient_SubResource_Call

SubResource is a helper method to define mock.On call

  • subResource string

func (*MockClient_Expecter) Update

func (_e *MockClient_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • obj client.Object
  • opts ...client.UpdateOption

type MockClient_Get_Call

type MockClient_Get_Call struct {
	*mock.Call
}

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

func (*MockClient_Get_Call) Return

func (*MockClient_Get_Call) Run

func (*MockClient_Get_Call) RunAndReturn

func (_c *MockClient_Get_Call) RunAndReturn(run func(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error) *MockClient_Get_Call

type MockClient_GroupVersionKindFor_Call

type MockClient_GroupVersionKindFor_Call struct {
	*mock.Call
}

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

func (*MockClient_GroupVersionKindFor_Call) Return

func (*MockClient_GroupVersionKindFor_Call) Run

func (*MockClient_GroupVersionKindFor_Call) RunAndReturn

type MockClient_IsObjectNamespaced_Call

type MockClient_IsObjectNamespaced_Call struct {
	*mock.Call
}

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

func (*MockClient_IsObjectNamespaced_Call) Return

func (*MockClient_IsObjectNamespaced_Call) Run

func (*MockClient_IsObjectNamespaced_Call) RunAndReturn

type MockClient_List_Call

type MockClient_List_Call struct {
	*mock.Call
}

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

func (*MockClient_List_Call) Return

func (*MockClient_List_Call) Run

func (*MockClient_List_Call) RunAndReturn

func (_c *MockClient_List_Call) RunAndReturn(run func(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error) *MockClient_List_Call

type MockClient_Patch_Call

type MockClient_Patch_Call struct {
	*mock.Call
}

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

func (*MockClient_Patch_Call) Return

func (*MockClient_Patch_Call) Run

func (*MockClient_Patch_Call) RunAndReturn

func (_c *MockClient_Patch_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error) *MockClient_Patch_Call

type MockClient_RESTMapper_Call

type MockClient_RESTMapper_Call struct {
	*mock.Call
}

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

func (*MockClient_RESTMapper_Call) Return

func (*MockClient_RESTMapper_Call) Run

func (*MockClient_RESTMapper_Call) RunAndReturn

type MockClient_Scheme_Call

type MockClient_Scheme_Call struct {
	*mock.Call
}

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

func (*MockClient_Scheme_Call) Return

func (*MockClient_Scheme_Call) Run

func (_c *MockClient_Scheme_Call) Run(run func()) *MockClient_Scheme_Call

func (*MockClient_Scheme_Call) RunAndReturn

func (_c *MockClient_Scheme_Call) RunAndReturn(run func() *runtime.Scheme) *MockClient_Scheme_Call

type MockClient_Status_Call

type MockClient_Status_Call struct {
	*mock.Call
}

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

func (*MockClient_Status_Call) Return

func (*MockClient_Status_Call) Run

func (_c *MockClient_Status_Call) Run(run func()) *MockClient_Status_Call

func (*MockClient_Status_Call) RunAndReturn

type MockClient_SubResource_Call

type MockClient_SubResource_Call struct {
	*mock.Call
}

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

func (*MockClient_SubResource_Call) Return

func (*MockClient_SubResource_Call) Run

func (_c *MockClient_SubResource_Call) Run(run func(subResource string)) *MockClient_SubResource_Call

func (*MockClient_SubResource_Call) RunAndReturn

type MockClient_Update_Call

type MockClient_Update_Call struct {
	*mock.Call
}

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

func (*MockClient_Update_Call) Return

func (*MockClient_Update_Call) Run

func (*MockClient_Update_Call) RunAndReturn

func (_c *MockClient_Update_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error) *MockClient_Update_Call

type MockReconciler

type MockReconciler struct {
	mock.Mock
}

MockReconciler is an autogenerated mock type for the Reconciler type

func NewMockReconciler

func NewMockReconciler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockReconciler

NewMockReconciler creates a new instance of MockReconciler. 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 (*MockReconciler) EXPECT

func (*MockReconciler) EnsureCreated

func (_mock *MockReconciler) EnsureCreated(context1 context.Context, runtimeObject lifecycle.RuntimeObject) (controllerruntime.Result, lifecycle.ReconcileResult, error)

EnsureCreated provides a mock function for the type MockReconciler

func (*MockReconciler) EnsureDeleted

func (_mock *MockReconciler) EnsureDeleted(context1 context.Context, runtimeObject lifecycle.RuntimeObject) (controllerruntime.Result, lifecycle.ReconcileResult, error)

EnsureDeleted provides a mock function for the type MockReconciler

func (*MockReconciler) EnsureSuspended

func (_mock *MockReconciler) EnsureSuspended(context1 context.Context, runtimeObject lifecycle.RuntimeObject) (controllerruntime.Result, error)

EnsureSuspended provides a mock function for the type MockReconciler

type MockReconciler_EnsureCreated_Call

type MockReconciler_EnsureCreated_Call struct {
	*mock.Call
}

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

func (*MockReconciler_EnsureCreated_Call) Return

func (*MockReconciler_EnsureCreated_Call) Run

func (*MockReconciler_EnsureCreated_Call) RunAndReturn

type MockReconciler_EnsureDeleted_Call

type MockReconciler_EnsureDeleted_Call struct {
	*mock.Call
}

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

func (*MockReconciler_EnsureDeleted_Call) Return

func (*MockReconciler_EnsureDeleted_Call) Run

func (*MockReconciler_EnsureDeleted_Call) RunAndReturn

type MockReconciler_EnsureSuspended_Call

type MockReconciler_EnsureSuspended_Call struct {
	*mock.Call
}

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

func (*MockReconciler_EnsureSuspended_Call) Return

func (*MockReconciler_EnsureSuspended_Call) Run

func (*MockReconciler_EnsureSuspended_Call) RunAndReturn

type MockReconciler_Expecter

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

func (*MockReconciler_Expecter) EnsureCreated

func (_e *MockReconciler_Expecter) EnsureCreated(context1 interface{}, runtimeObject interface{}) *MockReconciler_EnsureCreated_Call

EnsureCreated is a helper method to define mock.On call

  • context1 context.Context
  • runtimeObject lifecycle.RuntimeObject

func (*MockReconciler_Expecter) EnsureDeleted

func (_e *MockReconciler_Expecter) EnsureDeleted(context1 interface{}, runtimeObject interface{}) *MockReconciler_EnsureDeleted_Call

EnsureDeleted is a helper method to define mock.On call

  • context1 context.Context
  • runtimeObject lifecycle.RuntimeObject

func (*MockReconciler_Expecter) EnsureSuspended

func (_e *MockReconciler_Expecter) EnsureSuspended(context1 interface{}, runtimeObject interface{}) *MockReconciler_EnsureSuspended_Call

EnsureSuspended is a helper method to define mock.On call

  • context1 context.Context
  • runtimeObject lifecycle.RuntimeObject

type MockStorage

type MockStorage struct {
	mock.Mock
}

MockStorage is an autogenerated mock type for the Storage type

func NewMockStorage

func NewMockStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStorage

NewMockStorage creates a new instance of MockStorage. 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 (*MockStorage) Close

func (_mock *MockStorage) Close() error

Close provides a mock function for the type MockStorage

func (*MockStorage) CreateAuthCode

func (_mock *MockStorage) CreateAuthCode(ctx context.Context, c storage.AuthCode) error

CreateAuthCode provides a mock function for the type MockStorage

func (*MockStorage) CreateAuthRequest

func (_mock *MockStorage) CreateAuthRequest(ctx context.Context, a storage.AuthRequest) error

CreateAuthRequest provides a mock function for the type MockStorage

func (*MockStorage) CreateClient

func (_mock *MockStorage) CreateClient(ctx context.Context, c storage.Client) error

CreateClient provides a mock function for the type MockStorage

func (*MockStorage) CreateConnector

func (_mock *MockStorage) CreateConnector(ctx context.Context, c storage.Connector) error

CreateConnector provides a mock function for the type MockStorage

func (*MockStorage) CreateDeviceRequest

func (_mock *MockStorage) CreateDeviceRequest(ctx context.Context, d storage.DeviceRequest) error

CreateDeviceRequest provides a mock function for the type MockStorage

func (*MockStorage) CreateDeviceToken

func (_mock *MockStorage) CreateDeviceToken(ctx context.Context, d storage.DeviceToken) error

CreateDeviceToken provides a mock function for the type MockStorage

func (*MockStorage) CreateOfflineSessions

func (_mock *MockStorage) CreateOfflineSessions(ctx context.Context, s storage.OfflineSessions) error

CreateOfflineSessions provides a mock function for the type MockStorage

func (*MockStorage) CreatePassword

func (_mock *MockStorage) CreatePassword(ctx context.Context, p storage.Password) error

CreatePassword provides a mock function for the type MockStorage

func (*MockStorage) CreateRefresh

func (_mock *MockStorage) CreateRefresh(ctx context.Context, r storage.RefreshToken) error

CreateRefresh provides a mock function for the type MockStorage

func (*MockStorage) DeleteAuthCode

func (_mock *MockStorage) DeleteAuthCode(ctx context.Context, code string) error

DeleteAuthCode provides a mock function for the type MockStorage

func (*MockStorage) DeleteAuthRequest

func (_mock *MockStorage) DeleteAuthRequest(ctx context.Context, id string) error

DeleteAuthRequest provides a mock function for the type MockStorage

func (*MockStorage) DeleteClient

func (_mock *MockStorage) DeleteClient(ctx context.Context, id string) error

DeleteClient provides a mock function for the type MockStorage

func (*MockStorage) DeleteConnector

func (_mock *MockStorage) DeleteConnector(ctx context.Context, id string) error

DeleteConnector provides a mock function for the type MockStorage

func (*MockStorage) DeleteOfflineSessions

func (_mock *MockStorage) DeleteOfflineSessions(ctx context.Context, userID string, connID string) error

DeleteOfflineSessions provides a mock function for the type MockStorage

func (*MockStorage) DeletePassword

func (_mock *MockStorage) DeletePassword(ctx context.Context, email string) error

DeletePassword provides a mock function for the type MockStorage

func (*MockStorage) DeleteRefresh

func (_mock *MockStorage) DeleteRefresh(ctx context.Context, id string) error

DeleteRefresh provides a mock function for the type MockStorage

func (*MockStorage) EXPECT

func (_m *MockStorage) EXPECT() *MockStorage_Expecter

func (*MockStorage) GarbageCollect

func (_mock *MockStorage) GarbageCollect(ctx context.Context, now time.Time) (storage.GCResult, error)

GarbageCollect provides a mock function for the type MockStorage

func (*MockStorage) GetAuthCode

func (_mock *MockStorage) GetAuthCode(ctx context.Context, id string) (storage.AuthCode, error)

GetAuthCode provides a mock function for the type MockStorage

func (*MockStorage) GetAuthRequest

func (_mock *MockStorage) GetAuthRequest(ctx context.Context, id string) (storage.AuthRequest, error)

GetAuthRequest provides a mock function for the type MockStorage

func (*MockStorage) GetClient

func (_mock *MockStorage) GetClient(ctx context.Context, id string) (storage.Client, error)

GetClient provides a mock function for the type MockStorage

func (*MockStorage) GetConnector

func (_mock *MockStorage) GetConnector(ctx context.Context, id string) (storage.Connector, error)

GetConnector provides a mock function for the type MockStorage

func (*MockStorage) GetDeviceRequest

func (_mock *MockStorage) GetDeviceRequest(ctx context.Context, userCode string) (storage.DeviceRequest, error)

GetDeviceRequest provides a mock function for the type MockStorage

func (*MockStorage) GetDeviceToken

func (_mock *MockStorage) GetDeviceToken(ctx context.Context, deviceCode string) (storage.DeviceToken, error)

GetDeviceToken provides a mock function for the type MockStorage

func (*MockStorage) GetKeys

func (_mock *MockStorage) GetKeys(ctx context.Context) (storage.Keys, error)

GetKeys provides a mock function for the type MockStorage

func (*MockStorage) GetOfflineSessions

func (_mock *MockStorage) GetOfflineSessions(ctx context.Context, userID string, connID string) (storage.OfflineSessions, error)

GetOfflineSessions provides a mock function for the type MockStorage

func (*MockStorage) GetPassword

func (_mock *MockStorage) GetPassword(ctx context.Context, email string) (storage.Password, error)

GetPassword provides a mock function for the type MockStorage

func (*MockStorage) GetRefresh

func (_mock *MockStorage) GetRefresh(ctx context.Context, id string) (storage.RefreshToken, error)

GetRefresh provides a mock function for the type MockStorage

func (*MockStorage) ListClients

func (_mock *MockStorage) ListClients(ctx context.Context) ([]storage.Client, error)

ListClients provides a mock function for the type MockStorage

func (*MockStorage) ListConnectors

func (_mock *MockStorage) ListConnectors(ctx context.Context) ([]storage.Connector, error)

ListConnectors provides a mock function for the type MockStorage

func (*MockStorage) ListPasswords

func (_mock *MockStorage) ListPasswords(ctx context.Context) ([]storage.Password, error)

ListPasswords provides a mock function for the type MockStorage

func (*MockStorage) ListRefreshTokens

func (_mock *MockStorage) ListRefreshTokens(ctx context.Context) ([]storage.RefreshToken, error)

ListRefreshTokens provides a mock function for the type MockStorage

func (*MockStorage) UpdateAuthRequest

func (_mock *MockStorage) UpdateAuthRequest(ctx context.Context, id string, updater func(a storage.AuthRequest) (storage.AuthRequest, error)) error

UpdateAuthRequest provides a mock function for the type MockStorage

func (*MockStorage) UpdateClient

func (_mock *MockStorage) UpdateClient(ctx context.Context, id string, updater func(old storage.Client) (storage.Client, error)) error

UpdateClient provides a mock function for the type MockStorage

func (*MockStorage) UpdateConnector

func (_mock *MockStorage) UpdateConnector(ctx context.Context, id string, updater func(c storage.Connector) (storage.Connector, error)) error

UpdateConnector provides a mock function for the type MockStorage

func (*MockStorage) UpdateDeviceToken

func (_mock *MockStorage) UpdateDeviceToken(ctx context.Context, deviceCode string, updater func(t storage.DeviceToken) (storage.DeviceToken, error)) error

UpdateDeviceToken provides a mock function for the type MockStorage

func (*MockStorage) UpdateKeys

func (_mock *MockStorage) UpdateKeys(ctx context.Context, updater func(old storage.Keys) (storage.Keys, error)) error

UpdateKeys provides a mock function for the type MockStorage

func (*MockStorage) UpdateOfflineSessions

func (_mock *MockStorage) UpdateOfflineSessions(ctx context.Context, userID string, connID string, updater func(s storage.OfflineSessions) (storage.OfflineSessions, error)) error

UpdateOfflineSessions provides a mock function for the type MockStorage

func (*MockStorage) UpdatePassword

func (_mock *MockStorage) UpdatePassword(ctx context.Context, email string, updater func(p storage.Password) (storage.Password, error)) error

UpdatePassword provides a mock function for the type MockStorage

func (*MockStorage) UpdateRefreshToken

func (_mock *MockStorage) UpdateRefreshToken(ctx context.Context, id string, updater func(r storage.RefreshToken) (storage.RefreshToken, error)) error

UpdateRefreshToken provides a mock function for the type MockStorage

type MockStorage_Close_Call

type MockStorage_Close_Call struct {
	*mock.Call
}

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

func (*MockStorage_Close_Call) Return

func (*MockStorage_Close_Call) Run

func (_c *MockStorage_Close_Call) Run(run func()) *MockStorage_Close_Call

func (*MockStorage_Close_Call) RunAndReturn

func (_c *MockStorage_Close_Call) RunAndReturn(run func() error) *MockStorage_Close_Call

type MockStorage_CreateAuthCode_Call

type MockStorage_CreateAuthCode_Call struct {
	*mock.Call
}

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

func (*MockStorage_CreateAuthCode_Call) Return

func (*MockStorage_CreateAuthCode_Call) Run

func (*MockStorage_CreateAuthCode_Call) RunAndReturn

type MockStorage_CreateAuthRequest_Call

type MockStorage_CreateAuthRequest_Call struct {
	*mock.Call
}

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

func (*MockStorage_CreateAuthRequest_Call) Return

func (*MockStorage_CreateAuthRequest_Call) Run

func (*MockStorage_CreateAuthRequest_Call) RunAndReturn

type MockStorage_CreateClient_Call

type MockStorage_CreateClient_Call struct {
	*mock.Call
}

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

func (*MockStorage_CreateClient_Call) Return

func (*MockStorage_CreateClient_Call) Run

func (*MockStorage_CreateClient_Call) RunAndReturn

type MockStorage_CreateConnector_Call

type MockStorage_CreateConnector_Call struct {
	*mock.Call
}

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

func (*MockStorage_CreateConnector_Call) Return

func (*MockStorage_CreateConnector_Call) Run

func (*MockStorage_CreateConnector_Call) RunAndReturn

type MockStorage_CreateDeviceRequest_Call

type MockStorage_CreateDeviceRequest_Call struct {
	*mock.Call
}

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

func (*MockStorage_CreateDeviceRequest_Call) Return

func (*MockStorage_CreateDeviceRequest_Call) Run

func (*MockStorage_CreateDeviceRequest_Call) RunAndReturn

type MockStorage_CreateDeviceToken_Call

type MockStorage_CreateDeviceToken_Call struct {
	*mock.Call
}

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

func (*MockStorage_CreateDeviceToken_Call) Return

func (*MockStorage_CreateDeviceToken_Call) Run

func (*MockStorage_CreateDeviceToken_Call) RunAndReturn

type MockStorage_CreateOfflineSessions_Call

type MockStorage_CreateOfflineSessions_Call struct {
	*mock.Call
}

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

func (*MockStorage_CreateOfflineSessions_Call) Return

func (*MockStorage_CreateOfflineSessions_Call) Run

func (*MockStorage_CreateOfflineSessions_Call) RunAndReturn

type MockStorage_CreatePassword_Call

type MockStorage_CreatePassword_Call struct {
	*mock.Call
}

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

func (*MockStorage_CreatePassword_Call) Return

func (*MockStorage_CreatePassword_Call) Run

func (*MockStorage_CreatePassword_Call) RunAndReturn

type MockStorage_CreateRefresh_Call

type MockStorage_CreateRefresh_Call struct {
	*mock.Call
}

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

func (*MockStorage_CreateRefresh_Call) Return

func (*MockStorage_CreateRefresh_Call) Run

func (*MockStorage_CreateRefresh_Call) RunAndReturn

type MockStorage_DeleteAuthCode_Call

type MockStorage_DeleteAuthCode_Call struct {
	*mock.Call
}

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

func (*MockStorage_DeleteAuthCode_Call) Return

func (*MockStorage_DeleteAuthCode_Call) Run

func (*MockStorage_DeleteAuthCode_Call) RunAndReturn

type MockStorage_DeleteAuthRequest_Call

type MockStorage_DeleteAuthRequest_Call struct {
	*mock.Call
}

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

func (*MockStorage_DeleteAuthRequest_Call) Return

func (*MockStorage_DeleteAuthRequest_Call) Run

func (*MockStorage_DeleteAuthRequest_Call) RunAndReturn

type MockStorage_DeleteClient_Call

type MockStorage_DeleteClient_Call struct {
	*mock.Call
}

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

func (*MockStorage_DeleteClient_Call) Return

func (*MockStorage_DeleteClient_Call) Run

func (*MockStorage_DeleteClient_Call) RunAndReturn

type MockStorage_DeleteConnector_Call

type MockStorage_DeleteConnector_Call struct {
	*mock.Call
}

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

func (*MockStorage_DeleteConnector_Call) Return

func (*MockStorage_DeleteConnector_Call) Run

func (*MockStorage_DeleteConnector_Call) RunAndReturn

type MockStorage_DeleteOfflineSessions_Call

type MockStorage_DeleteOfflineSessions_Call struct {
	*mock.Call
}

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

func (*MockStorage_DeleteOfflineSessions_Call) Return

func (*MockStorage_DeleteOfflineSessions_Call) Run

func (*MockStorage_DeleteOfflineSessions_Call) RunAndReturn

type MockStorage_DeletePassword_Call

type MockStorage_DeletePassword_Call struct {
	*mock.Call
}

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

func (*MockStorage_DeletePassword_Call) Return

func (*MockStorage_DeletePassword_Call) Run

func (*MockStorage_DeletePassword_Call) RunAndReturn

type MockStorage_DeleteRefresh_Call

type MockStorage_DeleteRefresh_Call struct {
	*mock.Call
}

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

func (*MockStorage_DeleteRefresh_Call) Return

func (*MockStorage_DeleteRefresh_Call) Run

func (*MockStorage_DeleteRefresh_Call) RunAndReturn

type MockStorage_Expecter

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

func (*MockStorage_Expecter) Close

Close is a helper method to define mock.On call

func (*MockStorage_Expecter) CreateAuthCode

func (_e *MockStorage_Expecter) CreateAuthCode(ctx interface{}, c interface{}) *MockStorage_CreateAuthCode_Call

CreateAuthCode is a helper method to define mock.On call

  • ctx context.Context
  • c storage.AuthCode

func (*MockStorage_Expecter) CreateAuthRequest

func (_e *MockStorage_Expecter) CreateAuthRequest(ctx interface{}, a interface{}) *MockStorage_CreateAuthRequest_Call

CreateAuthRequest is a helper method to define mock.On call

  • ctx context.Context
  • a storage.AuthRequest

func (*MockStorage_Expecter) CreateClient

func (_e *MockStorage_Expecter) CreateClient(ctx interface{}, c interface{}) *MockStorage_CreateClient_Call

CreateClient is a helper method to define mock.On call

  • ctx context.Context
  • c storage.Client

func (*MockStorage_Expecter) CreateConnector

func (_e *MockStorage_Expecter) CreateConnector(ctx interface{}, c interface{}) *MockStorage_CreateConnector_Call

CreateConnector is a helper method to define mock.On call

  • ctx context.Context
  • c storage.Connector

func (*MockStorage_Expecter) CreateDeviceRequest

func (_e *MockStorage_Expecter) CreateDeviceRequest(ctx interface{}, d interface{}) *MockStorage_CreateDeviceRequest_Call

CreateDeviceRequest is a helper method to define mock.On call

  • ctx context.Context
  • d storage.DeviceRequest

func (*MockStorage_Expecter) CreateDeviceToken

func (_e *MockStorage_Expecter) CreateDeviceToken(ctx interface{}, d interface{}) *MockStorage_CreateDeviceToken_Call

CreateDeviceToken is a helper method to define mock.On call

  • ctx context.Context
  • d storage.DeviceToken

func (*MockStorage_Expecter) CreateOfflineSessions

func (_e *MockStorage_Expecter) CreateOfflineSessions(ctx interface{}, s interface{}) *MockStorage_CreateOfflineSessions_Call

CreateOfflineSessions is a helper method to define mock.On call

  • ctx context.Context
  • s storage.OfflineSessions

func (*MockStorage_Expecter) CreatePassword

func (_e *MockStorage_Expecter) CreatePassword(ctx interface{}, p interface{}) *MockStorage_CreatePassword_Call

CreatePassword is a helper method to define mock.On call

  • ctx context.Context
  • p storage.Password

func (*MockStorage_Expecter) CreateRefresh

func (_e *MockStorage_Expecter) CreateRefresh(ctx interface{}, r interface{}) *MockStorage_CreateRefresh_Call

CreateRefresh is a helper method to define mock.On call

  • ctx context.Context
  • r storage.RefreshToken

func (*MockStorage_Expecter) DeleteAuthCode

func (_e *MockStorage_Expecter) DeleteAuthCode(ctx interface{}, code interface{}) *MockStorage_DeleteAuthCode_Call

DeleteAuthCode is a helper method to define mock.On call

  • ctx context.Context
  • code string

func (*MockStorage_Expecter) DeleteAuthRequest

func (_e *MockStorage_Expecter) DeleteAuthRequest(ctx interface{}, id interface{}) *MockStorage_DeleteAuthRequest_Call

DeleteAuthRequest is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockStorage_Expecter) DeleteClient

func (_e *MockStorage_Expecter) DeleteClient(ctx interface{}, id interface{}) *MockStorage_DeleteClient_Call

DeleteClient is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockStorage_Expecter) DeleteConnector

func (_e *MockStorage_Expecter) DeleteConnector(ctx interface{}, id interface{}) *MockStorage_DeleteConnector_Call

DeleteConnector is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockStorage_Expecter) DeleteOfflineSessions

func (_e *MockStorage_Expecter) DeleteOfflineSessions(ctx interface{}, userID interface{}, connID interface{}) *MockStorage_DeleteOfflineSessions_Call

DeleteOfflineSessions is a helper method to define mock.On call

  • ctx context.Context
  • userID string
  • connID string

func (*MockStorage_Expecter) DeletePassword

func (_e *MockStorage_Expecter) DeletePassword(ctx interface{}, email interface{}) *MockStorage_DeletePassword_Call

DeletePassword is a helper method to define mock.On call

  • ctx context.Context
  • email string

func (*MockStorage_Expecter) DeleteRefresh

func (_e *MockStorage_Expecter) DeleteRefresh(ctx interface{}, id interface{}) *MockStorage_DeleteRefresh_Call

DeleteRefresh is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockStorage_Expecter) GarbageCollect

func (_e *MockStorage_Expecter) GarbageCollect(ctx interface{}, now interface{}) *MockStorage_GarbageCollect_Call

GarbageCollect is a helper method to define mock.On call

  • ctx context.Context
  • now time.Time

func (*MockStorage_Expecter) GetAuthCode

func (_e *MockStorage_Expecter) GetAuthCode(ctx interface{}, id interface{}) *MockStorage_GetAuthCode_Call

GetAuthCode is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockStorage_Expecter) GetAuthRequest

func (_e *MockStorage_Expecter) GetAuthRequest(ctx interface{}, id interface{}) *MockStorage_GetAuthRequest_Call

GetAuthRequest is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockStorage_Expecter) GetClient

func (_e *MockStorage_Expecter) GetClient(ctx interface{}, id interface{}) *MockStorage_GetClient_Call

GetClient is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockStorage_Expecter) GetConnector

func (_e *MockStorage_Expecter) GetConnector(ctx interface{}, id interface{}) *MockStorage_GetConnector_Call

GetConnector is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockStorage_Expecter) GetDeviceRequest

func (_e *MockStorage_Expecter) GetDeviceRequest(ctx interface{}, userCode interface{}) *MockStorage_GetDeviceRequest_Call

GetDeviceRequest is a helper method to define mock.On call

  • ctx context.Context
  • userCode string

func (*MockStorage_Expecter) GetDeviceToken

func (_e *MockStorage_Expecter) GetDeviceToken(ctx interface{}, deviceCode interface{}) *MockStorage_GetDeviceToken_Call

GetDeviceToken is a helper method to define mock.On call

  • ctx context.Context
  • deviceCode string

func (*MockStorage_Expecter) GetKeys

func (_e *MockStorage_Expecter) GetKeys(ctx interface{}) *MockStorage_GetKeys_Call

GetKeys is a helper method to define mock.On call

  • ctx context.Context

func (*MockStorage_Expecter) GetOfflineSessions

func (_e *MockStorage_Expecter) GetOfflineSessions(ctx interface{}, userID interface{}, connID interface{}) *MockStorage_GetOfflineSessions_Call

GetOfflineSessions is a helper method to define mock.On call

  • ctx context.Context
  • userID string
  • connID string

func (*MockStorage_Expecter) GetPassword

func (_e *MockStorage_Expecter) GetPassword(ctx interface{}, email interface{}) *MockStorage_GetPassword_Call

GetPassword is a helper method to define mock.On call

  • ctx context.Context
  • email string

func (*MockStorage_Expecter) GetRefresh

func (_e *MockStorage_Expecter) GetRefresh(ctx interface{}, id interface{}) *MockStorage_GetRefresh_Call

GetRefresh is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockStorage_Expecter) ListClients

func (_e *MockStorage_Expecter) ListClients(ctx interface{}) *MockStorage_ListClients_Call

ListClients is a helper method to define mock.On call

  • ctx context.Context

func (*MockStorage_Expecter) ListConnectors

func (_e *MockStorage_Expecter) ListConnectors(ctx interface{}) *MockStorage_ListConnectors_Call

ListConnectors is a helper method to define mock.On call

  • ctx context.Context

func (*MockStorage_Expecter) ListPasswords

func (_e *MockStorage_Expecter) ListPasswords(ctx interface{}) *MockStorage_ListPasswords_Call

ListPasswords is a helper method to define mock.On call

  • ctx context.Context

func (*MockStorage_Expecter) ListRefreshTokens

func (_e *MockStorage_Expecter) ListRefreshTokens(ctx interface{}) *MockStorage_ListRefreshTokens_Call

ListRefreshTokens is a helper method to define mock.On call

  • ctx context.Context

func (*MockStorage_Expecter) UpdateAuthRequest

func (_e *MockStorage_Expecter) UpdateAuthRequest(ctx interface{}, id interface{}, updater interface{}) *MockStorage_UpdateAuthRequest_Call

UpdateAuthRequest is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • updater func(a storage.AuthRequest) (storage.AuthRequest, error)

func (*MockStorage_Expecter) UpdateClient

func (_e *MockStorage_Expecter) UpdateClient(ctx interface{}, id interface{}, updater interface{}) *MockStorage_UpdateClient_Call

UpdateClient is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • updater func(old storage.Client) (storage.Client, error)

func (*MockStorage_Expecter) UpdateConnector

func (_e *MockStorage_Expecter) UpdateConnector(ctx interface{}, id interface{}, updater interface{}) *MockStorage_UpdateConnector_Call

UpdateConnector is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • updater func(c storage.Connector) (storage.Connector, error)

func (*MockStorage_Expecter) UpdateDeviceToken

func (_e *MockStorage_Expecter) UpdateDeviceToken(ctx interface{}, deviceCode interface{}, updater interface{}) *MockStorage_UpdateDeviceToken_Call

UpdateDeviceToken is a helper method to define mock.On call

  • ctx context.Context
  • deviceCode string
  • updater func(t storage.DeviceToken) (storage.DeviceToken, error)

func (*MockStorage_Expecter) UpdateKeys

func (_e *MockStorage_Expecter) UpdateKeys(ctx interface{}, updater interface{}) *MockStorage_UpdateKeys_Call

UpdateKeys is a helper method to define mock.On call

  • ctx context.Context
  • updater func(old storage.Keys) (storage.Keys, error)

func (*MockStorage_Expecter) UpdateOfflineSessions

func (_e *MockStorage_Expecter) UpdateOfflineSessions(ctx interface{}, userID interface{}, connID interface{}, updater interface{}) *MockStorage_UpdateOfflineSessions_Call

UpdateOfflineSessions is a helper method to define mock.On call

  • ctx context.Context
  • userID string
  • connID string
  • updater func(s storage.OfflineSessions) (storage.OfflineSessions, error)

func (*MockStorage_Expecter) UpdatePassword

func (_e *MockStorage_Expecter) UpdatePassword(ctx interface{}, email interface{}, updater interface{}) *MockStorage_UpdatePassword_Call

UpdatePassword is a helper method to define mock.On call

  • ctx context.Context
  • email string
  • updater func(p storage.Password) (storage.Password, error)

func (*MockStorage_Expecter) UpdateRefreshToken

func (_e *MockStorage_Expecter) UpdateRefreshToken(ctx interface{}, id interface{}, updater interface{}) *MockStorage_UpdateRefreshToken_Call

UpdateRefreshToken is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • updater func(r storage.RefreshToken) (storage.RefreshToken, error)

type MockStorage_GarbageCollect_Call

type MockStorage_GarbageCollect_Call struct {
	*mock.Call
}

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

func (*MockStorage_GarbageCollect_Call) Return

func (*MockStorage_GarbageCollect_Call) Run

func (*MockStorage_GarbageCollect_Call) RunAndReturn

type MockStorage_GetAuthCode_Call

type MockStorage_GetAuthCode_Call struct {
	*mock.Call
}

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

func (*MockStorage_GetAuthCode_Call) Return

func (*MockStorage_GetAuthCode_Call) Run

func (*MockStorage_GetAuthCode_Call) RunAndReturn

type MockStorage_GetAuthRequest_Call

type MockStorage_GetAuthRequest_Call struct {
	*mock.Call
}

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

func (*MockStorage_GetAuthRequest_Call) Return

func (*MockStorage_GetAuthRequest_Call) Run

func (*MockStorage_GetAuthRequest_Call) RunAndReturn

type MockStorage_GetClient_Call

type MockStorage_GetClient_Call struct {
	*mock.Call
}

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

func (*MockStorage_GetClient_Call) Return

func (*MockStorage_GetClient_Call) Run

func (*MockStorage_GetClient_Call) RunAndReturn

type MockStorage_GetConnector_Call

type MockStorage_GetConnector_Call struct {
	*mock.Call
}

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

func (*MockStorage_GetConnector_Call) Return

func (*MockStorage_GetConnector_Call) Run

func (*MockStorage_GetConnector_Call) RunAndReturn

type MockStorage_GetDeviceRequest_Call

type MockStorage_GetDeviceRequest_Call struct {
	*mock.Call
}

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

func (*MockStorage_GetDeviceRequest_Call) Return

func (*MockStorage_GetDeviceRequest_Call) Run

func (*MockStorage_GetDeviceRequest_Call) RunAndReturn

type MockStorage_GetDeviceToken_Call

type MockStorage_GetDeviceToken_Call struct {
	*mock.Call
}

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

func (*MockStorage_GetDeviceToken_Call) Return

func (*MockStorage_GetDeviceToken_Call) Run

func (*MockStorage_GetDeviceToken_Call) RunAndReturn

type MockStorage_GetKeys_Call

type MockStorage_GetKeys_Call struct {
	*mock.Call
}

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

func (*MockStorage_GetKeys_Call) Return

func (*MockStorage_GetKeys_Call) Run

func (*MockStorage_GetKeys_Call) RunAndReturn

type MockStorage_GetOfflineSessions_Call

type MockStorage_GetOfflineSessions_Call struct {
	*mock.Call
}

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

func (*MockStorage_GetOfflineSessions_Call) Return

func (*MockStorage_GetOfflineSessions_Call) Run

func (*MockStorage_GetOfflineSessions_Call) RunAndReturn

type MockStorage_GetPassword_Call

type MockStorage_GetPassword_Call struct {
	*mock.Call
}

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

func (*MockStorage_GetPassword_Call) Return

func (*MockStorage_GetPassword_Call) Run

func (*MockStorage_GetPassword_Call) RunAndReturn

type MockStorage_GetRefresh_Call

type MockStorage_GetRefresh_Call struct {
	*mock.Call
}

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

func (*MockStorage_GetRefresh_Call) Return

func (*MockStorage_GetRefresh_Call) Run

func (*MockStorage_GetRefresh_Call) RunAndReturn

type MockStorage_ListClients_Call

type MockStorage_ListClients_Call struct {
	*mock.Call
}

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

func (*MockStorage_ListClients_Call) Return

func (*MockStorage_ListClients_Call) Run

func (*MockStorage_ListClients_Call) RunAndReturn

type MockStorage_ListConnectors_Call

type MockStorage_ListConnectors_Call struct {
	*mock.Call
}

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

func (*MockStorage_ListConnectors_Call) Return

func (*MockStorage_ListConnectors_Call) Run

func (*MockStorage_ListConnectors_Call) RunAndReturn

type MockStorage_ListPasswords_Call

type MockStorage_ListPasswords_Call struct {
	*mock.Call
}

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

func (*MockStorage_ListPasswords_Call) Return

func (*MockStorage_ListPasswords_Call) Run

func (*MockStorage_ListPasswords_Call) RunAndReturn

type MockStorage_ListRefreshTokens_Call

type MockStorage_ListRefreshTokens_Call struct {
	*mock.Call
}

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

func (*MockStorage_ListRefreshTokens_Call) Return

func (*MockStorage_ListRefreshTokens_Call) Run

func (*MockStorage_ListRefreshTokens_Call) RunAndReturn

type MockStorage_UpdateAuthRequest_Call

type MockStorage_UpdateAuthRequest_Call struct {
	*mock.Call
}

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

func (*MockStorage_UpdateAuthRequest_Call) Return

func (*MockStorage_UpdateAuthRequest_Call) Run

func (*MockStorage_UpdateAuthRequest_Call) RunAndReturn

type MockStorage_UpdateClient_Call

type MockStorage_UpdateClient_Call struct {
	*mock.Call
}

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

func (*MockStorage_UpdateClient_Call) Return

func (*MockStorage_UpdateClient_Call) Run

func (*MockStorage_UpdateClient_Call) RunAndReturn

func (_c *MockStorage_UpdateClient_Call) RunAndReturn(run func(ctx context.Context, id string, updater func(old storage.Client) (storage.Client, error)) error) *MockStorage_UpdateClient_Call

type MockStorage_UpdateConnector_Call

type MockStorage_UpdateConnector_Call struct {
	*mock.Call
}

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

func (*MockStorage_UpdateConnector_Call) Return

func (*MockStorage_UpdateConnector_Call) Run

func (*MockStorage_UpdateConnector_Call) RunAndReturn

type MockStorage_UpdateDeviceToken_Call

type MockStorage_UpdateDeviceToken_Call struct {
	*mock.Call
}

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

func (*MockStorage_UpdateDeviceToken_Call) Return

func (*MockStorage_UpdateDeviceToken_Call) Run

func (*MockStorage_UpdateDeviceToken_Call) RunAndReturn

type MockStorage_UpdateKeys_Call

type MockStorage_UpdateKeys_Call struct {
	*mock.Call
}

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

func (*MockStorage_UpdateKeys_Call) Return

func (*MockStorage_UpdateKeys_Call) Run

func (*MockStorage_UpdateKeys_Call) RunAndReturn

func (_c *MockStorage_UpdateKeys_Call) RunAndReturn(run func(ctx context.Context, updater func(old storage.Keys) (storage.Keys, error)) error) *MockStorage_UpdateKeys_Call

type MockStorage_UpdateOfflineSessions_Call

type MockStorage_UpdateOfflineSessions_Call struct {
	*mock.Call
}

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

func (*MockStorage_UpdateOfflineSessions_Call) Return

func (*MockStorage_UpdateOfflineSessions_Call) Run

func (*MockStorage_UpdateOfflineSessions_Call) RunAndReturn

type MockStorage_UpdatePassword_Call

type MockStorage_UpdatePassword_Call struct {
	*mock.Call
}

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

func (*MockStorage_UpdatePassword_Call) Return

func (*MockStorage_UpdatePassword_Call) Run

func (*MockStorage_UpdatePassword_Call) RunAndReturn

type MockStorage_UpdateRefreshToken_Call

type MockStorage_UpdateRefreshToken_Call struct {
	*mock.Call
}

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

func (*MockStorage_UpdateRefreshToken_Call) Return

func (*MockStorage_UpdateRefreshToken_Call) Run

func (*MockStorage_UpdateRefreshToken_Call) RunAndReturn

type MockSubResourceWriter

type MockSubResourceWriter struct {
	mock.Mock
}

MockSubResourceWriter is an autogenerated mock type for the SubResourceWriter type

func NewMockSubResourceWriter

func NewMockSubResourceWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSubResourceWriter

NewMockSubResourceWriter creates a new instance of MockSubResourceWriter. 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 (*MockSubResourceWriter) Create

func (_mock *MockSubResourceWriter) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error

Create provides a mock function for the type MockSubResourceWriter

func (*MockSubResourceWriter) EXPECT

func (*MockSubResourceWriter) Patch

Patch provides a mock function for the type MockSubResourceWriter

func (*MockSubResourceWriter) Update

Update provides a mock function for the type MockSubResourceWriter

type MockSubResourceWriter_Create_Call

type MockSubResourceWriter_Create_Call struct {
	*mock.Call
}

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

func (*MockSubResourceWriter_Create_Call) Return

func (*MockSubResourceWriter_Create_Call) Run

func (*MockSubResourceWriter_Create_Call) RunAndReturn

type MockSubResourceWriter_Expecter

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

func (*MockSubResourceWriter_Expecter) Create

func (_e *MockSubResourceWriter_Expecter) Create(ctx interface{}, obj interface{}, subResource interface{}, opts ...interface{}) *MockSubResourceWriter_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • obj client.Object
  • subResource client.Object
  • opts ...client.SubResourceCreateOption

func (*MockSubResourceWriter_Expecter) Patch

func (_e *MockSubResourceWriter_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *MockSubResourceWriter_Patch_Call

Patch is a helper method to define mock.On call

  • ctx context.Context
  • obj client.Object
  • patch client.Patch
  • opts ...client.SubResourcePatchOption

func (*MockSubResourceWriter_Expecter) Update

func (_e *MockSubResourceWriter_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *MockSubResourceWriter_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • obj client.Object
  • opts ...client.SubResourceUpdateOption

type MockSubResourceWriter_Patch_Call

type MockSubResourceWriter_Patch_Call struct {
	*mock.Call
}

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

func (*MockSubResourceWriter_Patch_Call) Return

func (*MockSubResourceWriter_Patch_Call) Run

func (*MockSubResourceWriter_Patch_Call) RunAndReturn

type MockSubResourceWriter_Update_Call

type MockSubResourceWriter_Update_Call struct {
	*mock.Call
}

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

func (*MockSubResourceWriter_Update_Call) Return

func (*MockSubResourceWriter_Update_Call) Run

func (*MockSubResourceWriter_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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