Documentation ¶
Index ¶
- type IRepository
- type Mock
- func (m *Mock) GetAccountRepository(_, _ uuid.UUID) (*repositoryEntities.AccountRepository, error)
- func (m *Mock) GetRepository(_ uuid.UUID) (*repositoryEntities.Repository, error)
- func (m *Mock) GetRepositoryByName(_ uuid.UUID, _ string) (*repositoryEntities.Repository, error)
- func (m *Mock) GetRepositoryLdap(_ uuid.UUID, _ []string) (*repositoryEntities.Response, error)
- func (m *Mock) GetWorkspace(_ uuid.UUID) (*workspaceEntities.Workspace, error)
- func (m *Mock) IsNotMemberOfWorkspace(_, _ uuid.UUID) bool
- func (m *Mock) ListAllRepositoryUsers(_ uuid.UUID) (*[]roleEntities.Response, error)
- func (m *Mock) ListRepositoriesAuthTypeHorusec(_, _ uuid.UUID, _ *repositoryEntities.PaginatedContent) (*[]repositoryEntities.Response, error)
- func (m *Mock) ListRepositoriesAuthTypeLdap(_ uuid.UUID, _ []string, _ *repositoryEntities.PaginatedContent) (*[]repositoryEntities.Response, error)
- func (m *Mock) ListRepositoriesWhenApplicationAdmin(_ *repositoryEntities.PaginatedContent, _ uuid.UUID) (*[]repositoryEntities.Response, error)
- type Repository
- func (r *Repository) GetAccountRepository(accountID, repositoryID uuid.UUID) (*repositoryEntities.AccountRepository, error)
- func (r *Repository) GetRepository(repositoryID uuid.UUID) (*repositoryEntities.Repository, error)
- func (r *Repository) GetRepositoryByName(workspaceID uuid.UUID, name string) (*repositoryEntities.Repository, error)
- func (r *Repository) GetRepositoryLdap(repositoryID uuid.UUID, permissions []string) (*repositoryEntities.Response, error)
- func (r *Repository) GetWorkspace(workspaceID uuid.UUID) (*workspaceEntities.Workspace, error)
- func (r *Repository) IsNotMemberOfWorkspace(accountID, workspaceID uuid.UUID) bool
- func (r *Repository) ListAllRepositoryUsers(repositoryID uuid.UUID) (*[]roleEntities.Response, error)
- func (r *Repository) ListRepositoriesAuthTypeHorusec(accountID, workspaceID uuid.UUID, ...) (*[]repositoryEntities.Response, error)
- func (r *Repository) ListRepositoriesAuthTypeLdap(workspaceID uuid.UUID, permissions []string, ...) (*[]repositoryEntities.Response, error)
- func (r *Repository) ListRepositoriesWhenApplicationAdmin(paginated *repositoryEntities.PaginatedContent, workspaceID uuid.UUID) (*[]repositoryEntities.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRepository ¶
type IRepository interface { GetRepositoryByName(workspaceID uuid.UUID, name string) (*repositoryEntities.Repository, error) GetRepository(repositoryID uuid.UUID) (*repositoryEntities.Repository, error) GetAccountRepository(accountID, repositoryID uuid.UUID) (*repositoryEntities.AccountRepository, error) ListRepositoriesAuthTypeHorusec(accountID, workspaceID uuid.UUID, paginated *repositoryEntities.PaginatedContent) (*[]repositoryEntities.Response, error) ListRepositoriesAuthTypeLdap(workspaceID uuid.UUID, permissions []string, paginated *repositoryEntities.PaginatedContent) (*[]repositoryEntities.Response, error) IsNotMemberOfWorkspace(accountID, workspaceID uuid.UUID) bool ListAllRepositoryUsers(repositoryID uuid.UUID) (*[]roleEntities.Response, error) GetWorkspace(workspaceID uuid.UUID) (*workspaceEntities.Workspace, error) ListRepositoriesWhenApplicationAdmin( paginated *repositoryEntities.PaginatedContent, workspaceID uuid.UUID) (*[]repositoryEntities.Response, error) GetRepositoryLdap(repositoryID uuid.UUID, permissions []string) (*repositoryEntities.Response, error) }
func NewRepositoryRepository ¶
func NewRepositoryRepository(databaseConnection *database.Connection, useCases repositoriesUseCases.IUseCases, repository workspaceRepository.IRepository) IRepository
type Mock ¶
func (*Mock) GetAccountRepository ¶
func (m *Mock) GetAccountRepository(_, _ uuid.UUID) (*repositoryEntities.AccountRepository, error)
func (*Mock) GetRepository ¶
func (m *Mock) GetRepository(_ uuid.UUID) (*repositoryEntities.Repository, error)
func (*Mock) GetRepositoryByName ¶
func (m *Mock) GetRepositoryByName(_ uuid.UUID, _ string) (*repositoryEntities.Repository, error)
func (*Mock) GetRepositoryLdap ¶
func (*Mock) GetWorkspace ¶
func (*Mock) ListAllRepositoryUsers ¶
func (*Mock) ListRepositoriesAuthTypeHorusec ¶
func (m *Mock) ListRepositoriesAuthTypeHorusec(_, _ uuid.UUID, _ *repositoryEntities.PaginatedContent) (*[]repositoryEntities.Response, error)
func (*Mock) ListRepositoriesAuthTypeLdap ¶
func (m *Mock) ListRepositoriesAuthTypeLdap(_ uuid.UUID, _ []string, _ *repositoryEntities.PaginatedContent) (*[]repositoryEntities.Response, error)
func (*Mock) ListRepositoriesWhenApplicationAdmin ¶
func (m *Mock) ListRepositoriesWhenApplicationAdmin(_ *repositoryEntities.PaginatedContent, _ uuid.UUID) (*[]repositoryEntities.Response, error)
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) GetAccountRepository ¶
func (r *Repository) GetAccountRepository(accountID, repositoryID uuid.UUID) (*repositoryEntities.AccountRepository, error)
func (*Repository) GetRepository ¶
func (r *Repository) GetRepository(repositoryID uuid.UUID) (*repositoryEntities.Repository, error)
func (*Repository) GetRepositoryByName ¶
func (r *Repository) GetRepositoryByName(workspaceID uuid.UUID, name string) (*repositoryEntities.Repository, error)
func (*Repository) GetRepositoryLdap ¶
func (r *Repository) GetRepositoryLdap( repositoryID uuid.UUID, permissions []string) (*repositoryEntities.Response, error)
func (*Repository) GetWorkspace ¶
func (r *Repository) GetWorkspace(workspaceID uuid.UUID) (*workspaceEntities.Workspace, error)
func (*Repository) IsNotMemberOfWorkspace ¶
func (r *Repository) IsNotMemberOfWorkspace(accountID, workspaceID uuid.UUID) bool
func (*Repository) ListAllRepositoryUsers ¶
func (r *Repository) ListAllRepositoryUsers(repositoryID uuid.UUID) (*[]roleEntities.Response, error)
func (*Repository) ListRepositoriesAuthTypeHorusec ¶
func (r *Repository) ListRepositoriesAuthTypeHorusec(accountID, workspaceID uuid.UUID, paginated *repositoryEntities.PaginatedContent) (*[]repositoryEntities.Response, error)
func (*Repository) ListRepositoriesAuthTypeLdap ¶
func (r *Repository) ListRepositoriesAuthTypeLdap(workspaceID uuid.UUID, permissions []string, paginated *repositoryEntities.PaginatedContent) (*[]repositoryEntities.Response, error)
func (*Repository) ListRepositoriesWhenApplicationAdmin ¶
func (r *Repository) ListRepositoriesWhenApplicationAdmin( paginated *repositoryEntities.PaginatedContent, workspaceID uuid.UUID) (*[]repositoryEntities.Response, error)
Click to show internal directories.
Click to hide internal directories.