Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProjectEnvVars ¶
func GetProjectEnvVars(project *Project, params ProjectEnvVarParams, telemetryEnabled bool) map[string]string
func GetProjectHostname ¶
Types ¶
type FileStatus ¶
type GitStatus ¶
type GitStatus struct { CurrentBranch string `json:"currentBranch" validate:"required"` Files []*FileStatus `json:"fileStatus" validate:"required"` BranchPublished bool `json:"branchPublished" validate:"optional"` Ahead int `json:"ahead" validate:"optional"` Behind int `json:"behind" validate:"optional"` } // @name GitStatus
type Project ¶
type Project struct { Name string `json:"name" validate:"required"` Image string `json:"image" validate:"required"` User string `json:"user" validate:"required"` BuildConfig *buildconfig.BuildConfig `json:"buildConfig,omitempty" validate:"optional"` Repository *gitprovider.GitRepository `json:"repository" validate:"required"` EnvVars map[string]string `json:"envVars" validate:"required"` WorkspaceId string `json:"workspaceId" validate:"required"` ApiKey string `json:"-"` Target string `json:"target" validate:"required"` State *ProjectState `json:"state,omitempty" validate:"optional"` } // @name Project
type ProjectEnvVarParams ¶
type ProjectInfo ¶
type ProjectInfo struct { Name string `json:"name" validate:"required"` Created string `json:"created" validate:"required"` IsRunning bool `json:"isRunning" validate:"required"` ProviderMetadata string `json:"providerMetadata,omitempty" validate:"optional"` WorkspaceId string `json:"workspaceId" validate:"required"` } // @name ProjectInfo
type ProjectState ¶
Click to show internal directories.
Click to hide internal directories.