systoken

package
v0.0.0-...-a65319e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

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)
}

type GetSystemToken

type GetSystemToken interface {
	Execute(id uuid.UUID) (domain.SystemToken, error)
}

func NewGetSystemToken

func NewGetSystemToken(repository repository.SystemTokenRepository) GetSystemToken

type RegenerateSystemToken

type RegenerateSystemToken interface {
	Execute(id uuid.UUID) (string, error)
}

func NewRegenerateSystemToken

func NewRegenerateSystemToken(repository repository.SystemTokenRepository) RegenerateSystemToken

type RevokeSystemToken

type RevokeSystemToken interface {
	Execute(id uuid.UUID) error
}

Jump to

Keyboard shortcuts

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