workspaces

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkspaceService

type WorkspaceService struct {
	NewWorkspaceLogReader func(workspaceId string) (io.Reader, error)
	// contains filtered or unexported fields
}

func NewWorkspaceService

func NewWorkspaceService(config WorkspaceServiceConfig) *WorkspaceService

func (*WorkspaceService) CreateWorkspace

func (s *WorkspaceService) CreateWorkspace(id, name, targetName string, repositories []gitprovider.GitRepository) (*workspace.Workspace, error)

func (*WorkspaceService) GetWorkspace

func (s *WorkspaceService) GetWorkspace(workspaceId string) (*dto.WorkspaceDTO, error)

func (*WorkspaceService) ListWorkspaces

func (s *WorkspaceService) ListWorkspaces(verbose bool) ([]dto.WorkspaceDTO, error)

func (*WorkspaceService) RemoveWorkspace

func (s *WorkspaceService) RemoveWorkspace(workspaceId string) error

func (*WorkspaceService) SetProjectState

func (s *WorkspaceService) SetProjectState(workspaceId, projectName string, state *workspace.ProjectState) (*workspace.Workspace, error)

func (*WorkspaceService) StartProject

func (s *WorkspaceService) StartProject(workspaceId, projectName string) error

func (*WorkspaceService) StartWorkspace

func (s *WorkspaceService) StartWorkspace(workspaceId string) error

func (*WorkspaceService) StopProject

func (s *WorkspaceService) StopProject(workspaceId, projectName string) error

func (*WorkspaceService) StopWorkspace

func (s *WorkspaceService) StopWorkspace(workspaceId string) error

type WorkspaceServiceConfig

type WorkspaceServiceConfig struct {
	WorkspaceStore        workspace.Store
	TargetStore           targetStore
	ServerApiUrl          string
	ServerUrl             string
	Provisioner           provisioner.Provisioner
	ApiKeyService         apikeys.ApiKeyService
	NewWorkspaceLogger    func(workspaceId string) logger.Logger
	NewProjectLogger      func(workspaceId, projectName string) logger.Logger
	NewWorkspaceLogReader func(workspaceId string) (io.Reader, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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