Documentation ¶
Index ¶
- func GetProjectEnvVars(project *Project, apiUrl, serverUrl string) map[string]string
- func GetProjectHostname(workspaceId string, projectName string) string
- func GetWorkspaceEnvVars(workspace *Workspace, params WorkspaceEnvVarParams) map[string]string
- type FileStatus
- type GitStatus
- type Project
- type ProjectBuild
- type ProjectBuildDevcontainer
- type ProjectInfo
- type ProjectState
- type Status
- type Store
- type Workspace
- type WorkspaceEnvVarParams
- type WorkspaceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProjectEnvVars ¶
func GetProjectHostname ¶ added in v0.12.1
func GetWorkspaceEnvVars ¶ added in v0.15.0
func GetWorkspaceEnvVars(workspace *Workspace, params WorkspaceEnvVarParams) map[string]string
Types ¶
type FileStatus ¶ added in v0.15.0
type GitStatus ¶ added in v0.15.0
type GitStatus struct { CurrentBranch string `json:"currentBranch"` Files []*FileStatus `json:"fileStatus"` } // @name GitStatus
type Project ¶
type Project struct { Name string `json:"name"` Image string `json:"image"` User string `json:"user"` Build *ProjectBuild `json:"build"` 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"` PostCreateCommands []string `json:"postCreateCommands,omitempty"` PostStartCommands []string `json:"postStartCommands,omitempty"` } // @name Project
func (*Project) GetConfigHash ¶ added in v0.17.0
GetConfigHash returns a SHA-256 hash of the project's build configuration, repository URL, and environment variables.
func (*Project) GetImageServer ¶ added in v0.13.0
type ProjectBuild ¶ added in v0.17.0
type ProjectBuild struct { Devcontainer *ProjectBuildDevcontainer `json:"devcontainer"` } // @name ProjectBuild
type ProjectBuildDevcontainer ¶ added in v0.17.0
type ProjectBuildDevcontainer struct { DevContainerFilePath string `json:"devContainerFilePath"` } // @name ProjectBuildDevcontainer
type ProjectInfo ¶
type ProjectState ¶
type Status ¶ added in v0.15.0
type Status string // @name Status
Status status code of a file in the Worktree
type Workspace ¶
type WorkspaceEnvVarParams ¶ added in v0.15.0
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.