repository

package
v0.0.0-...-46e61fc Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

type Mock struct {
	mock.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 (m *Mock) GetRepositoryLdap(_ uuid.UUID, _ []string) (*repositoryEntities.Response, error)

func (*Mock) GetWorkspace

func (m *Mock) GetWorkspace(_ uuid.UUID) (*workspaceEntities.Workspace, error)

func (*Mock) IsNotMemberOfWorkspace

func (m *Mock) IsNotMemberOfWorkspace(_, _ uuid.UUID) bool

func (*Mock) ListAllRepositoryUsers

func (m *Mock) ListAllRepositoryUsers(_ uuid.UUID) (*[]roleEntities.Response, error)

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)

Jump to

Keyboard shortcuts

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