Documentation ¶
Index ¶
- type IRepository
- type Mock
- func (m *Mock) GetAccountWorkspace(_, _ uuid.UUID) (*workspaceEntities.AccountWorkspace, error)
- func (m *Mock) GetWorkspace(_ uuid.UUID) (*workspaceEntities.Workspace, error)
- func (m *Mock) GetWorkspaceLdap(_ uuid.UUID, _ []string) (*workspaceEntities.Response, error)
- func (m *Mock) IsWorkspaceAdmin(_, _ uuid.UUID) bool
- func (m *Mock) ListAllWorkspaceUsers(_ uuid.UUID) (*[]roleEntities.Response, error)
- func (m *Mock) ListWorkspaceUsersNoBelong(_, _ uuid.UUID) (*[]roleEntities.Response, error)
- func (m *Mock) ListWorkspacesApplicationAdmin() (*[]workspaceEntities.Response, error)
- func (m *Mock) ListWorkspacesAuthTypeHorusec(_ uuid.UUID) (*[]workspaceEntities.Response, error)
- func (m *Mock) ListWorkspacesAuthTypeLdap(_ []string) (*[]workspaceEntities.Response, error)
- type Repository
- func (r *Repository) GetAccountWorkspace(accountID, workspaceID uuid.UUID) (*workspaceEntities.AccountWorkspace, error)
- func (r *Repository) GetWorkspace(workspaceID uuid.UUID) (*workspaceEntities.Workspace, error)
- func (r *Repository) GetWorkspaceLdap(workspaceID uuid.UUID, permissions []string) (*workspaceEntities.Response, error)
- func (r *Repository) IsWorkspaceAdmin(accountID, workspaceID uuid.UUID) bool
- func (r *Repository) ListAllWorkspaceUsers(workspaceID uuid.UUID) (*[]roleEntities.Response, error)
- func (r *Repository) ListWorkspaceUsersNoBelong(workspaceID, repositoryID uuid.UUID) (*[]roleEntities.Response, error)
- func (r *Repository) ListWorkspacesApplicationAdmin() (*[]workspaceEntities.Response, error)
- func (r *Repository) ListWorkspacesAuthTypeHorusec(accountID uuid.UUID) (*[]workspaceEntities.Response, error)
- func (r *Repository) ListWorkspacesAuthTypeLdap(permissions []string) (*[]workspaceEntities.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRepository ¶
type IRepository interface { ListWorkspacesAuthTypeHorusec(accountID uuid.UUID) (*[]workspaceEntities.Response, error) ListWorkspacesAuthTypeLdap(permissions []string) (*[]workspaceEntities.Response, error) GetWorkspace(workspaceID uuid.UUID) (*workspaceEntities.Workspace, error) GetAccountWorkspace(accountID, workspaceID uuid.UUID) (*workspaceEntities.AccountWorkspace, error) ListAllWorkspaceUsers(workspaceID uuid.UUID) (*[]roleEntities.Response, error) ListWorkspacesApplicationAdmin() (*[]workspaceEntities.Response, error) IsWorkspaceAdmin(accountID, workspaceID uuid.UUID) bool ListWorkspaceUsersNoBelong(workspaceID, repositoryID uuid.UUID) (*[]roleEntities.Response, error) GetWorkspaceLdap(workspaceID uuid.UUID, permissions []string) (*workspaceEntities.Response, error) }
func NewWorkspaceRepository ¶
func NewWorkspaceRepository(databaseConnection *database.Connection, useCases workspaceUseCases.IUseCases) IRepository
type Mock ¶
func (*Mock) GetAccountWorkspace ¶
func (m *Mock) GetAccountWorkspace(_, _ uuid.UUID) (*workspaceEntities.AccountWorkspace, error)
func (*Mock) GetWorkspace ¶
func (*Mock) GetWorkspaceLdap ¶
func (*Mock) ListAllWorkspaceUsers ¶
func (*Mock) ListWorkspaceUsersNoBelong ¶
func (*Mock) ListWorkspacesApplicationAdmin ¶
func (m *Mock) ListWorkspacesApplicationAdmin() (*[]workspaceEntities.Response, error)
func (*Mock) ListWorkspacesAuthTypeHorusec ¶
func (*Mock) ListWorkspacesAuthTypeLdap ¶
func (m *Mock) ListWorkspacesAuthTypeLdap(_ []string) (*[]workspaceEntities.Response, error)
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) GetAccountWorkspace ¶
func (r *Repository) GetAccountWorkspace(accountID, workspaceID uuid.UUID) (*workspaceEntities.AccountWorkspace, error)
func (*Repository) GetWorkspace ¶
func (r *Repository) GetWorkspace(workspaceID uuid.UUID) (*workspaceEntities.Workspace, error)
func (*Repository) GetWorkspaceLdap ¶
func (r *Repository) GetWorkspaceLdap( workspaceID uuid.UUID, permissions []string) (*workspaceEntities.Response, error)
func (*Repository) IsWorkspaceAdmin ¶
func (r *Repository) IsWorkspaceAdmin(accountID, workspaceID uuid.UUID) bool
func (*Repository) ListAllWorkspaceUsers ¶
func (r *Repository) ListAllWorkspaceUsers(workspaceID uuid.UUID) (*[]roleEntities.Response, error)
func (*Repository) ListWorkspaceUsersNoBelong ¶
func (r *Repository) ListWorkspaceUsersNoBelong(workspaceID, repositoryID uuid.UUID) (*[]roleEntities.Response, error)
func (*Repository) ListWorkspacesApplicationAdmin ¶
func (r *Repository) ListWorkspacesApplicationAdmin() (*[]workspaceEntities.Response, error)
func (*Repository) ListWorkspacesAuthTypeHorusec ¶
func (r *Repository) ListWorkspacesAuthTypeHorusec(accountID uuid.UUID) (*[]workspaceEntities.Response, error)
func (*Repository) ListWorkspacesAuthTypeLdap ¶
func (r *Repository) ListWorkspacesAuthTypeLdap(permissions []string) (*[]workspaceEntities.Response, error)
Click to show internal directories.
Click to hide internal directories.