Documentation
¶
Index ¶
- type MockGitCredentialsInterface
- func (_m *MockGitCredentialsInterface) Create(ctx context.Context, request workspace.CreateCredentialsRequest) (*workspace.CreateCredentialsResponse, error)
- func (_m *MockGitCredentialsInterface) CredentialInfoGitProviderToCredentialIdMap(ctx context.Context) (map[string]int64, error)
- func (_m *MockGitCredentialsInterface) Delete(ctx context.Context, request workspace.DeleteCredentialsRequest) error
- func (_m *MockGitCredentialsInterface) DeleteByCredentialId(ctx context.Context, credentialId int64) error
- func (_m *MockGitCredentialsInterface) EXPECT() *MockGitCredentialsInterface_Expecter
- func (_m *MockGitCredentialsInterface) Get(ctx context.Context, request workspace.GetCredentialsRequest) (*workspace.GetCredentialsResponse, error)
- func (_m *MockGitCredentialsInterface) GetByCredentialId(ctx context.Context, credentialId int64) (*workspace.GetCredentialsResponse, error)
- func (_m *MockGitCredentialsInterface) GetByGitProvider(ctx context.Context, name string) (*workspace.CredentialInfo, error)
- func (_m *MockGitCredentialsInterface) List(ctx context.Context) listing.Iterator[workspace.CredentialInfo]
- func (_m *MockGitCredentialsInterface) ListAll(ctx context.Context) ([]workspace.CredentialInfo, error)
- func (_m *MockGitCredentialsInterface) Update(ctx context.Context, request workspace.UpdateCredentialsRequest) error
- type MockGitCredentialsInterface_Create_Call
- func (_c *MockGitCredentialsInterface_Create_Call) Return(_a0 *workspace.CreateCredentialsResponse, _a1 error) *MockGitCredentialsInterface_Create_Call
- func (_c *MockGitCredentialsInterface_Create_Call) Run(run func(ctx context.Context, request workspace.CreateCredentialsRequest)) *MockGitCredentialsInterface_Create_Call
- func (_c *MockGitCredentialsInterface_Create_Call) RunAndReturn(...) *MockGitCredentialsInterface_Create_Call
- type MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call
- func (_c *MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call) Return(_a0 map[string]int64, _a1 error) *MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call
- func (_c *MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call) Run(run func(ctx context.Context)) *MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call
- func (_c *MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call) RunAndReturn(run func(context.Context) (map[string]int64, error)) *MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call
- type MockGitCredentialsInterface_DeleteByCredentialId_Call
- func (_c *MockGitCredentialsInterface_DeleteByCredentialId_Call) Return(_a0 error) *MockGitCredentialsInterface_DeleteByCredentialId_Call
- func (_c *MockGitCredentialsInterface_DeleteByCredentialId_Call) Run(run func(ctx context.Context, credentialId int64)) *MockGitCredentialsInterface_DeleteByCredentialId_Call
- func (_c *MockGitCredentialsInterface_DeleteByCredentialId_Call) RunAndReturn(run func(context.Context, int64) error) *MockGitCredentialsInterface_DeleteByCredentialId_Call
- type MockGitCredentialsInterface_Delete_Call
- func (_c *MockGitCredentialsInterface_Delete_Call) Return(_a0 error) *MockGitCredentialsInterface_Delete_Call
- func (_c *MockGitCredentialsInterface_Delete_Call) Run(run func(ctx context.Context, request workspace.DeleteCredentialsRequest)) *MockGitCredentialsInterface_Delete_Call
- func (_c *MockGitCredentialsInterface_Delete_Call) RunAndReturn(run func(context.Context, workspace.DeleteCredentialsRequest) error) *MockGitCredentialsInterface_Delete_Call
- type MockGitCredentialsInterface_Expecter
- func (_e *MockGitCredentialsInterface_Expecter) Create(ctx interface{}, request interface{}) *MockGitCredentialsInterface_Create_Call
- func (_e *MockGitCredentialsInterface_Expecter) CredentialInfoGitProviderToCredentialIdMap(ctx interface{}) *MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call
- func (_e *MockGitCredentialsInterface_Expecter) Delete(ctx interface{}, request interface{}) *MockGitCredentialsInterface_Delete_Call
- func (_e *MockGitCredentialsInterface_Expecter) DeleteByCredentialId(ctx interface{}, credentialId interface{}) *MockGitCredentialsInterface_DeleteByCredentialId_Call
- func (_e *MockGitCredentialsInterface_Expecter) Get(ctx interface{}, request interface{}) *MockGitCredentialsInterface_Get_Call
- func (_e *MockGitCredentialsInterface_Expecter) GetByCredentialId(ctx interface{}, credentialId interface{}) *MockGitCredentialsInterface_GetByCredentialId_Call
- func (_e *MockGitCredentialsInterface_Expecter) GetByGitProvider(ctx interface{}, name interface{}) *MockGitCredentialsInterface_GetByGitProvider_Call
- func (_e *MockGitCredentialsInterface_Expecter) List(ctx interface{}) *MockGitCredentialsInterface_List_Call
- func (_e *MockGitCredentialsInterface_Expecter) ListAll(ctx interface{}) *MockGitCredentialsInterface_ListAll_Call
- func (_e *MockGitCredentialsInterface_Expecter) Update(ctx interface{}, request interface{}) *MockGitCredentialsInterface_Update_Call
- type MockGitCredentialsInterface_GetByCredentialId_Call
- func (_c *MockGitCredentialsInterface_GetByCredentialId_Call) Return(_a0 *workspace.GetCredentialsResponse, _a1 error) *MockGitCredentialsInterface_GetByCredentialId_Call
- func (_c *MockGitCredentialsInterface_GetByCredentialId_Call) Run(run func(ctx context.Context, credentialId int64)) *MockGitCredentialsInterface_GetByCredentialId_Call
- func (_c *MockGitCredentialsInterface_GetByCredentialId_Call) RunAndReturn(run func(context.Context, int64) (*workspace.GetCredentialsResponse, error)) *MockGitCredentialsInterface_GetByCredentialId_Call
- type MockGitCredentialsInterface_GetByGitProvider_Call
- func (_c *MockGitCredentialsInterface_GetByGitProvider_Call) Return(_a0 *workspace.CredentialInfo, _a1 error) *MockGitCredentialsInterface_GetByGitProvider_Call
- func (_c *MockGitCredentialsInterface_GetByGitProvider_Call) Run(run func(ctx context.Context, name string)) *MockGitCredentialsInterface_GetByGitProvider_Call
- func (_c *MockGitCredentialsInterface_GetByGitProvider_Call) RunAndReturn(run func(context.Context, string) (*workspace.CredentialInfo, error)) *MockGitCredentialsInterface_GetByGitProvider_Call
- type MockGitCredentialsInterface_Get_Call
- func (_c *MockGitCredentialsInterface_Get_Call) Return(_a0 *workspace.GetCredentialsResponse, _a1 error) *MockGitCredentialsInterface_Get_Call
- func (_c *MockGitCredentialsInterface_Get_Call) Run(run func(ctx context.Context, request workspace.GetCredentialsRequest)) *MockGitCredentialsInterface_Get_Call
- func (_c *MockGitCredentialsInterface_Get_Call) RunAndReturn(...) *MockGitCredentialsInterface_Get_Call
- type MockGitCredentialsInterface_ListAll_Call
- func (_c *MockGitCredentialsInterface_ListAll_Call) Return(_a0 []workspace.CredentialInfo, _a1 error) *MockGitCredentialsInterface_ListAll_Call
- func (_c *MockGitCredentialsInterface_ListAll_Call) Run(run func(ctx context.Context)) *MockGitCredentialsInterface_ListAll_Call
- func (_c *MockGitCredentialsInterface_ListAll_Call) RunAndReturn(run func(context.Context) ([]workspace.CredentialInfo, error)) *MockGitCredentialsInterface_ListAll_Call
- type MockGitCredentialsInterface_List_Call
- func (_c *MockGitCredentialsInterface_List_Call) Return(_a0 listing.Iterator[workspace.CredentialInfo]) *MockGitCredentialsInterface_List_Call
- func (_c *MockGitCredentialsInterface_List_Call) Run(run func(ctx context.Context)) *MockGitCredentialsInterface_List_Call
- func (_c *MockGitCredentialsInterface_List_Call) RunAndReturn(run func(context.Context) listing.Iterator[workspace.CredentialInfo]) *MockGitCredentialsInterface_List_Call
- type MockGitCredentialsInterface_Update_Call
- func (_c *MockGitCredentialsInterface_Update_Call) Return(_a0 error) *MockGitCredentialsInterface_Update_Call
- func (_c *MockGitCredentialsInterface_Update_Call) Run(run func(ctx context.Context, request workspace.UpdateCredentialsRequest)) *MockGitCredentialsInterface_Update_Call
- func (_c *MockGitCredentialsInterface_Update_Call) RunAndReturn(run func(context.Context, workspace.UpdateCredentialsRequest) error) *MockGitCredentialsInterface_Update_Call
- type MockReposInterface
- func (_m *MockReposInterface) Create(ctx context.Context, request workspace.CreateRepoRequest) (*workspace.CreateRepoResponse, error)
- func (_m *MockReposInterface) Delete(ctx context.Context, request workspace.DeleteRepoRequest) error
- func (_m *MockReposInterface) DeleteByRepoId(ctx context.Context, repoId int64) error
- func (_m *MockReposInterface) EXPECT() *MockReposInterface_Expecter
- func (_m *MockReposInterface) Get(ctx context.Context, request workspace.GetRepoRequest) (*workspace.GetRepoResponse, error)
- func (_m *MockReposInterface) GetByPath(ctx context.Context, name string) (*workspace.RepoInfo, error)
- func (_m *MockReposInterface) GetByRepoId(ctx context.Context, repoId int64) (*workspace.GetRepoResponse, error)
- func (_m *MockReposInterface) GetPermissionLevels(ctx context.Context, request workspace.GetRepoPermissionLevelsRequest) (*workspace.GetRepoPermissionLevelsResponse, error)
- func (_m *MockReposInterface) GetPermissionLevelsByRepoId(ctx context.Context, repoId string) (*workspace.GetRepoPermissionLevelsResponse, error)
- func (_m *MockReposInterface) GetPermissions(ctx context.Context, request workspace.GetRepoPermissionsRequest) (*workspace.RepoPermissions, error)
- func (_m *MockReposInterface) GetPermissionsByRepoId(ctx context.Context, repoId string) (*workspace.RepoPermissions, error)
- func (_m *MockReposInterface) List(ctx context.Context, request workspace.ListReposRequest) listing.Iterator[workspace.RepoInfo]
- func (_m *MockReposInterface) ListAll(ctx context.Context, request workspace.ListReposRequest) ([]workspace.RepoInfo, error)
- func (_m *MockReposInterface) RepoInfoPathToIdMap(ctx context.Context, request workspace.ListReposRequest) (map[string]int64, error)
- func (_m *MockReposInterface) SetPermissions(ctx context.Context, request workspace.RepoPermissionsRequest) (*workspace.RepoPermissions, error)
- func (_m *MockReposInterface) Update(ctx context.Context, request workspace.UpdateRepoRequest) error
- func (_m *MockReposInterface) UpdatePermissions(ctx context.Context, request workspace.RepoPermissionsRequest) (*workspace.RepoPermissions, error)
- type MockReposInterface_Create_Call
- func (_c *MockReposInterface_Create_Call) Return(_a0 *workspace.CreateRepoResponse, _a1 error) *MockReposInterface_Create_Call
- func (_c *MockReposInterface_Create_Call) Run(run func(ctx context.Context, request workspace.CreateRepoRequest)) *MockReposInterface_Create_Call
- func (_c *MockReposInterface_Create_Call) RunAndReturn(...) *MockReposInterface_Create_Call
- type MockReposInterface_DeleteByRepoId_Call
- func (_c *MockReposInterface_DeleteByRepoId_Call) Return(_a0 error) *MockReposInterface_DeleteByRepoId_Call
- func (_c *MockReposInterface_DeleteByRepoId_Call) Run(run func(ctx context.Context, repoId int64)) *MockReposInterface_DeleteByRepoId_Call
- func (_c *MockReposInterface_DeleteByRepoId_Call) RunAndReturn(run func(context.Context, int64) error) *MockReposInterface_DeleteByRepoId_Call
- type MockReposInterface_Delete_Call
- func (_c *MockReposInterface_Delete_Call) Return(_a0 error) *MockReposInterface_Delete_Call
- func (_c *MockReposInterface_Delete_Call) Run(run func(ctx context.Context, request workspace.DeleteRepoRequest)) *MockReposInterface_Delete_Call
- func (_c *MockReposInterface_Delete_Call) RunAndReturn(run func(context.Context, workspace.DeleteRepoRequest) error) *MockReposInterface_Delete_Call
- type MockReposInterface_Expecter
- func (_e *MockReposInterface_Expecter) Create(ctx interface{}, request interface{}) *MockReposInterface_Create_Call
- func (_e *MockReposInterface_Expecter) Delete(ctx interface{}, request interface{}) *MockReposInterface_Delete_Call
- func (_e *MockReposInterface_Expecter) DeleteByRepoId(ctx interface{}, repoId interface{}) *MockReposInterface_DeleteByRepoId_Call
- func (_e *MockReposInterface_Expecter) Get(ctx interface{}, request interface{}) *MockReposInterface_Get_Call
- func (_e *MockReposInterface_Expecter) GetByPath(ctx interface{}, name interface{}) *MockReposInterface_GetByPath_Call
- func (_e *MockReposInterface_Expecter) GetByRepoId(ctx interface{}, repoId interface{}) *MockReposInterface_GetByRepoId_Call
- func (_e *MockReposInterface_Expecter) GetPermissionLevels(ctx interface{}, request interface{}) *MockReposInterface_GetPermissionLevels_Call
- func (_e *MockReposInterface_Expecter) GetPermissionLevelsByRepoId(ctx interface{}, repoId interface{}) *MockReposInterface_GetPermissionLevelsByRepoId_Call
- func (_e *MockReposInterface_Expecter) GetPermissions(ctx interface{}, request interface{}) *MockReposInterface_GetPermissions_Call
- func (_e *MockReposInterface_Expecter) GetPermissionsByRepoId(ctx interface{}, repoId interface{}) *MockReposInterface_GetPermissionsByRepoId_Call
- func (_e *MockReposInterface_Expecter) List(ctx interface{}, request interface{}) *MockReposInterface_List_Call
- func (_e *MockReposInterface_Expecter) ListAll(ctx interface{}, request interface{}) *MockReposInterface_ListAll_Call
- func (_e *MockReposInterface_Expecter) RepoInfoPathToIdMap(ctx interface{}, request interface{}) *MockReposInterface_RepoInfoPathToIdMap_Call
- func (_e *MockReposInterface_Expecter) SetPermissions(ctx interface{}, request interface{}) *MockReposInterface_SetPermissions_Call
- func (_e *MockReposInterface_Expecter) Update(ctx interface{}, request interface{}) *MockReposInterface_Update_Call
- func (_e *MockReposInterface_Expecter) UpdatePermissions(ctx interface{}, request interface{}) *MockReposInterface_UpdatePermissions_Call
- type MockReposInterface_GetByPath_Call
- func (_c *MockReposInterface_GetByPath_Call) Return(_a0 *workspace.RepoInfo, _a1 error) *MockReposInterface_GetByPath_Call
- func (_c *MockReposInterface_GetByPath_Call) Run(run func(ctx context.Context, name string)) *MockReposInterface_GetByPath_Call
- func (_c *MockReposInterface_GetByPath_Call) RunAndReturn(run func(context.Context, string) (*workspace.RepoInfo, error)) *MockReposInterface_GetByPath_Call
- type MockReposInterface_GetByRepoId_Call
- func (_c *MockReposInterface_GetByRepoId_Call) Return(_a0 *workspace.GetRepoResponse, _a1 error) *MockReposInterface_GetByRepoId_Call
- func (_c *MockReposInterface_GetByRepoId_Call) Run(run func(ctx context.Context, repoId int64)) *MockReposInterface_GetByRepoId_Call
- func (_c *MockReposInterface_GetByRepoId_Call) RunAndReturn(run func(context.Context, int64) (*workspace.GetRepoResponse, error)) *MockReposInterface_GetByRepoId_Call
- type MockReposInterface_GetPermissionLevelsByRepoId_Call
- func (_c *MockReposInterface_GetPermissionLevelsByRepoId_Call) Return(_a0 *workspace.GetRepoPermissionLevelsResponse, _a1 error) *MockReposInterface_GetPermissionLevelsByRepoId_Call
- func (_c *MockReposInterface_GetPermissionLevelsByRepoId_Call) Run(run func(ctx context.Context, repoId string)) *MockReposInterface_GetPermissionLevelsByRepoId_Call
- func (_c *MockReposInterface_GetPermissionLevelsByRepoId_Call) RunAndReturn(...) *MockReposInterface_GetPermissionLevelsByRepoId_Call
- type MockReposInterface_GetPermissionLevels_Call
- func (_c *MockReposInterface_GetPermissionLevels_Call) Return(_a0 *workspace.GetRepoPermissionLevelsResponse, _a1 error) *MockReposInterface_GetPermissionLevels_Call
- func (_c *MockReposInterface_GetPermissionLevels_Call) Run(...) *MockReposInterface_GetPermissionLevels_Call
- func (_c *MockReposInterface_GetPermissionLevels_Call) RunAndReturn(...) *MockReposInterface_GetPermissionLevels_Call
- type MockReposInterface_GetPermissionsByRepoId_Call
- func (_c *MockReposInterface_GetPermissionsByRepoId_Call) Return(_a0 *workspace.RepoPermissions, _a1 error) *MockReposInterface_GetPermissionsByRepoId_Call
- func (_c *MockReposInterface_GetPermissionsByRepoId_Call) Run(run func(ctx context.Context, repoId string)) *MockReposInterface_GetPermissionsByRepoId_Call
- func (_c *MockReposInterface_GetPermissionsByRepoId_Call) RunAndReturn(run func(context.Context, string) (*workspace.RepoPermissions, error)) *MockReposInterface_GetPermissionsByRepoId_Call
- type MockReposInterface_GetPermissions_Call
- func (_c *MockReposInterface_GetPermissions_Call) Return(_a0 *workspace.RepoPermissions, _a1 error) *MockReposInterface_GetPermissions_Call
- func (_c *MockReposInterface_GetPermissions_Call) Run(run func(ctx context.Context, request workspace.GetRepoPermissionsRequest)) *MockReposInterface_GetPermissions_Call
- func (_c *MockReposInterface_GetPermissions_Call) RunAndReturn(...) *MockReposInterface_GetPermissions_Call
- type MockReposInterface_Get_Call
- func (_c *MockReposInterface_Get_Call) Return(_a0 *workspace.GetRepoResponse, _a1 error) *MockReposInterface_Get_Call
- func (_c *MockReposInterface_Get_Call) Run(run func(ctx context.Context, request workspace.GetRepoRequest)) *MockReposInterface_Get_Call
- func (_c *MockReposInterface_Get_Call) RunAndReturn(...) *MockReposInterface_Get_Call
- type MockReposInterface_ListAll_Call
- func (_c *MockReposInterface_ListAll_Call) Return(_a0 []workspace.RepoInfo, _a1 error) *MockReposInterface_ListAll_Call
- func (_c *MockReposInterface_ListAll_Call) Run(run func(ctx context.Context, request workspace.ListReposRequest)) *MockReposInterface_ListAll_Call
- func (_c *MockReposInterface_ListAll_Call) RunAndReturn(...) *MockReposInterface_ListAll_Call
- type MockReposInterface_List_Call
- func (_c *MockReposInterface_List_Call) Return(_a0 listing.Iterator[workspace.RepoInfo]) *MockReposInterface_List_Call
- func (_c *MockReposInterface_List_Call) Run(run func(ctx context.Context, request workspace.ListReposRequest)) *MockReposInterface_List_Call
- func (_c *MockReposInterface_List_Call) RunAndReturn(...) *MockReposInterface_List_Call
- type MockReposInterface_RepoInfoPathToIdMap_Call
- func (_c *MockReposInterface_RepoInfoPathToIdMap_Call) Return(_a0 map[string]int64, _a1 error) *MockReposInterface_RepoInfoPathToIdMap_Call
- func (_c *MockReposInterface_RepoInfoPathToIdMap_Call) Run(run func(ctx context.Context, request workspace.ListReposRequest)) *MockReposInterface_RepoInfoPathToIdMap_Call
- func (_c *MockReposInterface_RepoInfoPathToIdMap_Call) RunAndReturn(...) *MockReposInterface_RepoInfoPathToIdMap_Call
- type MockReposInterface_SetPermissions_Call
- func (_c *MockReposInterface_SetPermissions_Call) Return(_a0 *workspace.RepoPermissions, _a1 error) *MockReposInterface_SetPermissions_Call
- func (_c *MockReposInterface_SetPermissions_Call) Run(run func(ctx context.Context, request workspace.RepoPermissionsRequest)) *MockReposInterface_SetPermissions_Call
- func (_c *MockReposInterface_SetPermissions_Call) RunAndReturn(...) *MockReposInterface_SetPermissions_Call
- type MockReposInterface_UpdatePermissions_Call
- func (_c *MockReposInterface_UpdatePermissions_Call) Return(_a0 *workspace.RepoPermissions, _a1 error) *MockReposInterface_UpdatePermissions_Call
- func (_c *MockReposInterface_UpdatePermissions_Call) Run(run func(ctx context.Context, request workspace.RepoPermissionsRequest)) *MockReposInterface_UpdatePermissions_Call
- func (_c *MockReposInterface_UpdatePermissions_Call) RunAndReturn(...) *MockReposInterface_UpdatePermissions_Call
- type MockReposInterface_Update_Call
- func (_c *MockReposInterface_Update_Call) Return(_a0 error) *MockReposInterface_Update_Call
- func (_c *MockReposInterface_Update_Call) Run(run func(ctx context.Context, request workspace.UpdateRepoRequest)) *MockReposInterface_Update_Call
- func (_c *MockReposInterface_Update_Call) RunAndReturn(run func(context.Context, workspace.UpdateRepoRequest) error) *MockReposInterface_Update_Call
- type MockSecretsInterface
- func (_m *MockSecretsInterface) CreateScope(ctx context.Context, request workspace.CreateScope) error
- func (_m *MockSecretsInterface) DeleteAcl(ctx context.Context, request workspace.DeleteAcl) error
- func (_m *MockSecretsInterface) DeleteScope(ctx context.Context, request workspace.DeleteScope) error
- func (_m *MockSecretsInterface) DeleteScopeByScope(ctx context.Context, scope string) error
- func (_m *MockSecretsInterface) DeleteSecret(ctx context.Context, request workspace.DeleteSecret) error
- func (_m *MockSecretsInterface) EXPECT() *MockSecretsInterface_Expecter
- func (_m *MockSecretsInterface) GetAcl(ctx context.Context, request workspace.GetAclRequest) (*workspace.AclItem, error)
- func (_m *MockSecretsInterface) GetSecret(ctx context.Context, request workspace.GetSecretRequest) (*workspace.GetSecretResponse, error)
- func (_m *MockSecretsInterface) ListAcls(ctx context.Context, request workspace.ListAclsRequest) listing.Iterator[workspace.AclItem]
- func (_m *MockSecretsInterface) ListAclsAll(ctx context.Context, request workspace.ListAclsRequest) ([]workspace.AclItem, error)
- func (_m *MockSecretsInterface) ListAclsByScope(ctx context.Context, scope string) (*workspace.ListAclsResponse, error)
- func (_m *MockSecretsInterface) ListScopes(ctx context.Context) listing.Iterator[workspace.SecretScope]
- func (_m *MockSecretsInterface) ListScopesAll(ctx context.Context) ([]workspace.SecretScope, error)
- func (_m *MockSecretsInterface) ListSecrets(ctx context.Context, request workspace.ListSecretsRequest) listing.Iterator[workspace.SecretMetadata]
- func (_m *MockSecretsInterface) ListSecretsAll(ctx context.Context, request workspace.ListSecretsRequest) ([]workspace.SecretMetadata, error)
- func (_m *MockSecretsInterface) ListSecretsByScope(ctx context.Context, scope string) (*workspace.ListSecretsResponse, error)
- func (_m *MockSecretsInterface) PutAcl(ctx context.Context, request workspace.PutAcl) error
- func (_m *MockSecretsInterface) PutSecret(ctx context.Context, request workspace.PutSecret) error
- type MockSecretsInterface_CreateScope_Call
- func (_c *MockSecretsInterface_CreateScope_Call) Return(_a0 error) *MockSecretsInterface_CreateScope_Call
- func (_c *MockSecretsInterface_CreateScope_Call) Run(run func(ctx context.Context, request workspace.CreateScope)) *MockSecretsInterface_CreateScope_Call
- func (_c *MockSecretsInterface_CreateScope_Call) RunAndReturn(run func(context.Context, workspace.CreateScope) error) *MockSecretsInterface_CreateScope_Call
- type MockSecretsInterface_DeleteAcl_Call
- func (_c *MockSecretsInterface_DeleteAcl_Call) Return(_a0 error) *MockSecretsInterface_DeleteAcl_Call
- func (_c *MockSecretsInterface_DeleteAcl_Call) Run(run func(ctx context.Context, request workspace.DeleteAcl)) *MockSecretsInterface_DeleteAcl_Call
- func (_c *MockSecretsInterface_DeleteAcl_Call) RunAndReturn(run func(context.Context, workspace.DeleteAcl) error) *MockSecretsInterface_DeleteAcl_Call
- type MockSecretsInterface_DeleteScopeByScope_Call
- func (_c *MockSecretsInterface_DeleteScopeByScope_Call) Return(_a0 error) *MockSecretsInterface_DeleteScopeByScope_Call
- func (_c *MockSecretsInterface_DeleteScopeByScope_Call) Run(run func(ctx context.Context, scope string)) *MockSecretsInterface_DeleteScopeByScope_Call
- func (_c *MockSecretsInterface_DeleteScopeByScope_Call) RunAndReturn(run func(context.Context, string) error) *MockSecretsInterface_DeleteScopeByScope_Call
- type MockSecretsInterface_DeleteScope_Call
- func (_c *MockSecretsInterface_DeleteScope_Call) Return(_a0 error) *MockSecretsInterface_DeleteScope_Call
- func (_c *MockSecretsInterface_DeleteScope_Call) Run(run func(ctx context.Context, request workspace.DeleteScope)) *MockSecretsInterface_DeleteScope_Call
- func (_c *MockSecretsInterface_DeleteScope_Call) RunAndReturn(run func(context.Context, workspace.DeleteScope) error) *MockSecretsInterface_DeleteScope_Call
- type MockSecretsInterface_DeleteSecret_Call
- func (_c *MockSecretsInterface_DeleteSecret_Call) Return(_a0 error) *MockSecretsInterface_DeleteSecret_Call
- func (_c *MockSecretsInterface_DeleteSecret_Call) Run(run func(ctx context.Context, request workspace.DeleteSecret)) *MockSecretsInterface_DeleteSecret_Call
- func (_c *MockSecretsInterface_DeleteSecret_Call) RunAndReturn(run func(context.Context, workspace.DeleteSecret) error) *MockSecretsInterface_DeleteSecret_Call
- type MockSecretsInterface_Expecter
- func (_e *MockSecretsInterface_Expecter) CreateScope(ctx interface{}, request interface{}) *MockSecretsInterface_CreateScope_Call
- func (_e *MockSecretsInterface_Expecter) DeleteAcl(ctx interface{}, request interface{}) *MockSecretsInterface_DeleteAcl_Call
- func (_e *MockSecretsInterface_Expecter) DeleteScope(ctx interface{}, request interface{}) *MockSecretsInterface_DeleteScope_Call
- func (_e *MockSecretsInterface_Expecter) DeleteScopeByScope(ctx interface{}, scope interface{}) *MockSecretsInterface_DeleteScopeByScope_Call
- func (_e *MockSecretsInterface_Expecter) DeleteSecret(ctx interface{}, request interface{}) *MockSecretsInterface_DeleteSecret_Call
- func (_e *MockSecretsInterface_Expecter) GetAcl(ctx interface{}, request interface{}) *MockSecretsInterface_GetAcl_Call
- func (_e *MockSecretsInterface_Expecter) GetSecret(ctx interface{}, request interface{}) *MockSecretsInterface_GetSecret_Call
- func (_e *MockSecretsInterface_Expecter) ListAcls(ctx interface{}, request interface{}) *MockSecretsInterface_ListAcls_Call
- func (_e *MockSecretsInterface_Expecter) ListAclsAll(ctx interface{}, request interface{}) *MockSecretsInterface_ListAclsAll_Call
- func (_e *MockSecretsInterface_Expecter) ListAclsByScope(ctx interface{}, scope interface{}) *MockSecretsInterface_ListAclsByScope_Call
- func (_e *MockSecretsInterface_Expecter) ListScopes(ctx interface{}) *MockSecretsInterface_ListScopes_Call
- func (_e *MockSecretsInterface_Expecter) ListScopesAll(ctx interface{}) *MockSecretsInterface_ListScopesAll_Call
- func (_e *MockSecretsInterface_Expecter) ListSecrets(ctx interface{}, request interface{}) *MockSecretsInterface_ListSecrets_Call
- func (_e *MockSecretsInterface_Expecter) ListSecretsAll(ctx interface{}, request interface{}) *MockSecretsInterface_ListSecretsAll_Call
- func (_e *MockSecretsInterface_Expecter) ListSecretsByScope(ctx interface{}, scope interface{}) *MockSecretsInterface_ListSecretsByScope_Call
- func (_e *MockSecretsInterface_Expecter) PutAcl(ctx interface{}, request interface{}) *MockSecretsInterface_PutAcl_Call
- func (_e *MockSecretsInterface_Expecter) PutSecret(ctx interface{}, request interface{}) *MockSecretsInterface_PutSecret_Call
- type MockSecretsInterface_GetAcl_Call
- func (_c *MockSecretsInterface_GetAcl_Call) Return(_a0 *workspace.AclItem, _a1 error) *MockSecretsInterface_GetAcl_Call
- func (_c *MockSecretsInterface_GetAcl_Call) Run(run func(ctx context.Context, request workspace.GetAclRequest)) *MockSecretsInterface_GetAcl_Call
- func (_c *MockSecretsInterface_GetAcl_Call) RunAndReturn(run func(context.Context, workspace.GetAclRequest) (*workspace.AclItem, error)) *MockSecretsInterface_GetAcl_Call
- type MockSecretsInterface_GetSecret_Call
- func (_c *MockSecretsInterface_GetSecret_Call) Return(_a0 *workspace.GetSecretResponse, _a1 error) *MockSecretsInterface_GetSecret_Call
- func (_c *MockSecretsInterface_GetSecret_Call) Run(run func(ctx context.Context, request workspace.GetSecretRequest)) *MockSecretsInterface_GetSecret_Call
- func (_c *MockSecretsInterface_GetSecret_Call) RunAndReturn(...) *MockSecretsInterface_GetSecret_Call
- type MockSecretsInterface_ListAclsAll_Call
- func (_c *MockSecretsInterface_ListAclsAll_Call) Return(_a0 []workspace.AclItem, _a1 error) *MockSecretsInterface_ListAclsAll_Call
- func (_c *MockSecretsInterface_ListAclsAll_Call) Run(run func(ctx context.Context, request workspace.ListAclsRequest)) *MockSecretsInterface_ListAclsAll_Call
- func (_c *MockSecretsInterface_ListAclsAll_Call) RunAndReturn(...) *MockSecretsInterface_ListAclsAll_Call
- type MockSecretsInterface_ListAclsByScope_Call
- func (_c *MockSecretsInterface_ListAclsByScope_Call) Return(_a0 *workspace.ListAclsResponse, _a1 error) *MockSecretsInterface_ListAclsByScope_Call
- func (_c *MockSecretsInterface_ListAclsByScope_Call) Run(run func(ctx context.Context, scope string)) *MockSecretsInterface_ListAclsByScope_Call
- func (_c *MockSecretsInterface_ListAclsByScope_Call) RunAndReturn(run func(context.Context, string) (*workspace.ListAclsResponse, error)) *MockSecretsInterface_ListAclsByScope_Call
- type MockSecretsInterface_ListAcls_Call
- func (_c *MockSecretsInterface_ListAcls_Call) Return(_a0 listing.Iterator[workspace.AclItem]) *MockSecretsInterface_ListAcls_Call
- func (_c *MockSecretsInterface_ListAcls_Call) Run(run func(ctx context.Context, request workspace.ListAclsRequest)) *MockSecretsInterface_ListAcls_Call
- func (_c *MockSecretsInterface_ListAcls_Call) RunAndReturn(...) *MockSecretsInterface_ListAcls_Call
- type MockSecretsInterface_ListScopesAll_Call
- func (_c *MockSecretsInterface_ListScopesAll_Call) Return(_a0 []workspace.SecretScope, _a1 error) *MockSecretsInterface_ListScopesAll_Call
- func (_c *MockSecretsInterface_ListScopesAll_Call) Run(run func(ctx context.Context)) *MockSecretsInterface_ListScopesAll_Call
- func (_c *MockSecretsInterface_ListScopesAll_Call) RunAndReturn(run func(context.Context) ([]workspace.SecretScope, error)) *MockSecretsInterface_ListScopesAll_Call
- type MockSecretsInterface_ListScopes_Call
- func (_c *MockSecretsInterface_ListScopes_Call) Return(_a0 listing.Iterator[workspace.SecretScope]) *MockSecretsInterface_ListScopes_Call
- func (_c *MockSecretsInterface_ListScopes_Call) Run(run func(ctx context.Context)) *MockSecretsInterface_ListScopes_Call
- func (_c *MockSecretsInterface_ListScopes_Call) RunAndReturn(run func(context.Context) listing.Iterator[workspace.SecretScope]) *MockSecretsInterface_ListScopes_Call
- type MockSecretsInterface_ListSecretsAll_Call
- func (_c *MockSecretsInterface_ListSecretsAll_Call) Return(_a0 []workspace.SecretMetadata, _a1 error) *MockSecretsInterface_ListSecretsAll_Call
- func (_c *MockSecretsInterface_ListSecretsAll_Call) Run(run func(ctx context.Context, request workspace.ListSecretsRequest)) *MockSecretsInterface_ListSecretsAll_Call
- func (_c *MockSecretsInterface_ListSecretsAll_Call) RunAndReturn(...) *MockSecretsInterface_ListSecretsAll_Call
- type MockSecretsInterface_ListSecretsByScope_Call
- func (_c *MockSecretsInterface_ListSecretsByScope_Call) Return(_a0 *workspace.ListSecretsResponse, _a1 error) *MockSecretsInterface_ListSecretsByScope_Call
- func (_c *MockSecretsInterface_ListSecretsByScope_Call) Run(run func(ctx context.Context, scope string)) *MockSecretsInterface_ListSecretsByScope_Call
- func (_c *MockSecretsInterface_ListSecretsByScope_Call) RunAndReturn(run func(context.Context, string) (*workspace.ListSecretsResponse, error)) *MockSecretsInterface_ListSecretsByScope_Call
- type MockSecretsInterface_ListSecrets_Call
- func (_c *MockSecretsInterface_ListSecrets_Call) Return(_a0 listing.Iterator[workspace.SecretMetadata]) *MockSecretsInterface_ListSecrets_Call
- func (_c *MockSecretsInterface_ListSecrets_Call) Run(run func(ctx context.Context, request workspace.ListSecretsRequest)) *MockSecretsInterface_ListSecrets_Call
- func (_c *MockSecretsInterface_ListSecrets_Call) RunAndReturn(...) *MockSecretsInterface_ListSecrets_Call
- type MockSecretsInterface_PutAcl_Call
- func (_c *MockSecretsInterface_PutAcl_Call) Return(_a0 error) *MockSecretsInterface_PutAcl_Call
- func (_c *MockSecretsInterface_PutAcl_Call) Run(run func(ctx context.Context, request workspace.PutAcl)) *MockSecretsInterface_PutAcl_Call
- func (_c *MockSecretsInterface_PutAcl_Call) RunAndReturn(run func(context.Context, workspace.PutAcl) error) *MockSecretsInterface_PutAcl_Call
- type MockSecretsInterface_PutSecret_Call
- func (_c *MockSecretsInterface_PutSecret_Call) Return(_a0 error) *MockSecretsInterface_PutSecret_Call
- func (_c *MockSecretsInterface_PutSecret_Call) Run(run func(ctx context.Context, request workspace.PutSecret)) *MockSecretsInterface_PutSecret_Call
- func (_c *MockSecretsInterface_PutSecret_Call) RunAndReturn(run func(context.Context, workspace.PutSecret) error) *MockSecretsInterface_PutSecret_Call
- type MockWorkspaceInterface
- func (_m *MockWorkspaceInterface) Delete(ctx context.Context, request workspace.Delete) error
- func (_m *MockWorkspaceInterface) Download(ctx context.Context, path string, opts ...func(map[string]interface{})) (io.ReadCloser, error)
- func (_m *MockWorkspaceInterface) EXPECT() *MockWorkspaceInterface_Expecter
- func (_m *MockWorkspaceInterface) Export(ctx context.Context, request workspace.ExportRequest) (*workspace.ExportResponse, error)
- func (_m *MockWorkspaceInterface) GetByPath(ctx context.Context, name string) (*workspace.ObjectInfo, error)
- func (_m *MockWorkspaceInterface) GetPermissionLevels(ctx context.Context, ...) (*workspace.GetWorkspaceObjectPermissionLevelsResponse, error)
- func (_m *MockWorkspaceInterface) GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId(ctx context.Context, workspaceObjectType string, workspaceObjectId string) (*workspace.GetWorkspaceObjectPermissionLevelsResponse, error)
- func (_m *MockWorkspaceInterface) GetPermissions(ctx context.Context, request workspace.GetWorkspaceObjectPermissionsRequest) (*workspace.WorkspaceObjectPermissions, error)
- func (_m *MockWorkspaceInterface) GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId(ctx context.Context, workspaceObjectType string, workspaceObjectId string) (*workspace.WorkspaceObjectPermissions, error)
- func (_m *MockWorkspaceInterface) GetStatus(ctx context.Context, request workspace.GetStatusRequest) (*workspace.ObjectInfo, error)
- func (_m *MockWorkspaceInterface) GetStatusByPath(ctx context.Context, path string) (*workspace.ObjectInfo, error)
- func (_m *MockWorkspaceInterface) Import(ctx context.Context, request workspace.Import) error
- func (_m *MockWorkspaceInterface) List(ctx context.Context, request workspace.ListWorkspaceRequest) listing.Iterator[workspace.ObjectInfo]
- func (_m *MockWorkspaceInterface) ListAll(ctx context.Context, request workspace.ListWorkspaceRequest) ([]workspace.ObjectInfo, error)
- func (_m *MockWorkspaceInterface) Mkdirs(ctx context.Context, request workspace.Mkdirs) error
- func (_m *MockWorkspaceInterface) MkdirsByPath(ctx context.Context, path string) error
- func (_m *MockWorkspaceInterface) ObjectInfoPathToObjectIdMap(ctx context.Context, request workspace.ListWorkspaceRequest) (map[string]int64, error)
- func (_m *MockWorkspaceInterface) ReadFile(ctx context.Context, name string) ([]byte, error)
- func (_m *MockWorkspaceInterface) RecursiveList(ctx context.Context, path string) ([]workspace.ObjectInfo, error)
- func (_m *MockWorkspaceInterface) SetPermissions(ctx context.Context, request workspace.WorkspaceObjectPermissionsRequest) (*workspace.WorkspaceObjectPermissions, error)
- func (_m *MockWorkspaceInterface) UpdatePermissions(ctx context.Context, request workspace.WorkspaceObjectPermissionsRequest) (*workspace.WorkspaceObjectPermissions, error)
- func (_m *MockWorkspaceInterface) Upload(ctx context.Context, path string, r io.Reader, opts ...func(*workspace.Import)) error
- func (_m *MockWorkspaceInterface) WriteFile(ctx context.Context, name string, data []byte) error
- type MockWorkspaceInterface_Delete_Call
- func (_c *MockWorkspaceInterface_Delete_Call) Return(_a0 error) *MockWorkspaceInterface_Delete_Call
- func (_c *MockWorkspaceInterface_Delete_Call) Run(run func(ctx context.Context, request workspace.Delete)) *MockWorkspaceInterface_Delete_Call
- func (_c *MockWorkspaceInterface_Delete_Call) RunAndReturn(run func(context.Context, workspace.Delete) error) *MockWorkspaceInterface_Delete_Call
- type MockWorkspaceInterface_Download_Call
- func (_c *MockWorkspaceInterface_Download_Call) Return(_a0 io.ReadCloser, _a1 error) *MockWorkspaceInterface_Download_Call
- func (_c *MockWorkspaceInterface_Download_Call) Run(...) *MockWorkspaceInterface_Download_Call
- func (_c *MockWorkspaceInterface_Download_Call) RunAndReturn(...) *MockWorkspaceInterface_Download_Call
- type MockWorkspaceInterface_Expecter
- func (_e *MockWorkspaceInterface_Expecter) Delete(ctx interface{}, request interface{}) *MockWorkspaceInterface_Delete_Call
- func (_e *MockWorkspaceInterface_Expecter) Download(ctx interface{}, path interface{}, opts ...interface{}) *MockWorkspaceInterface_Download_Call
- func (_e *MockWorkspaceInterface_Expecter) Export(ctx interface{}, request interface{}) *MockWorkspaceInterface_Export_Call
- func (_e *MockWorkspaceInterface_Expecter) GetByPath(ctx interface{}, name interface{}) *MockWorkspaceInterface_GetByPath_Call
- func (_e *MockWorkspaceInterface_Expecter) GetPermissionLevels(ctx interface{}, request interface{}) *MockWorkspaceInterface_GetPermissionLevels_Call
- func (_e *MockWorkspaceInterface_Expecter) GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId(ctx interface{}, workspaceObjectType interface{}, ...) ...
- func (_e *MockWorkspaceInterface_Expecter) GetPermissions(ctx interface{}, request interface{}) *MockWorkspaceInterface_GetPermissions_Call
- func (_e *MockWorkspaceInterface_Expecter) GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId(ctx interface{}, workspaceObjectType interface{}, ...) ...
- func (_e *MockWorkspaceInterface_Expecter) GetStatus(ctx interface{}, request interface{}) *MockWorkspaceInterface_GetStatus_Call
- func (_e *MockWorkspaceInterface_Expecter) GetStatusByPath(ctx interface{}, path interface{}) *MockWorkspaceInterface_GetStatusByPath_Call
- func (_e *MockWorkspaceInterface_Expecter) Import(ctx interface{}, request interface{}) *MockWorkspaceInterface_Import_Call
- func (_e *MockWorkspaceInterface_Expecter) List(ctx interface{}, request interface{}) *MockWorkspaceInterface_List_Call
- func (_e *MockWorkspaceInterface_Expecter) ListAll(ctx interface{}, request interface{}) *MockWorkspaceInterface_ListAll_Call
- func (_e *MockWorkspaceInterface_Expecter) Mkdirs(ctx interface{}, request interface{}) *MockWorkspaceInterface_Mkdirs_Call
- func (_e *MockWorkspaceInterface_Expecter) MkdirsByPath(ctx interface{}, path interface{}) *MockWorkspaceInterface_MkdirsByPath_Call
- func (_e *MockWorkspaceInterface_Expecter) ObjectInfoPathToObjectIdMap(ctx interface{}, request interface{}) *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call
- func (_e *MockWorkspaceInterface_Expecter) ReadFile(ctx interface{}, name interface{}) *MockWorkspaceInterface_ReadFile_Call
- func (_e *MockWorkspaceInterface_Expecter) RecursiveList(ctx interface{}, path interface{}) *MockWorkspaceInterface_RecursiveList_Call
- func (_e *MockWorkspaceInterface_Expecter) SetPermissions(ctx interface{}, request interface{}) *MockWorkspaceInterface_SetPermissions_Call
- func (_e *MockWorkspaceInterface_Expecter) UpdatePermissions(ctx interface{}, request interface{}) *MockWorkspaceInterface_UpdatePermissions_Call
- func (_e *MockWorkspaceInterface_Expecter) Upload(ctx interface{}, path interface{}, r interface{}, opts ...interface{}) *MockWorkspaceInterface_Upload_Call
- func (_e *MockWorkspaceInterface_Expecter) WriteFile(ctx interface{}, name interface{}, data interface{}) *MockWorkspaceInterface_WriteFile_Call
- type MockWorkspaceInterface_Export_Call
- func (_c *MockWorkspaceInterface_Export_Call) Return(_a0 *workspace.ExportResponse, _a1 error) *MockWorkspaceInterface_Export_Call
- func (_c *MockWorkspaceInterface_Export_Call) Run(run func(ctx context.Context, request workspace.ExportRequest)) *MockWorkspaceInterface_Export_Call
- func (_c *MockWorkspaceInterface_Export_Call) RunAndReturn(...) *MockWorkspaceInterface_Export_Call
- type MockWorkspaceInterface_GetByPath_Call
- func (_c *MockWorkspaceInterface_GetByPath_Call) Return(_a0 *workspace.ObjectInfo, _a1 error) *MockWorkspaceInterface_GetByPath_Call
- func (_c *MockWorkspaceInterface_GetByPath_Call) Run(run func(ctx context.Context, name string)) *MockWorkspaceInterface_GetByPath_Call
- func (_c *MockWorkspaceInterface_GetByPath_Call) RunAndReturn(run func(context.Context, string) (*workspace.ObjectInfo, error)) *MockWorkspaceInterface_GetByPath_Call
- type MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call
- func (_c *MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) Return(_a0 *workspace.GetWorkspaceObjectPermissionLevelsResponse, _a1 error) ...
- func (_c *MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) Run(...) ...
- func (_c *MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) RunAndReturn(...) ...
- type MockWorkspaceInterface_GetPermissionLevels_Call
- func (_c *MockWorkspaceInterface_GetPermissionLevels_Call) Return(_a0 *workspace.GetWorkspaceObjectPermissionLevelsResponse, _a1 error) *MockWorkspaceInterface_GetPermissionLevels_Call
- func (_c *MockWorkspaceInterface_GetPermissionLevels_Call) Run(run func(ctx context.Context, ...)) *MockWorkspaceInterface_GetPermissionLevels_Call
- func (_c *MockWorkspaceInterface_GetPermissionLevels_Call) RunAndReturn(...) *MockWorkspaceInterface_GetPermissionLevels_Call
- type MockWorkspaceInterface_GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId_Call
- func (_c *MockWorkspaceInterface_GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) Return(_a0 *workspace.WorkspaceObjectPermissions, _a1 error) ...
- func (_c *MockWorkspaceInterface_GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) Run(...) ...
- func (_c *MockWorkspaceInterface_GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) RunAndReturn(...) ...
- type MockWorkspaceInterface_GetPermissions_Call
- func (_c *MockWorkspaceInterface_GetPermissions_Call) Return(_a0 *workspace.WorkspaceObjectPermissions, _a1 error) *MockWorkspaceInterface_GetPermissions_Call
- func (_c *MockWorkspaceInterface_GetPermissions_Call) Run(...) *MockWorkspaceInterface_GetPermissions_Call
- func (_c *MockWorkspaceInterface_GetPermissions_Call) RunAndReturn(...) *MockWorkspaceInterface_GetPermissions_Call
- type MockWorkspaceInterface_GetStatusByPath_Call
- func (_c *MockWorkspaceInterface_GetStatusByPath_Call) Return(_a0 *workspace.ObjectInfo, _a1 error) *MockWorkspaceInterface_GetStatusByPath_Call
- func (_c *MockWorkspaceInterface_GetStatusByPath_Call) Run(run func(ctx context.Context, path string)) *MockWorkspaceInterface_GetStatusByPath_Call
- func (_c *MockWorkspaceInterface_GetStatusByPath_Call) RunAndReturn(run func(context.Context, string) (*workspace.ObjectInfo, error)) *MockWorkspaceInterface_GetStatusByPath_Call
- type MockWorkspaceInterface_GetStatus_Call
- func (_c *MockWorkspaceInterface_GetStatus_Call) Return(_a0 *workspace.ObjectInfo, _a1 error) *MockWorkspaceInterface_GetStatus_Call
- func (_c *MockWorkspaceInterface_GetStatus_Call) Run(run func(ctx context.Context, request workspace.GetStatusRequest)) *MockWorkspaceInterface_GetStatus_Call
- func (_c *MockWorkspaceInterface_GetStatus_Call) RunAndReturn(...) *MockWorkspaceInterface_GetStatus_Call
- type MockWorkspaceInterface_Import_Call
- func (_c *MockWorkspaceInterface_Import_Call) Return(_a0 error) *MockWorkspaceInterface_Import_Call
- func (_c *MockWorkspaceInterface_Import_Call) Run(run func(ctx context.Context, request workspace.Import)) *MockWorkspaceInterface_Import_Call
- func (_c *MockWorkspaceInterface_Import_Call) RunAndReturn(run func(context.Context, workspace.Import) error) *MockWorkspaceInterface_Import_Call
- type MockWorkspaceInterface_ListAll_Call
- func (_c *MockWorkspaceInterface_ListAll_Call) Return(_a0 []workspace.ObjectInfo, _a1 error) *MockWorkspaceInterface_ListAll_Call
- func (_c *MockWorkspaceInterface_ListAll_Call) Run(run func(ctx context.Context, request workspace.ListWorkspaceRequest)) *MockWorkspaceInterface_ListAll_Call
- func (_c *MockWorkspaceInterface_ListAll_Call) RunAndReturn(...) *MockWorkspaceInterface_ListAll_Call
- type MockWorkspaceInterface_List_Call
- func (_c *MockWorkspaceInterface_List_Call) Return(_a0 listing.Iterator[workspace.ObjectInfo]) *MockWorkspaceInterface_List_Call
- func (_c *MockWorkspaceInterface_List_Call) Run(run func(ctx context.Context, request workspace.ListWorkspaceRequest)) *MockWorkspaceInterface_List_Call
- func (_c *MockWorkspaceInterface_List_Call) RunAndReturn(...) *MockWorkspaceInterface_List_Call
- type MockWorkspaceInterface_MkdirsByPath_Call
- func (_c *MockWorkspaceInterface_MkdirsByPath_Call) Return(_a0 error) *MockWorkspaceInterface_MkdirsByPath_Call
- func (_c *MockWorkspaceInterface_MkdirsByPath_Call) Run(run func(ctx context.Context, path string)) *MockWorkspaceInterface_MkdirsByPath_Call
- func (_c *MockWorkspaceInterface_MkdirsByPath_Call) RunAndReturn(run func(context.Context, string) error) *MockWorkspaceInterface_MkdirsByPath_Call
- type MockWorkspaceInterface_Mkdirs_Call
- func (_c *MockWorkspaceInterface_Mkdirs_Call) Return(_a0 error) *MockWorkspaceInterface_Mkdirs_Call
- func (_c *MockWorkspaceInterface_Mkdirs_Call) Run(run func(ctx context.Context, request workspace.Mkdirs)) *MockWorkspaceInterface_Mkdirs_Call
- func (_c *MockWorkspaceInterface_Mkdirs_Call) RunAndReturn(run func(context.Context, workspace.Mkdirs) error) *MockWorkspaceInterface_Mkdirs_Call
- type MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call
- func (_c *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call) Return(_a0 map[string]int64, _a1 error) *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call
- func (_c *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call) Run(run func(ctx context.Context, request workspace.ListWorkspaceRequest)) *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call
- func (_c *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call) RunAndReturn(...) *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call
- type MockWorkspaceInterface_ReadFile_Call
- func (_c *MockWorkspaceInterface_ReadFile_Call) Return(_a0 []byte, _a1 error) *MockWorkspaceInterface_ReadFile_Call
- func (_c *MockWorkspaceInterface_ReadFile_Call) Run(run func(ctx context.Context, name string)) *MockWorkspaceInterface_ReadFile_Call
- func (_c *MockWorkspaceInterface_ReadFile_Call) RunAndReturn(run func(context.Context, string) ([]byte, error)) *MockWorkspaceInterface_ReadFile_Call
- type MockWorkspaceInterface_RecursiveList_Call
- func (_c *MockWorkspaceInterface_RecursiveList_Call) Return(_a0 []workspace.ObjectInfo, _a1 error) *MockWorkspaceInterface_RecursiveList_Call
- func (_c *MockWorkspaceInterface_RecursiveList_Call) Run(run func(ctx context.Context, path string)) *MockWorkspaceInterface_RecursiveList_Call
- func (_c *MockWorkspaceInterface_RecursiveList_Call) RunAndReturn(run func(context.Context, string) ([]workspace.ObjectInfo, error)) *MockWorkspaceInterface_RecursiveList_Call
- type MockWorkspaceInterface_SetPermissions_Call
- func (_c *MockWorkspaceInterface_SetPermissions_Call) Return(_a0 *workspace.WorkspaceObjectPermissions, _a1 error) *MockWorkspaceInterface_SetPermissions_Call
- func (_c *MockWorkspaceInterface_SetPermissions_Call) Run(...) *MockWorkspaceInterface_SetPermissions_Call
- func (_c *MockWorkspaceInterface_SetPermissions_Call) RunAndReturn(...) *MockWorkspaceInterface_SetPermissions_Call
- type MockWorkspaceInterface_UpdatePermissions_Call
- func (_c *MockWorkspaceInterface_UpdatePermissions_Call) Return(_a0 *workspace.WorkspaceObjectPermissions, _a1 error) *MockWorkspaceInterface_UpdatePermissions_Call
- func (_c *MockWorkspaceInterface_UpdatePermissions_Call) Run(...) *MockWorkspaceInterface_UpdatePermissions_Call
- func (_c *MockWorkspaceInterface_UpdatePermissions_Call) RunAndReturn(...) *MockWorkspaceInterface_UpdatePermissions_Call
- type MockWorkspaceInterface_Upload_Call
- func (_c *MockWorkspaceInterface_Upload_Call) Return(_a0 error) *MockWorkspaceInterface_Upload_Call
- func (_c *MockWorkspaceInterface_Upload_Call) Run(...) *MockWorkspaceInterface_Upload_Call
- func (_c *MockWorkspaceInterface_Upload_Call) RunAndReturn(run func(context.Context, string, io.Reader, ...func(*workspace.Import)) error) *MockWorkspaceInterface_Upload_Call
- type MockWorkspaceInterface_WriteFile_Call
- func (_c *MockWorkspaceInterface_WriteFile_Call) Return(_a0 error) *MockWorkspaceInterface_WriteFile_Call
- func (_c *MockWorkspaceInterface_WriteFile_Call) Run(run func(ctx context.Context, name string, data []byte)) *MockWorkspaceInterface_WriteFile_Call
- func (_c *MockWorkspaceInterface_WriteFile_Call) RunAndReturn(run func(context.Context, string, []byte) error) *MockWorkspaceInterface_WriteFile_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGitCredentialsInterface ¶
MockGitCredentialsInterface is an autogenerated mock type for the GitCredentialsInterface type
func NewMockGitCredentialsInterface ¶
func NewMockGitCredentialsInterface(t interface { mock.TestingT Cleanup(func()) }) *MockGitCredentialsInterface
NewMockGitCredentialsInterface creates a new instance of MockGitCredentialsInterface. 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 (*MockGitCredentialsInterface) Create ¶
func (_m *MockGitCredentialsInterface) Create(ctx context.Context, request workspace.CreateCredentialsRequest) (*workspace.CreateCredentialsResponse, error)
Create provides a mock function with given fields: ctx, request
func (*MockGitCredentialsInterface) CredentialInfoGitProviderToCredentialIdMap ¶
func (_m *MockGitCredentialsInterface) CredentialInfoGitProviderToCredentialIdMap(ctx context.Context) (map[string]int64, error)
CredentialInfoGitProviderToCredentialIdMap provides a mock function with given fields: ctx
func (*MockGitCredentialsInterface) Delete ¶
func (_m *MockGitCredentialsInterface) Delete(ctx context.Context, request workspace.DeleteCredentialsRequest) error
Delete provides a mock function with given fields: ctx, request
func (*MockGitCredentialsInterface) DeleteByCredentialId ¶
func (_m *MockGitCredentialsInterface) DeleteByCredentialId(ctx context.Context, credentialId int64) error
DeleteByCredentialId provides a mock function with given fields: ctx, credentialId
func (*MockGitCredentialsInterface) EXPECT ¶
func (_m *MockGitCredentialsInterface) EXPECT() *MockGitCredentialsInterface_Expecter
func (*MockGitCredentialsInterface) Get ¶
func (_m *MockGitCredentialsInterface) Get(ctx context.Context, request workspace.GetCredentialsRequest) (*workspace.GetCredentialsResponse, error)
Get provides a mock function with given fields: ctx, request
func (*MockGitCredentialsInterface) GetByCredentialId ¶
func (_m *MockGitCredentialsInterface) GetByCredentialId(ctx context.Context, credentialId int64) (*workspace.GetCredentialsResponse, error)
GetByCredentialId provides a mock function with given fields: ctx, credentialId
func (*MockGitCredentialsInterface) GetByGitProvider ¶
func (_m *MockGitCredentialsInterface) GetByGitProvider(ctx context.Context, name string) (*workspace.CredentialInfo, error)
GetByGitProvider provides a mock function with given fields: ctx, name
func (*MockGitCredentialsInterface) List ¶
func (_m *MockGitCredentialsInterface) List(ctx context.Context) listing.Iterator[workspace.CredentialInfo]
List provides a mock function with given fields: ctx
func (*MockGitCredentialsInterface) ListAll ¶
func (_m *MockGitCredentialsInterface) ListAll(ctx context.Context) ([]workspace.CredentialInfo, error)
ListAll provides a mock function with given fields: ctx
func (*MockGitCredentialsInterface) Update ¶
func (_m *MockGitCredentialsInterface) Update(ctx context.Context, request workspace.UpdateCredentialsRequest) error
Update provides a mock function with given fields: ctx, request
type MockGitCredentialsInterface_Create_Call ¶
MockGitCredentialsInterface_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockGitCredentialsInterface_Create_Call) Return ¶
func (_c *MockGitCredentialsInterface_Create_Call) Return(_a0 *workspace.CreateCredentialsResponse, _a1 error) *MockGitCredentialsInterface_Create_Call
func (*MockGitCredentialsInterface_Create_Call) Run ¶
func (_c *MockGitCredentialsInterface_Create_Call) Run(run func(ctx context.Context, request workspace.CreateCredentialsRequest)) *MockGitCredentialsInterface_Create_Call
func (*MockGitCredentialsInterface_Create_Call) RunAndReturn ¶
func (_c *MockGitCredentialsInterface_Create_Call) RunAndReturn(run func(context.Context, workspace.CreateCredentialsRequest) (*workspace.CreateCredentialsResponse, error)) *MockGitCredentialsInterface_Create_Call
type MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call ¶
type MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call struct {
*mock.Call
}
MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CredentialInfoGitProviderToCredentialIdMap'
func (*MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call) RunAndReturn ¶
func (_c *MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call) RunAndReturn(run func(context.Context) (map[string]int64, error)) *MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call
type MockGitCredentialsInterface_DeleteByCredentialId_Call ¶
MockGitCredentialsInterface_DeleteByCredentialId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByCredentialId'
func (*MockGitCredentialsInterface_DeleteByCredentialId_Call) Run ¶
func (_c *MockGitCredentialsInterface_DeleteByCredentialId_Call) Run(run func(ctx context.Context, credentialId int64)) *MockGitCredentialsInterface_DeleteByCredentialId_Call
func (*MockGitCredentialsInterface_DeleteByCredentialId_Call) RunAndReturn ¶
func (_c *MockGitCredentialsInterface_DeleteByCredentialId_Call) RunAndReturn(run func(context.Context, int64) error) *MockGitCredentialsInterface_DeleteByCredentialId_Call
type MockGitCredentialsInterface_Delete_Call ¶
MockGitCredentialsInterface_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockGitCredentialsInterface_Delete_Call) Return ¶
func (_c *MockGitCredentialsInterface_Delete_Call) Return(_a0 error) *MockGitCredentialsInterface_Delete_Call
func (*MockGitCredentialsInterface_Delete_Call) Run ¶
func (_c *MockGitCredentialsInterface_Delete_Call) Run(run func(ctx context.Context, request workspace.DeleteCredentialsRequest)) *MockGitCredentialsInterface_Delete_Call
func (*MockGitCredentialsInterface_Delete_Call) RunAndReturn ¶
func (_c *MockGitCredentialsInterface_Delete_Call) RunAndReturn(run func(context.Context, workspace.DeleteCredentialsRequest) error) *MockGitCredentialsInterface_Delete_Call
type MockGitCredentialsInterface_Expecter ¶
type MockGitCredentialsInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockGitCredentialsInterface_Expecter) Create ¶
func (_e *MockGitCredentialsInterface_Expecter) Create(ctx interface{}, request interface{}) *MockGitCredentialsInterface_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- request workspace.CreateCredentialsRequest
func (*MockGitCredentialsInterface_Expecter) CredentialInfoGitProviderToCredentialIdMap ¶
func (_e *MockGitCredentialsInterface_Expecter) CredentialInfoGitProviderToCredentialIdMap(ctx interface{}) *MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call
CredentialInfoGitProviderToCredentialIdMap is a helper method to define mock.On call
- ctx context.Context
func (*MockGitCredentialsInterface_Expecter) Delete ¶
func (_e *MockGitCredentialsInterface_Expecter) Delete(ctx interface{}, request interface{}) *MockGitCredentialsInterface_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- request workspace.DeleteCredentialsRequest
func (*MockGitCredentialsInterface_Expecter) DeleteByCredentialId ¶
func (_e *MockGitCredentialsInterface_Expecter) DeleteByCredentialId(ctx interface{}, credentialId interface{}) *MockGitCredentialsInterface_DeleteByCredentialId_Call
DeleteByCredentialId is a helper method to define mock.On call
- ctx context.Context
- credentialId int64
func (*MockGitCredentialsInterface_Expecter) Get ¶
func (_e *MockGitCredentialsInterface_Expecter) Get(ctx interface{}, request interface{}) *MockGitCredentialsInterface_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- request workspace.GetCredentialsRequest
func (*MockGitCredentialsInterface_Expecter) GetByCredentialId ¶
func (_e *MockGitCredentialsInterface_Expecter) GetByCredentialId(ctx interface{}, credentialId interface{}) *MockGitCredentialsInterface_GetByCredentialId_Call
GetByCredentialId is a helper method to define mock.On call
- ctx context.Context
- credentialId int64
func (*MockGitCredentialsInterface_Expecter) GetByGitProvider ¶
func (_e *MockGitCredentialsInterface_Expecter) GetByGitProvider(ctx interface{}, name interface{}) *MockGitCredentialsInterface_GetByGitProvider_Call
GetByGitProvider is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockGitCredentialsInterface_Expecter) List ¶
func (_e *MockGitCredentialsInterface_Expecter) List(ctx interface{}) *MockGitCredentialsInterface_List_Call
List is a helper method to define mock.On call
- ctx context.Context
func (*MockGitCredentialsInterface_Expecter) ListAll ¶
func (_e *MockGitCredentialsInterface_Expecter) ListAll(ctx interface{}) *MockGitCredentialsInterface_ListAll_Call
ListAll is a helper method to define mock.On call
- ctx context.Context
func (*MockGitCredentialsInterface_Expecter) Update ¶
func (_e *MockGitCredentialsInterface_Expecter) Update(ctx interface{}, request interface{}) *MockGitCredentialsInterface_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- request workspace.UpdateCredentialsRequest
type MockGitCredentialsInterface_GetByCredentialId_Call ¶
MockGitCredentialsInterface_GetByCredentialId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByCredentialId'
func (*MockGitCredentialsInterface_GetByCredentialId_Call) Return ¶
func (_c *MockGitCredentialsInterface_GetByCredentialId_Call) Return(_a0 *workspace.GetCredentialsResponse, _a1 error) *MockGitCredentialsInterface_GetByCredentialId_Call
func (*MockGitCredentialsInterface_GetByCredentialId_Call) Run ¶
func (_c *MockGitCredentialsInterface_GetByCredentialId_Call) Run(run func(ctx context.Context, credentialId int64)) *MockGitCredentialsInterface_GetByCredentialId_Call
func (*MockGitCredentialsInterface_GetByCredentialId_Call) RunAndReturn ¶
func (_c *MockGitCredentialsInterface_GetByCredentialId_Call) RunAndReturn(run func(context.Context, int64) (*workspace.GetCredentialsResponse, error)) *MockGitCredentialsInterface_GetByCredentialId_Call
type MockGitCredentialsInterface_GetByGitProvider_Call ¶
MockGitCredentialsInterface_GetByGitProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByGitProvider'
func (*MockGitCredentialsInterface_GetByGitProvider_Call) Return ¶
func (_c *MockGitCredentialsInterface_GetByGitProvider_Call) Return(_a0 *workspace.CredentialInfo, _a1 error) *MockGitCredentialsInterface_GetByGitProvider_Call
func (*MockGitCredentialsInterface_GetByGitProvider_Call) Run ¶
func (_c *MockGitCredentialsInterface_GetByGitProvider_Call) Run(run func(ctx context.Context, name string)) *MockGitCredentialsInterface_GetByGitProvider_Call
func (*MockGitCredentialsInterface_GetByGitProvider_Call) RunAndReturn ¶
func (_c *MockGitCredentialsInterface_GetByGitProvider_Call) RunAndReturn(run func(context.Context, string) (*workspace.CredentialInfo, error)) *MockGitCredentialsInterface_GetByGitProvider_Call
type MockGitCredentialsInterface_Get_Call ¶
MockGitCredentialsInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockGitCredentialsInterface_Get_Call) Return ¶
func (_c *MockGitCredentialsInterface_Get_Call) Return(_a0 *workspace.GetCredentialsResponse, _a1 error) *MockGitCredentialsInterface_Get_Call
func (*MockGitCredentialsInterface_Get_Call) Run ¶
func (_c *MockGitCredentialsInterface_Get_Call) Run(run func(ctx context.Context, request workspace.GetCredentialsRequest)) *MockGitCredentialsInterface_Get_Call
func (*MockGitCredentialsInterface_Get_Call) RunAndReturn ¶
func (_c *MockGitCredentialsInterface_Get_Call) RunAndReturn(run func(context.Context, workspace.GetCredentialsRequest) (*workspace.GetCredentialsResponse, error)) *MockGitCredentialsInterface_Get_Call
type MockGitCredentialsInterface_ListAll_Call ¶
MockGitCredentialsInterface_ListAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAll'
func (*MockGitCredentialsInterface_ListAll_Call) Return ¶
func (_c *MockGitCredentialsInterface_ListAll_Call) Return(_a0 []workspace.CredentialInfo, _a1 error) *MockGitCredentialsInterface_ListAll_Call
func (*MockGitCredentialsInterface_ListAll_Call) Run ¶
func (_c *MockGitCredentialsInterface_ListAll_Call) Run(run func(ctx context.Context)) *MockGitCredentialsInterface_ListAll_Call
func (*MockGitCredentialsInterface_ListAll_Call) RunAndReturn ¶
func (_c *MockGitCredentialsInterface_ListAll_Call) RunAndReturn(run func(context.Context) ([]workspace.CredentialInfo, error)) *MockGitCredentialsInterface_ListAll_Call
type MockGitCredentialsInterface_List_Call ¶
MockGitCredentialsInterface_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockGitCredentialsInterface_List_Call) Return ¶
func (_c *MockGitCredentialsInterface_List_Call) Return(_a0 listing.Iterator[workspace.CredentialInfo]) *MockGitCredentialsInterface_List_Call
func (*MockGitCredentialsInterface_List_Call) Run ¶
func (_c *MockGitCredentialsInterface_List_Call) Run(run func(ctx context.Context)) *MockGitCredentialsInterface_List_Call
func (*MockGitCredentialsInterface_List_Call) RunAndReturn ¶
func (_c *MockGitCredentialsInterface_List_Call) RunAndReturn(run func(context.Context) listing.Iterator[workspace.CredentialInfo]) *MockGitCredentialsInterface_List_Call
type MockGitCredentialsInterface_Update_Call ¶
MockGitCredentialsInterface_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockGitCredentialsInterface_Update_Call) Return ¶
func (_c *MockGitCredentialsInterface_Update_Call) Return(_a0 error) *MockGitCredentialsInterface_Update_Call
func (*MockGitCredentialsInterface_Update_Call) Run ¶
func (_c *MockGitCredentialsInterface_Update_Call) Run(run func(ctx context.Context, request workspace.UpdateCredentialsRequest)) *MockGitCredentialsInterface_Update_Call
func (*MockGitCredentialsInterface_Update_Call) RunAndReturn ¶
func (_c *MockGitCredentialsInterface_Update_Call) RunAndReturn(run func(context.Context, workspace.UpdateCredentialsRequest) error) *MockGitCredentialsInterface_Update_Call
type MockReposInterface ¶
MockReposInterface is an autogenerated mock type for the ReposInterface type
func NewMockReposInterface ¶
func NewMockReposInterface(t interface { mock.TestingT Cleanup(func()) }) *MockReposInterface
NewMockReposInterface creates a new instance of MockReposInterface. 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 (*MockReposInterface) Create ¶
func (_m *MockReposInterface) Create(ctx context.Context, request workspace.CreateRepoRequest) (*workspace.CreateRepoResponse, error)
Create provides a mock function with given fields: ctx, request
func (*MockReposInterface) Delete ¶
func (_m *MockReposInterface) Delete(ctx context.Context, request workspace.DeleteRepoRequest) error
Delete provides a mock function with given fields: ctx, request
func (*MockReposInterface) DeleteByRepoId ¶
func (_m *MockReposInterface) DeleteByRepoId(ctx context.Context, repoId int64) error
DeleteByRepoId provides a mock function with given fields: ctx, repoId
func (*MockReposInterface) EXPECT ¶
func (_m *MockReposInterface) EXPECT() *MockReposInterface_Expecter
func (*MockReposInterface) Get ¶
func (_m *MockReposInterface) Get(ctx context.Context, request workspace.GetRepoRequest) (*workspace.GetRepoResponse, error)
Get provides a mock function with given fields: ctx, request
func (*MockReposInterface) GetByPath ¶
func (_m *MockReposInterface) GetByPath(ctx context.Context, name string) (*workspace.RepoInfo, error)
GetByPath provides a mock function with given fields: ctx, name
func (*MockReposInterface) GetByRepoId ¶
func (_m *MockReposInterface) GetByRepoId(ctx context.Context, repoId int64) (*workspace.GetRepoResponse, error)
GetByRepoId provides a mock function with given fields: ctx, repoId
func (*MockReposInterface) GetPermissionLevels ¶
func (_m *MockReposInterface) GetPermissionLevels(ctx context.Context, request workspace.GetRepoPermissionLevelsRequest) (*workspace.GetRepoPermissionLevelsResponse, error)
GetPermissionLevels provides a mock function with given fields: ctx, request
func (*MockReposInterface) GetPermissionLevelsByRepoId ¶
func (_m *MockReposInterface) GetPermissionLevelsByRepoId(ctx context.Context, repoId string) (*workspace.GetRepoPermissionLevelsResponse, error)
GetPermissionLevelsByRepoId provides a mock function with given fields: ctx, repoId
func (*MockReposInterface) GetPermissions ¶
func (_m *MockReposInterface) GetPermissions(ctx context.Context, request workspace.GetRepoPermissionsRequest) (*workspace.RepoPermissions, error)
GetPermissions provides a mock function with given fields: ctx, request
func (*MockReposInterface) GetPermissionsByRepoId ¶
func (_m *MockReposInterface) GetPermissionsByRepoId(ctx context.Context, repoId string) (*workspace.RepoPermissions, error)
GetPermissionsByRepoId provides a mock function with given fields: ctx, repoId
func (*MockReposInterface) List ¶
func (_m *MockReposInterface) List(ctx context.Context, request workspace.ListReposRequest) listing.Iterator[workspace.RepoInfo]
List provides a mock function with given fields: ctx, request
func (*MockReposInterface) ListAll ¶
func (_m *MockReposInterface) ListAll(ctx context.Context, request workspace.ListReposRequest) ([]workspace.RepoInfo, error)
ListAll provides a mock function with given fields: ctx, request
func (*MockReposInterface) RepoInfoPathToIdMap ¶
func (_m *MockReposInterface) RepoInfoPathToIdMap(ctx context.Context, request workspace.ListReposRequest) (map[string]int64, error)
RepoInfoPathToIdMap provides a mock function with given fields: ctx, request
func (*MockReposInterface) SetPermissions ¶
func (_m *MockReposInterface) SetPermissions(ctx context.Context, request workspace.RepoPermissionsRequest) (*workspace.RepoPermissions, error)
SetPermissions provides a mock function with given fields: ctx, request
func (*MockReposInterface) Update ¶
func (_m *MockReposInterface) Update(ctx context.Context, request workspace.UpdateRepoRequest) error
Update provides a mock function with given fields: ctx, request
func (*MockReposInterface) UpdatePermissions ¶
func (_m *MockReposInterface) UpdatePermissions(ctx context.Context, request workspace.RepoPermissionsRequest) (*workspace.RepoPermissions, error)
UpdatePermissions provides a mock function with given fields: ctx, request
type MockReposInterface_Create_Call ¶
MockReposInterface_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockReposInterface_Create_Call) Return ¶
func (_c *MockReposInterface_Create_Call) Return(_a0 *workspace.CreateRepoResponse, _a1 error) *MockReposInterface_Create_Call
func (*MockReposInterface_Create_Call) Run ¶
func (_c *MockReposInterface_Create_Call) Run(run func(ctx context.Context, request workspace.CreateRepoRequest)) *MockReposInterface_Create_Call
func (*MockReposInterface_Create_Call) RunAndReturn ¶
func (_c *MockReposInterface_Create_Call) RunAndReturn(run func(context.Context, workspace.CreateRepoRequest) (*workspace.CreateRepoResponse, error)) *MockReposInterface_Create_Call
type MockReposInterface_DeleteByRepoId_Call ¶
MockReposInterface_DeleteByRepoId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByRepoId'
func (*MockReposInterface_DeleteByRepoId_Call) Return ¶
func (_c *MockReposInterface_DeleteByRepoId_Call) Return(_a0 error) *MockReposInterface_DeleteByRepoId_Call
func (*MockReposInterface_DeleteByRepoId_Call) Run ¶
func (_c *MockReposInterface_DeleteByRepoId_Call) Run(run func(ctx context.Context, repoId int64)) *MockReposInterface_DeleteByRepoId_Call
func (*MockReposInterface_DeleteByRepoId_Call) RunAndReturn ¶
func (_c *MockReposInterface_DeleteByRepoId_Call) RunAndReturn(run func(context.Context, int64) error) *MockReposInterface_DeleteByRepoId_Call
type MockReposInterface_Delete_Call ¶
MockReposInterface_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockReposInterface_Delete_Call) Return ¶
func (_c *MockReposInterface_Delete_Call) Return(_a0 error) *MockReposInterface_Delete_Call
func (*MockReposInterface_Delete_Call) Run ¶
func (_c *MockReposInterface_Delete_Call) Run(run func(ctx context.Context, request workspace.DeleteRepoRequest)) *MockReposInterface_Delete_Call
func (*MockReposInterface_Delete_Call) RunAndReturn ¶
func (_c *MockReposInterface_Delete_Call) RunAndReturn(run func(context.Context, workspace.DeleteRepoRequest) error) *MockReposInterface_Delete_Call
type MockReposInterface_Expecter ¶
type MockReposInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockReposInterface_Expecter) Create ¶
func (_e *MockReposInterface_Expecter) Create(ctx interface{}, request interface{}) *MockReposInterface_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- request workspace.CreateRepoRequest
func (*MockReposInterface_Expecter) Delete ¶
func (_e *MockReposInterface_Expecter) Delete(ctx interface{}, request interface{}) *MockReposInterface_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- request workspace.DeleteRepoRequest
func (*MockReposInterface_Expecter) DeleteByRepoId ¶
func (_e *MockReposInterface_Expecter) DeleteByRepoId(ctx interface{}, repoId interface{}) *MockReposInterface_DeleteByRepoId_Call
DeleteByRepoId is a helper method to define mock.On call
- ctx context.Context
- repoId int64
func (*MockReposInterface_Expecter) Get ¶
func (_e *MockReposInterface_Expecter) Get(ctx interface{}, request interface{}) *MockReposInterface_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- request workspace.GetRepoRequest
func (*MockReposInterface_Expecter) GetByPath ¶
func (_e *MockReposInterface_Expecter) GetByPath(ctx interface{}, name interface{}) *MockReposInterface_GetByPath_Call
GetByPath is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockReposInterface_Expecter) GetByRepoId ¶
func (_e *MockReposInterface_Expecter) GetByRepoId(ctx interface{}, repoId interface{}) *MockReposInterface_GetByRepoId_Call
GetByRepoId is a helper method to define mock.On call
- ctx context.Context
- repoId int64
func (*MockReposInterface_Expecter) GetPermissionLevels ¶
func (_e *MockReposInterface_Expecter) GetPermissionLevels(ctx interface{}, request interface{}) *MockReposInterface_GetPermissionLevels_Call
GetPermissionLevels is a helper method to define mock.On call
- ctx context.Context
- request workspace.GetRepoPermissionLevelsRequest
func (*MockReposInterface_Expecter) GetPermissionLevelsByRepoId ¶
func (_e *MockReposInterface_Expecter) GetPermissionLevelsByRepoId(ctx interface{}, repoId interface{}) *MockReposInterface_GetPermissionLevelsByRepoId_Call
GetPermissionLevelsByRepoId is a helper method to define mock.On call
- ctx context.Context
- repoId string
func (*MockReposInterface_Expecter) GetPermissions ¶
func (_e *MockReposInterface_Expecter) GetPermissions(ctx interface{}, request interface{}) *MockReposInterface_GetPermissions_Call
GetPermissions is a helper method to define mock.On call
- ctx context.Context
- request workspace.GetRepoPermissionsRequest
func (*MockReposInterface_Expecter) GetPermissionsByRepoId ¶
func (_e *MockReposInterface_Expecter) GetPermissionsByRepoId(ctx interface{}, repoId interface{}) *MockReposInterface_GetPermissionsByRepoId_Call
GetPermissionsByRepoId is a helper method to define mock.On call
- ctx context.Context
- repoId string
func (*MockReposInterface_Expecter) List ¶
func (_e *MockReposInterface_Expecter) List(ctx interface{}, request interface{}) *MockReposInterface_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- request workspace.ListReposRequest
func (*MockReposInterface_Expecter) ListAll ¶
func (_e *MockReposInterface_Expecter) ListAll(ctx interface{}, request interface{}) *MockReposInterface_ListAll_Call
ListAll is a helper method to define mock.On call
- ctx context.Context
- request workspace.ListReposRequest
func (*MockReposInterface_Expecter) RepoInfoPathToIdMap ¶
func (_e *MockReposInterface_Expecter) RepoInfoPathToIdMap(ctx interface{}, request interface{}) *MockReposInterface_RepoInfoPathToIdMap_Call
RepoInfoPathToIdMap is a helper method to define mock.On call
- ctx context.Context
- request workspace.ListReposRequest
func (*MockReposInterface_Expecter) SetPermissions ¶
func (_e *MockReposInterface_Expecter) SetPermissions(ctx interface{}, request interface{}) *MockReposInterface_SetPermissions_Call
SetPermissions is a helper method to define mock.On call
- ctx context.Context
- request workspace.RepoPermissionsRequest
func (*MockReposInterface_Expecter) Update ¶
func (_e *MockReposInterface_Expecter) Update(ctx interface{}, request interface{}) *MockReposInterface_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- request workspace.UpdateRepoRequest
func (*MockReposInterface_Expecter) UpdatePermissions ¶
func (_e *MockReposInterface_Expecter) UpdatePermissions(ctx interface{}, request interface{}) *MockReposInterface_UpdatePermissions_Call
UpdatePermissions is a helper method to define mock.On call
- ctx context.Context
- request workspace.RepoPermissionsRequest
type MockReposInterface_GetByPath_Call ¶
MockReposInterface_GetByPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByPath'
func (*MockReposInterface_GetByPath_Call) Return ¶
func (_c *MockReposInterface_GetByPath_Call) Return(_a0 *workspace.RepoInfo, _a1 error) *MockReposInterface_GetByPath_Call
func (*MockReposInterface_GetByPath_Call) Run ¶
func (_c *MockReposInterface_GetByPath_Call) Run(run func(ctx context.Context, name string)) *MockReposInterface_GetByPath_Call
func (*MockReposInterface_GetByPath_Call) RunAndReturn ¶
func (_c *MockReposInterface_GetByPath_Call) RunAndReturn(run func(context.Context, string) (*workspace.RepoInfo, error)) *MockReposInterface_GetByPath_Call
type MockReposInterface_GetByRepoId_Call ¶
MockReposInterface_GetByRepoId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByRepoId'
func (*MockReposInterface_GetByRepoId_Call) Return ¶
func (_c *MockReposInterface_GetByRepoId_Call) Return(_a0 *workspace.GetRepoResponse, _a1 error) *MockReposInterface_GetByRepoId_Call
func (*MockReposInterface_GetByRepoId_Call) Run ¶
func (_c *MockReposInterface_GetByRepoId_Call) Run(run func(ctx context.Context, repoId int64)) *MockReposInterface_GetByRepoId_Call
func (*MockReposInterface_GetByRepoId_Call) RunAndReturn ¶
func (_c *MockReposInterface_GetByRepoId_Call) RunAndReturn(run func(context.Context, int64) (*workspace.GetRepoResponse, error)) *MockReposInterface_GetByRepoId_Call
type MockReposInterface_GetPermissionLevelsByRepoId_Call ¶
MockReposInterface_GetPermissionLevelsByRepoId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermissionLevelsByRepoId'
func (*MockReposInterface_GetPermissionLevelsByRepoId_Call) Run ¶
func (_c *MockReposInterface_GetPermissionLevelsByRepoId_Call) Run(run func(ctx context.Context, repoId string)) *MockReposInterface_GetPermissionLevelsByRepoId_Call
func (*MockReposInterface_GetPermissionLevelsByRepoId_Call) RunAndReturn ¶
func (_c *MockReposInterface_GetPermissionLevelsByRepoId_Call) RunAndReturn(run func(context.Context, string) (*workspace.GetRepoPermissionLevelsResponse, error)) *MockReposInterface_GetPermissionLevelsByRepoId_Call
type MockReposInterface_GetPermissionLevels_Call ¶
MockReposInterface_GetPermissionLevels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermissionLevels'
func (*MockReposInterface_GetPermissionLevels_Call) Return ¶
func (_c *MockReposInterface_GetPermissionLevels_Call) Return(_a0 *workspace.GetRepoPermissionLevelsResponse, _a1 error) *MockReposInterface_GetPermissionLevels_Call
func (*MockReposInterface_GetPermissionLevels_Call) Run ¶
func (_c *MockReposInterface_GetPermissionLevels_Call) Run(run func(ctx context.Context, request workspace.GetRepoPermissionLevelsRequest)) *MockReposInterface_GetPermissionLevels_Call
func (*MockReposInterface_GetPermissionLevels_Call) RunAndReturn ¶
func (_c *MockReposInterface_GetPermissionLevels_Call) RunAndReturn(run func(context.Context, workspace.GetRepoPermissionLevelsRequest) (*workspace.GetRepoPermissionLevelsResponse, error)) *MockReposInterface_GetPermissionLevels_Call
type MockReposInterface_GetPermissionsByRepoId_Call ¶
MockReposInterface_GetPermissionsByRepoId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermissionsByRepoId'
func (*MockReposInterface_GetPermissionsByRepoId_Call) Return ¶
func (_c *MockReposInterface_GetPermissionsByRepoId_Call) Return(_a0 *workspace.RepoPermissions, _a1 error) *MockReposInterface_GetPermissionsByRepoId_Call
func (*MockReposInterface_GetPermissionsByRepoId_Call) Run ¶
func (_c *MockReposInterface_GetPermissionsByRepoId_Call) Run(run func(ctx context.Context, repoId string)) *MockReposInterface_GetPermissionsByRepoId_Call
func (*MockReposInterface_GetPermissionsByRepoId_Call) RunAndReturn ¶
func (_c *MockReposInterface_GetPermissionsByRepoId_Call) RunAndReturn(run func(context.Context, string) (*workspace.RepoPermissions, error)) *MockReposInterface_GetPermissionsByRepoId_Call
type MockReposInterface_GetPermissions_Call ¶
MockReposInterface_GetPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermissions'
func (*MockReposInterface_GetPermissions_Call) Return ¶
func (_c *MockReposInterface_GetPermissions_Call) Return(_a0 *workspace.RepoPermissions, _a1 error) *MockReposInterface_GetPermissions_Call
func (*MockReposInterface_GetPermissions_Call) Run ¶
func (_c *MockReposInterface_GetPermissions_Call) Run(run func(ctx context.Context, request workspace.GetRepoPermissionsRequest)) *MockReposInterface_GetPermissions_Call
func (*MockReposInterface_GetPermissions_Call) RunAndReturn ¶
func (_c *MockReposInterface_GetPermissions_Call) RunAndReturn(run func(context.Context, workspace.GetRepoPermissionsRequest) (*workspace.RepoPermissions, error)) *MockReposInterface_GetPermissions_Call
type MockReposInterface_Get_Call ¶
MockReposInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockReposInterface_Get_Call) Return ¶
func (_c *MockReposInterface_Get_Call) Return(_a0 *workspace.GetRepoResponse, _a1 error) *MockReposInterface_Get_Call
func (*MockReposInterface_Get_Call) Run ¶
func (_c *MockReposInterface_Get_Call) Run(run func(ctx context.Context, request workspace.GetRepoRequest)) *MockReposInterface_Get_Call
func (*MockReposInterface_Get_Call) RunAndReturn ¶
func (_c *MockReposInterface_Get_Call) RunAndReturn(run func(context.Context, workspace.GetRepoRequest) (*workspace.GetRepoResponse, error)) *MockReposInterface_Get_Call
type MockReposInterface_ListAll_Call ¶
MockReposInterface_ListAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAll'
func (*MockReposInterface_ListAll_Call) Return ¶
func (_c *MockReposInterface_ListAll_Call) Return(_a0 []workspace.RepoInfo, _a1 error) *MockReposInterface_ListAll_Call
func (*MockReposInterface_ListAll_Call) Run ¶
func (_c *MockReposInterface_ListAll_Call) Run(run func(ctx context.Context, request workspace.ListReposRequest)) *MockReposInterface_ListAll_Call
func (*MockReposInterface_ListAll_Call) RunAndReturn ¶
func (_c *MockReposInterface_ListAll_Call) RunAndReturn(run func(context.Context, workspace.ListReposRequest) ([]workspace.RepoInfo, error)) *MockReposInterface_ListAll_Call
type MockReposInterface_List_Call ¶
MockReposInterface_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockReposInterface_List_Call) Return ¶
func (_c *MockReposInterface_List_Call) Return(_a0 listing.Iterator[workspace.RepoInfo]) *MockReposInterface_List_Call
func (*MockReposInterface_List_Call) Run ¶
func (_c *MockReposInterface_List_Call) Run(run func(ctx context.Context, request workspace.ListReposRequest)) *MockReposInterface_List_Call
func (*MockReposInterface_List_Call) RunAndReturn ¶
func (_c *MockReposInterface_List_Call) RunAndReturn(run func(context.Context, workspace.ListReposRequest) listing.Iterator[workspace.RepoInfo]) *MockReposInterface_List_Call
type MockReposInterface_RepoInfoPathToIdMap_Call ¶
MockReposInterface_RepoInfoPathToIdMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RepoInfoPathToIdMap'
func (*MockReposInterface_RepoInfoPathToIdMap_Call) Return ¶
func (_c *MockReposInterface_RepoInfoPathToIdMap_Call) Return(_a0 map[string]int64, _a1 error) *MockReposInterface_RepoInfoPathToIdMap_Call
func (*MockReposInterface_RepoInfoPathToIdMap_Call) Run ¶
func (_c *MockReposInterface_RepoInfoPathToIdMap_Call) Run(run func(ctx context.Context, request workspace.ListReposRequest)) *MockReposInterface_RepoInfoPathToIdMap_Call
func (*MockReposInterface_RepoInfoPathToIdMap_Call) RunAndReturn ¶
func (_c *MockReposInterface_RepoInfoPathToIdMap_Call) RunAndReturn(run func(context.Context, workspace.ListReposRequest) (map[string]int64, error)) *MockReposInterface_RepoInfoPathToIdMap_Call
type MockReposInterface_SetPermissions_Call ¶
MockReposInterface_SetPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPermissions'
func (*MockReposInterface_SetPermissions_Call) Return ¶
func (_c *MockReposInterface_SetPermissions_Call) Return(_a0 *workspace.RepoPermissions, _a1 error) *MockReposInterface_SetPermissions_Call
func (*MockReposInterface_SetPermissions_Call) Run ¶
func (_c *MockReposInterface_SetPermissions_Call) Run(run func(ctx context.Context, request workspace.RepoPermissionsRequest)) *MockReposInterface_SetPermissions_Call
func (*MockReposInterface_SetPermissions_Call) RunAndReturn ¶
func (_c *MockReposInterface_SetPermissions_Call) RunAndReturn(run func(context.Context, workspace.RepoPermissionsRequest) (*workspace.RepoPermissions, error)) *MockReposInterface_SetPermissions_Call
type MockReposInterface_UpdatePermissions_Call ¶
MockReposInterface_UpdatePermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePermissions'
func (*MockReposInterface_UpdatePermissions_Call) Return ¶
func (_c *MockReposInterface_UpdatePermissions_Call) Return(_a0 *workspace.RepoPermissions, _a1 error) *MockReposInterface_UpdatePermissions_Call
func (*MockReposInterface_UpdatePermissions_Call) Run ¶
func (_c *MockReposInterface_UpdatePermissions_Call) Run(run func(ctx context.Context, request workspace.RepoPermissionsRequest)) *MockReposInterface_UpdatePermissions_Call
func (*MockReposInterface_UpdatePermissions_Call) RunAndReturn ¶
func (_c *MockReposInterface_UpdatePermissions_Call) RunAndReturn(run func(context.Context, workspace.RepoPermissionsRequest) (*workspace.RepoPermissions, error)) *MockReposInterface_UpdatePermissions_Call
type MockReposInterface_Update_Call ¶
MockReposInterface_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockReposInterface_Update_Call) Return ¶
func (_c *MockReposInterface_Update_Call) Return(_a0 error) *MockReposInterface_Update_Call
func (*MockReposInterface_Update_Call) Run ¶
func (_c *MockReposInterface_Update_Call) Run(run func(ctx context.Context, request workspace.UpdateRepoRequest)) *MockReposInterface_Update_Call
func (*MockReposInterface_Update_Call) RunAndReturn ¶
func (_c *MockReposInterface_Update_Call) RunAndReturn(run func(context.Context, workspace.UpdateRepoRequest) error) *MockReposInterface_Update_Call
type MockSecretsInterface ¶
MockSecretsInterface is an autogenerated mock type for the SecretsInterface type
func NewMockSecretsInterface ¶
func NewMockSecretsInterface(t interface { mock.TestingT Cleanup(func()) }) *MockSecretsInterface
NewMockSecretsInterface creates a new instance of MockSecretsInterface. 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 (*MockSecretsInterface) CreateScope ¶
func (_m *MockSecretsInterface) CreateScope(ctx context.Context, request workspace.CreateScope) error
CreateScope provides a mock function with given fields: ctx, request
func (*MockSecretsInterface) DeleteAcl ¶
DeleteAcl provides a mock function with given fields: ctx, request
func (*MockSecretsInterface) DeleteScope ¶
func (_m *MockSecretsInterface) DeleteScope(ctx context.Context, request workspace.DeleteScope) error
DeleteScope provides a mock function with given fields: ctx, request
func (*MockSecretsInterface) DeleteScopeByScope ¶
func (_m *MockSecretsInterface) DeleteScopeByScope(ctx context.Context, scope string) error
DeleteScopeByScope provides a mock function with given fields: ctx, scope
func (*MockSecretsInterface) DeleteSecret ¶
func (_m *MockSecretsInterface) DeleteSecret(ctx context.Context, request workspace.DeleteSecret) error
DeleteSecret provides a mock function with given fields: ctx, request
func (*MockSecretsInterface) EXPECT ¶
func (_m *MockSecretsInterface) EXPECT() *MockSecretsInterface_Expecter
func (*MockSecretsInterface) GetAcl ¶
func (_m *MockSecretsInterface) GetAcl(ctx context.Context, request workspace.GetAclRequest) (*workspace.AclItem, error)
GetAcl provides a mock function with given fields: ctx, request
func (*MockSecretsInterface) GetSecret ¶
func (_m *MockSecretsInterface) GetSecret(ctx context.Context, request workspace.GetSecretRequest) (*workspace.GetSecretResponse, error)
GetSecret provides a mock function with given fields: ctx, request
func (*MockSecretsInterface) ListAcls ¶
func (_m *MockSecretsInterface) ListAcls(ctx context.Context, request workspace.ListAclsRequest) listing.Iterator[workspace.AclItem]
ListAcls provides a mock function with given fields: ctx, request
func (*MockSecretsInterface) ListAclsAll ¶
func (_m *MockSecretsInterface) ListAclsAll(ctx context.Context, request workspace.ListAclsRequest) ([]workspace.AclItem, error)
ListAclsAll provides a mock function with given fields: ctx, request
func (*MockSecretsInterface) ListAclsByScope ¶
func (_m *MockSecretsInterface) ListAclsByScope(ctx context.Context, scope string) (*workspace.ListAclsResponse, error)
ListAclsByScope provides a mock function with given fields: ctx, scope
func (*MockSecretsInterface) ListScopes ¶
func (_m *MockSecretsInterface) ListScopes(ctx context.Context) listing.Iterator[workspace.SecretScope]
ListScopes provides a mock function with given fields: ctx
func (*MockSecretsInterface) ListScopesAll ¶
func (_m *MockSecretsInterface) ListScopesAll(ctx context.Context) ([]workspace.SecretScope, error)
ListScopesAll provides a mock function with given fields: ctx
func (*MockSecretsInterface) ListSecrets ¶
func (_m *MockSecretsInterface) ListSecrets(ctx context.Context, request workspace.ListSecretsRequest) listing.Iterator[workspace.SecretMetadata]
ListSecrets provides a mock function with given fields: ctx, request
func (*MockSecretsInterface) ListSecretsAll ¶
func (_m *MockSecretsInterface) ListSecretsAll(ctx context.Context, request workspace.ListSecretsRequest) ([]workspace.SecretMetadata, error)
ListSecretsAll provides a mock function with given fields: ctx, request
func (*MockSecretsInterface) ListSecretsByScope ¶
func (_m *MockSecretsInterface) ListSecretsByScope(ctx context.Context, scope string) (*workspace.ListSecretsResponse, error)
ListSecretsByScope provides a mock function with given fields: ctx, scope
type MockSecretsInterface_CreateScope_Call ¶
MockSecretsInterface_CreateScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateScope'
func (*MockSecretsInterface_CreateScope_Call) Return ¶
func (_c *MockSecretsInterface_CreateScope_Call) Return(_a0 error) *MockSecretsInterface_CreateScope_Call
func (*MockSecretsInterface_CreateScope_Call) Run ¶
func (_c *MockSecretsInterface_CreateScope_Call) Run(run func(ctx context.Context, request workspace.CreateScope)) *MockSecretsInterface_CreateScope_Call
func (*MockSecretsInterface_CreateScope_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_CreateScope_Call) RunAndReturn(run func(context.Context, workspace.CreateScope) error) *MockSecretsInterface_CreateScope_Call
type MockSecretsInterface_DeleteAcl_Call ¶
MockSecretsInterface_DeleteAcl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAcl'
func (*MockSecretsInterface_DeleteAcl_Call) Return ¶
func (_c *MockSecretsInterface_DeleteAcl_Call) Return(_a0 error) *MockSecretsInterface_DeleteAcl_Call
func (*MockSecretsInterface_DeleteAcl_Call) Run ¶
func (_c *MockSecretsInterface_DeleteAcl_Call) Run(run func(ctx context.Context, request workspace.DeleteAcl)) *MockSecretsInterface_DeleteAcl_Call
func (*MockSecretsInterface_DeleteAcl_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_DeleteAcl_Call) RunAndReturn(run func(context.Context, workspace.DeleteAcl) error) *MockSecretsInterface_DeleteAcl_Call
type MockSecretsInterface_DeleteScopeByScope_Call ¶
MockSecretsInterface_DeleteScopeByScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteScopeByScope'
func (*MockSecretsInterface_DeleteScopeByScope_Call) Return ¶
func (_c *MockSecretsInterface_DeleteScopeByScope_Call) Return(_a0 error) *MockSecretsInterface_DeleteScopeByScope_Call
func (*MockSecretsInterface_DeleteScopeByScope_Call) Run ¶
func (_c *MockSecretsInterface_DeleteScopeByScope_Call) Run(run func(ctx context.Context, scope string)) *MockSecretsInterface_DeleteScopeByScope_Call
func (*MockSecretsInterface_DeleteScopeByScope_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_DeleteScopeByScope_Call) RunAndReturn(run func(context.Context, string) error) *MockSecretsInterface_DeleteScopeByScope_Call
type MockSecretsInterface_DeleteScope_Call ¶
MockSecretsInterface_DeleteScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteScope'
func (*MockSecretsInterface_DeleteScope_Call) Return ¶
func (_c *MockSecretsInterface_DeleteScope_Call) Return(_a0 error) *MockSecretsInterface_DeleteScope_Call
func (*MockSecretsInterface_DeleteScope_Call) Run ¶
func (_c *MockSecretsInterface_DeleteScope_Call) Run(run func(ctx context.Context, request workspace.DeleteScope)) *MockSecretsInterface_DeleteScope_Call
func (*MockSecretsInterface_DeleteScope_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_DeleteScope_Call) RunAndReturn(run func(context.Context, workspace.DeleteScope) error) *MockSecretsInterface_DeleteScope_Call
type MockSecretsInterface_DeleteSecret_Call ¶
MockSecretsInterface_DeleteSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSecret'
func (*MockSecretsInterface_DeleteSecret_Call) Return ¶
func (_c *MockSecretsInterface_DeleteSecret_Call) Return(_a0 error) *MockSecretsInterface_DeleteSecret_Call
func (*MockSecretsInterface_DeleteSecret_Call) Run ¶
func (_c *MockSecretsInterface_DeleteSecret_Call) Run(run func(ctx context.Context, request workspace.DeleteSecret)) *MockSecretsInterface_DeleteSecret_Call
func (*MockSecretsInterface_DeleteSecret_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_DeleteSecret_Call) RunAndReturn(run func(context.Context, workspace.DeleteSecret) error) *MockSecretsInterface_DeleteSecret_Call
type MockSecretsInterface_Expecter ¶
type MockSecretsInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSecretsInterface_Expecter) CreateScope ¶
func (_e *MockSecretsInterface_Expecter) CreateScope(ctx interface{}, request interface{}) *MockSecretsInterface_CreateScope_Call
CreateScope is a helper method to define mock.On call
- ctx context.Context
- request workspace.CreateScope
func (*MockSecretsInterface_Expecter) DeleteAcl ¶
func (_e *MockSecretsInterface_Expecter) DeleteAcl(ctx interface{}, request interface{}) *MockSecretsInterface_DeleteAcl_Call
DeleteAcl is a helper method to define mock.On call
- ctx context.Context
- request workspace.DeleteAcl
func (*MockSecretsInterface_Expecter) DeleteScope ¶
func (_e *MockSecretsInterface_Expecter) DeleteScope(ctx interface{}, request interface{}) *MockSecretsInterface_DeleteScope_Call
DeleteScope is a helper method to define mock.On call
- ctx context.Context
- request workspace.DeleteScope
func (*MockSecretsInterface_Expecter) DeleteScopeByScope ¶
func (_e *MockSecretsInterface_Expecter) DeleteScopeByScope(ctx interface{}, scope interface{}) *MockSecretsInterface_DeleteScopeByScope_Call
DeleteScopeByScope is a helper method to define mock.On call
- ctx context.Context
- scope string
func (*MockSecretsInterface_Expecter) DeleteSecret ¶
func (_e *MockSecretsInterface_Expecter) DeleteSecret(ctx interface{}, request interface{}) *MockSecretsInterface_DeleteSecret_Call
DeleteSecret is a helper method to define mock.On call
- ctx context.Context
- request workspace.DeleteSecret
func (*MockSecretsInterface_Expecter) GetAcl ¶
func (_e *MockSecretsInterface_Expecter) GetAcl(ctx interface{}, request interface{}) *MockSecretsInterface_GetAcl_Call
GetAcl is a helper method to define mock.On call
- ctx context.Context
- request workspace.GetAclRequest
func (*MockSecretsInterface_Expecter) GetSecret ¶
func (_e *MockSecretsInterface_Expecter) GetSecret(ctx interface{}, request interface{}) *MockSecretsInterface_GetSecret_Call
GetSecret is a helper method to define mock.On call
- ctx context.Context
- request workspace.GetSecretRequest
func (*MockSecretsInterface_Expecter) ListAcls ¶
func (_e *MockSecretsInterface_Expecter) ListAcls(ctx interface{}, request interface{}) *MockSecretsInterface_ListAcls_Call
ListAcls is a helper method to define mock.On call
- ctx context.Context
- request workspace.ListAclsRequest
func (*MockSecretsInterface_Expecter) ListAclsAll ¶
func (_e *MockSecretsInterface_Expecter) ListAclsAll(ctx interface{}, request interface{}) *MockSecretsInterface_ListAclsAll_Call
ListAclsAll is a helper method to define mock.On call
- ctx context.Context
- request workspace.ListAclsRequest
func (*MockSecretsInterface_Expecter) ListAclsByScope ¶
func (_e *MockSecretsInterface_Expecter) ListAclsByScope(ctx interface{}, scope interface{}) *MockSecretsInterface_ListAclsByScope_Call
ListAclsByScope is a helper method to define mock.On call
- ctx context.Context
- scope string
func (*MockSecretsInterface_Expecter) ListScopes ¶
func (_e *MockSecretsInterface_Expecter) ListScopes(ctx interface{}) *MockSecretsInterface_ListScopes_Call
ListScopes is a helper method to define mock.On call
- ctx context.Context
func (*MockSecretsInterface_Expecter) ListScopesAll ¶
func (_e *MockSecretsInterface_Expecter) ListScopesAll(ctx interface{}) *MockSecretsInterface_ListScopesAll_Call
ListScopesAll is a helper method to define mock.On call
- ctx context.Context
func (*MockSecretsInterface_Expecter) ListSecrets ¶
func (_e *MockSecretsInterface_Expecter) ListSecrets(ctx interface{}, request interface{}) *MockSecretsInterface_ListSecrets_Call
ListSecrets is a helper method to define mock.On call
- ctx context.Context
- request workspace.ListSecretsRequest
func (*MockSecretsInterface_Expecter) ListSecretsAll ¶
func (_e *MockSecretsInterface_Expecter) ListSecretsAll(ctx interface{}, request interface{}) *MockSecretsInterface_ListSecretsAll_Call
ListSecretsAll is a helper method to define mock.On call
- ctx context.Context
- request workspace.ListSecretsRequest
func (*MockSecretsInterface_Expecter) ListSecretsByScope ¶
func (_e *MockSecretsInterface_Expecter) ListSecretsByScope(ctx interface{}, scope interface{}) *MockSecretsInterface_ListSecretsByScope_Call
ListSecretsByScope is a helper method to define mock.On call
- ctx context.Context
- scope string
func (*MockSecretsInterface_Expecter) PutAcl ¶
func (_e *MockSecretsInterface_Expecter) PutAcl(ctx interface{}, request interface{}) *MockSecretsInterface_PutAcl_Call
PutAcl is a helper method to define mock.On call
- ctx context.Context
- request workspace.PutAcl
func (*MockSecretsInterface_Expecter) PutSecret ¶
func (_e *MockSecretsInterface_Expecter) PutSecret(ctx interface{}, request interface{}) *MockSecretsInterface_PutSecret_Call
PutSecret is a helper method to define mock.On call
- ctx context.Context
- request workspace.PutSecret
type MockSecretsInterface_GetAcl_Call ¶
MockSecretsInterface_GetAcl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAcl'
func (*MockSecretsInterface_GetAcl_Call) Return ¶
func (_c *MockSecretsInterface_GetAcl_Call) Return(_a0 *workspace.AclItem, _a1 error) *MockSecretsInterface_GetAcl_Call
func (*MockSecretsInterface_GetAcl_Call) Run ¶
func (_c *MockSecretsInterface_GetAcl_Call) Run(run func(ctx context.Context, request workspace.GetAclRequest)) *MockSecretsInterface_GetAcl_Call
func (*MockSecretsInterface_GetAcl_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_GetAcl_Call) RunAndReturn(run func(context.Context, workspace.GetAclRequest) (*workspace.AclItem, error)) *MockSecretsInterface_GetAcl_Call
type MockSecretsInterface_GetSecret_Call ¶
MockSecretsInterface_GetSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSecret'
func (*MockSecretsInterface_GetSecret_Call) Return ¶
func (_c *MockSecretsInterface_GetSecret_Call) Return(_a0 *workspace.GetSecretResponse, _a1 error) *MockSecretsInterface_GetSecret_Call
func (*MockSecretsInterface_GetSecret_Call) Run ¶
func (_c *MockSecretsInterface_GetSecret_Call) Run(run func(ctx context.Context, request workspace.GetSecretRequest)) *MockSecretsInterface_GetSecret_Call
func (*MockSecretsInterface_GetSecret_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_GetSecret_Call) RunAndReturn(run func(context.Context, workspace.GetSecretRequest) (*workspace.GetSecretResponse, error)) *MockSecretsInterface_GetSecret_Call
type MockSecretsInterface_ListAclsAll_Call ¶
MockSecretsInterface_ListAclsAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAclsAll'
func (*MockSecretsInterface_ListAclsAll_Call) Return ¶
func (_c *MockSecretsInterface_ListAclsAll_Call) Return(_a0 []workspace.AclItem, _a1 error) *MockSecretsInterface_ListAclsAll_Call
func (*MockSecretsInterface_ListAclsAll_Call) Run ¶
func (_c *MockSecretsInterface_ListAclsAll_Call) Run(run func(ctx context.Context, request workspace.ListAclsRequest)) *MockSecretsInterface_ListAclsAll_Call
func (*MockSecretsInterface_ListAclsAll_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_ListAclsAll_Call) RunAndReturn(run func(context.Context, workspace.ListAclsRequest) ([]workspace.AclItem, error)) *MockSecretsInterface_ListAclsAll_Call
type MockSecretsInterface_ListAclsByScope_Call ¶
MockSecretsInterface_ListAclsByScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAclsByScope'
func (*MockSecretsInterface_ListAclsByScope_Call) Return ¶
func (_c *MockSecretsInterface_ListAclsByScope_Call) Return(_a0 *workspace.ListAclsResponse, _a1 error) *MockSecretsInterface_ListAclsByScope_Call
func (*MockSecretsInterface_ListAclsByScope_Call) Run ¶
func (_c *MockSecretsInterface_ListAclsByScope_Call) Run(run func(ctx context.Context, scope string)) *MockSecretsInterface_ListAclsByScope_Call
func (*MockSecretsInterface_ListAclsByScope_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_ListAclsByScope_Call) RunAndReturn(run func(context.Context, string) (*workspace.ListAclsResponse, error)) *MockSecretsInterface_ListAclsByScope_Call
type MockSecretsInterface_ListAcls_Call ¶
MockSecretsInterface_ListAcls_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAcls'
func (*MockSecretsInterface_ListAcls_Call) Return ¶
func (_c *MockSecretsInterface_ListAcls_Call) Return(_a0 listing.Iterator[workspace.AclItem]) *MockSecretsInterface_ListAcls_Call
func (*MockSecretsInterface_ListAcls_Call) Run ¶
func (_c *MockSecretsInterface_ListAcls_Call) Run(run func(ctx context.Context, request workspace.ListAclsRequest)) *MockSecretsInterface_ListAcls_Call
func (*MockSecretsInterface_ListAcls_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_ListAcls_Call) RunAndReturn(run func(context.Context, workspace.ListAclsRequest) listing.Iterator[workspace.AclItem]) *MockSecretsInterface_ListAcls_Call
type MockSecretsInterface_ListScopesAll_Call ¶
MockSecretsInterface_ListScopesAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListScopesAll'
func (*MockSecretsInterface_ListScopesAll_Call) Return ¶
func (_c *MockSecretsInterface_ListScopesAll_Call) Return(_a0 []workspace.SecretScope, _a1 error) *MockSecretsInterface_ListScopesAll_Call
func (*MockSecretsInterface_ListScopesAll_Call) Run ¶
func (_c *MockSecretsInterface_ListScopesAll_Call) Run(run func(ctx context.Context)) *MockSecretsInterface_ListScopesAll_Call
func (*MockSecretsInterface_ListScopesAll_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_ListScopesAll_Call) RunAndReturn(run func(context.Context) ([]workspace.SecretScope, error)) *MockSecretsInterface_ListScopesAll_Call
type MockSecretsInterface_ListScopes_Call ¶
MockSecretsInterface_ListScopes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListScopes'
func (*MockSecretsInterface_ListScopes_Call) Return ¶
func (_c *MockSecretsInterface_ListScopes_Call) Return(_a0 listing.Iterator[workspace.SecretScope]) *MockSecretsInterface_ListScopes_Call
func (*MockSecretsInterface_ListScopes_Call) Run ¶
func (_c *MockSecretsInterface_ListScopes_Call) Run(run func(ctx context.Context)) *MockSecretsInterface_ListScopes_Call
func (*MockSecretsInterface_ListScopes_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_ListScopes_Call) RunAndReturn(run func(context.Context) listing.Iterator[workspace.SecretScope]) *MockSecretsInterface_ListScopes_Call
type MockSecretsInterface_ListSecretsAll_Call ¶
MockSecretsInterface_ListSecretsAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSecretsAll'
func (*MockSecretsInterface_ListSecretsAll_Call) Return ¶
func (_c *MockSecretsInterface_ListSecretsAll_Call) Return(_a0 []workspace.SecretMetadata, _a1 error) *MockSecretsInterface_ListSecretsAll_Call
func (*MockSecretsInterface_ListSecretsAll_Call) Run ¶
func (_c *MockSecretsInterface_ListSecretsAll_Call) Run(run func(ctx context.Context, request workspace.ListSecretsRequest)) *MockSecretsInterface_ListSecretsAll_Call
func (*MockSecretsInterface_ListSecretsAll_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_ListSecretsAll_Call) RunAndReturn(run func(context.Context, workspace.ListSecretsRequest) ([]workspace.SecretMetadata, error)) *MockSecretsInterface_ListSecretsAll_Call
type MockSecretsInterface_ListSecretsByScope_Call ¶
MockSecretsInterface_ListSecretsByScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSecretsByScope'
func (*MockSecretsInterface_ListSecretsByScope_Call) Return ¶
func (_c *MockSecretsInterface_ListSecretsByScope_Call) Return(_a0 *workspace.ListSecretsResponse, _a1 error) *MockSecretsInterface_ListSecretsByScope_Call
func (*MockSecretsInterface_ListSecretsByScope_Call) Run ¶
func (_c *MockSecretsInterface_ListSecretsByScope_Call) Run(run func(ctx context.Context, scope string)) *MockSecretsInterface_ListSecretsByScope_Call
func (*MockSecretsInterface_ListSecretsByScope_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_ListSecretsByScope_Call) RunAndReturn(run func(context.Context, string) (*workspace.ListSecretsResponse, error)) *MockSecretsInterface_ListSecretsByScope_Call
type MockSecretsInterface_ListSecrets_Call ¶
MockSecretsInterface_ListSecrets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSecrets'
func (*MockSecretsInterface_ListSecrets_Call) Return ¶
func (_c *MockSecretsInterface_ListSecrets_Call) Return(_a0 listing.Iterator[workspace.SecretMetadata]) *MockSecretsInterface_ListSecrets_Call
func (*MockSecretsInterface_ListSecrets_Call) Run ¶
func (_c *MockSecretsInterface_ListSecrets_Call) Run(run func(ctx context.Context, request workspace.ListSecretsRequest)) *MockSecretsInterface_ListSecrets_Call
func (*MockSecretsInterface_ListSecrets_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_ListSecrets_Call) RunAndReturn(run func(context.Context, workspace.ListSecretsRequest) listing.Iterator[workspace.SecretMetadata]) *MockSecretsInterface_ListSecrets_Call
type MockSecretsInterface_PutAcl_Call ¶
MockSecretsInterface_PutAcl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutAcl'
func (*MockSecretsInterface_PutAcl_Call) Return ¶
func (_c *MockSecretsInterface_PutAcl_Call) Return(_a0 error) *MockSecretsInterface_PutAcl_Call
func (*MockSecretsInterface_PutAcl_Call) Run ¶
func (_c *MockSecretsInterface_PutAcl_Call) Run(run func(ctx context.Context, request workspace.PutAcl)) *MockSecretsInterface_PutAcl_Call
func (*MockSecretsInterface_PutAcl_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_PutAcl_Call) RunAndReturn(run func(context.Context, workspace.PutAcl) error) *MockSecretsInterface_PutAcl_Call
type MockSecretsInterface_PutSecret_Call ¶
MockSecretsInterface_PutSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutSecret'
func (*MockSecretsInterface_PutSecret_Call) Return ¶
func (_c *MockSecretsInterface_PutSecret_Call) Return(_a0 error) *MockSecretsInterface_PutSecret_Call
func (*MockSecretsInterface_PutSecret_Call) Run ¶
func (_c *MockSecretsInterface_PutSecret_Call) Run(run func(ctx context.Context, request workspace.PutSecret)) *MockSecretsInterface_PutSecret_Call
func (*MockSecretsInterface_PutSecret_Call) RunAndReturn ¶
func (_c *MockSecretsInterface_PutSecret_Call) RunAndReturn(run func(context.Context, workspace.PutSecret) error) *MockSecretsInterface_PutSecret_Call
type MockWorkspaceInterface ¶
MockWorkspaceInterface is an autogenerated mock type for the WorkspaceInterface type
func NewMockWorkspaceInterface ¶
func NewMockWorkspaceInterface(t interface { mock.TestingT Cleanup(func()) }) *MockWorkspaceInterface
NewMockWorkspaceInterface creates a new instance of MockWorkspaceInterface. 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 (*MockWorkspaceInterface) Delete ¶
Delete provides a mock function with given fields: ctx, request
func (*MockWorkspaceInterface) Download ¶
func (_m *MockWorkspaceInterface) Download(ctx context.Context, path string, opts ...func(map[string]interface{})) (io.ReadCloser, error)
Download provides a mock function with given fields: ctx, path, opts
func (*MockWorkspaceInterface) EXPECT ¶
func (_m *MockWorkspaceInterface) EXPECT() *MockWorkspaceInterface_Expecter
func (*MockWorkspaceInterface) Export ¶
func (_m *MockWorkspaceInterface) Export(ctx context.Context, request workspace.ExportRequest) (*workspace.ExportResponse, error)
Export provides a mock function with given fields: ctx, request
func (*MockWorkspaceInterface) GetByPath ¶
func (_m *MockWorkspaceInterface) GetByPath(ctx context.Context, name string) (*workspace.ObjectInfo, error)
GetByPath provides a mock function with given fields: ctx, name
func (*MockWorkspaceInterface) GetPermissionLevels ¶
func (_m *MockWorkspaceInterface) GetPermissionLevels(ctx context.Context, request workspace.GetWorkspaceObjectPermissionLevelsRequest) (*workspace.GetWorkspaceObjectPermissionLevelsResponse, error)
GetPermissionLevels provides a mock function with given fields: ctx, request
func (*MockWorkspaceInterface) GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId ¶
func (_m *MockWorkspaceInterface) GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId(ctx context.Context, workspaceObjectType string, workspaceObjectId string) (*workspace.GetWorkspaceObjectPermissionLevelsResponse, error)
GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId provides a mock function with given fields: ctx, workspaceObjectType, workspaceObjectId
func (*MockWorkspaceInterface) GetPermissions ¶
func (_m *MockWorkspaceInterface) GetPermissions(ctx context.Context, request workspace.GetWorkspaceObjectPermissionsRequest) (*workspace.WorkspaceObjectPermissions, error)
GetPermissions provides a mock function with given fields: ctx, request
func (*MockWorkspaceInterface) GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId ¶
func (_m *MockWorkspaceInterface) GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId(ctx context.Context, workspaceObjectType string, workspaceObjectId string) (*workspace.WorkspaceObjectPermissions, error)
GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId provides a mock function with given fields: ctx, workspaceObjectType, workspaceObjectId
func (*MockWorkspaceInterface) GetStatus ¶
func (_m *MockWorkspaceInterface) GetStatus(ctx context.Context, request workspace.GetStatusRequest) (*workspace.ObjectInfo, error)
GetStatus provides a mock function with given fields: ctx, request
func (*MockWorkspaceInterface) GetStatusByPath ¶
func (_m *MockWorkspaceInterface) GetStatusByPath(ctx context.Context, path string) (*workspace.ObjectInfo, error)
GetStatusByPath provides a mock function with given fields: ctx, path
func (*MockWorkspaceInterface) Import ¶
Import provides a mock function with given fields: ctx, request
func (*MockWorkspaceInterface) List ¶
func (_m *MockWorkspaceInterface) List(ctx context.Context, request workspace.ListWorkspaceRequest) listing.Iterator[workspace.ObjectInfo]
List provides a mock function with given fields: ctx, request
func (*MockWorkspaceInterface) ListAll ¶
func (_m *MockWorkspaceInterface) ListAll(ctx context.Context, request workspace.ListWorkspaceRequest) ([]workspace.ObjectInfo, error)
ListAll provides a mock function with given fields: ctx, request
func (*MockWorkspaceInterface) Mkdirs ¶
Mkdirs provides a mock function with given fields: ctx, request
func (*MockWorkspaceInterface) MkdirsByPath ¶
func (_m *MockWorkspaceInterface) MkdirsByPath(ctx context.Context, path string) error
MkdirsByPath provides a mock function with given fields: ctx, path
func (*MockWorkspaceInterface) ObjectInfoPathToObjectIdMap ¶
func (_m *MockWorkspaceInterface) ObjectInfoPathToObjectIdMap(ctx context.Context, request workspace.ListWorkspaceRequest) (map[string]int64, error)
ObjectInfoPathToObjectIdMap provides a mock function with given fields: ctx, request
func (*MockWorkspaceInterface) ReadFile ¶
ReadFile provides a mock function with given fields: ctx, name
func (*MockWorkspaceInterface) RecursiveList ¶
func (_m *MockWorkspaceInterface) RecursiveList(ctx context.Context, path string) ([]workspace.ObjectInfo, error)
RecursiveList provides a mock function with given fields: ctx, path
func (*MockWorkspaceInterface) SetPermissions ¶
func (_m *MockWorkspaceInterface) SetPermissions(ctx context.Context, request workspace.WorkspaceObjectPermissionsRequest) (*workspace.WorkspaceObjectPermissions, error)
SetPermissions provides a mock function with given fields: ctx, request
func (*MockWorkspaceInterface) UpdatePermissions ¶
func (_m *MockWorkspaceInterface) UpdatePermissions(ctx context.Context, request workspace.WorkspaceObjectPermissionsRequest) (*workspace.WorkspaceObjectPermissions, error)
UpdatePermissions provides a mock function with given fields: ctx, request
type MockWorkspaceInterface_Delete_Call ¶
MockWorkspaceInterface_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockWorkspaceInterface_Delete_Call) Return ¶
func (_c *MockWorkspaceInterface_Delete_Call) Return(_a0 error) *MockWorkspaceInterface_Delete_Call
func (*MockWorkspaceInterface_Delete_Call) Run ¶
func (_c *MockWorkspaceInterface_Delete_Call) Run(run func(ctx context.Context, request workspace.Delete)) *MockWorkspaceInterface_Delete_Call
func (*MockWorkspaceInterface_Delete_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_Delete_Call) RunAndReturn(run func(context.Context, workspace.Delete) error) *MockWorkspaceInterface_Delete_Call
type MockWorkspaceInterface_Download_Call ¶
MockWorkspaceInterface_Download_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Download'
func (*MockWorkspaceInterface_Download_Call) Return ¶
func (_c *MockWorkspaceInterface_Download_Call) Return(_a0 io.ReadCloser, _a1 error) *MockWorkspaceInterface_Download_Call
func (*MockWorkspaceInterface_Download_Call) Run ¶
func (_c *MockWorkspaceInterface_Download_Call) Run(run func(ctx context.Context, path string, opts ...func(map[string]interface{}))) *MockWorkspaceInterface_Download_Call
func (*MockWorkspaceInterface_Download_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_Download_Call) RunAndReturn(run func(context.Context, string, ...func(map[string]interface{})) (io.ReadCloser, error)) *MockWorkspaceInterface_Download_Call
type MockWorkspaceInterface_Expecter ¶
type MockWorkspaceInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockWorkspaceInterface_Expecter) Delete ¶
func (_e *MockWorkspaceInterface_Expecter) Delete(ctx interface{}, request interface{}) *MockWorkspaceInterface_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- request workspace.Delete
func (*MockWorkspaceInterface_Expecter) Download ¶
func (_e *MockWorkspaceInterface_Expecter) Download(ctx interface{}, path interface{}, opts ...interface{}) *MockWorkspaceInterface_Download_Call
Download is a helper method to define mock.On call
- ctx context.Context
- path string
- opts ...func(map[string]interface{})
func (*MockWorkspaceInterface_Expecter) Export ¶
func (_e *MockWorkspaceInterface_Expecter) Export(ctx interface{}, request interface{}) *MockWorkspaceInterface_Export_Call
Export is a helper method to define mock.On call
- ctx context.Context
- request workspace.ExportRequest
func (*MockWorkspaceInterface_Expecter) GetByPath ¶
func (_e *MockWorkspaceInterface_Expecter) GetByPath(ctx interface{}, name interface{}) *MockWorkspaceInterface_GetByPath_Call
GetByPath is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockWorkspaceInterface_Expecter) GetPermissionLevels ¶
func (_e *MockWorkspaceInterface_Expecter) GetPermissionLevels(ctx interface{}, request interface{}) *MockWorkspaceInterface_GetPermissionLevels_Call
GetPermissionLevels is a helper method to define mock.On call
- ctx context.Context
- request workspace.GetWorkspaceObjectPermissionLevelsRequest
func (*MockWorkspaceInterface_Expecter) GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId ¶
func (_e *MockWorkspaceInterface_Expecter) GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId(ctx interface{}, workspaceObjectType interface{}, workspaceObjectId interface{}) *MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call
GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId is a helper method to define mock.On call
- ctx context.Context
- workspaceObjectType string
- workspaceObjectId string
func (*MockWorkspaceInterface_Expecter) GetPermissions ¶
func (_e *MockWorkspaceInterface_Expecter) GetPermissions(ctx interface{}, request interface{}) *MockWorkspaceInterface_GetPermissions_Call
GetPermissions is a helper method to define mock.On call
- ctx context.Context
- request workspace.GetWorkspaceObjectPermissionsRequest
func (*MockWorkspaceInterface_Expecter) GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId ¶
func (_e *MockWorkspaceInterface_Expecter) GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId(ctx interface{}, workspaceObjectType interface{}, workspaceObjectId interface{}) *MockWorkspaceInterface_GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId_Call
GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId is a helper method to define mock.On call
- ctx context.Context
- workspaceObjectType string
- workspaceObjectId string
func (*MockWorkspaceInterface_Expecter) GetStatus ¶
func (_e *MockWorkspaceInterface_Expecter) GetStatus(ctx interface{}, request interface{}) *MockWorkspaceInterface_GetStatus_Call
GetStatus is a helper method to define mock.On call
- ctx context.Context
- request workspace.GetStatusRequest
func (*MockWorkspaceInterface_Expecter) GetStatusByPath ¶
func (_e *MockWorkspaceInterface_Expecter) GetStatusByPath(ctx interface{}, path interface{}) *MockWorkspaceInterface_GetStatusByPath_Call
GetStatusByPath is a helper method to define mock.On call
- ctx context.Context
- path string
func (*MockWorkspaceInterface_Expecter) Import ¶
func (_e *MockWorkspaceInterface_Expecter) Import(ctx interface{}, request interface{}) *MockWorkspaceInterface_Import_Call
Import is a helper method to define mock.On call
- ctx context.Context
- request workspace.Import
func (*MockWorkspaceInterface_Expecter) List ¶
func (_e *MockWorkspaceInterface_Expecter) List(ctx interface{}, request interface{}) *MockWorkspaceInterface_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- request workspace.ListWorkspaceRequest
func (*MockWorkspaceInterface_Expecter) ListAll ¶
func (_e *MockWorkspaceInterface_Expecter) ListAll(ctx interface{}, request interface{}) *MockWorkspaceInterface_ListAll_Call
ListAll is a helper method to define mock.On call
- ctx context.Context
- request workspace.ListWorkspaceRequest
func (*MockWorkspaceInterface_Expecter) Mkdirs ¶
func (_e *MockWorkspaceInterface_Expecter) Mkdirs(ctx interface{}, request interface{}) *MockWorkspaceInterface_Mkdirs_Call
Mkdirs is a helper method to define mock.On call
- ctx context.Context
- request workspace.Mkdirs
func (*MockWorkspaceInterface_Expecter) MkdirsByPath ¶
func (_e *MockWorkspaceInterface_Expecter) MkdirsByPath(ctx interface{}, path interface{}) *MockWorkspaceInterface_MkdirsByPath_Call
MkdirsByPath is a helper method to define mock.On call
- ctx context.Context
- path string
func (*MockWorkspaceInterface_Expecter) ObjectInfoPathToObjectIdMap ¶
func (_e *MockWorkspaceInterface_Expecter) ObjectInfoPathToObjectIdMap(ctx interface{}, request interface{}) *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call
ObjectInfoPathToObjectIdMap is a helper method to define mock.On call
- ctx context.Context
- request workspace.ListWorkspaceRequest
func (*MockWorkspaceInterface_Expecter) ReadFile ¶
func (_e *MockWorkspaceInterface_Expecter) ReadFile(ctx interface{}, name interface{}) *MockWorkspaceInterface_ReadFile_Call
ReadFile is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockWorkspaceInterface_Expecter) RecursiveList ¶
func (_e *MockWorkspaceInterface_Expecter) RecursiveList(ctx interface{}, path interface{}) *MockWorkspaceInterface_RecursiveList_Call
RecursiveList is a helper method to define mock.On call
- ctx context.Context
- path string
func (*MockWorkspaceInterface_Expecter) SetPermissions ¶
func (_e *MockWorkspaceInterface_Expecter) SetPermissions(ctx interface{}, request interface{}) *MockWorkspaceInterface_SetPermissions_Call
SetPermissions is a helper method to define mock.On call
- ctx context.Context
- request workspace.WorkspaceObjectPermissionsRequest
func (*MockWorkspaceInterface_Expecter) UpdatePermissions ¶
func (_e *MockWorkspaceInterface_Expecter) UpdatePermissions(ctx interface{}, request interface{}) *MockWorkspaceInterface_UpdatePermissions_Call
UpdatePermissions is a helper method to define mock.On call
- ctx context.Context
- request workspace.WorkspaceObjectPermissionsRequest
func (*MockWorkspaceInterface_Expecter) Upload ¶
func (_e *MockWorkspaceInterface_Expecter) Upload(ctx interface{}, path interface{}, r interface{}, opts ...interface{}) *MockWorkspaceInterface_Upload_Call
Upload is a helper method to define mock.On call
- ctx context.Context
- path string
- r io.Reader
- opts ...func(*workspace.Import)
func (*MockWorkspaceInterface_Expecter) WriteFile ¶
func (_e *MockWorkspaceInterface_Expecter) WriteFile(ctx interface{}, name interface{}, data interface{}) *MockWorkspaceInterface_WriteFile_Call
WriteFile is a helper method to define mock.On call
- ctx context.Context
- name string
- data []byte
type MockWorkspaceInterface_Export_Call ¶
MockWorkspaceInterface_Export_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Export'
func (*MockWorkspaceInterface_Export_Call) Return ¶
func (_c *MockWorkspaceInterface_Export_Call) Return(_a0 *workspace.ExportResponse, _a1 error) *MockWorkspaceInterface_Export_Call
func (*MockWorkspaceInterface_Export_Call) Run ¶
func (_c *MockWorkspaceInterface_Export_Call) Run(run func(ctx context.Context, request workspace.ExportRequest)) *MockWorkspaceInterface_Export_Call
func (*MockWorkspaceInterface_Export_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_Export_Call) RunAndReturn(run func(context.Context, workspace.ExportRequest) (*workspace.ExportResponse, error)) *MockWorkspaceInterface_Export_Call
type MockWorkspaceInterface_GetByPath_Call ¶
MockWorkspaceInterface_GetByPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByPath'
func (*MockWorkspaceInterface_GetByPath_Call) Return ¶
func (_c *MockWorkspaceInterface_GetByPath_Call) Return(_a0 *workspace.ObjectInfo, _a1 error) *MockWorkspaceInterface_GetByPath_Call
func (*MockWorkspaceInterface_GetByPath_Call) Run ¶
func (_c *MockWorkspaceInterface_GetByPath_Call) Run(run func(ctx context.Context, name string)) *MockWorkspaceInterface_GetByPath_Call
func (*MockWorkspaceInterface_GetByPath_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_GetByPath_Call) RunAndReturn(run func(context.Context, string) (*workspace.ObjectInfo, error)) *MockWorkspaceInterface_GetByPath_Call
type MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call ¶
type MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call struct {
*mock.Call
}
MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId'
func (*MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) Return ¶
func (*MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) Run ¶
func (_c *MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) Run(run func(ctx context.Context, workspaceObjectType string, workspaceObjectId string)) *MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call
func (*MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) RunAndReturn(run func(context.Context, string, string) (*workspace.GetWorkspaceObjectPermissionLevelsResponse, error)) *MockWorkspaceInterface_GetPermissionLevelsByWorkspaceObjectTypeAndWorkspaceObjectId_Call
type MockWorkspaceInterface_GetPermissionLevels_Call ¶
MockWorkspaceInterface_GetPermissionLevels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermissionLevels'
func (*MockWorkspaceInterface_GetPermissionLevels_Call) Run ¶
func (_c *MockWorkspaceInterface_GetPermissionLevels_Call) Run(run func(ctx context.Context, request workspace.GetWorkspaceObjectPermissionLevelsRequest)) *MockWorkspaceInterface_GetPermissionLevels_Call
func (*MockWorkspaceInterface_GetPermissionLevels_Call) RunAndReturn ¶
type MockWorkspaceInterface_GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId_Call ¶
type MockWorkspaceInterface_GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId_Call struct {
*mock.Call
}
MockWorkspaceInterface_GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId'
func (*MockWorkspaceInterface_GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) Return ¶
func (*MockWorkspaceInterface_GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) Run ¶
func (_c *MockWorkspaceInterface_GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) Run(run func(ctx context.Context, workspaceObjectType string, workspaceObjectId string)) *MockWorkspaceInterface_GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId_Call
func (*MockWorkspaceInterface_GetPermissionsByWorkspaceObjectTypeAndWorkspaceObjectId_Call) RunAndReturn ¶
type MockWorkspaceInterface_GetPermissions_Call ¶
MockWorkspaceInterface_GetPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermissions'
func (*MockWorkspaceInterface_GetPermissions_Call) Return ¶
func (_c *MockWorkspaceInterface_GetPermissions_Call) Return(_a0 *workspace.WorkspaceObjectPermissions, _a1 error) *MockWorkspaceInterface_GetPermissions_Call
func (*MockWorkspaceInterface_GetPermissions_Call) Run ¶
func (_c *MockWorkspaceInterface_GetPermissions_Call) Run(run func(ctx context.Context, request workspace.GetWorkspaceObjectPermissionsRequest)) *MockWorkspaceInterface_GetPermissions_Call
func (*MockWorkspaceInterface_GetPermissions_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_GetPermissions_Call) RunAndReturn(run func(context.Context, workspace.GetWorkspaceObjectPermissionsRequest) (*workspace.WorkspaceObjectPermissions, error)) *MockWorkspaceInterface_GetPermissions_Call
type MockWorkspaceInterface_GetStatusByPath_Call ¶
MockWorkspaceInterface_GetStatusByPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatusByPath'
func (*MockWorkspaceInterface_GetStatusByPath_Call) Return ¶
func (_c *MockWorkspaceInterface_GetStatusByPath_Call) Return(_a0 *workspace.ObjectInfo, _a1 error) *MockWorkspaceInterface_GetStatusByPath_Call
func (*MockWorkspaceInterface_GetStatusByPath_Call) Run ¶
func (_c *MockWorkspaceInterface_GetStatusByPath_Call) Run(run func(ctx context.Context, path string)) *MockWorkspaceInterface_GetStatusByPath_Call
func (*MockWorkspaceInterface_GetStatusByPath_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_GetStatusByPath_Call) RunAndReturn(run func(context.Context, string) (*workspace.ObjectInfo, error)) *MockWorkspaceInterface_GetStatusByPath_Call
type MockWorkspaceInterface_GetStatus_Call ¶
MockWorkspaceInterface_GetStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatus'
func (*MockWorkspaceInterface_GetStatus_Call) Return ¶
func (_c *MockWorkspaceInterface_GetStatus_Call) Return(_a0 *workspace.ObjectInfo, _a1 error) *MockWorkspaceInterface_GetStatus_Call
func (*MockWorkspaceInterface_GetStatus_Call) Run ¶
func (_c *MockWorkspaceInterface_GetStatus_Call) Run(run func(ctx context.Context, request workspace.GetStatusRequest)) *MockWorkspaceInterface_GetStatus_Call
func (*MockWorkspaceInterface_GetStatus_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_GetStatus_Call) RunAndReturn(run func(context.Context, workspace.GetStatusRequest) (*workspace.ObjectInfo, error)) *MockWorkspaceInterface_GetStatus_Call
type MockWorkspaceInterface_Import_Call ¶
MockWorkspaceInterface_Import_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Import'
func (*MockWorkspaceInterface_Import_Call) Return ¶
func (_c *MockWorkspaceInterface_Import_Call) Return(_a0 error) *MockWorkspaceInterface_Import_Call
func (*MockWorkspaceInterface_Import_Call) Run ¶
func (_c *MockWorkspaceInterface_Import_Call) Run(run func(ctx context.Context, request workspace.Import)) *MockWorkspaceInterface_Import_Call
func (*MockWorkspaceInterface_Import_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_Import_Call) RunAndReturn(run func(context.Context, workspace.Import) error) *MockWorkspaceInterface_Import_Call
type MockWorkspaceInterface_ListAll_Call ¶
MockWorkspaceInterface_ListAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAll'
func (*MockWorkspaceInterface_ListAll_Call) Return ¶
func (_c *MockWorkspaceInterface_ListAll_Call) Return(_a0 []workspace.ObjectInfo, _a1 error) *MockWorkspaceInterface_ListAll_Call
func (*MockWorkspaceInterface_ListAll_Call) Run ¶
func (_c *MockWorkspaceInterface_ListAll_Call) Run(run func(ctx context.Context, request workspace.ListWorkspaceRequest)) *MockWorkspaceInterface_ListAll_Call
func (*MockWorkspaceInterface_ListAll_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_ListAll_Call) RunAndReturn(run func(context.Context, workspace.ListWorkspaceRequest) ([]workspace.ObjectInfo, error)) *MockWorkspaceInterface_ListAll_Call
type MockWorkspaceInterface_List_Call ¶
MockWorkspaceInterface_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockWorkspaceInterface_List_Call) Return ¶
func (_c *MockWorkspaceInterface_List_Call) Return(_a0 listing.Iterator[workspace.ObjectInfo]) *MockWorkspaceInterface_List_Call
func (*MockWorkspaceInterface_List_Call) Run ¶
func (_c *MockWorkspaceInterface_List_Call) Run(run func(ctx context.Context, request workspace.ListWorkspaceRequest)) *MockWorkspaceInterface_List_Call
func (*MockWorkspaceInterface_List_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_List_Call) RunAndReturn(run func(context.Context, workspace.ListWorkspaceRequest) listing.Iterator[workspace.ObjectInfo]) *MockWorkspaceInterface_List_Call
type MockWorkspaceInterface_MkdirsByPath_Call ¶
MockWorkspaceInterface_MkdirsByPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MkdirsByPath'
func (*MockWorkspaceInterface_MkdirsByPath_Call) Return ¶
func (_c *MockWorkspaceInterface_MkdirsByPath_Call) Return(_a0 error) *MockWorkspaceInterface_MkdirsByPath_Call
func (*MockWorkspaceInterface_MkdirsByPath_Call) Run ¶
func (_c *MockWorkspaceInterface_MkdirsByPath_Call) Run(run func(ctx context.Context, path string)) *MockWorkspaceInterface_MkdirsByPath_Call
func (*MockWorkspaceInterface_MkdirsByPath_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_MkdirsByPath_Call) RunAndReturn(run func(context.Context, string) error) *MockWorkspaceInterface_MkdirsByPath_Call
type MockWorkspaceInterface_Mkdirs_Call ¶
MockWorkspaceInterface_Mkdirs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Mkdirs'
func (*MockWorkspaceInterface_Mkdirs_Call) Return ¶
func (_c *MockWorkspaceInterface_Mkdirs_Call) Return(_a0 error) *MockWorkspaceInterface_Mkdirs_Call
func (*MockWorkspaceInterface_Mkdirs_Call) Run ¶
func (_c *MockWorkspaceInterface_Mkdirs_Call) Run(run func(ctx context.Context, request workspace.Mkdirs)) *MockWorkspaceInterface_Mkdirs_Call
func (*MockWorkspaceInterface_Mkdirs_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_Mkdirs_Call) RunAndReturn(run func(context.Context, workspace.Mkdirs) error) *MockWorkspaceInterface_Mkdirs_Call
type MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call ¶
MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObjectInfoPathToObjectIdMap'
func (*MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call) Return ¶
func (_c *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call) Return(_a0 map[string]int64, _a1 error) *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call
func (*MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call) Run ¶
func (_c *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call) Run(run func(ctx context.Context, request workspace.ListWorkspaceRequest)) *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call
func (*MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call) RunAndReturn(run func(context.Context, workspace.ListWorkspaceRequest) (map[string]int64, error)) *MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call
type MockWorkspaceInterface_ReadFile_Call ¶
MockWorkspaceInterface_ReadFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadFile'
func (*MockWorkspaceInterface_ReadFile_Call) Return ¶
func (_c *MockWorkspaceInterface_ReadFile_Call) Return(_a0 []byte, _a1 error) *MockWorkspaceInterface_ReadFile_Call
func (*MockWorkspaceInterface_ReadFile_Call) Run ¶
func (_c *MockWorkspaceInterface_ReadFile_Call) Run(run func(ctx context.Context, name string)) *MockWorkspaceInterface_ReadFile_Call
func (*MockWorkspaceInterface_ReadFile_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_ReadFile_Call) RunAndReturn(run func(context.Context, string) ([]byte, error)) *MockWorkspaceInterface_ReadFile_Call
type MockWorkspaceInterface_RecursiveList_Call ¶
MockWorkspaceInterface_RecursiveList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecursiveList'
func (*MockWorkspaceInterface_RecursiveList_Call) Return ¶
func (_c *MockWorkspaceInterface_RecursiveList_Call) Return(_a0 []workspace.ObjectInfo, _a1 error) *MockWorkspaceInterface_RecursiveList_Call
func (*MockWorkspaceInterface_RecursiveList_Call) Run ¶
func (_c *MockWorkspaceInterface_RecursiveList_Call) Run(run func(ctx context.Context, path string)) *MockWorkspaceInterface_RecursiveList_Call
func (*MockWorkspaceInterface_RecursiveList_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_RecursiveList_Call) RunAndReturn(run func(context.Context, string) ([]workspace.ObjectInfo, error)) *MockWorkspaceInterface_RecursiveList_Call
type MockWorkspaceInterface_SetPermissions_Call ¶
MockWorkspaceInterface_SetPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPermissions'
func (*MockWorkspaceInterface_SetPermissions_Call) Return ¶
func (_c *MockWorkspaceInterface_SetPermissions_Call) Return(_a0 *workspace.WorkspaceObjectPermissions, _a1 error) *MockWorkspaceInterface_SetPermissions_Call
func (*MockWorkspaceInterface_SetPermissions_Call) Run ¶
func (_c *MockWorkspaceInterface_SetPermissions_Call) Run(run func(ctx context.Context, request workspace.WorkspaceObjectPermissionsRequest)) *MockWorkspaceInterface_SetPermissions_Call
func (*MockWorkspaceInterface_SetPermissions_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_SetPermissions_Call) RunAndReturn(run func(context.Context, workspace.WorkspaceObjectPermissionsRequest) (*workspace.WorkspaceObjectPermissions, error)) *MockWorkspaceInterface_SetPermissions_Call
type MockWorkspaceInterface_UpdatePermissions_Call ¶
MockWorkspaceInterface_UpdatePermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePermissions'
func (*MockWorkspaceInterface_UpdatePermissions_Call) Return ¶
func (_c *MockWorkspaceInterface_UpdatePermissions_Call) Return(_a0 *workspace.WorkspaceObjectPermissions, _a1 error) *MockWorkspaceInterface_UpdatePermissions_Call
func (*MockWorkspaceInterface_UpdatePermissions_Call) Run ¶
func (_c *MockWorkspaceInterface_UpdatePermissions_Call) Run(run func(ctx context.Context, request workspace.WorkspaceObjectPermissionsRequest)) *MockWorkspaceInterface_UpdatePermissions_Call
func (*MockWorkspaceInterface_UpdatePermissions_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_UpdatePermissions_Call) RunAndReturn(run func(context.Context, workspace.WorkspaceObjectPermissionsRequest) (*workspace.WorkspaceObjectPermissions, error)) *MockWorkspaceInterface_UpdatePermissions_Call
type MockWorkspaceInterface_Upload_Call ¶
MockWorkspaceInterface_Upload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upload'
func (*MockWorkspaceInterface_Upload_Call) Return ¶
func (_c *MockWorkspaceInterface_Upload_Call) Return(_a0 error) *MockWorkspaceInterface_Upload_Call
func (*MockWorkspaceInterface_Upload_Call) Run ¶
func (_c *MockWorkspaceInterface_Upload_Call) Run(run func(ctx context.Context, path string, r io.Reader, opts ...func(*workspace.Import))) *MockWorkspaceInterface_Upload_Call
func (*MockWorkspaceInterface_Upload_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_Upload_Call) RunAndReturn(run func(context.Context, string, io.Reader, ...func(*workspace.Import)) error) *MockWorkspaceInterface_Upload_Call
type MockWorkspaceInterface_WriteFile_Call ¶
MockWorkspaceInterface_WriteFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteFile'
func (*MockWorkspaceInterface_WriteFile_Call) Return ¶
func (_c *MockWorkspaceInterface_WriteFile_Call) Return(_a0 error) *MockWorkspaceInterface_WriteFile_Call
func (*MockWorkspaceInterface_WriteFile_Call) Run ¶
func (_c *MockWorkspaceInterface_WriteFile_Call) Run(run func(ctx context.Context, name string, data []byte)) *MockWorkspaceInterface_WriteFile_Call
func (*MockWorkspaceInterface_WriteFile_Call) RunAndReturn ¶
func (_c *MockWorkspaceInterface_WriteFile_Call) RunAndReturn(run func(context.Context, string, []byte) error) *MockWorkspaceInterface_WriteFile_Call