workspace

package
v0.39.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGitCredentialsInterface

type MockGitCredentialsInterface struct {
	mock.Mock
}

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

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

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 (*MockGitCredentialsInterface) Get

Get provides a mock function with given fields: ctx, request

func (*MockGitCredentialsInterface) GetByCredentialId

func (_m *MockGitCredentialsInterface) GetByCredentialId(ctx context.Context, credentialId int64) (*workspace.CredentialInfo, 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) Impl

Impl provides a mock function with given fields:

func (*MockGitCredentialsInterface) List

List provides a mock function with given fields: ctx

func (*MockGitCredentialsInterface) ListAll

ListAll provides a mock function with given fields: ctx

func (*MockGitCredentialsInterface) Update

Update provides a mock function with given fields: ctx, request

func (*MockGitCredentialsInterface) WithImpl

WithImpl provides a mock function with given fields: impl

type MockGitCredentialsInterface_Create_Call

type MockGitCredentialsInterface_Create_Call struct {
	*mock.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 (*MockGitCredentialsInterface_Create_Call) Run

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) Return

func (*MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call) Run

func (*MockGitCredentialsInterface_CredentialInfoGitProviderToCredentialIdMap_Call) RunAndReturn

type MockGitCredentialsInterface_DeleteByCredentialId_Call

type MockGitCredentialsInterface_DeleteByCredentialId_Call struct {
	*mock.Call
}

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

func (*MockGitCredentialsInterface_DeleteByCredentialId_Call) Return

func (*MockGitCredentialsInterface_DeleteByCredentialId_Call) Run

func (*MockGitCredentialsInterface_DeleteByCredentialId_Call) RunAndReturn

type MockGitCredentialsInterface_Delete_Call

type MockGitCredentialsInterface_Delete_Call struct {
	*mock.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 (*MockGitCredentialsInterface_Delete_Call) Run

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.CreateCredentials

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.DeleteGitCredentialRequest

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.GetGitCredentialRequest

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) Impl

Impl is a helper method to define mock.On call

func (*MockGitCredentialsInterface_Expecter) List

List is a helper method to define mock.On call

  • ctx context.Context

func (*MockGitCredentialsInterface_Expecter) ListAll

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.UpdateCredentials

func (*MockGitCredentialsInterface_Expecter) WithImpl

WithImpl is a helper method to define mock.On call

  • impl workspace.GitCredentialsService

type MockGitCredentialsInterface_GetByCredentialId_Call

type MockGitCredentialsInterface_GetByCredentialId_Call struct {
	*mock.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 (*MockGitCredentialsInterface_GetByCredentialId_Call) Run

func (*MockGitCredentialsInterface_GetByCredentialId_Call) RunAndReturn

type MockGitCredentialsInterface_GetByGitProvider_Call

type MockGitCredentialsInterface_GetByGitProvider_Call struct {
	*mock.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 (*MockGitCredentialsInterface_GetByGitProvider_Call) Run

func (*MockGitCredentialsInterface_GetByGitProvider_Call) RunAndReturn

type MockGitCredentialsInterface_Get_Call

type MockGitCredentialsInterface_Get_Call struct {
	*mock.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 (*MockGitCredentialsInterface_Get_Call) Run

type MockGitCredentialsInterface_Impl_Call

type MockGitCredentialsInterface_Impl_Call struct {
	*mock.Call
}

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

func (*MockGitCredentialsInterface_Impl_Call) Return

func (*MockGitCredentialsInterface_Impl_Call) Run

func (*MockGitCredentialsInterface_Impl_Call) RunAndReturn

type MockGitCredentialsInterface_ListAll_Call

type MockGitCredentialsInterface_ListAll_Call struct {
	*mock.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 (*MockGitCredentialsInterface_ListAll_Call) Run

func (*MockGitCredentialsInterface_ListAll_Call) RunAndReturn

type MockGitCredentialsInterface_List_Call

type MockGitCredentialsInterface_List_Call struct {
	*mock.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 (*MockGitCredentialsInterface_List_Call) Run

func (*MockGitCredentialsInterface_List_Call) RunAndReturn

type MockGitCredentialsInterface_Update_Call

type MockGitCredentialsInterface_Update_Call struct {
	*mock.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 (*MockGitCredentialsInterface_Update_Call) Run

func (*MockGitCredentialsInterface_Update_Call) RunAndReturn

type MockGitCredentialsInterface_WithImpl_Call

type MockGitCredentialsInterface_WithImpl_Call struct {
	*mock.Call
}

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

func (*MockGitCredentialsInterface_WithImpl_Call) Run

type MockReposInterface

type MockReposInterface struct {
	mock.Mock
}

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

Create provides a mock function with given fields: ctx, request

func (*MockReposInterface) Delete

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 (*MockReposInterface) Get

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.RepoInfo, error)

GetByRepoId provides a mock function with given fields: ctx, repoId

func (*MockReposInterface) GetPermissionLevels

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

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) Impl

Impl provides a mock function with given fields:

func (*MockReposInterface) List

List provides a mock function with given fields: ctx, request

func (*MockReposInterface) ListAll

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

SetPermissions provides a mock function with given fields: ctx, request

func (*MockReposInterface) Update

func (_m *MockReposInterface) Update(ctx context.Context, request workspace.UpdateRepo) error

Update provides a mock function with given fields: ctx, request

func (*MockReposInterface) UpdatePermissions

UpdatePermissions provides a mock function with given fields: ctx, request

func (*MockReposInterface) WithImpl

WithImpl provides a mock function with given fields: impl

type MockReposInterface_Create_Call

type MockReposInterface_Create_Call struct {
	*mock.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 (*MockReposInterface_Create_Call) Run

func (*MockReposInterface_Create_Call) RunAndReturn

type MockReposInterface_DeleteByRepoId_Call

type MockReposInterface_DeleteByRepoId_Call struct {
	*mock.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 (*MockReposInterface_DeleteByRepoId_Call) Run

func (*MockReposInterface_DeleteByRepoId_Call) RunAndReturn

type MockReposInterface_Delete_Call

type MockReposInterface_Delete_Call struct {
	*mock.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 (*MockReposInterface_Delete_Call) Run

func (*MockReposInterface_Delete_Call) RunAndReturn

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.CreateRepo

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) Impl

Impl is a helper method to define mock.On call

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.UpdateRepo

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

func (*MockReposInterface_Expecter) WithImpl

func (_e *MockReposInterface_Expecter) WithImpl(impl interface{}) *MockReposInterface_WithImpl_Call

WithImpl is a helper method to define mock.On call

  • impl workspace.ReposService

type MockReposInterface_GetByPath_Call

type MockReposInterface_GetByPath_Call struct {
	*mock.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 (*MockReposInterface_GetByPath_Call) Run

func (*MockReposInterface_GetByPath_Call) RunAndReturn

type MockReposInterface_GetByRepoId_Call

type MockReposInterface_GetByRepoId_Call struct {
	*mock.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 (*MockReposInterface_GetByRepoId_Call) Run

func (*MockReposInterface_GetByRepoId_Call) RunAndReturn

type MockReposInterface_GetPermissionLevelsByRepoId_Call

type MockReposInterface_GetPermissionLevelsByRepoId_Call struct {
	*mock.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

type MockReposInterface_GetPermissionLevels_Call

type MockReposInterface_GetPermissionLevels_Call struct {
	*mock.Call
}

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

func (*MockReposInterface_GetPermissionLevels_Call) Run

type MockReposInterface_GetPermissionsByRepoId_Call

type MockReposInterface_GetPermissionsByRepoId_Call struct {
	*mock.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 (*MockReposInterface_GetPermissionsByRepoId_Call) Run

func (*MockReposInterface_GetPermissionsByRepoId_Call) RunAndReturn

type MockReposInterface_GetPermissions_Call

type MockReposInterface_GetPermissions_Call struct {
	*mock.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 (*MockReposInterface_GetPermissions_Call) Run

type MockReposInterface_Get_Call

type MockReposInterface_Get_Call struct {
	*mock.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 (*MockReposInterface_Get_Call) Run

func (*MockReposInterface_Get_Call) RunAndReturn

type MockReposInterface_Impl_Call

type MockReposInterface_Impl_Call struct {
	*mock.Call
}

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

func (*MockReposInterface_Impl_Call) Return

func (*MockReposInterface_Impl_Call) Run

func (*MockReposInterface_Impl_Call) RunAndReturn

type MockReposInterface_ListAll_Call

type MockReposInterface_ListAll_Call struct {
	*mock.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 (*MockReposInterface_ListAll_Call) Run

func (*MockReposInterface_ListAll_Call) RunAndReturn

type MockReposInterface_List_Call

type MockReposInterface_List_Call struct {
	*mock.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 (*MockReposInterface_List_Call) Run

type MockReposInterface_RepoInfoPathToIdMap_Call

type MockReposInterface_RepoInfoPathToIdMap_Call struct {
	*mock.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 (*MockReposInterface_RepoInfoPathToIdMap_Call) Run

func (*MockReposInterface_RepoInfoPathToIdMap_Call) RunAndReturn

type MockReposInterface_SetPermissions_Call

type MockReposInterface_SetPermissions_Call struct {
	*mock.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 (*MockReposInterface_SetPermissions_Call) Run

type MockReposInterface_UpdatePermissions_Call

type MockReposInterface_UpdatePermissions_Call struct {
	*mock.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 (*MockReposInterface_UpdatePermissions_Call) Run

type MockReposInterface_Update_Call

type MockReposInterface_Update_Call struct {
	*mock.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 (*MockReposInterface_Update_Call) Run

func (*MockReposInterface_Update_Call) RunAndReturn

type MockReposInterface_WithImpl_Call

type MockReposInterface_WithImpl_Call struct {
	*mock.Call
}

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

func (*MockReposInterface_WithImpl_Call) Return

func (*MockReposInterface_WithImpl_Call) Run

func (*MockReposInterface_WithImpl_Call) RunAndReturn

type MockSecretsInterface

type MockSecretsInterface struct {
	mock.Mock
}

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

func (_m *MockSecretsInterface) DeleteAcl(ctx context.Context, request workspace.DeleteAcl) error

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 (*MockSecretsInterface) GetAcl

GetAcl provides a mock function with given fields: ctx, request

func (*MockSecretsInterface) GetSecret

GetSecret provides a mock function with given fields: ctx, request

func (*MockSecretsInterface) Impl

Impl provides a mock function with given fields:

func (*MockSecretsInterface) ListAcls

ListAcls provides a mock function with given fields: ctx, request

func (*MockSecretsInterface) ListAclsAll

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

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

ListSecrets provides a mock function with given fields: ctx, request

func (*MockSecretsInterface) ListSecretsAll

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

func (*MockSecretsInterface) PutAcl

func (_m *MockSecretsInterface) PutAcl(ctx context.Context, request workspace.PutAcl) error

PutAcl provides a mock function with given fields: ctx, request

func (*MockSecretsInterface) PutSecret

func (_m *MockSecretsInterface) PutSecret(ctx context.Context, request workspace.PutSecret) error

PutSecret provides a mock function with given fields: ctx, request

func (*MockSecretsInterface) WithImpl

WithImpl provides a mock function with given fields: impl

type MockSecretsInterface_CreateScope_Call

type MockSecretsInterface_CreateScope_Call struct {
	*mock.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 (*MockSecretsInterface_CreateScope_Call) Run

func (*MockSecretsInterface_CreateScope_Call) RunAndReturn

type MockSecretsInterface_DeleteAcl_Call

type MockSecretsInterface_DeleteAcl_Call struct {
	*mock.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 (*MockSecretsInterface_DeleteAcl_Call) Run

func (*MockSecretsInterface_DeleteAcl_Call) RunAndReturn

type MockSecretsInterface_DeleteScopeByScope_Call

type MockSecretsInterface_DeleteScopeByScope_Call struct {
	*mock.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 (*MockSecretsInterface_DeleteScopeByScope_Call) Run

func (*MockSecretsInterface_DeleteScopeByScope_Call) RunAndReturn

type MockSecretsInterface_DeleteScope_Call

type MockSecretsInterface_DeleteScope_Call struct {
	*mock.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 (*MockSecretsInterface_DeleteScope_Call) Run

func (*MockSecretsInterface_DeleteScope_Call) RunAndReturn

type MockSecretsInterface_DeleteSecret_Call

type MockSecretsInterface_DeleteSecret_Call struct {
	*mock.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 (*MockSecretsInterface_DeleteSecret_Call) Run

func (*MockSecretsInterface_DeleteSecret_Call) RunAndReturn

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) Impl

Impl is a helper method to define mock.On call

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

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

func (*MockSecretsInterface_Expecter) WithImpl

func (_e *MockSecretsInterface_Expecter) WithImpl(impl interface{}) *MockSecretsInterface_WithImpl_Call

WithImpl is a helper method to define mock.On call

  • impl workspace.SecretsService

type MockSecretsInterface_GetAcl_Call

type MockSecretsInterface_GetAcl_Call struct {
	*mock.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 (*MockSecretsInterface_GetAcl_Call) Run

func (*MockSecretsInterface_GetAcl_Call) RunAndReturn

type MockSecretsInterface_GetSecret_Call

type MockSecretsInterface_GetSecret_Call struct {
	*mock.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 (*MockSecretsInterface_GetSecret_Call) Run

type MockSecretsInterface_Impl_Call

type MockSecretsInterface_Impl_Call struct {
	*mock.Call
}

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

func (*MockSecretsInterface_Impl_Call) Return

func (*MockSecretsInterface_Impl_Call) Run

func (*MockSecretsInterface_Impl_Call) RunAndReturn

type MockSecretsInterface_ListAclsAll_Call

type MockSecretsInterface_ListAclsAll_Call struct {
	*mock.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 (*MockSecretsInterface_ListAclsAll_Call) Run

func (*MockSecretsInterface_ListAclsAll_Call) RunAndReturn

type MockSecretsInterface_ListAclsByScope_Call

type MockSecretsInterface_ListAclsByScope_Call struct {
	*mock.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 (*MockSecretsInterface_ListAclsByScope_Call) Run

func (*MockSecretsInterface_ListAclsByScope_Call) RunAndReturn

type MockSecretsInterface_ListAcls_Call

type MockSecretsInterface_ListAcls_Call struct {
	*mock.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 (*MockSecretsInterface_ListAcls_Call) Run

type MockSecretsInterface_ListScopesAll_Call

type MockSecretsInterface_ListScopesAll_Call struct {
	*mock.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 (*MockSecretsInterface_ListScopesAll_Call) Run

func (*MockSecretsInterface_ListScopesAll_Call) RunAndReturn

type MockSecretsInterface_ListScopes_Call

type MockSecretsInterface_ListScopes_Call struct {
	*mock.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 (*MockSecretsInterface_ListScopes_Call) Run

func (*MockSecretsInterface_ListScopes_Call) RunAndReturn

type MockSecretsInterface_ListSecretsAll_Call

type MockSecretsInterface_ListSecretsAll_Call struct {
	*mock.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 (*MockSecretsInterface_ListSecretsAll_Call) Run

type MockSecretsInterface_ListSecretsByScope_Call

type MockSecretsInterface_ListSecretsByScope_Call struct {
	*mock.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 (*MockSecretsInterface_ListSecretsByScope_Call) Run

func (*MockSecretsInterface_ListSecretsByScope_Call) RunAndReturn

type MockSecretsInterface_ListSecrets_Call

type MockSecretsInterface_ListSecrets_Call struct {
	*mock.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 (*MockSecretsInterface_ListSecrets_Call) Run

type MockSecretsInterface_PutAcl_Call

type MockSecretsInterface_PutAcl_Call struct {
	*mock.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 (*MockSecretsInterface_PutAcl_Call) Run

func (*MockSecretsInterface_PutAcl_Call) RunAndReturn

type MockSecretsInterface_PutSecret_Call

type MockSecretsInterface_PutSecret_Call struct {
	*mock.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 (*MockSecretsInterface_PutSecret_Call) Run

func (*MockSecretsInterface_PutSecret_Call) RunAndReturn

type MockSecretsInterface_WithImpl_Call

type MockSecretsInterface_WithImpl_Call struct {
	*mock.Call
}

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

func (*MockSecretsInterface_WithImpl_Call) Return

func (*MockSecretsInterface_WithImpl_Call) Run

func (*MockSecretsInterface_WithImpl_Call) RunAndReturn

type MockWorkspaceInterface

type MockWorkspaceInterface struct {
	mock.Mock
}

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

func (_m *MockWorkspaceInterface) Delete(ctx context.Context, request workspace.Delete) error

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 (*MockWorkspaceInterface) Export

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

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

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

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) Impl

Impl provides a mock function with given fields:

func (*MockWorkspaceInterface) Import

func (_m *MockWorkspaceInterface) Import(ctx context.Context, request workspace.Import) error

Import provides a mock function with given fields: ctx, request

func (*MockWorkspaceInterface) List

List provides a mock function with given fields: ctx, request

func (*MockWorkspaceInterface) ListAll

ListAll provides a mock function with given fields: ctx, request

func (*MockWorkspaceInterface) Mkdirs

func (_m *MockWorkspaceInterface) Mkdirs(ctx context.Context, request workspace.Mkdirs) error

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

func (_m *MockWorkspaceInterface) ReadFile(ctx context.Context, name string) ([]byte, error)

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

SetPermissions provides a mock function with given fields: ctx, request

func (*MockWorkspaceInterface) UpdatePermissions

UpdatePermissions provides a mock function with given fields: ctx, request

func (*MockWorkspaceInterface) Upload

func (_m *MockWorkspaceInterface) Upload(ctx context.Context, path string, r io.Reader, opts ...func(*workspace.Import)) error

Upload provides a mock function with given fields: ctx, path, r, opts

func (*MockWorkspaceInterface) WithImpl

WithImpl provides a mock function with given fields: impl

func (*MockWorkspaceInterface) WriteFile

func (_m *MockWorkspaceInterface) WriteFile(ctx context.Context, name string, data []byte) error

WriteFile provides a mock function with given fields: ctx, name, data

type MockWorkspaceInterface_Delete_Call

type MockWorkspaceInterface_Delete_Call struct {
	*mock.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 (*MockWorkspaceInterface_Delete_Call) Run

func (*MockWorkspaceInterface_Delete_Call) RunAndReturn

type MockWorkspaceInterface_Download_Call

type MockWorkspaceInterface_Download_Call struct {
	*mock.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 (*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

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) Impl

Impl is a helper method to define mock.On call

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) WithImpl

WithImpl is a helper method to define mock.On call

  • impl workspace.WorkspaceService

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

type MockWorkspaceInterface_Export_Call struct {
	*mock.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 (*MockWorkspaceInterface_Export_Call) Run

type MockWorkspaceInterface_GetByPath_Call

type MockWorkspaceInterface_GetByPath_Call struct {
	*mock.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 (*MockWorkspaceInterface_GetByPath_Call) Run

func (*MockWorkspaceInterface_GetByPath_Call) RunAndReturn

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) Run

type MockWorkspaceInterface_GetPermissionLevels_Call

type MockWorkspaceInterface_GetPermissionLevels_Call struct {
	*mock.Call
}

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

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) Run

type MockWorkspaceInterface_GetPermissions_Call

type MockWorkspaceInterface_GetPermissions_Call struct {
	*mock.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 (*MockWorkspaceInterface_GetPermissions_Call) Run

type MockWorkspaceInterface_GetStatusByPath_Call

type MockWorkspaceInterface_GetStatusByPath_Call struct {
	*mock.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 (*MockWorkspaceInterface_GetStatusByPath_Call) Run

func (*MockWorkspaceInterface_GetStatusByPath_Call) RunAndReturn

type MockWorkspaceInterface_GetStatus_Call

type MockWorkspaceInterface_GetStatus_Call struct {
	*mock.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 (*MockWorkspaceInterface_GetStatus_Call) Run

type MockWorkspaceInterface_Impl_Call

type MockWorkspaceInterface_Impl_Call struct {
	*mock.Call
}

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

func (*MockWorkspaceInterface_Impl_Call) Return

func (*MockWorkspaceInterface_Impl_Call) Run

func (*MockWorkspaceInterface_Impl_Call) RunAndReturn

type MockWorkspaceInterface_Import_Call

type MockWorkspaceInterface_Import_Call struct {
	*mock.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 (*MockWorkspaceInterface_Import_Call) Run

func (*MockWorkspaceInterface_Import_Call) RunAndReturn

type MockWorkspaceInterface_ListAll_Call

type MockWorkspaceInterface_ListAll_Call struct {
	*mock.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 (*MockWorkspaceInterface_ListAll_Call) Run

type MockWorkspaceInterface_List_Call

type MockWorkspaceInterface_List_Call struct {
	*mock.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 (*MockWorkspaceInterface_List_Call) Run

type MockWorkspaceInterface_MkdirsByPath_Call

type MockWorkspaceInterface_MkdirsByPath_Call struct {
	*mock.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 (*MockWorkspaceInterface_MkdirsByPath_Call) Run

func (*MockWorkspaceInterface_MkdirsByPath_Call) RunAndReturn

type MockWorkspaceInterface_Mkdirs_Call

type MockWorkspaceInterface_Mkdirs_Call struct {
	*mock.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 (*MockWorkspaceInterface_Mkdirs_Call) Run

func (*MockWorkspaceInterface_Mkdirs_Call) RunAndReturn

type MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call

type MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call struct {
	*mock.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 (*MockWorkspaceInterface_ObjectInfoPathToObjectIdMap_Call) Run

type MockWorkspaceInterface_ReadFile_Call

type MockWorkspaceInterface_ReadFile_Call struct {
	*mock.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 (*MockWorkspaceInterface_ReadFile_Call) Run

func (*MockWorkspaceInterface_ReadFile_Call) RunAndReturn

type MockWorkspaceInterface_RecursiveList_Call

type MockWorkspaceInterface_RecursiveList_Call struct {
	*mock.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 (*MockWorkspaceInterface_RecursiveList_Call) Run

func (*MockWorkspaceInterface_RecursiveList_Call) RunAndReturn

type MockWorkspaceInterface_SetPermissions_Call

type MockWorkspaceInterface_SetPermissions_Call struct {
	*mock.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 (*MockWorkspaceInterface_SetPermissions_Call) Run

type MockWorkspaceInterface_UpdatePermissions_Call

type MockWorkspaceInterface_UpdatePermissions_Call struct {
	*mock.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 (*MockWorkspaceInterface_UpdatePermissions_Call) Run

type MockWorkspaceInterface_Upload_Call

type MockWorkspaceInterface_Upload_Call struct {
	*mock.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 (*MockWorkspaceInterface_Upload_Call) Run

func (*MockWorkspaceInterface_Upload_Call) RunAndReturn

type MockWorkspaceInterface_WithImpl_Call

type MockWorkspaceInterface_WithImpl_Call struct {
	*mock.Call
}

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

func (*MockWorkspaceInterface_WithImpl_Call) Return

func (*MockWorkspaceInterface_WithImpl_Call) Run

type MockWorkspaceInterface_WriteFile_Call

type MockWorkspaceInterface_WriteFile_Call struct {
	*mock.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 (*MockWorkspaceInterface_WriteFile_Call) Run

func (*MockWorkspaceInterface_WriteFile_Call) RunAndReturn

Jump to

Keyboard shortcuts

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