Documentation
¶
Index ¶
- type MockClient
- func (_mock *MockClient) Apply(ctx context.Context, obj runtime.ApplyConfiguration, ...) error
- func (_mock *MockClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (_mock *MockClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (_mock *MockClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- func (_mock *MockClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object, ...) error
- func (_mock *MockClient) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
- func (_mock *MockClient) IsObjectNamespaced(obj runtime.Object) (bool, error)
- func (_mock *MockClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (_mock *MockClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_mock *MockClient) RESTMapper() meta.RESTMapper
- func (_mock *MockClient) Scheme() *runtime.Scheme
- func (_mock *MockClient) Status() client.SubResourceWriter
- func (_mock *MockClient) SubResource(subResource string) client.SubResourceClient
- func (_mock *MockClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type MockClient_Apply_Call
- func (_c *MockClient_Apply_Call) Return(err error) *MockClient_Apply_Call
- func (_c *MockClient_Apply_Call) Run(run func(ctx context.Context, obj runtime.ApplyConfiguration, ...)) *MockClient_Apply_Call
- func (_c *MockClient_Apply_Call) RunAndReturn(run func(ctx context.Context, obj runtime.ApplyConfiguration, ...) error) *MockClient_Apply_Call
- type MockClient_Create_Call
- type MockClient_DeleteAllOf_Call
- type MockClient_Delete_Call
- type MockClient_Expecter
- func (_e *MockClient_Expecter) Apply(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Apply_Call
- func (_e *MockClient_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Create_Call
- func (_e *MockClient_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Delete_Call
- func (_e *MockClient_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_DeleteAllOf_Call
- func (_e *MockClient_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *MockClient_Get_Call
- func (_e *MockClient_Expecter) GroupVersionKindFor(obj interface{}) *MockClient_GroupVersionKindFor_Call
- func (_e *MockClient_Expecter) IsObjectNamespaced(obj interface{}) *MockClient_IsObjectNamespaced_Call
- func (_e *MockClient_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *MockClient_List_Call
- func (_e *MockClient_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *MockClient_Patch_Call
- func (_e *MockClient_Expecter) RESTMapper() *MockClient_RESTMapper_Call
- func (_e *MockClient_Expecter) Scheme() *MockClient_Scheme_Call
- func (_e *MockClient_Expecter) Status() *MockClient_Status_Call
- func (_e *MockClient_Expecter) SubResource(subResource interface{}) *MockClient_SubResource_Call
- func (_e *MockClient_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Update_Call
- type MockClient_Get_Call
- type MockClient_GroupVersionKindFor_Call
- func (_c *MockClient_GroupVersionKindFor_Call) Return(groupVersionKind schema.GroupVersionKind, err error) *MockClient_GroupVersionKindFor_Call
- func (_c *MockClient_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *MockClient_GroupVersionKindFor_Call
- func (_c *MockClient_GroupVersionKindFor_Call) RunAndReturn(run func(obj runtime.Object) (schema.GroupVersionKind, error)) *MockClient_GroupVersionKindFor_Call
- type MockClient_IsObjectNamespaced_Call
- func (_c *MockClient_IsObjectNamespaced_Call) Return(b bool, err error) *MockClient_IsObjectNamespaced_Call
- func (_c *MockClient_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *MockClient_IsObjectNamespaced_Call
- func (_c *MockClient_IsObjectNamespaced_Call) RunAndReturn(run func(obj runtime.Object) (bool, error)) *MockClient_IsObjectNamespaced_Call
- type MockClient_List_Call
- type MockClient_Patch_Call
- type MockClient_RESTMapper_Call
- type MockClient_Scheme_Call
- type MockClient_Status_Call
- type MockClient_SubResource_Call
- func (_c *MockClient_SubResource_Call) Return(subResourceClient client.SubResourceClient) *MockClient_SubResource_Call
- func (_c *MockClient_SubResource_Call) Run(run func(subResource string)) *MockClient_SubResource_Call
- func (_c *MockClient_SubResource_Call) RunAndReturn(run func(subResource string) client.SubResourceClient) *MockClient_SubResource_Call
- type MockClient_Update_Call
- type MockReconciler
- func (_m *MockReconciler) EXPECT() *MockReconciler_Expecter
- func (_mock *MockReconciler) EnsureCreated(context1 context.Context, runtimeObject lifecycle.RuntimeObject) (controllerruntime.Result, lifecycle.ReconcileResult, error)
- func (_mock *MockReconciler) EnsureDeleted(context1 context.Context, runtimeObject lifecycle.RuntimeObject) (controllerruntime.Result, lifecycle.ReconcileResult, error)
- func (_mock *MockReconciler) EnsureSuspended(context1 context.Context, runtimeObject lifecycle.RuntimeObject) (controllerruntime.Result, error)
- type MockReconciler_EnsureCreated_Call
- func (_c *MockReconciler_EnsureCreated_Call) Return(v controllerruntime.Result, reconcileResult lifecycle.ReconcileResult, ...) *MockReconciler_EnsureCreated_Call
- func (_c *MockReconciler_EnsureCreated_Call) Run(run func(context1 context.Context, runtimeObject lifecycle.RuntimeObject)) *MockReconciler_EnsureCreated_Call
- func (_c *MockReconciler_EnsureCreated_Call) RunAndReturn(...) *MockReconciler_EnsureCreated_Call
- type MockReconciler_EnsureDeleted_Call
- func (_c *MockReconciler_EnsureDeleted_Call) Return(v controllerruntime.Result, reconcileResult lifecycle.ReconcileResult, ...) *MockReconciler_EnsureDeleted_Call
- func (_c *MockReconciler_EnsureDeleted_Call) Run(run func(context1 context.Context, runtimeObject lifecycle.RuntimeObject)) *MockReconciler_EnsureDeleted_Call
- func (_c *MockReconciler_EnsureDeleted_Call) RunAndReturn(...) *MockReconciler_EnsureDeleted_Call
- type MockReconciler_EnsureSuspended_Call
- func (_c *MockReconciler_EnsureSuspended_Call) Return(v controllerruntime.Result, err error) *MockReconciler_EnsureSuspended_Call
- func (_c *MockReconciler_EnsureSuspended_Call) Run(run func(context1 context.Context, runtimeObject lifecycle.RuntimeObject)) *MockReconciler_EnsureSuspended_Call
- func (_c *MockReconciler_EnsureSuspended_Call) RunAndReturn(...) *MockReconciler_EnsureSuspended_Call
- type MockReconciler_Expecter
- func (_e *MockReconciler_Expecter) EnsureCreated(context1 interface{}, runtimeObject interface{}) *MockReconciler_EnsureCreated_Call
- func (_e *MockReconciler_Expecter) EnsureDeleted(context1 interface{}, runtimeObject interface{}) *MockReconciler_EnsureDeleted_Call
- func (_e *MockReconciler_Expecter) EnsureSuspended(context1 interface{}, runtimeObject interface{}) *MockReconciler_EnsureSuspended_Call
- type MockStorage
- func (_mock *MockStorage) Close() error
- func (_mock *MockStorage) CreateAuthCode(ctx context.Context, c storage.AuthCode) error
- func (_mock *MockStorage) CreateAuthRequest(ctx context.Context, a storage.AuthRequest) error
- func (_mock *MockStorage) CreateClient(ctx context.Context, c storage.Client) error
- func (_mock *MockStorage) CreateConnector(ctx context.Context, c storage.Connector) error
- func (_mock *MockStorage) CreateDeviceRequest(ctx context.Context, d storage.DeviceRequest) error
- func (_mock *MockStorage) CreateDeviceToken(ctx context.Context, d storage.DeviceToken) error
- func (_mock *MockStorage) CreateOfflineSessions(ctx context.Context, s storage.OfflineSessions) error
- func (_mock *MockStorage) CreatePassword(ctx context.Context, p storage.Password) error
- func (_mock *MockStorage) CreateRefresh(ctx context.Context, r storage.RefreshToken) error
- func (_mock *MockStorage) DeleteAuthCode(ctx context.Context, code string) error
- func (_mock *MockStorage) DeleteAuthRequest(ctx context.Context, id string) error
- func (_mock *MockStorage) DeleteClient(ctx context.Context, id string) error
- func (_mock *MockStorage) DeleteConnector(ctx context.Context, id string) error
- func (_mock *MockStorage) DeleteOfflineSessions(ctx context.Context, userID string, connID string) error
- func (_mock *MockStorage) DeletePassword(ctx context.Context, email string) error
- func (_mock *MockStorage) DeleteRefresh(ctx context.Context, id string) error
- func (_m *MockStorage) EXPECT() *MockStorage_Expecter
- func (_mock *MockStorage) GarbageCollect(ctx context.Context, now time.Time) (storage.GCResult, error)
- func (_mock *MockStorage) GetAuthCode(ctx context.Context, id string) (storage.AuthCode, error)
- func (_mock *MockStorage) GetAuthRequest(ctx context.Context, id string) (storage.AuthRequest, error)
- func (_mock *MockStorage) GetClient(ctx context.Context, id string) (storage.Client, error)
- func (_mock *MockStorage) GetConnector(ctx context.Context, id string) (storage.Connector, error)
- func (_mock *MockStorage) GetDeviceRequest(ctx context.Context, userCode string) (storage.DeviceRequest, error)
- func (_mock *MockStorage) GetDeviceToken(ctx context.Context, deviceCode string) (storage.DeviceToken, error)
- func (_mock *MockStorage) GetKeys(ctx context.Context) (storage.Keys, error)
- func (_mock *MockStorage) GetOfflineSessions(ctx context.Context, userID string, connID string) (storage.OfflineSessions, error)
- func (_mock *MockStorage) GetPassword(ctx context.Context, email string) (storage.Password, error)
- func (_mock *MockStorage) GetRefresh(ctx context.Context, id string) (storage.RefreshToken, error)
- func (_mock *MockStorage) ListClients(ctx context.Context) ([]storage.Client, error)
- func (_mock *MockStorage) ListConnectors(ctx context.Context) ([]storage.Connector, error)
- func (_mock *MockStorage) ListPasswords(ctx context.Context) ([]storage.Password, error)
- func (_mock *MockStorage) ListRefreshTokens(ctx context.Context) ([]storage.RefreshToken, error)
- func (_mock *MockStorage) UpdateAuthRequest(ctx context.Context, id string, ...) error
- func (_mock *MockStorage) UpdateClient(ctx context.Context, id string, ...) error
- func (_mock *MockStorage) UpdateConnector(ctx context.Context, id string, ...) error
- func (_mock *MockStorage) UpdateDeviceToken(ctx context.Context, deviceCode string, ...) error
- func (_mock *MockStorage) UpdateKeys(ctx context.Context, updater func(old storage.Keys) (storage.Keys, error)) error
- func (_mock *MockStorage) UpdateOfflineSessions(ctx context.Context, userID string, connID string, ...) error
- func (_mock *MockStorage) UpdatePassword(ctx context.Context, email string, ...) error
- func (_mock *MockStorage) UpdateRefreshToken(ctx context.Context, id string, ...) error
- type MockStorage_Close_Call
- type MockStorage_CreateAuthCode_Call
- func (_c *MockStorage_CreateAuthCode_Call) Return(err error) *MockStorage_CreateAuthCode_Call
- func (_c *MockStorage_CreateAuthCode_Call) Run(run func(ctx context.Context, c storage.AuthCode)) *MockStorage_CreateAuthCode_Call
- func (_c *MockStorage_CreateAuthCode_Call) RunAndReturn(run func(ctx context.Context, c storage.AuthCode) error) *MockStorage_CreateAuthCode_Call
- type MockStorage_CreateAuthRequest_Call
- func (_c *MockStorage_CreateAuthRequest_Call) Return(err error) *MockStorage_CreateAuthRequest_Call
- func (_c *MockStorage_CreateAuthRequest_Call) Run(run func(ctx context.Context, a storage.AuthRequest)) *MockStorage_CreateAuthRequest_Call
- func (_c *MockStorage_CreateAuthRequest_Call) RunAndReturn(run func(ctx context.Context, a storage.AuthRequest) error) *MockStorage_CreateAuthRequest_Call
- type MockStorage_CreateClient_Call
- func (_c *MockStorage_CreateClient_Call) Return(err error) *MockStorage_CreateClient_Call
- func (_c *MockStorage_CreateClient_Call) Run(run func(ctx context.Context, c storage.Client)) *MockStorage_CreateClient_Call
- func (_c *MockStorage_CreateClient_Call) RunAndReturn(run func(ctx context.Context, c storage.Client) error) *MockStorage_CreateClient_Call
- type MockStorage_CreateConnector_Call
- func (_c *MockStorage_CreateConnector_Call) Return(err error) *MockStorage_CreateConnector_Call
- func (_c *MockStorage_CreateConnector_Call) Run(run func(ctx context.Context, c storage.Connector)) *MockStorage_CreateConnector_Call
- func (_c *MockStorage_CreateConnector_Call) RunAndReturn(run func(ctx context.Context, c storage.Connector) error) *MockStorage_CreateConnector_Call
- type MockStorage_CreateDeviceRequest_Call
- func (_c *MockStorage_CreateDeviceRequest_Call) Return(err error) *MockStorage_CreateDeviceRequest_Call
- func (_c *MockStorage_CreateDeviceRequest_Call) Run(run func(ctx context.Context, d storage.DeviceRequest)) *MockStorage_CreateDeviceRequest_Call
- func (_c *MockStorage_CreateDeviceRequest_Call) RunAndReturn(run func(ctx context.Context, d storage.DeviceRequest) error) *MockStorage_CreateDeviceRequest_Call
- type MockStorage_CreateDeviceToken_Call
- func (_c *MockStorage_CreateDeviceToken_Call) Return(err error) *MockStorage_CreateDeviceToken_Call
- func (_c *MockStorage_CreateDeviceToken_Call) Run(run func(ctx context.Context, d storage.DeviceToken)) *MockStorage_CreateDeviceToken_Call
- func (_c *MockStorage_CreateDeviceToken_Call) RunAndReturn(run func(ctx context.Context, d storage.DeviceToken) error) *MockStorage_CreateDeviceToken_Call
- type MockStorage_CreateOfflineSessions_Call
- func (_c *MockStorage_CreateOfflineSessions_Call) Return(err error) *MockStorage_CreateOfflineSessions_Call
- func (_c *MockStorage_CreateOfflineSessions_Call) Run(run func(ctx context.Context, s storage.OfflineSessions)) *MockStorage_CreateOfflineSessions_Call
- func (_c *MockStorage_CreateOfflineSessions_Call) RunAndReturn(run func(ctx context.Context, s storage.OfflineSessions) error) *MockStorage_CreateOfflineSessions_Call
- type MockStorage_CreatePassword_Call
- func (_c *MockStorage_CreatePassword_Call) Return(err error) *MockStorage_CreatePassword_Call
- func (_c *MockStorage_CreatePassword_Call) Run(run func(ctx context.Context, p storage.Password)) *MockStorage_CreatePassword_Call
- func (_c *MockStorage_CreatePassword_Call) RunAndReturn(run func(ctx context.Context, p storage.Password) error) *MockStorage_CreatePassword_Call
- type MockStorage_CreateRefresh_Call
- func (_c *MockStorage_CreateRefresh_Call) Return(err error) *MockStorage_CreateRefresh_Call
- func (_c *MockStorage_CreateRefresh_Call) Run(run func(ctx context.Context, r storage.RefreshToken)) *MockStorage_CreateRefresh_Call
- func (_c *MockStorage_CreateRefresh_Call) RunAndReturn(run func(ctx context.Context, r storage.RefreshToken) error) *MockStorage_CreateRefresh_Call
- type MockStorage_DeleteAuthCode_Call
- func (_c *MockStorage_DeleteAuthCode_Call) Return(err error) *MockStorage_DeleteAuthCode_Call
- func (_c *MockStorage_DeleteAuthCode_Call) Run(run func(ctx context.Context, code string)) *MockStorage_DeleteAuthCode_Call
- func (_c *MockStorage_DeleteAuthCode_Call) RunAndReturn(run func(ctx context.Context, code string) error) *MockStorage_DeleteAuthCode_Call
- type MockStorage_DeleteAuthRequest_Call
- func (_c *MockStorage_DeleteAuthRequest_Call) Return(err error) *MockStorage_DeleteAuthRequest_Call
- func (_c *MockStorage_DeleteAuthRequest_Call) Run(run func(ctx context.Context, id string)) *MockStorage_DeleteAuthRequest_Call
- func (_c *MockStorage_DeleteAuthRequest_Call) RunAndReturn(run func(ctx context.Context, id string) error) *MockStorage_DeleteAuthRequest_Call
- type MockStorage_DeleteClient_Call
- func (_c *MockStorage_DeleteClient_Call) Return(err error) *MockStorage_DeleteClient_Call
- func (_c *MockStorage_DeleteClient_Call) Run(run func(ctx context.Context, id string)) *MockStorage_DeleteClient_Call
- func (_c *MockStorage_DeleteClient_Call) RunAndReturn(run func(ctx context.Context, id string) error) *MockStorage_DeleteClient_Call
- type MockStorage_DeleteConnector_Call
- func (_c *MockStorage_DeleteConnector_Call) Return(err error) *MockStorage_DeleteConnector_Call
- func (_c *MockStorage_DeleteConnector_Call) Run(run func(ctx context.Context, id string)) *MockStorage_DeleteConnector_Call
- func (_c *MockStorage_DeleteConnector_Call) RunAndReturn(run func(ctx context.Context, id string) error) *MockStorage_DeleteConnector_Call
- type MockStorage_DeleteOfflineSessions_Call
- func (_c *MockStorage_DeleteOfflineSessions_Call) Return(err error) *MockStorage_DeleteOfflineSessions_Call
- func (_c *MockStorage_DeleteOfflineSessions_Call) Run(run func(ctx context.Context, userID string, connID string)) *MockStorage_DeleteOfflineSessions_Call
- func (_c *MockStorage_DeleteOfflineSessions_Call) RunAndReturn(run func(ctx context.Context, userID string, connID string) error) *MockStorage_DeleteOfflineSessions_Call
- type MockStorage_DeletePassword_Call
- func (_c *MockStorage_DeletePassword_Call) Return(err error) *MockStorage_DeletePassword_Call
- func (_c *MockStorage_DeletePassword_Call) Run(run func(ctx context.Context, email string)) *MockStorage_DeletePassword_Call
- func (_c *MockStorage_DeletePassword_Call) RunAndReturn(run func(ctx context.Context, email string) error) *MockStorage_DeletePassword_Call
- type MockStorage_DeleteRefresh_Call
- func (_c *MockStorage_DeleteRefresh_Call) Return(err error) *MockStorage_DeleteRefresh_Call
- func (_c *MockStorage_DeleteRefresh_Call) Run(run func(ctx context.Context, id string)) *MockStorage_DeleteRefresh_Call
- func (_c *MockStorage_DeleteRefresh_Call) RunAndReturn(run func(ctx context.Context, id string) error) *MockStorage_DeleteRefresh_Call
- type MockStorage_Expecter
- func (_e *MockStorage_Expecter) Close() *MockStorage_Close_Call
- func (_e *MockStorage_Expecter) CreateAuthCode(ctx interface{}, c interface{}) *MockStorage_CreateAuthCode_Call
- func (_e *MockStorage_Expecter) CreateAuthRequest(ctx interface{}, a interface{}) *MockStorage_CreateAuthRequest_Call
- func (_e *MockStorage_Expecter) CreateClient(ctx interface{}, c interface{}) *MockStorage_CreateClient_Call
- func (_e *MockStorage_Expecter) CreateConnector(ctx interface{}, c interface{}) *MockStorage_CreateConnector_Call
- func (_e *MockStorage_Expecter) CreateDeviceRequest(ctx interface{}, d interface{}) *MockStorage_CreateDeviceRequest_Call
- func (_e *MockStorage_Expecter) CreateDeviceToken(ctx interface{}, d interface{}) *MockStorage_CreateDeviceToken_Call
- func (_e *MockStorage_Expecter) CreateOfflineSessions(ctx interface{}, s interface{}) *MockStorage_CreateOfflineSessions_Call
- func (_e *MockStorage_Expecter) CreatePassword(ctx interface{}, p interface{}) *MockStorage_CreatePassword_Call
- func (_e *MockStorage_Expecter) CreateRefresh(ctx interface{}, r interface{}) *MockStorage_CreateRefresh_Call
- func (_e *MockStorage_Expecter) DeleteAuthCode(ctx interface{}, code interface{}) *MockStorage_DeleteAuthCode_Call
- func (_e *MockStorage_Expecter) DeleteAuthRequest(ctx interface{}, id interface{}) *MockStorage_DeleteAuthRequest_Call
- func (_e *MockStorage_Expecter) DeleteClient(ctx interface{}, id interface{}) *MockStorage_DeleteClient_Call
- func (_e *MockStorage_Expecter) DeleteConnector(ctx interface{}, id interface{}) *MockStorage_DeleteConnector_Call
- func (_e *MockStorage_Expecter) DeleteOfflineSessions(ctx interface{}, userID interface{}, connID interface{}) *MockStorage_DeleteOfflineSessions_Call
- func (_e *MockStorage_Expecter) DeletePassword(ctx interface{}, email interface{}) *MockStorage_DeletePassword_Call
- func (_e *MockStorage_Expecter) DeleteRefresh(ctx interface{}, id interface{}) *MockStorage_DeleteRefresh_Call
- func (_e *MockStorage_Expecter) GarbageCollect(ctx interface{}, now interface{}) *MockStorage_GarbageCollect_Call
- func (_e *MockStorage_Expecter) GetAuthCode(ctx interface{}, id interface{}) *MockStorage_GetAuthCode_Call
- func (_e *MockStorage_Expecter) GetAuthRequest(ctx interface{}, id interface{}) *MockStorage_GetAuthRequest_Call
- func (_e *MockStorage_Expecter) GetClient(ctx interface{}, id interface{}) *MockStorage_GetClient_Call
- func (_e *MockStorage_Expecter) GetConnector(ctx interface{}, id interface{}) *MockStorage_GetConnector_Call
- func (_e *MockStorage_Expecter) GetDeviceRequest(ctx interface{}, userCode interface{}) *MockStorage_GetDeviceRequest_Call
- func (_e *MockStorage_Expecter) GetDeviceToken(ctx interface{}, deviceCode interface{}) *MockStorage_GetDeviceToken_Call
- func (_e *MockStorage_Expecter) GetKeys(ctx interface{}) *MockStorage_GetKeys_Call
- func (_e *MockStorage_Expecter) GetOfflineSessions(ctx interface{}, userID interface{}, connID interface{}) *MockStorage_GetOfflineSessions_Call
- func (_e *MockStorage_Expecter) GetPassword(ctx interface{}, email interface{}) *MockStorage_GetPassword_Call
- func (_e *MockStorage_Expecter) GetRefresh(ctx interface{}, id interface{}) *MockStorage_GetRefresh_Call
- func (_e *MockStorage_Expecter) ListClients(ctx interface{}) *MockStorage_ListClients_Call
- func (_e *MockStorage_Expecter) ListConnectors(ctx interface{}) *MockStorage_ListConnectors_Call
- func (_e *MockStorage_Expecter) ListPasswords(ctx interface{}) *MockStorage_ListPasswords_Call
- func (_e *MockStorage_Expecter) ListRefreshTokens(ctx interface{}) *MockStorage_ListRefreshTokens_Call
- func (_e *MockStorage_Expecter) UpdateAuthRequest(ctx interface{}, id interface{}, updater interface{}) *MockStorage_UpdateAuthRequest_Call
- func (_e *MockStorage_Expecter) UpdateClient(ctx interface{}, id interface{}, updater interface{}) *MockStorage_UpdateClient_Call
- func (_e *MockStorage_Expecter) UpdateConnector(ctx interface{}, id interface{}, updater interface{}) *MockStorage_UpdateConnector_Call
- func (_e *MockStorage_Expecter) UpdateDeviceToken(ctx interface{}, deviceCode interface{}, updater interface{}) *MockStorage_UpdateDeviceToken_Call
- func (_e *MockStorage_Expecter) UpdateKeys(ctx interface{}, updater interface{}) *MockStorage_UpdateKeys_Call
- func (_e *MockStorage_Expecter) UpdateOfflineSessions(ctx interface{}, userID interface{}, connID interface{}, updater interface{}) *MockStorage_UpdateOfflineSessions_Call
- func (_e *MockStorage_Expecter) UpdatePassword(ctx interface{}, email interface{}, updater interface{}) *MockStorage_UpdatePassword_Call
- func (_e *MockStorage_Expecter) UpdateRefreshToken(ctx interface{}, id interface{}, updater interface{}) *MockStorage_UpdateRefreshToken_Call
- type MockStorage_GarbageCollect_Call
- func (_c *MockStorage_GarbageCollect_Call) Return(gCResult storage.GCResult, err error) *MockStorage_GarbageCollect_Call
- func (_c *MockStorage_GarbageCollect_Call) Run(run func(ctx context.Context, now time.Time)) *MockStorage_GarbageCollect_Call
- func (_c *MockStorage_GarbageCollect_Call) RunAndReturn(run func(ctx context.Context, now time.Time) (storage.GCResult, error)) *MockStorage_GarbageCollect_Call
- type MockStorage_GetAuthCode_Call
- func (_c *MockStorage_GetAuthCode_Call) Return(authCode storage.AuthCode, err error) *MockStorage_GetAuthCode_Call
- func (_c *MockStorage_GetAuthCode_Call) Run(run func(ctx context.Context, id string)) *MockStorage_GetAuthCode_Call
- func (_c *MockStorage_GetAuthCode_Call) RunAndReturn(run func(ctx context.Context, id string) (storage.AuthCode, error)) *MockStorage_GetAuthCode_Call
- type MockStorage_GetAuthRequest_Call
- func (_c *MockStorage_GetAuthRequest_Call) Return(authRequest storage.AuthRequest, err error) *MockStorage_GetAuthRequest_Call
- func (_c *MockStorage_GetAuthRequest_Call) Run(run func(ctx context.Context, id string)) *MockStorage_GetAuthRequest_Call
- func (_c *MockStorage_GetAuthRequest_Call) RunAndReturn(run func(ctx context.Context, id string) (storage.AuthRequest, error)) *MockStorage_GetAuthRequest_Call
- type MockStorage_GetClient_Call
- func (_c *MockStorage_GetClient_Call) Return(client storage.Client, err error) *MockStorage_GetClient_Call
- func (_c *MockStorage_GetClient_Call) Run(run func(ctx context.Context, id string)) *MockStorage_GetClient_Call
- func (_c *MockStorage_GetClient_Call) RunAndReturn(run func(ctx context.Context, id string) (storage.Client, error)) *MockStorage_GetClient_Call
- type MockStorage_GetConnector_Call
- func (_c *MockStorage_GetConnector_Call) Return(connector storage.Connector, err error) *MockStorage_GetConnector_Call
- func (_c *MockStorage_GetConnector_Call) Run(run func(ctx context.Context, id string)) *MockStorage_GetConnector_Call
- func (_c *MockStorage_GetConnector_Call) RunAndReturn(run func(ctx context.Context, id string) (storage.Connector, error)) *MockStorage_GetConnector_Call
- type MockStorage_GetDeviceRequest_Call
- func (_c *MockStorage_GetDeviceRequest_Call) Return(deviceRequest storage.DeviceRequest, err error) *MockStorage_GetDeviceRequest_Call
- func (_c *MockStorage_GetDeviceRequest_Call) Run(run func(ctx context.Context, userCode string)) *MockStorage_GetDeviceRequest_Call
- func (_c *MockStorage_GetDeviceRequest_Call) RunAndReturn(run func(ctx context.Context, userCode string) (storage.DeviceRequest, error)) *MockStorage_GetDeviceRequest_Call
- type MockStorage_GetDeviceToken_Call
- func (_c *MockStorage_GetDeviceToken_Call) Return(deviceToken storage.DeviceToken, err error) *MockStorage_GetDeviceToken_Call
- func (_c *MockStorage_GetDeviceToken_Call) Run(run func(ctx context.Context, deviceCode string)) *MockStorage_GetDeviceToken_Call
- func (_c *MockStorage_GetDeviceToken_Call) RunAndReturn(run func(ctx context.Context, deviceCode string) (storage.DeviceToken, error)) *MockStorage_GetDeviceToken_Call
- type MockStorage_GetKeys_Call
- func (_c *MockStorage_GetKeys_Call) Return(keys storage.Keys, err error) *MockStorage_GetKeys_Call
- func (_c *MockStorage_GetKeys_Call) Run(run func(ctx context.Context)) *MockStorage_GetKeys_Call
- func (_c *MockStorage_GetKeys_Call) RunAndReturn(run func(ctx context.Context) (storage.Keys, error)) *MockStorage_GetKeys_Call
- type MockStorage_GetOfflineSessions_Call
- func (_c *MockStorage_GetOfflineSessions_Call) Return(offlineSessions storage.OfflineSessions, err error) *MockStorage_GetOfflineSessions_Call
- func (_c *MockStorage_GetOfflineSessions_Call) Run(run func(ctx context.Context, userID string, connID string)) *MockStorage_GetOfflineSessions_Call
- func (_c *MockStorage_GetOfflineSessions_Call) RunAndReturn(...) *MockStorage_GetOfflineSessions_Call
- type MockStorage_GetPassword_Call
- func (_c *MockStorage_GetPassword_Call) Return(password storage.Password, err error) *MockStorage_GetPassword_Call
- func (_c *MockStorage_GetPassword_Call) Run(run func(ctx context.Context, email string)) *MockStorage_GetPassword_Call
- func (_c *MockStorage_GetPassword_Call) RunAndReturn(run func(ctx context.Context, email string) (storage.Password, error)) *MockStorage_GetPassword_Call
- type MockStorage_GetRefresh_Call
- func (_c *MockStorage_GetRefresh_Call) Return(refreshToken storage.RefreshToken, err error) *MockStorage_GetRefresh_Call
- func (_c *MockStorage_GetRefresh_Call) Run(run func(ctx context.Context, id string)) *MockStorage_GetRefresh_Call
- func (_c *MockStorage_GetRefresh_Call) RunAndReturn(run func(ctx context.Context, id string) (storage.RefreshToken, error)) *MockStorage_GetRefresh_Call
- type MockStorage_ListClients_Call
- func (_c *MockStorage_ListClients_Call) Return(clients []storage.Client, err error) *MockStorage_ListClients_Call
- func (_c *MockStorage_ListClients_Call) Run(run func(ctx context.Context)) *MockStorage_ListClients_Call
- func (_c *MockStorage_ListClients_Call) RunAndReturn(run func(ctx context.Context) ([]storage.Client, error)) *MockStorage_ListClients_Call
- type MockStorage_ListConnectors_Call
- func (_c *MockStorage_ListConnectors_Call) Return(connectors []storage.Connector, err error) *MockStorage_ListConnectors_Call
- func (_c *MockStorage_ListConnectors_Call) Run(run func(ctx context.Context)) *MockStorage_ListConnectors_Call
- func (_c *MockStorage_ListConnectors_Call) RunAndReturn(run func(ctx context.Context) ([]storage.Connector, error)) *MockStorage_ListConnectors_Call
- type MockStorage_ListPasswords_Call
- func (_c *MockStorage_ListPasswords_Call) Return(passwords []storage.Password, err error) *MockStorage_ListPasswords_Call
- func (_c *MockStorage_ListPasswords_Call) Run(run func(ctx context.Context)) *MockStorage_ListPasswords_Call
- func (_c *MockStorage_ListPasswords_Call) RunAndReturn(run func(ctx context.Context) ([]storage.Password, error)) *MockStorage_ListPasswords_Call
- type MockStorage_ListRefreshTokens_Call
- func (_c *MockStorage_ListRefreshTokens_Call) Return(refreshTokens []storage.RefreshToken, err error) *MockStorage_ListRefreshTokens_Call
- func (_c *MockStorage_ListRefreshTokens_Call) Run(run func(ctx context.Context)) *MockStorage_ListRefreshTokens_Call
- func (_c *MockStorage_ListRefreshTokens_Call) RunAndReturn(run func(ctx context.Context) ([]storage.RefreshToken, error)) *MockStorage_ListRefreshTokens_Call
- type MockStorage_UpdateAuthRequest_Call
- func (_c *MockStorage_UpdateAuthRequest_Call) Return(err error) *MockStorage_UpdateAuthRequest_Call
- func (_c *MockStorage_UpdateAuthRequest_Call) Run(run func(ctx context.Context, id string, ...)) *MockStorage_UpdateAuthRequest_Call
- func (_c *MockStorage_UpdateAuthRequest_Call) RunAndReturn(run func(ctx context.Context, id string, ...) error) *MockStorage_UpdateAuthRequest_Call
- type MockStorage_UpdateClient_Call
- func (_c *MockStorage_UpdateClient_Call) Return(err error) *MockStorage_UpdateClient_Call
- func (_c *MockStorage_UpdateClient_Call) Run(run func(ctx context.Context, id string, ...)) *MockStorage_UpdateClient_Call
- func (_c *MockStorage_UpdateClient_Call) RunAndReturn(run func(ctx context.Context, id string, ...) error) *MockStorage_UpdateClient_Call
- type MockStorage_UpdateConnector_Call
- func (_c *MockStorage_UpdateConnector_Call) Return(err error) *MockStorage_UpdateConnector_Call
- func (_c *MockStorage_UpdateConnector_Call) Run(run func(ctx context.Context, id string, ...)) *MockStorage_UpdateConnector_Call
- func (_c *MockStorage_UpdateConnector_Call) RunAndReturn(run func(ctx context.Context, id string, ...) error) *MockStorage_UpdateConnector_Call
- type MockStorage_UpdateDeviceToken_Call
- func (_c *MockStorage_UpdateDeviceToken_Call) Return(err error) *MockStorage_UpdateDeviceToken_Call
- func (_c *MockStorage_UpdateDeviceToken_Call) Run(run func(ctx context.Context, deviceCode string, ...)) *MockStorage_UpdateDeviceToken_Call
- func (_c *MockStorage_UpdateDeviceToken_Call) RunAndReturn(run func(ctx context.Context, deviceCode string, ...) error) *MockStorage_UpdateDeviceToken_Call
- type MockStorage_UpdateKeys_Call
- type MockStorage_UpdateOfflineSessions_Call
- func (_c *MockStorage_UpdateOfflineSessions_Call) Return(err error) *MockStorage_UpdateOfflineSessions_Call
- func (_c *MockStorage_UpdateOfflineSessions_Call) Run(run func(ctx context.Context, userID string, connID string, ...)) *MockStorage_UpdateOfflineSessions_Call
- func (_c *MockStorage_UpdateOfflineSessions_Call) RunAndReturn(run func(ctx context.Context, userID string, connID string, ...) error) *MockStorage_UpdateOfflineSessions_Call
- type MockStorage_UpdatePassword_Call
- func (_c *MockStorage_UpdatePassword_Call) Return(err error) *MockStorage_UpdatePassword_Call
- func (_c *MockStorage_UpdatePassword_Call) Run(run func(ctx context.Context, email string, ...)) *MockStorage_UpdatePassword_Call
- func (_c *MockStorage_UpdatePassword_Call) RunAndReturn(run func(ctx context.Context, email string, ...) error) *MockStorage_UpdatePassword_Call
- type MockStorage_UpdateRefreshToken_Call
- func (_c *MockStorage_UpdateRefreshToken_Call) Return(err error) *MockStorage_UpdateRefreshToken_Call
- func (_c *MockStorage_UpdateRefreshToken_Call) Run(run func(ctx context.Context, id string, ...)) *MockStorage_UpdateRefreshToken_Call
- func (_c *MockStorage_UpdateRefreshToken_Call) RunAndReturn(run func(ctx context.Context, id string, ...) error) *MockStorage_UpdateRefreshToken_Call
- type MockSubResourceWriter
- func (_mock *MockSubResourceWriter) Create(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (_m *MockSubResourceWriter) EXPECT() *MockSubResourceWriter_Expecter
- func (_mock *MockSubResourceWriter) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_mock *MockSubResourceWriter) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
- type MockSubResourceWriter_Create_Call
- type MockSubResourceWriter_Expecter
- func (_e *MockSubResourceWriter_Expecter) Create(ctx interface{}, obj interface{}, subResource interface{}, opts ...interface{}) *MockSubResourceWriter_Create_Call
- func (_e *MockSubResourceWriter_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *MockSubResourceWriter_Patch_Call
- func (_e *MockSubResourceWriter_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *MockSubResourceWriter_Update_Call
- type MockSubResourceWriter_Patch_Call
- func (_c *MockSubResourceWriter_Patch_Call) Return(err error) *MockSubResourceWriter_Patch_Call
- func (_c *MockSubResourceWriter_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, ...)) *MockSubResourceWriter_Patch_Call
- func (_c *MockSubResourceWriter_Patch_Call) RunAndReturn(...) *MockSubResourceWriter_Patch_Call
- type MockSubResourceWriter_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
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 ¶
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 (_c *MockClient_Apply_Call) Return(err error) *MockClient_Apply_Call
func (*MockClient_Apply_Call) Run ¶
func (_c *MockClient_Apply_Call) Run(run func(ctx context.Context, obj runtime.ApplyConfiguration, opts ...client.ApplyOption)) *MockClient_Apply_Call
func (*MockClient_Apply_Call) RunAndReturn ¶
func (_c *MockClient_Apply_Call) RunAndReturn(run func(ctx context.Context, obj runtime.ApplyConfiguration, opts ...client.ApplyOption) error) *MockClient_Apply_Call
type MockClient_Create_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 (_c *MockClient_Create_Call) Return(err error) *MockClient_Create_Call
func (*MockClient_Create_Call) Run ¶
func (_c *MockClient_Create_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption)) *MockClient_Create_Call
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 ¶
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 (_c *MockClient_DeleteAllOf_Call) Return(err error) *MockClient_DeleteAllOf_Call
func (*MockClient_DeleteAllOf_Call) Run ¶
func (_c *MockClient_DeleteAllOf_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption)) *MockClient_DeleteAllOf_Call
func (*MockClient_DeleteAllOf_Call) RunAndReturn ¶
func (_c *MockClient_DeleteAllOf_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error) *MockClient_DeleteAllOf_Call
type MockClient_Delete_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 (_c *MockClient_Delete_Call) Return(err error) *MockClient_Delete_Call
func (*MockClient_Delete_Call) Run ¶
func (_c *MockClient_Delete_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption)) *MockClient_Delete_Call
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 ¶
func (_e *MockClient_Expecter) RESTMapper() *MockClient_RESTMapper_Call
RESTMapper is a helper method to define mock.On call
func (*MockClient_Expecter) Scheme ¶
func (_e *MockClient_Expecter) Scheme() *MockClient_Scheme_Call
Scheme is a helper method to define mock.On call
func (*MockClient_Expecter) Status ¶
func (_e *MockClient_Expecter) Status() *MockClient_Status_Call
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 ¶
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 (_c *MockClient_Get_Call) Return(err error) *MockClient_Get_Call
func (*MockClient_Get_Call) Run ¶
func (_c *MockClient_Get_Call) Run(run func(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption)) *MockClient_Get_Call
func (*MockClient_Get_Call) RunAndReturn ¶
type MockClient_GroupVersionKindFor_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 (_c *MockClient_GroupVersionKindFor_Call) Return(groupVersionKind schema.GroupVersionKind, err error) *MockClient_GroupVersionKindFor_Call
func (*MockClient_GroupVersionKindFor_Call) Run ¶
func (_c *MockClient_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *MockClient_GroupVersionKindFor_Call
func (*MockClient_GroupVersionKindFor_Call) RunAndReturn ¶
func (_c *MockClient_GroupVersionKindFor_Call) RunAndReturn(run func(obj runtime.Object) (schema.GroupVersionKind, error)) *MockClient_GroupVersionKindFor_Call
type MockClient_IsObjectNamespaced_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 (_c *MockClient_IsObjectNamespaced_Call) Return(b bool, err error) *MockClient_IsObjectNamespaced_Call
func (*MockClient_IsObjectNamespaced_Call) Run ¶
func (_c *MockClient_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *MockClient_IsObjectNamespaced_Call
func (*MockClient_IsObjectNamespaced_Call) RunAndReturn ¶
func (_c *MockClient_IsObjectNamespaced_Call) RunAndReturn(run func(obj runtime.Object) (bool, error)) *MockClient_IsObjectNamespaced_Call
type MockClient_List_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 (_c *MockClient_List_Call) Return(err error) *MockClient_List_Call
func (*MockClient_List_Call) Run ¶
func (_c *MockClient_List_Call) Run(run func(ctx context.Context, list client.ObjectList, opts ...client.ListOption)) *MockClient_List_Call
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 ¶
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 (_c *MockClient_Patch_Call) Return(err error) *MockClient_Patch_Call
func (*MockClient_Patch_Call) Run ¶
func (_c *MockClient_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption)) *MockClient_Patch_Call
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 ¶
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 (_c *MockClient_RESTMapper_Call) Return(rESTMapper meta.RESTMapper) *MockClient_RESTMapper_Call
func (*MockClient_RESTMapper_Call) Run ¶
func (_c *MockClient_RESTMapper_Call) Run(run func()) *MockClient_RESTMapper_Call
func (*MockClient_RESTMapper_Call) RunAndReturn ¶
func (_c *MockClient_RESTMapper_Call) RunAndReturn(run func() meta.RESTMapper) *MockClient_RESTMapper_Call
type MockClient_Scheme_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 (_c *MockClient_Scheme_Call) Return(scheme *runtime.Scheme) *MockClient_Scheme_Call
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 ¶
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 (_c *MockClient_Status_Call) Return(subResourceWriter client.SubResourceWriter) *MockClient_Status_Call
func (*MockClient_Status_Call) Run ¶
func (_c *MockClient_Status_Call) Run(run func()) *MockClient_Status_Call
func (*MockClient_Status_Call) RunAndReturn ¶
func (_c *MockClient_Status_Call) RunAndReturn(run func() client.SubResourceWriter) *MockClient_Status_Call
type MockClient_SubResource_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 (_c *MockClient_SubResource_Call) Return(subResourceClient client.SubResourceClient) *MockClient_SubResource_Call
func (*MockClient_SubResource_Call) Run ¶
func (_c *MockClient_SubResource_Call) Run(run func(subResource string)) *MockClient_SubResource_Call
func (*MockClient_SubResource_Call) RunAndReturn ¶
func (_c *MockClient_SubResource_Call) RunAndReturn(run func(subResource string) client.SubResourceClient) *MockClient_SubResource_Call
type MockClient_Update_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 (_c *MockClient_Update_Call) Return(err error) *MockClient_Update_Call
func (*MockClient_Update_Call) Run ¶
func (_c *MockClient_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption)) *MockClient_Update_Call
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 ¶
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 (_m *MockReconciler) EXPECT() *MockReconciler_Expecter
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 ¶
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 (_c *MockReconciler_EnsureCreated_Call) Return(v controllerruntime.Result, reconcileResult lifecycle.ReconcileResult, err error) *MockReconciler_EnsureCreated_Call
func (*MockReconciler_EnsureCreated_Call) Run ¶
func (_c *MockReconciler_EnsureCreated_Call) Run(run func(context1 context.Context, runtimeObject lifecycle.RuntimeObject)) *MockReconciler_EnsureCreated_Call
func (*MockReconciler_EnsureCreated_Call) RunAndReturn ¶
func (_c *MockReconciler_EnsureCreated_Call) RunAndReturn(run func(context1 context.Context, runtimeObject lifecycle.RuntimeObject) (controllerruntime.Result, lifecycle.ReconcileResult, error)) *MockReconciler_EnsureCreated_Call
type MockReconciler_EnsureDeleted_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 (_c *MockReconciler_EnsureDeleted_Call) Return(v controllerruntime.Result, reconcileResult lifecycle.ReconcileResult, err error) *MockReconciler_EnsureDeleted_Call
func (*MockReconciler_EnsureDeleted_Call) Run ¶
func (_c *MockReconciler_EnsureDeleted_Call) Run(run func(context1 context.Context, runtimeObject lifecycle.RuntimeObject)) *MockReconciler_EnsureDeleted_Call
func (*MockReconciler_EnsureDeleted_Call) RunAndReturn ¶
func (_c *MockReconciler_EnsureDeleted_Call) RunAndReturn(run func(context1 context.Context, runtimeObject lifecycle.RuntimeObject) (controllerruntime.Result, lifecycle.ReconcileResult, error)) *MockReconciler_EnsureDeleted_Call
type MockReconciler_EnsureSuspended_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 (_c *MockReconciler_EnsureSuspended_Call) Return(v controllerruntime.Result, err error) *MockReconciler_EnsureSuspended_Call
func (*MockReconciler_EnsureSuspended_Call) Run ¶
func (_c *MockReconciler_EnsureSuspended_Call) Run(run func(context1 context.Context, runtimeObject lifecycle.RuntimeObject)) *MockReconciler_EnsureSuspended_Call
func (*MockReconciler_EnsureSuspended_Call) RunAndReturn ¶
func (_c *MockReconciler_EnsureSuspended_Call) RunAndReturn(run func(context1 context.Context, runtimeObject lifecycle.RuntimeObject) (controllerruntime.Result, error)) *MockReconciler_EnsureSuspended_Call
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 ¶
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 ¶
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 ¶
CreateClient provides a mock function for the type MockStorage
func (*MockStorage) CreateConnector ¶
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 ¶
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 ¶
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) GetConnector ¶
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) 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 ¶
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 ¶
ListClients provides a mock function for the type MockStorage
func (*MockStorage) ListConnectors ¶
ListConnectors provides a mock function for the type MockStorage
func (*MockStorage) ListPasswords ¶
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 ¶
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 (_c *MockStorage_Close_Call) Return(err error) *MockStorage_Close_Call
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 ¶
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 (_c *MockStorage_CreateAuthCode_Call) Return(err error) *MockStorage_CreateAuthCode_Call
func (*MockStorage_CreateAuthCode_Call) Run ¶
func (_c *MockStorage_CreateAuthCode_Call) Run(run func(ctx context.Context, c storage.AuthCode)) *MockStorage_CreateAuthCode_Call
func (*MockStorage_CreateAuthCode_Call) RunAndReturn ¶
func (_c *MockStorage_CreateAuthCode_Call) RunAndReturn(run func(ctx context.Context, c storage.AuthCode) error) *MockStorage_CreateAuthCode_Call
type MockStorage_CreateAuthRequest_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 (_c *MockStorage_CreateAuthRequest_Call) Return(err error) *MockStorage_CreateAuthRequest_Call
func (*MockStorage_CreateAuthRequest_Call) Run ¶
func (_c *MockStorage_CreateAuthRequest_Call) Run(run func(ctx context.Context, a storage.AuthRequest)) *MockStorage_CreateAuthRequest_Call
func (*MockStorage_CreateAuthRequest_Call) RunAndReturn ¶
func (_c *MockStorage_CreateAuthRequest_Call) RunAndReturn(run func(ctx context.Context, a storage.AuthRequest) error) *MockStorage_CreateAuthRequest_Call
type MockStorage_CreateClient_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 (_c *MockStorage_CreateClient_Call) Return(err error) *MockStorage_CreateClient_Call
func (*MockStorage_CreateClient_Call) Run ¶
func (_c *MockStorage_CreateClient_Call) Run(run func(ctx context.Context, c storage.Client)) *MockStorage_CreateClient_Call
func (*MockStorage_CreateClient_Call) RunAndReturn ¶
func (_c *MockStorage_CreateClient_Call) RunAndReturn(run func(ctx context.Context, c storage.Client) error) *MockStorage_CreateClient_Call
type MockStorage_CreateConnector_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 (_c *MockStorage_CreateConnector_Call) Return(err error) *MockStorage_CreateConnector_Call
func (*MockStorage_CreateConnector_Call) Run ¶
func (_c *MockStorage_CreateConnector_Call) Run(run func(ctx context.Context, c storage.Connector)) *MockStorage_CreateConnector_Call
func (*MockStorage_CreateConnector_Call) RunAndReturn ¶
func (_c *MockStorage_CreateConnector_Call) RunAndReturn(run func(ctx context.Context, c storage.Connector) error) *MockStorage_CreateConnector_Call
type MockStorage_CreateDeviceRequest_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 (_c *MockStorage_CreateDeviceRequest_Call) Return(err error) *MockStorage_CreateDeviceRequest_Call
func (*MockStorage_CreateDeviceRequest_Call) Run ¶
func (_c *MockStorage_CreateDeviceRequest_Call) Run(run func(ctx context.Context, d storage.DeviceRequest)) *MockStorage_CreateDeviceRequest_Call
func (*MockStorage_CreateDeviceRequest_Call) RunAndReturn ¶
func (_c *MockStorage_CreateDeviceRequest_Call) RunAndReturn(run func(ctx context.Context, d storage.DeviceRequest) error) *MockStorage_CreateDeviceRequest_Call
type MockStorage_CreateDeviceToken_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 (_c *MockStorage_CreateDeviceToken_Call) Return(err error) *MockStorage_CreateDeviceToken_Call
func (*MockStorage_CreateDeviceToken_Call) Run ¶
func (_c *MockStorage_CreateDeviceToken_Call) Run(run func(ctx context.Context, d storage.DeviceToken)) *MockStorage_CreateDeviceToken_Call
func (*MockStorage_CreateDeviceToken_Call) RunAndReturn ¶
func (_c *MockStorage_CreateDeviceToken_Call) RunAndReturn(run func(ctx context.Context, d storage.DeviceToken) error) *MockStorage_CreateDeviceToken_Call
type MockStorage_CreateOfflineSessions_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 (_c *MockStorage_CreateOfflineSessions_Call) Return(err error) *MockStorage_CreateOfflineSessions_Call
func (*MockStorage_CreateOfflineSessions_Call) Run ¶
func (_c *MockStorage_CreateOfflineSessions_Call) Run(run func(ctx context.Context, s storage.OfflineSessions)) *MockStorage_CreateOfflineSessions_Call
func (*MockStorage_CreateOfflineSessions_Call) RunAndReturn ¶
func (_c *MockStorage_CreateOfflineSessions_Call) RunAndReturn(run func(ctx context.Context, s storage.OfflineSessions) error) *MockStorage_CreateOfflineSessions_Call
type MockStorage_CreatePassword_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 (_c *MockStorage_CreatePassword_Call) Return(err error) *MockStorage_CreatePassword_Call
func (*MockStorage_CreatePassword_Call) Run ¶
func (_c *MockStorage_CreatePassword_Call) Run(run func(ctx context.Context, p storage.Password)) *MockStorage_CreatePassword_Call
func (*MockStorage_CreatePassword_Call) RunAndReturn ¶
func (_c *MockStorage_CreatePassword_Call) RunAndReturn(run func(ctx context.Context, p storage.Password) error) *MockStorage_CreatePassword_Call
type MockStorage_CreateRefresh_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 (_c *MockStorage_CreateRefresh_Call) Return(err error) *MockStorage_CreateRefresh_Call
func (*MockStorage_CreateRefresh_Call) Run ¶
func (_c *MockStorage_CreateRefresh_Call) Run(run func(ctx context.Context, r storage.RefreshToken)) *MockStorage_CreateRefresh_Call
func (*MockStorage_CreateRefresh_Call) RunAndReturn ¶
func (_c *MockStorage_CreateRefresh_Call) RunAndReturn(run func(ctx context.Context, r storage.RefreshToken) error) *MockStorage_CreateRefresh_Call
type MockStorage_DeleteAuthCode_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 (_c *MockStorage_DeleteAuthCode_Call) Return(err error) *MockStorage_DeleteAuthCode_Call
func (*MockStorage_DeleteAuthCode_Call) Run ¶
func (_c *MockStorage_DeleteAuthCode_Call) Run(run func(ctx context.Context, code string)) *MockStorage_DeleteAuthCode_Call
func (*MockStorage_DeleteAuthCode_Call) RunAndReturn ¶
func (_c *MockStorage_DeleteAuthCode_Call) RunAndReturn(run func(ctx context.Context, code string) error) *MockStorage_DeleteAuthCode_Call
type MockStorage_DeleteAuthRequest_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 (_c *MockStorage_DeleteAuthRequest_Call) Return(err error) *MockStorage_DeleteAuthRequest_Call
func (*MockStorage_DeleteAuthRequest_Call) Run ¶
func (_c *MockStorage_DeleteAuthRequest_Call) Run(run func(ctx context.Context, id string)) *MockStorage_DeleteAuthRequest_Call
func (*MockStorage_DeleteAuthRequest_Call) RunAndReturn ¶
func (_c *MockStorage_DeleteAuthRequest_Call) RunAndReturn(run func(ctx context.Context, id string) error) *MockStorage_DeleteAuthRequest_Call
type MockStorage_DeleteClient_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 (_c *MockStorage_DeleteClient_Call) Return(err error) *MockStorage_DeleteClient_Call
func (*MockStorage_DeleteClient_Call) Run ¶
func (_c *MockStorage_DeleteClient_Call) Run(run func(ctx context.Context, id string)) *MockStorage_DeleteClient_Call
func (*MockStorage_DeleteClient_Call) RunAndReturn ¶
func (_c *MockStorage_DeleteClient_Call) RunAndReturn(run func(ctx context.Context, id string) error) *MockStorage_DeleteClient_Call
type MockStorage_DeleteConnector_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 (_c *MockStorage_DeleteConnector_Call) Return(err error) *MockStorage_DeleteConnector_Call
func (*MockStorage_DeleteConnector_Call) Run ¶
func (_c *MockStorage_DeleteConnector_Call) Run(run func(ctx context.Context, id string)) *MockStorage_DeleteConnector_Call
func (*MockStorage_DeleteConnector_Call) RunAndReturn ¶
func (_c *MockStorage_DeleteConnector_Call) RunAndReturn(run func(ctx context.Context, id string) error) *MockStorage_DeleteConnector_Call
type MockStorage_DeleteOfflineSessions_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 (_c *MockStorage_DeleteOfflineSessions_Call) Return(err error) *MockStorage_DeleteOfflineSessions_Call
func (*MockStorage_DeleteOfflineSessions_Call) Run ¶
func (_c *MockStorage_DeleteOfflineSessions_Call) Run(run func(ctx context.Context, userID string, connID string)) *MockStorage_DeleteOfflineSessions_Call
func (*MockStorage_DeleteOfflineSessions_Call) RunAndReturn ¶
func (_c *MockStorage_DeleteOfflineSessions_Call) RunAndReturn(run func(ctx context.Context, userID string, connID string) error) *MockStorage_DeleteOfflineSessions_Call
type MockStorage_DeletePassword_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 (_c *MockStorage_DeletePassword_Call) Return(err error) *MockStorage_DeletePassword_Call
func (*MockStorage_DeletePassword_Call) Run ¶
func (_c *MockStorage_DeletePassword_Call) Run(run func(ctx context.Context, email string)) *MockStorage_DeletePassword_Call
func (*MockStorage_DeletePassword_Call) RunAndReturn ¶
func (_c *MockStorage_DeletePassword_Call) RunAndReturn(run func(ctx context.Context, email string) error) *MockStorage_DeletePassword_Call
type MockStorage_DeleteRefresh_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 (_c *MockStorage_DeleteRefresh_Call) Return(err error) *MockStorage_DeleteRefresh_Call
func (*MockStorage_DeleteRefresh_Call) Run ¶
func (_c *MockStorage_DeleteRefresh_Call) Run(run func(ctx context.Context, id string)) *MockStorage_DeleteRefresh_Call
func (*MockStorage_DeleteRefresh_Call) RunAndReturn ¶
func (_c *MockStorage_DeleteRefresh_Call) RunAndReturn(run func(ctx context.Context, id string) error) *MockStorage_DeleteRefresh_Call
type MockStorage_Expecter ¶
type MockStorage_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStorage_Expecter) Close ¶
func (_e *MockStorage_Expecter) Close() *MockStorage_Close_Call
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 ¶
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 (_c *MockStorage_GarbageCollect_Call) Return(gCResult storage.GCResult, err error) *MockStorage_GarbageCollect_Call
func (*MockStorage_GarbageCollect_Call) Run ¶
func (_c *MockStorage_GarbageCollect_Call) Run(run func(ctx context.Context, now time.Time)) *MockStorage_GarbageCollect_Call
func (*MockStorage_GarbageCollect_Call) RunAndReturn ¶
func (_c *MockStorage_GarbageCollect_Call) RunAndReturn(run func(ctx context.Context, now time.Time) (storage.GCResult, error)) *MockStorage_GarbageCollect_Call
type MockStorage_GetAuthCode_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 (_c *MockStorage_GetAuthCode_Call) Return(authCode storage.AuthCode, err error) *MockStorage_GetAuthCode_Call
func (*MockStorage_GetAuthCode_Call) Run ¶
func (_c *MockStorage_GetAuthCode_Call) Run(run func(ctx context.Context, id string)) *MockStorage_GetAuthCode_Call
func (*MockStorage_GetAuthCode_Call) RunAndReturn ¶
func (_c *MockStorage_GetAuthCode_Call) RunAndReturn(run func(ctx context.Context, id string) (storage.AuthCode, error)) *MockStorage_GetAuthCode_Call
type MockStorage_GetAuthRequest_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 (_c *MockStorage_GetAuthRequest_Call) Return(authRequest storage.AuthRequest, err error) *MockStorage_GetAuthRequest_Call
func (*MockStorage_GetAuthRequest_Call) Run ¶
func (_c *MockStorage_GetAuthRequest_Call) Run(run func(ctx context.Context, id string)) *MockStorage_GetAuthRequest_Call
func (*MockStorage_GetAuthRequest_Call) RunAndReturn ¶
func (_c *MockStorage_GetAuthRequest_Call) RunAndReturn(run func(ctx context.Context, id string) (storage.AuthRequest, error)) *MockStorage_GetAuthRequest_Call
type MockStorage_GetClient_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 (_c *MockStorage_GetClient_Call) Return(client storage.Client, err error) *MockStorage_GetClient_Call
func (*MockStorage_GetClient_Call) Run ¶
func (_c *MockStorage_GetClient_Call) Run(run func(ctx context.Context, id string)) *MockStorage_GetClient_Call
func (*MockStorage_GetClient_Call) RunAndReturn ¶
func (_c *MockStorage_GetClient_Call) RunAndReturn(run func(ctx context.Context, id string) (storage.Client, error)) *MockStorage_GetClient_Call
type MockStorage_GetConnector_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 (_c *MockStorage_GetConnector_Call) Return(connector storage.Connector, err error) *MockStorage_GetConnector_Call
func (*MockStorage_GetConnector_Call) Run ¶
func (_c *MockStorage_GetConnector_Call) Run(run func(ctx context.Context, id string)) *MockStorage_GetConnector_Call
func (*MockStorage_GetConnector_Call) RunAndReturn ¶
func (_c *MockStorage_GetConnector_Call) RunAndReturn(run func(ctx context.Context, id string) (storage.Connector, error)) *MockStorage_GetConnector_Call
type MockStorage_GetDeviceRequest_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 (_c *MockStorage_GetDeviceRequest_Call) Return(deviceRequest storage.DeviceRequest, err error) *MockStorage_GetDeviceRequest_Call
func (*MockStorage_GetDeviceRequest_Call) Run ¶
func (_c *MockStorage_GetDeviceRequest_Call) Run(run func(ctx context.Context, userCode string)) *MockStorage_GetDeviceRequest_Call
func (*MockStorage_GetDeviceRequest_Call) RunAndReturn ¶
func (_c *MockStorage_GetDeviceRequest_Call) RunAndReturn(run func(ctx context.Context, userCode string) (storage.DeviceRequest, error)) *MockStorage_GetDeviceRequest_Call
type MockStorage_GetDeviceToken_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 (_c *MockStorage_GetDeviceToken_Call) Return(deviceToken storage.DeviceToken, err error) *MockStorage_GetDeviceToken_Call
func (*MockStorage_GetDeviceToken_Call) Run ¶
func (_c *MockStorage_GetDeviceToken_Call) Run(run func(ctx context.Context, deviceCode string)) *MockStorage_GetDeviceToken_Call
func (*MockStorage_GetDeviceToken_Call) RunAndReturn ¶
func (_c *MockStorage_GetDeviceToken_Call) RunAndReturn(run func(ctx context.Context, deviceCode string) (storage.DeviceToken, error)) *MockStorage_GetDeviceToken_Call
type MockStorage_GetKeys_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 (_c *MockStorage_GetKeys_Call) Return(keys storage.Keys, err error) *MockStorage_GetKeys_Call
func (*MockStorage_GetKeys_Call) Run ¶
func (_c *MockStorage_GetKeys_Call) Run(run func(ctx context.Context)) *MockStorage_GetKeys_Call
func (*MockStorage_GetKeys_Call) RunAndReturn ¶
func (_c *MockStorage_GetKeys_Call) RunAndReturn(run func(ctx context.Context) (storage.Keys, error)) *MockStorage_GetKeys_Call
type MockStorage_GetOfflineSessions_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 (_c *MockStorage_GetOfflineSessions_Call) Return(offlineSessions storage.OfflineSessions, err error) *MockStorage_GetOfflineSessions_Call
func (*MockStorage_GetOfflineSessions_Call) Run ¶
func (_c *MockStorage_GetOfflineSessions_Call) Run(run func(ctx context.Context, userID string, connID string)) *MockStorage_GetOfflineSessions_Call
func (*MockStorage_GetOfflineSessions_Call) RunAndReturn ¶
func (_c *MockStorage_GetOfflineSessions_Call) RunAndReturn(run func(ctx context.Context, userID string, connID string) (storage.OfflineSessions, error)) *MockStorage_GetOfflineSessions_Call
type MockStorage_GetPassword_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 (_c *MockStorage_GetPassword_Call) Return(password storage.Password, err error) *MockStorage_GetPassword_Call
func (*MockStorage_GetPassword_Call) Run ¶
func (_c *MockStorage_GetPassword_Call) Run(run func(ctx context.Context, email string)) *MockStorage_GetPassword_Call
func (*MockStorage_GetPassword_Call) RunAndReturn ¶
func (_c *MockStorage_GetPassword_Call) RunAndReturn(run func(ctx context.Context, email string) (storage.Password, error)) *MockStorage_GetPassword_Call
type MockStorage_GetRefresh_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 (_c *MockStorage_GetRefresh_Call) Return(refreshToken storage.RefreshToken, err error) *MockStorage_GetRefresh_Call
func (*MockStorage_GetRefresh_Call) Run ¶
func (_c *MockStorage_GetRefresh_Call) Run(run func(ctx context.Context, id string)) *MockStorage_GetRefresh_Call
func (*MockStorage_GetRefresh_Call) RunAndReturn ¶
func (_c *MockStorage_GetRefresh_Call) RunAndReturn(run func(ctx context.Context, id string) (storage.RefreshToken, error)) *MockStorage_GetRefresh_Call
type MockStorage_ListClients_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 (_c *MockStorage_ListClients_Call) Return(clients []storage.Client, err error) *MockStorage_ListClients_Call
func (*MockStorage_ListClients_Call) Run ¶
func (_c *MockStorage_ListClients_Call) Run(run func(ctx context.Context)) *MockStorage_ListClients_Call
func (*MockStorage_ListClients_Call) RunAndReturn ¶
func (_c *MockStorage_ListClients_Call) RunAndReturn(run func(ctx context.Context) ([]storage.Client, error)) *MockStorage_ListClients_Call
type MockStorage_ListConnectors_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 (_c *MockStorage_ListConnectors_Call) Return(connectors []storage.Connector, err error) *MockStorage_ListConnectors_Call
func (*MockStorage_ListConnectors_Call) Run ¶
func (_c *MockStorage_ListConnectors_Call) Run(run func(ctx context.Context)) *MockStorage_ListConnectors_Call
func (*MockStorage_ListConnectors_Call) RunAndReturn ¶
func (_c *MockStorage_ListConnectors_Call) RunAndReturn(run func(ctx context.Context) ([]storage.Connector, error)) *MockStorage_ListConnectors_Call
type MockStorage_ListPasswords_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 (_c *MockStorage_ListPasswords_Call) Return(passwords []storage.Password, err error) *MockStorage_ListPasswords_Call
func (*MockStorage_ListPasswords_Call) Run ¶
func (_c *MockStorage_ListPasswords_Call) Run(run func(ctx context.Context)) *MockStorage_ListPasswords_Call
func (*MockStorage_ListPasswords_Call) RunAndReturn ¶
func (_c *MockStorage_ListPasswords_Call) RunAndReturn(run func(ctx context.Context) ([]storage.Password, error)) *MockStorage_ListPasswords_Call
type MockStorage_ListRefreshTokens_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 (_c *MockStorage_ListRefreshTokens_Call) Return(refreshTokens []storage.RefreshToken, err error) *MockStorage_ListRefreshTokens_Call
func (*MockStorage_ListRefreshTokens_Call) Run ¶
func (_c *MockStorage_ListRefreshTokens_Call) Run(run func(ctx context.Context)) *MockStorage_ListRefreshTokens_Call
func (*MockStorage_ListRefreshTokens_Call) RunAndReturn ¶
func (_c *MockStorage_ListRefreshTokens_Call) RunAndReturn(run func(ctx context.Context) ([]storage.RefreshToken, error)) *MockStorage_ListRefreshTokens_Call
type MockStorage_UpdateAuthRequest_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 (_c *MockStorage_UpdateAuthRequest_Call) Return(err error) *MockStorage_UpdateAuthRequest_Call
func (*MockStorage_UpdateAuthRequest_Call) Run ¶
func (_c *MockStorage_UpdateAuthRequest_Call) Run(run func(ctx context.Context, id string, updater func(a storage.AuthRequest) (storage.AuthRequest, error))) *MockStorage_UpdateAuthRequest_Call
func (*MockStorage_UpdateAuthRequest_Call) RunAndReturn ¶
func (_c *MockStorage_UpdateAuthRequest_Call) RunAndReturn(run func(ctx context.Context, id string, updater func(a storage.AuthRequest) (storage.AuthRequest, error)) error) *MockStorage_UpdateAuthRequest_Call
type MockStorage_UpdateClient_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 (_c *MockStorage_UpdateClient_Call) Return(err error) *MockStorage_UpdateClient_Call
func (*MockStorage_UpdateClient_Call) Run ¶
func (_c *MockStorage_UpdateClient_Call) Run(run func(ctx context.Context, id string, updater func(old storage.Client) (storage.Client, error))) *MockStorage_UpdateClient_Call
func (*MockStorage_UpdateClient_Call) RunAndReturn ¶
type MockStorage_UpdateConnector_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 (_c *MockStorage_UpdateConnector_Call) Return(err error) *MockStorage_UpdateConnector_Call
func (*MockStorage_UpdateConnector_Call) Run ¶
func (_c *MockStorage_UpdateConnector_Call) Run(run func(ctx context.Context, id string, updater func(c storage.Connector) (storage.Connector, error))) *MockStorage_UpdateConnector_Call
func (*MockStorage_UpdateConnector_Call) RunAndReturn ¶
type MockStorage_UpdateDeviceToken_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 (_c *MockStorage_UpdateDeviceToken_Call) Return(err error) *MockStorage_UpdateDeviceToken_Call
func (*MockStorage_UpdateDeviceToken_Call) Run ¶
func (_c *MockStorage_UpdateDeviceToken_Call) Run(run func(ctx context.Context, deviceCode string, updater func(t storage.DeviceToken) (storage.DeviceToken, error))) *MockStorage_UpdateDeviceToken_Call
func (*MockStorage_UpdateDeviceToken_Call) RunAndReturn ¶
func (_c *MockStorage_UpdateDeviceToken_Call) RunAndReturn(run func(ctx context.Context, deviceCode string, updater func(t storage.DeviceToken) (storage.DeviceToken, error)) error) *MockStorage_UpdateDeviceToken_Call
type MockStorage_UpdateKeys_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 (_c *MockStorage_UpdateKeys_Call) Return(err error) *MockStorage_UpdateKeys_Call
func (*MockStorage_UpdateKeys_Call) Run ¶
func (_c *MockStorage_UpdateKeys_Call) Run(run func(ctx context.Context, updater func(old storage.Keys) (storage.Keys, error))) *MockStorage_UpdateKeys_Call
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 ¶
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 (_c *MockStorage_UpdateOfflineSessions_Call) Return(err error) *MockStorage_UpdateOfflineSessions_Call
func (*MockStorage_UpdateOfflineSessions_Call) Run ¶
func (_c *MockStorage_UpdateOfflineSessions_Call) Run(run func(ctx context.Context, userID string, connID string, updater func(s storage.OfflineSessions) (storage.OfflineSessions, error))) *MockStorage_UpdateOfflineSessions_Call
func (*MockStorage_UpdateOfflineSessions_Call) RunAndReturn ¶
func (_c *MockStorage_UpdateOfflineSessions_Call) RunAndReturn(run func(ctx context.Context, userID string, connID string, updater func(s storage.OfflineSessions) (storage.OfflineSessions, error)) error) *MockStorage_UpdateOfflineSessions_Call
type MockStorage_UpdatePassword_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 (_c *MockStorage_UpdatePassword_Call) Return(err error) *MockStorage_UpdatePassword_Call
func (*MockStorage_UpdatePassword_Call) Run ¶
func (_c *MockStorage_UpdatePassword_Call) Run(run func(ctx context.Context, email string, updater func(p storage.Password) (storage.Password, error))) *MockStorage_UpdatePassword_Call
func (*MockStorage_UpdatePassword_Call) RunAndReturn ¶
type MockStorage_UpdateRefreshToken_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 (_c *MockStorage_UpdateRefreshToken_Call) Return(err error) *MockStorage_UpdateRefreshToken_Call
func (*MockStorage_UpdateRefreshToken_Call) Run ¶
func (_c *MockStorage_UpdateRefreshToken_Call) Run(run func(ctx context.Context, id string, updater func(r storage.RefreshToken) (storage.RefreshToken, error))) *MockStorage_UpdateRefreshToken_Call
func (*MockStorage_UpdateRefreshToken_Call) RunAndReturn ¶
func (_c *MockStorage_UpdateRefreshToken_Call) RunAndReturn(run func(ctx context.Context, id string, updater func(r storage.RefreshToken) (storage.RefreshToken, error)) error) *MockStorage_UpdateRefreshToken_Call
type MockSubResourceWriter ¶
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 (_m *MockSubResourceWriter) EXPECT() *MockSubResourceWriter_Expecter
func (*MockSubResourceWriter) Patch ¶
func (_mock *MockSubResourceWriter) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption) error
Patch provides a mock function for the type MockSubResourceWriter
func (*MockSubResourceWriter) Update ¶
func (_mock *MockSubResourceWriter) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Update provides a mock function for the type MockSubResourceWriter
type MockSubResourceWriter_Create_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 (_c *MockSubResourceWriter_Create_Call) Return(err error) *MockSubResourceWriter_Create_Call
func (*MockSubResourceWriter_Create_Call) Run ¶
func (_c *MockSubResourceWriter_Create_Call) Run(run func(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption)) *MockSubResourceWriter_Create_Call
func (*MockSubResourceWriter_Create_Call) RunAndReturn ¶
func (_c *MockSubResourceWriter_Create_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error) *MockSubResourceWriter_Create_Call
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 ¶
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 (_c *MockSubResourceWriter_Patch_Call) Return(err error) *MockSubResourceWriter_Patch_Call
func (*MockSubResourceWriter_Patch_Call) Run ¶
func (_c *MockSubResourceWriter_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption)) *MockSubResourceWriter_Patch_Call
func (*MockSubResourceWriter_Patch_Call) RunAndReturn ¶
func (_c *MockSubResourceWriter_Patch_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption) error) *MockSubResourceWriter_Patch_Call
type MockSubResourceWriter_Update_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 (_c *MockSubResourceWriter_Update_Call) Return(err error) *MockSubResourceWriter_Update_Call
func (*MockSubResourceWriter_Update_Call) Run ¶
func (_c *MockSubResourceWriter_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption)) *MockSubResourceWriter_Update_Call
func (*MockSubResourceWriter_Update_Call) RunAndReturn ¶
func (_c *MockSubResourceWriter_Update_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error) *MockSubResourceWriter_Update_Call