authentication

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: 8 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 {
	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

type Mock struct {
	mock.Mock
}

func (*Mock) GetRepositoryGroups

func (m *Mock) GetRepositoryGroups(_ uuid.UUID) (*authEntities.AuthzGroups, error)

func (*Mock) GetRepositoryRole

func (m *Mock) GetRepositoryRole(_, _ uuid.UUID) (accountEnums.Role, error)

func (*Mock) GetWorkspaceGroups

func (m *Mock) GetWorkspaceGroups(_ uuid.UUID) (*authEntities.AuthzGroups, error)

func (*Mock) GetWorkspaceRole

func (m *Mock) GetWorkspaceRole(_, _ uuid.UUID) (accountEnums.Role, error)

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)

Jump to

Keyboard shortcuts

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