Versions in this module Expand all Collapse all v0 v0.1.1 Apr 19, 2026 v0.1.0 Apr 19, 2026 Changes in this version + const CommandEnv + const CustomDriver + const DaemonStateFile + const DockerDriver + const KubernetesDriver + const MachineConfigFile + const ProInstanceConfigFile + const ProviderConfigFile + const WorkspaceConfigFile + const WorkspaceResultFile + var ProviderNameRegEx = regexp.MustCompile(`[^a-z0-9\-]+`) + var WorkspaceSourceContainer = "container:" + var WorkspaceSourceGit = "git:" + var WorkspaceSourceImage = "image:" + var WorkspaceSourceLocal = "local:" + var WorkspaceSourceUnknown = "unknown:" + func CombineOptions(workspace *Workspace, machine *Machine, options map[string]config.OptionValue) map[string]config.OptionValue + func DownloadBinaries(binaries map[string][]*ProviderBinary, targetFolder string, log log.Logger) (map[string]string, error) + func GetBaseEnvironment(context, provider string) map[string]string + func GetBinaries(context string, config *ProviderConfig) (map[string]string, error) + func GetBinariesFrom(config *ProviderConfig, binariesDir string) (map[string]string, error) + func GetDaemonDir(context, providerName string) (string, error) + func GetLocksDir(context string) (string, error) + func GetMachineDir(context, machineID string) (string, error) + func GetMachinesDir(context string) (string, error) + func GetProInstanceDir(context, proInstanceHost string) (string, error) + func GetProInstancesDir(context string) (string, error) + func GetProviderBinariesDir(context, providerName string) (string, error) + func GetProviderDir(context, providerName string) (string, error) + func GetProviderOptions(workspace *Workspace, server *Machine, devConfig *config.Config) map[string]config.OptionValue + func GetProvidersDir(context string) (string, error) + func GetWorkspaceDir(context, workspaceID string) (string, error) + func GetWorkspacesDir(context string) (string, error) + func LoadWorkspaceResult(context, workspaceID string) (*config2.Result, error) + func MachineExists(context, machineID string) bool + func Merge(m1 map[string]string, m2 map[string]string) map[string]string + func ParseOptions(options []string) (map[string]string, error) + func ProInstanceExists(context, proInstanceID string) bool + func ProviderExists(context, provider string) bool + func SaveMachineConfig(machine *Machine) error + func SaveProInstanceConfig(context string, proInstance *ProInstance) error + func SaveProviderConfig(context string, provider *ProviderConfig) error + func SaveWorkspaceConfig(workspace *Workspace) error + func SaveWorkspaceResult(workspace *Workspace, result *config2.Result) error + func ToEnvironment(workspace *Workspace, machine *Machine, options map[string]config.OptionValue, ...) []string + func ToEnvironmentWithBinaries(opts EnvironmentOptions) ([]string, error) + func ToOptions(workspace *Workspace, machine *Machine, options map[string]config.OptionValue) map[string]string + func ToOptionsMachine(machine *Machine) map[string]string + func ToOptionsWorkspace(workspace *Workspace) map[string]string + func ToProInstanceID(url string) string + func WorkspaceExists(context, workspaceID string) bool + type AgentWorkspaceInfo struct + Agent ProviderAgentConfig + CLIOptions CLIOptions + ContentFolder string + InjectTimeout time.Duration + LastDevContainerConfig *devcontainerconfig.DevContainerConfigWithPath + Machine *Machine + Options map[string]config.OptionValue + Origin string + RegistryCache string + Workspace *Workspace + WorkspaceOrigin string + func CloneAgentWorkspaceInfo(agentWorkspaceInfo *AgentWorkspaceInfo) *AgentWorkspaceInfo + type BuildOptions struct + ExportCache bool + NoBuild bool + Platform string + PushDuringBuild bool + RegistryCache string + type CLIOptions struct + AdditionalFeatures string + DaemonInterval string + DevContainerID string + DevContainerImage string + DevContainerPath string + DisableDaemon bool + ExtraDevContainerPath string + FallbackImage string + ForceBuild bool + ForceDockerless bool + ForceInternalBuildKit bool + GidMap []string + GitCloneRecursiveSubmodules bool + GitCloneStrategy git.CloneStrategy + GitSSHSigningKey string + ID string + IDE string + IDEOptions []string + InitEnv []string + Platform devsy.PlatformOptions + Platforms []string + PrebuildRepositories []string + PushDuringBuild bool + Recreate bool + Repository string + Reset bool + SSHAuthSockID string + SkipPush bool + Source string + StrictHostKeyChecking bool + Tag []string + UidMap []string + User string + Userns string + WorkspaceEnv []string + WorkspaceEnvFile []string + type ContainerWorkspaceInfo struct + Agent ProviderAgentConfig + CLIOptions CLIOptions + ContainerTimeout string + ContentFolder string + Dockerless ProviderDockerlessOptions + IDE WorkspaceIDEConfig + PullFromInsideContainer types.StrBool + Source WorkspaceSource + type CreateProxyCommands struct + Workspace types.StrArray + type DaemonCommands struct + Start types.StrArray + Status types.StrArray + type EnvironmentOptions struct + Config *ProviderConfig + Context string + ExtraEnv map[string]string + Log log.Logger + Machine *Machine + Options map[string]config.OptionValue + Workspace *Workspace + type ExportConfig struct + Machine *ExportMachineConfig + Provider *ExportProviderConfig + Workspace *ExportWorkspaceConfig + type ExportMachineConfig struct + Context string + Data string + ID string + func ExportMachine(context, machineID string) (*ExportMachineConfig, error) + type ExportProviderConfig struct + Config *config.ProviderConfig + Context string + Data string + ID string + func ExportProvider(devsyConfig *config.Config, context, providerID string) (*ExportProviderConfig, error) + type ExportWorkspaceConfig struct + Context string + Data string + ID string + UID string + func ExportWorkspace(context, workspaceID string) (*ExportWorkspaceConfig, error) + type GetProxyCommands struct + Self types.StrArray + Version types.StrArray + Workspace types.StrArray + type ListProxyCommands struct + Clusters types.StrArray + Projects types.StrArray + Templates types.StrArray + Workspaces types.StrArray + type Machine struct + Context string + CreationTimestamp types.Time + ID string + Origin string + Provider MachineProviderConfig + func CloneMachine(server *Machine) *Machine + func LoadMachineConfig(context, machineID string) (*Machine, error) + type MachineProviderConfig struct + Name string + Options map[string]config.OptionValue + type ProInstance struct + CreationTimestamp types.Time + Host string + Provider string + func LoadProInstanceConfig(context, proInstanceHost string) (*ProInstance, error) + type ProMetadata struct + DisplayName string + InstanceName string + Project string + type ProviderAgentConfig struct + Binaries map[string][]*ProviderBinary + ContainerTimeout string + Custom ProviderCustomDriverConfig + DataPath string + Docker ProviderDockerDriverConfig + Dockerless ProviderDockerlessOptions + DownloadURL string + Driver string + Exec ProviderAgentConfigExec + InjectDockerCredentials types.StrBool + InjectGitCredentials types.StrBool + Kubernetes ProviderKubernetesDriverConfig + Local types.StrBool + Path string + Timeout string + func (a ProviderAgentConfig) IsDockerDriver() bool + type ProviderAgentConfigExec struct + Shutdown types.StrArray + type ProviderBinary struct + Arch string + ArchivePath string + Checksum string + Name string + OS string + Path string + type ProviderCommands struct + Command types.StrArray + Create types.StrArray + Daemon *DaemonCommands + Delete types.StrArray + Describe types.StrArray + Init types.StrArray + Proxy *ProxyCommands + Start types.StrArray + Status types.StrArray + Stop types.StrArray + type ProviderConfig struct + Agent ProviderAgentConfig + Binaries map[string][]*ProviderBinary + Description string + Exec ProviderCommands + Home string + Icon string + IconDark string + Name string + OptionGroups []ProviderOptionGroup + Options map[string]*types.Option + Source ProviderSource + Version string + func LoadProviderConfig(context, provider string) (*ProviderConfig, error) + func ParseProvider(reader io.Reader) (*ProviderConfig, error) + func (c *ProviderConfig) HasHealthCheck() bool + func (c *ProviderConfig) IsDaemonProvider() bool + func (c *ProviderConfig) IsMachineProvider() bool + func (c *ProviderConfig) IsProxyProvider() bool + type ProviderCustomDriverConfig struct + CanReprovision types.StrBool + CommandDevContainer types.StrArray + DeleteDevContainer types.StrArray + FindDevContainer types.StrArray + GetDevContainerLogs types.StrArray + RunDevContainer types.StrArray + StartDevContainer types.StrArray + StopDevContainer types.StrArray + TargetArchitecture types.StrArray + type ProviderDockerDriverConfig struct + Builder string + Env map[string]string + Install types.StrBool + Path string + type ProviderDockerlessOptions struct + DisableDockerCredentials types.StrBool + Disabled types.StrBool + IgnorePaths string + Image string + RegistryCache string + type ProviderKubernetesDriverConfig struct + Architecture string + ClusterRole string + CreateNamespace string + DiskSize string + InactivityTimeout string + KubernetesConfig string + KubernetesContext string + KubernetesNamespace string + KubernetesPullSecretsEnabled string + Labels string + NodeSelector string + PodManifestTemplate string + PodTimeout string + PvcAccessMode string + PvcAnnotations string + Resources string + ServiceAccount string + StorageClass string + StrictSecurity string + WorkspaceVolumeMount string + type ProviderOptionGroup struct + DefaultVisible bool + Name string + Options []string + type ProviderSource struct + File string + Github string + Internal bool + Raw string + URL string + type ProxyCommands struct + Create CreateProxyCommands + Delete types.StrArray + Get GetProxyCommands + Health types.StrArray + List ListProxyCommands + Ssh types.StrArray + Status types.StrArray + Stop types.StrArray + Up types.StrArray + Update UpdateProxyCommands + Watch WatchProxyCommands + type SubOptions struct + Options map[string]*types.Option + type UpdateProxyCommands struct + Workspace types.StrArray + type WatchProxyCommands struct + Workspaces types.StrArray + type Workspace struct + Context string + CreationTimestamp types.Time + DevContainerConfig *devcontainerconfig.DevContainerConfig + DevContainerImage string + DevContainerPath string + ID string + IDE WorkspaceIDEConfig + Imported bool + LastUsedTimestamp types.Time + Machine WorkspaceMachineConfig + Origin string + Picture string + Pro *ProMetadata + Provider WorkspaceProviderConfig + SSHConfigIncludePath string + SSHConfigPath string + Source WorkspaceSource + UID string + func CloneWorkspace(workspace *Workspace) *Workspace + func LoadWorkspaceConfig(context, workspaceID string) (*Workspace, error) + func (w *Workspace) IsPro() bool + type WorkspaceIDEConfig struct + Name string + Options map[string]config.OptionValue + type WorkspaceMachineConfig struct + AutoDelete bool + ID string + type WorkspaceProviderConfig struct + Name string + Options map[string]config.OptionValue + type WorkspaceSource struct + Container string + GitBranch string + GitCommit string + GitPRReference string + GitRepository string + GitSubPath string + Image string + LocalFolder string + func ParseWorkspaceSource(source string) *WorkspaceSource + func (w WorkspaceSource) String() string + func (w WorkspaceSource) Type() string