Documentation ¶
Index ¶
- Variables
- func IsInvalidWorkspaceName(err error) bool
- func IsProjectNotFound(err error) bool
- func IsWorkspaceAlreadyExists(err error) bool
- func IsWorkspaceNotFound(err error) bool
- type IWorkspaceService
- type WorkspaceService
- func (s *WorkspaceService) CreateWorkspace(req dto.CreateWorkspaceRequest) (*workspace.Workspace, error)
- func (s *WorkspaceService) GetProjectLogReader(workspaceId, projectName string) (io.Reader, error)
- func (s *WorkspaceService) GetWorkspace(workspaceId string) (*dto.WorkspaceDTO, error)
- func (s *WorkspaceService) GetWorkspaceLogReader(workspaceId string) (io.Reader, 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 ¶
Functions ¶
func IsInvalidWorkspaceName ¶ added in v0.12.1
func IsProjectNotFound ¶ added in v0.12.1
func IsWorkspaceAlreadyExists ¶ added in v0.12.1
func IsWorkspaceNotFound ¶ added in v0.12.1
Types ¶
type IWorkspaceService ¶ added in v0.12.0
type IWorkspaceService interface { CreateWorkspace(req dto.CreateWorkspaceRequest) (*workspace.Workspace, error) GetWorkspace(workspaceId string) (*dto.WorkspaceDTO, error) GetWorkspaceLogReader(workspaceId string) (io.Reader, error) GetProjectLogReader(workspaceId, projectName string) (io.Reader, error) ListWorkspaces(verbose bool) ([]dto.WorkspaceDTO, error) RemoveWorkspace(workspaceId string) error SetProjectState(workspaceId string, projectName string, state *workspace.ProjectState) (*workspace.Workspace, error) StartProject(workspaceId string, projectName string) error StartWorkspace(workspaceId string) error StopProject(workspaceId string, projectName string) error StopWorkspace(workspaceId string) error }
func NewWorkspaceService ¶
func NewWorkspaceService(config WorkspaceServiceConfig) IWorkspaceService
type WorkspaceService ¶
type WorkspaceService struct {
// contains filtered or unexported fields
}
func (*WorkspaceService) CreateWorkspace ¶
func (s *WorkspaceService) CreateWorkspace(req dto.CreateWorkspaceRequest) (*workspace.Workspace, error)
func (*WorkspaceService) GetProjectLogReader ¶ added in v0.13.0
func (s *WorkspaceService) GetProjectLogReader(workspaceId, projectName string) (io.Reader, error)
func (*WorkspaceService) GetWorkspace ¶
func (s *WorkspaceService) GetWorkspace(workspaceId string) (*dto.WorkspaceDTO, error)
func (*WorkspaceService) GetWorkspaceLogReader ¶ added in v0.12.0
func (s *WorkspaceService) GetWorkspaceLogReader(workspaceId string) (io.Reader, 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 ContainerRegistryStore containerregistry.Store ServerApiUrl string ServerUrl string Provisioner provisioner.IProvisioner DefaultProjectImage string DefaultProjectUser string DefaultProjectPostStartCommands []string ApiKeyService apikeys.IApiKeyService LoggerFactory logger.LoggerFactory GitProviderService gitproviders.IGitProviderService BuilderFactory builder.IBuilderFactory }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.