workspace

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGettingNonExistingWorkspace  = errors.New("the workspace does not exist")
	ErrUpdatingNonExistingWorkspace = errors.New("the workspace to update does not exist")
	ErrInvalidWorkspaceID           = errors.New("the workspace ID should be a uuid")
	ErrBackendNotFound              = errors.New("the specified backend does not exist")
)

Functions

This section is empty.

Types

type WorkspaceManager

type WorkspaceManager struct {
	// contains filtered or unexported fields
}

func NewWorkspaceManager

func NewWorkspaceManager(workspaceRepo repository.WorkspaceRepository, backendRepo repository.BackendRepository) *WorkspaceManager

func (*WorkspaceManager) CreateWorkspace

func (m *WorkspaceManager) CreateWorkspace(ctx context.Context, requestPayload request.CreateWorkspaceRequest) (*entity.Workspace, error)

func (*WorkspaceManager) DeleteWorkspaceByID

func (m *WorkspaceManager) DeleteWorkspaceByID(ctx context.Context, id uint) error

func (*WorkspaceManager) GetWorkspaceByID

func (m *WorkspaceManager) GetWorkspaceByID(ctx context.Context, id uint) (*entity.Workspace, error)

func (*WorkspaceManager) ListWorkspaces

func (m *WorkspaceManager) ListWorkspaces(ctx context.Context) ([]*entity.Workspace, error)

func (*WorkspaceManager) UpdateWorkspaceByID

func (m *WorkspaceManager) UpdateWorkspaceByID(ctx context.Context, id uint, requestPayload request.UpdateWorkspaceRequest) (*entity.Workspace, error)

Jump to

Keyboard shortcuts

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