Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRevokeSystemToken ¶
func NewRevokeSystemToken(repository repository.SystemTokenRepository) revokeSystemToken
Types ¶
type CreateSystemToken ¶
type CreateSystemToken interface {
Execute(authorization string, input CreateSystemTokenInput) (domain.SystemToken, error)
}
func NewCreateSystemToken ¶
func NewCreateSystemToken(systemTokenRepository repository.SystemTokenRepository, permissionRepository repository.PermissionRepository, userRepository repository.UserRepository, workspaceRepository repository.WorkspaceRepository, authTokenService service.AuthTokenService) CreateSystemToken
type CreateSystemTokenInput ¶
type CreateSystemTokenInput struct { Name string Permissions []string Workspaces []string AllWorkspaces bool }
func (CreateSystemTokenInput) InputToDomain ¶
func (input CreateSystemTokenInput) InputToDomain() domain.SystemToken
func (*CreateSystemTokenInput) RemoveDuplicationOnFields ¶
func (input *CreateSystemTokenInput) RemoveDuplicationOnFields()
type GetAllSystemToken ¶
type GetAllSystemToken interface {
Execute(name string, pageRequest domain.Page) ([]domain.SystemToken, domain.Page, error)
}
func NewGetAllSystemToken ¶
func NewGetAllSystemToken(r repository.SystemTokenRepository) GetAllSystemToken
type GetSystemToken ¶
type GetSystemToken interface {
Execute(id uuid.UUID) (domain.SystemToken, error)
}
func NewGetSystemToken ¶
func NewGetSystemToken(repository repository.SystemTokenRepository) GetSystemToken
type RegenerateSystemToken ¶
func NewRegenerateSystemToken ¶
func NewRegenerateSystemToken(repository repository.SystemTokenRepository) RegenerateSystemToken
type RevokeSystemToken ¶
Click to show internal directories.
Click to hide internal directories.