Documentation ¶
Index ¶
- Constants
- Variables
- func DisplayName(name string, displayName string) string
- func GetDevPodVersion(url string) (string, error)
- func GetProInstanceDevPodVersion(proInstance *provider.ProInstance) (string, error)
- func Timeout() time.Duration
- func WaitForPodReady(ctx context.Context, kubeClient kubernetes.Interface, namespace string, ...) (*corev1.Pod, error)
- type VersionObject
Constants ¶
View Source
const ( WorkspaceIDEnv = "WORKSPACE_ID" WorkspaceUIDEnv = "WORKSPACE_UID" WorkspaceContextEnv = "WORKSPACE_CONTEXT" WorkspaceProviderEnv = "WORKSPACE_PROVIDER" ConfigEnv = "LOFT_CONFIG" ProjectEnv = "LOFT_PROJECT" RunnerEnv = "LOFT_RUNNER" TemplateOptionEnv = "LOFT_TEMPLATE" TemplateVersionOptionEnv = "LOFT_TEMPLATE_VERSION" TimeoutEnv = "LOFT_TIMEOUT" )
Variables ¶
View Source
var CriticalStatus = map[string]bool{ "Error": true, "Unknown": true, "ImagePullBackOff": true, "CrashLoopBackOff": true, "RunContainerError": true, "ErrImagePull": true, "CreateContainerConfigError": true, "InvalidImageName": true, }
CriticalStatus container status
Functions ¶
func DisplayName ¶ added in v0.5.19
func GetDevPodVersion ¶ added in v0.5.13
func GetProInstanceDevPodVersion ¶ added in v0.5.13
func GetProInstanceDevPodVersion(proInstance *provider.ProInstance) (string, error)
Types ¶
type VersionObject ¶ added in v0.5.13
type VersionObject struct { // Version is the remote devpod version DevPodVersion string `json:"devPodVersion,omitempty"` }
Click to show internal directories.
Click to hide internal directories.