Documentation
¶
Index ¶
- func Module(c *di.Container)
- type Service
- func (svc *Service) AddUserByEmail(ctx context.Context, codebaseID, email string) (*codebase.CodebaseUser, error)
- func (svc *Service) CanAccess(ctx context.Context, userID string, codebaseID string) (bool, error)
- func (svc *Service) CodebaseCount(ctx context.Context) (uint64, error)
- func (svc *Service) Create(ctx context.Context, name string, organizationID *string) (*codebase.Codebase, error)
- func (svc *Service) GetByID(_ context.Context, id string) (*codebase.Codebase, error)
- func (svc *Service) GetByShortID(_ context.Context, shortID string) (*codebase.Codebase, error)
- func (svc *Service) ListByOrganization(ctx context.Context, organizationID string) ([]*codebase.Codebase, error)
- func (svc *Service) ListByOrganizationAndUser(ctx context.Context, organizationID, userID string) ([]*codebase.Codebase, error)
- func (svc *Service) ListOrgsByUser(ctx context.Context, userID string) ([]string, error)
- func (svc *Service) RemoveUser(ctx context.Context, codebaseID, userID string) error
- func (svc *Service) UserIsMemberOfCodebaseInOrganization(ctx context.Context, userID, organizationID string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New( repo db_codebase.CodebaseRepository, codebaseUserRepo db_codebase.CodebaseUserRepository, workspaceService service_workspace.Service, userService service_user.Service, logger *zap.Logger, executorProvider executor.Provider, analyticsClient analytics.Client, eventsSender events.EventSender, ) *Service
func (*Service) AddUserByEmail ¶
func (*Service) CodebaseCount ¶
func (*Service) GetByShortID ¶
func (*Service) ListByOrganization ¶
func (*Service) ListByOrganizationAndUser ¶
func (*Service) ListOrgsByUser ¶
ListOrgsByUser returns a list of organization IDs that the user can _see_ through it's explicit membership of one of it's codebases.
func (*Service) RemoveUser ¶
Click to show internal directories.
Click to hide internal directories.