Documentation ¶
Index ¶
- type IRepository
- type Mock
- func (m *Mock) Create(_ *accountEntities.Repository, _ SQL.InterfaceWrite) error
- func (m *Mock) Delete(_ uuid.UUID) error
- func (m *Mock) Get(_ uuid.UUID) (*accountEntities.Repository, error)
- func (m *Mock) GetAccountCompanyRole(_, _ uuid.UUID) (*roles.AccountCompany, error)
- func (m *Mock) GetAllAccountsInRepository(_ uuid.UUID) (*[]roles.AccountRole, error)
- func (m *Mock) GetByName(_ uuid.UUID, _ string) (*accountEntities.Repository, error)
- func (m *Mock) List(_, _ uuid.UUID) (*[]accountEntities.RepositoryResponse, error)
- func (m *Mock) ListByLdapPermissions(_ uuid.UUID, _ []string) (*[]accountEntities.RepositoryResponse, error)
- func (m *Mock) Update(_ uuid.UUID, _ *accountEntities.Repository) (*accountEntities.Repository, error)
- type Repository
- func (r *Repository) Create(repository *accountEntities.Repository, transaction SQL.InterfaceWrite) error
- func (r *Repository) Delete(repositoryID uuid.UUID) error
- func (r *Repository) Get(repositoryID uuid.UUID) (*accountEntities.Repository, error)
- func (r *Repository) GetAccountCompanyRole(accountID, companyID uuid.UUID) (*roles.AccountCompany, error)
- func (r *Repository) GetAllAccountsInRepository(repositoryID uuid.UUID) (*[]roles.AccountRole, error)
- func (r *Repository) GetByName(companyID uuid.UUID, name string) (*accountEntities.Repository, error)
- func (r *Repository) List(accountID, companyID uuid.UUID) (*[]accountEntities.RepositoryResponse, error)
- func (r *Repository) ListByLdapPermissions(companyID uuid.UUID, permissions []string) (*[]accountEntities.RepositoryResponse, error)
- func (r *Repository) Update(repositoryID uuid.UUID, repository *accountEntities.Repository) (*accountEntities.Repository, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRepository ¶
type IRepository interface { Create(repository *accountEntities.Repository, transaction SQL.InterfaceWrite) error Update(repositoryID uuid.UUID, repository *accountEntities.Repository) (*accountEntities.Repository, error) Get(repositoryID uuid.UUID) (*accountEntities.Repository, error) List(accountID uuid.UUID, companyID uuid.UUID) (*[]accountEntities.RepositoryResponse, error) Delete(repositoryID uuid.UUID) error GetAllAccountsInRepository(repositoryID uuid.UUID) (*[]roles.AccountRole, error) GetByName(companyID uuid.UUID, repositoryName string) (*accountEntities.Repository, error) GetAccountCompanyRole(accountID, companyID uuid.UUID) (*roles.AccountCompany, error) ListByLdapPermissions(companyID uuid.UUID, permissions []string) (*[]accountEntities.RepositoryResponse, error) }
func NewRepository ¶
func NewRepository(databaseRead SQL.InterfaceRead, databaseWrite SQL.InterfaceWrite) IRepository
type Mock ¶
func (*Mock) Create ¶
func (m *Mock) Create(_ *accountEntities.Repository, _ SQL.InterfaceWrite) error
func (*Mock) Get ¶
func (m *Mock) Get(_ uuid.UUID) (*accountEntities.Repository, error)
func (*Mock) GetAccountCompanyRole ¶ added in v1.1.0
func (*Mock) GetAllAccountsInRepository ¶
func (*Mock) GetByName ¶
func (m *Mock) GetByName(_ uuid.UUID, _ string) (*accountEntities.Repository, error)
func (*Mock) List ¶
func (m *Mock) List(_, _ uuid.UUID) (*[]accountEntities.RepositoryResponse, error)
func (*Mock) ListByLdapPermissions ¶ added in v1.7.0
func (m *Mock) ListByLdapPermissions(_ uuid.UUID, _ []string) (*[]accountEntities.RepositoryResponse, error)
func (*Mock) Update ¶
func (m *Mock) Update(_ uuid.UUID, _ *accountEntities.Repository) (*accountEntities.Repository, error)
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) Create ¶
func (r *Repository) Create(repository *accountEntities.Repository, transaction SQL.InterfaceWrite) error
func (*Repository) Get ¶
func (r *Repository) Get(repositoryID uuid.UUID) (*accountEntities.Repository, error)
func (*Repository) GetAccountCompanyRole ¶ added in v1.1.0
func (r *Repository) GetAccountCompanyRole(accountID, companyID uuid.UUID) (*roles.AccountCompany, error)
func (*Repository) GetAllAccountsInRepository ¶
func (r *Repository) GetAllAccountsInRepository(repositoryID uuid.UUID) (*[]roles.AccountRole, error)
nolint
func (*Repository) GetByName ¶
func (r *Repository) GetByName(companyID uuid.UUID, name string) (*accountEntities.Repository, error)
func (*Repository) List ¶
func (r *Repository) List(accountID, companyID uuid.UUID) (*[]accountEntities.RepositoryResponse, error)
func (*Repository) ListByLdapPermissions ¶ added in v1.7.0
func (r *Repository) ListByLdapPermissions(companyID uuid.UUID, permissions []string) (*[]accountEntities.RepositoryResponse, error)
func (*Repository) Update ¶
func (r *Repository) Update(repositoryID uuid.UUID, repository *accountEntities.Repository) ( *accountEntities.Repository, error)
Click to show internal directories.
Click to hide internal directories.