Documentation ¶
Index ¶
- type IRepository
- type Mock
- func (m *Mock) GetRepositoryGroups(_ uuid.UUID) (*authEntities.AuthzGroups, error)
- func (m *Mock) GetRepositoryRole(_, _ uuid.UUID) (accountEnums.Role, error)
- func (m *Mock) GetWorkspaceGroups(_ uuid.UUID) (*authEntities.AuthzGroups, error)
- func (m *Mock) GetWorkspaceRole(_, _ uuid.UUID) (accountEnums.Role, error)
- type Repository
- func (r *Repository) GetRepositoryGroups(repositoryID uuid.UUID) (*authEntities.AuthzGroups, error)
- func (r *Repository) GetRepositoryRole(accountID, repositoryID uuid.UUID) (accountEnums.Role, error)
- func (r *Repository) GetWorkspaceGroups(workspaceID uuid.UUID) (*authEntities.AuthzGroups, error)
- func (r *Repository) GetWorkspaceRole(accountID, workspaceID uuid.UUID) (accountEnums.Role, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRepository ¶
type IRepository interface { GetWorkspaceGroups(workspaceID uuid.UUID) (*authEntities.AuthzGroups, error) GetRepositoryGroups(repositoryID uuid.UUID) (*authEntities.AuthzGroups, error) GetWorkspaceRole(accountID, workspaceID uuid.UUID) (accountEnums.Role, error) GetRepositoryRole(accountID, repositoryID uuid.UUID) (accountEnums.Role, error) }
func NewAuthenticationRepository ¶
func NewAuthenticationRepository(connection *database.Connection, useCases authUseCases.IUseCases) IRepository
type Mock ¶
func (*Mock) GetRepositoryGroups ¶
func (m *Mock) GetRepositoryGroups(_ uuid.UUID) (*authEntities.AuthzGroups, error)
func (*Mock) GetRepositoryRole ¶
func (*Mock) GetWorkspaceGroups ¶
func (m *Mock) GetWorkspaceGroups(_ uuid.UUID) (*authEntities.AuthzGroups, error)
func (*Mock) GetWorkspaceRole ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) GetRepositoryGroups ¶
func (r *Repository) GetRepositoryGroups(repositoryID uuid.UUID) (*authEntities.AuthzGroups, error)
func (*Repository) GetRepositoryRole ¶
func (r *Repository) GetRepositoryRole(accountID, repositoryID uuid.UUID) (accountEnums.Role, error)
func (*Repository) GetWorkspaceGroups ¶
func (r *Repository) GetWorkspaceGroups(workspaceID uuid.UUID) (*authEntities.AuthzGroups, error)
func (*Repository) GetWorkspaceRole ¶
func (r *Repository) GetWorkspaceRole(accountID, workspaceID uuid.UUID) (accountEnums.Role, error)
Click to show internal directories.
Click to hide internal directories.