Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProjectEnvVars ¶
func GetProjectEnvVars(project *Project, apiUrl, serverUrl string) map[string]string
func GetProjectHostname ¶ added in v0.12.1
func GetProjectHostname(workspaceId string, projectName string) string
Types ¶
type Project ¶
type Project struct {
Name string `json:"name"`
Image string `json:"image"`
User string `json:"user"`
Repository *gitprovider.GitRepository `json:"repository"`
WorkspaceId string `json:"workspaceId"`
ApiKey string `json:"-"`
Target string `json:"target"`
EnvVars map[string]string `json:"-"`
State *ProjectState `json:"state,omitempty"`
} // @name Project
func (*Project) GetImageServer ¶ added in v0.13.0
func (p *Project) GetImageServer() string
type ProjectInfo ¶
type ProjectInfo struct {
Name string `json:"name"`
Created string `json:"created"`
IsRunning bool `json:"isRunning"`
ProviderMetadata string `json:"providerMetadata,omitempty"`
WorkspaceId string `json:"workspaceId"`
} // @name ProjectInfo
type ProjectState ¶
type ProjectState struct {
UpdatedAt string `json:"updatedAt"`
Uptime uint64 `json:"uptime"`
} // @name ProjectState
type Store ¶
type Store interface {
List() ([]*Workspace, error)
Find(idOrName string) (*Workspace, error)
Save(workspace *Workspace) error
Delete(workspace *Workspace) error
}
type Workspace ¶
type Workspace struct {
Id string `json:"id"`
Name string `json:"name"`
Projects []*Project `json:"projects"`
Target string `json:"target"`
} // @name Workspace
func (*Workspace) GetProject ¶
func (w *Workspace) GetProject(projectName string) (*Project, error)
type WorkspaceInfo ¶
type WorkspaceInfo struct {
Name string `json:"name"`
Projects []*ProjectInfo `json:"projects"`
ProviderMetadata string `json:"providerMetadata,omitempty"`
} // @name WorkspaceInfo
Click to show internal directories.
Click to hide internal directories.