Documentation
¶
Index ¶
- type AccessURL
- type Client
- type LogArtefact
- type Service
- func (s *Service) CreateWorkspace(model Workspace) (*Workspace, *ai.Response, error)
- func (s *Service) DeleteWorkspace(ws Workspace) (*ai.Response, error)
- func (s *Service) GetWorkspaceAccessURL(ws Workspace) (*AccessURL, *ai.Response, error)
- func (s *Service) GetWorkspaceByID(id string) (*Workspace, *ai.Response, error)
- func (s *Service) GetWorkspaceLogs(ws Workspace) (*LogArtefact, *ai.Response, error)
- func (s *Service) GetWorkspaces(opt *ai.GetOptions, options ...ai.OptionFunc) ([]Workspace, *ai.Response, error)
- func (s *Service) StartWorkspace(ws Workspace) (*ai.Response, error)
- func (s *Service) StopWorkspace(ws Workspace) (*ai.Response, error)
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogArtefact ¶ added in v0.44.0
type LogArtefact struct {
StartupLog []string `json:"startupLog"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CreateWorkspace ¶
func (*Service) DeleteWorkspace ¶
func (*Service) GetWorkspaceAccessURL ¶ added in v0.44.0
func (*Service) GetWorkspaceByID ¶
func (*Service) GetWorkspaceLogs ¶ added in v0.44.0
func (*Service) GetWorkspaces ¶
func (s *Service) GetWorkspaces(opt *ai.GetOptions, options ...ai.OptionFunc) ([]Workspace, *ai.Response, error)
func (*Service) StartWorkspace ¶ added in v0.44.0
type Workspace ¶
type Workspace struct { ID string `json:"id,omitempty"` ResourceType string `json:"resourceType"` Name string `json:"name" validate:"required"` Description string `json:"description,omitempty"` ComputeTarget ai.ReferenceComputeTarget `json:"computeTarget" validate:"required"` SourceCode ai.SourceCode `json:"sourceCode"` Labels []string `json:"labels,omitempty"` Type string `json:"type,omitempty"` AdditionalConfiguration string `json:"additionalConfiguration,omitempty"` Created string `json:"created,omitempty"` CreatedBy string `json:"createdBy,omitempty"` LastUpdated string `json:"lastUpdated,omitempty"` }
Click to show internal directories.
Click to hide internal directories.