Documentation ¶
Index ¶
- type WorkspaceService
- func (s *WorkspaceService) CreateWorkspace(id, name, targetName string, repositories []gitprovider.GitRepository) (*workspace.Workspace, error)
- func (s *WorkspaceService) GetWorkspace(workspaceId string) (*dto.WorkspaceDTO, error)
- func (s *WorkspaceService) ListWorkspaces(verbose bool) ([]dto.WorkspaceDTO, error)
- func (s *WorkspaceService) RemoveWorkspace(workspaceId string) error
- func (s *WorkspaceService) SetProjectState(workspaceId, projectName string, state *workspace.ProjectState) (*workspace.Workspace, error)
- func (s *WorkspaceService) StartProject(workspaceId, projectName string) error
- func (s *WorkspaceService) StartWorkspace(workspaceId string) error
- func (s *WorkspaceService) StopProject(workspaceId, projectName string) error
- func (s *WorkspaceService) StopWorkspace(workspaceId string) error
- type WorkspaceServiceConfig
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) }
Click to show internal directories.
Click to hide internal directories.