devpod

package
v3.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LoftWorkspaceID       = "WORKSPACE_ID"
	LoftWorkspaceUID      = "WORKSPACE_UID"
	LoftWorkspaceContext  = "WORKSPACE_CONTEXT"
	LoftWorkspaceProvider = "WORKSPACE_PROVIDER"

	LoftProject = "LOFT_PROJECT"

	LoftTemplateOption        = "LOFT_TEMPLATE"
	LoftTemplateVersionOption = "LOFT_TEMPLATE_VERSION"
)

Functions

func DialWorkspace

func DialWorkspace(baseClient client.Client, workspace *managementv1.DevPodWorkspaceInstance, subResource string, values url.Values) (*websocket.Conn, error)

func FindWorkspace

func FindWorkspace(ctx context.Context, baseClient client.Client, uid, projectName string) (*managementv1.DevPodWorkspaceInstance, error)

func FindWorkspaceByName

func FindWorkspaceByName(ctx context.Context, baseClient client.Client, name, projectName string) (*managementv1.DevPodWorkspaceInstance, error)

func OptionsFromEnv

func OptionsFromEnv(name string) url.Values

Types

type WorkspaceInfo

type WorkspaceInfo struct {
	ID          string
	UID         string
	ProjectName string
}

func GetWorkspaceInfoFromEnv

func GetWorkspaceInfoFromEnv() (*WorkspaceInfo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL