Documentation ¶
Index ¶
- type Controller
- func (c *Controller) Create(data *workspaceEntities.Data) (*workspaceEntities.Response, error)
- func (c *Controller) CreateToken(data *tokenEntities.Data) (string, error)
- func (c *Controller) Delete(workspaceID uuid.UUID) error
- func (c *Controller) DeleteToken(data *tokenEntities.Data) error
- func (c *Controller) Get(data *workspaceEntities.Data) (*workspaceEntities.Response, error)
- func (c *Controller) GetUsers(workspaceID, noBelongRepositoryID uuid.UUID) (*[]roleEntities.Response, error)
- func (c *Controller) InviteUser(data *roleEntities.UserData) (*roleEntities.Response, error)
- func (c *Controller) List(data *workspaceEntities.Data) (*[]workspaceEntities.Response, error)
- func (c *Controller) ListTokens(workspaceID uuid.UUID) (*[]tokenEntities.Response, error)
- func (c *Controller) RemoveUser(data *roleEntities.Data) error
- func (c *Controller) Update(data *workspaceEntities.Data) (*workspaceEntities.Response, error)
- func (c *Controller) UpdateRole(data *roleEntities.Data) (*roleEntities.Response, error)
- type IController
- type Mock
- func (m *Mock) Create(_ *workspaceEntities.Data) (*workspaceEntities.Response, error)
- func (m *Mock) CreateToken(_ *tokenEntities.Data) (string, error)
- func (m *Mock) Delete(_ uuid.UUID) error
- func (m *Mock) DeleteToken(_ *tokenEntities.Data) error
- func (m *Mock) Get(_ *workspaceEntities.Data) (*workspaceEntities.Response, error)
- func (m *Mock) GetUsers(_ uuid.UUID, _ uuid.UUID) (*[]roleEntities.Response, error)
- func (m *Mock) InviteUser(_ *roleEntities.UserData) (*roleEntities.Response, error)
- func (m *Mock) List(_ *workspaceEntities.Data) (*[]workspaceEntities.Response, error)
- func (m *Mock) ListTokens(_ uuid.UUID) (*[]tokenEntities.Response, error)
- func (m *Mock) RemoveUser(_ *roleEntities.Data) error
- func (m *Mock) Update(_ *workspaceEntities.Data) (*workspaceEntities.Response, error)
- func (m *Mock) UpdateRole(_ *roleEntities.Data) (*roleEntities.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) Create ¶
func (c *Controller) Create(data *workspaceEntities.Data) (*workspaceEntities.Response, error)
func (*Controller) CreateToken ¶
func (c *Controller) CreateToken(data *tokenEntities.Data) (string, error)
func (*Controller) DeleteToken ¶
func (c *Controller) DeleteToken(data *tokenEntities.Data) error
func (*Controller) Get ¶
func (c *Controller) Get(data *workspaceEntities.Data) (*workspaceEntities.Response, error)
func (*Controller) GetUsers ¶
func (c *Controller) GetUsers(workspaceID, noBelongRepositoryID uuid.UUID) (*[]roleEntities.Response, error)
func (*Controller) InviteUser ¶
func (c *Controller) InviteUser(data *roleEntities.UserData) (*roleEntities.Response, error)
func (*Controller) List ¶
func (c *Controller) List(data *workspaceEntities.Data) (*[]workspaceEntities.Response, error)
func (*Controller) ListTokens ¶
func (c *Controller) ListTokens(workspaceID uuid.UUID) (*[]tokenEntities.Response, error)
func (*Controller) RemoveUser ¶
func (c *Controller) RemoveUser(data *roleEntities.Data) error
func (*Controller) Update ¶
func (c *Controller) Update(data *workspaceEntities.Data) (*workspaceEntities.Response, error)
func (*Controller) UpdateRole ¶
func (c *Controller) UpdateRole(data *roleEntities.Data) (*roleEntities.Response, error)
type IController ¶
type IController interface { Create(data *workspaceEntities.Data) (*workspaceEntities.Response, error) Get(data *workspaceEntities.Data) (*workspaceEntities.Response, error) Update(data *workspaceEntities.Data) (*workspaceEntities.Response, error) Delete(workspaceID uuid.UUID) error List(data *workspaceEntities.Data) (*[]workspaceEntities.Response, error) UpdateRole(data *roleEntities.Data) (*roleEntities.Response, error) InviteUser(data *roleEntities.UserData) (*roleEntities.Response, error) GetUsers(workspaceID uuid.UUID, noBelongRepositoryID uuid.UUID) (*[]roleEntities.Response, error) RemoveUser(data *roleEntities.Data) error CreateToken(data *tokenEntities.Data) (string, error) DeleteToken(data *tokenEntities.Data) error ListTokens(workspaceID uuid.UUID) (*[]tokenEntities.Response, error) }
func NewWorkspaceController ¶
func NewWorkspaceController(broker brokerService.IBroker, databaseConnection *database.Connection, appConfig app.IConfig, useCases workspaceUseCases.IUseCases, repository workspaceRepository.IRepository, useCasesToken tokenUseCases.IUseCases) IController
type Mock ¶
func (*Mock) Create ¶
func (m *Mock) Create(_ *workspaceEntities.Data) (*workspaceEntities.Response, error)
func (*Mock) CreateToken ¶
func (m *Mock) CreateToken(_ *tokenEntities.Data) (string, error)
func (*Mock) DeleteToken ¶
func (m *Mock) DeleteToken(_ *tokenEntities.Data) error
func (*Mock) Get ¶
func (m *Mock) Get(_ *workspaceEntities.Data) (*workspaceEntities.Response, error)
func (*Mock) InviteUser ¶
func (m *Mock) InviteUser(_ *roleEntities.UserData) (*roleEntities.Response, error)
func (*Mock) List ¶
func (m *Mock) List(_ *workspaceEntities.Data) (*[]workspaceEntities.Response, error)
func (*Mock) ListTokens ¶
func (*Mock) RemoveUser ¶
func (m *Mock) RemoveUser(_ *roleEntities.Data) error
func (*Mock) Update ¶
func (m *Mock) Update(_ *workspaceEntities.Data) (*workspaceEntities.Response, error)
func (*Mock) UpdateRole ¶
func (m *Mock) UpdateRole(_ *roleEntities.Data) (*roleEntities.Response, error)
Click to show internal directories.
Click to hide internal directories.