Documentation ¶
Index ¶
- func AddProvider(devPodConfig *config.Config, providerName, providerSourceRaw string, ...) (*provider2.ProviderConfig, error)
- func DownloadProviderGithub(originalPath string, log log.Logger) ([]byte, *provider2.ProviderSource, error)
- func Exists(devPodConfig *config.Config, args []string) string
- func GetMachine(devPodConfig *config.Config, args []string, log log.Logger) (client.MachineClient, error)
- func GetWorkspace(devPodConfig *config.Config, args []string, changeLastUsed bool, ...) (client.WorkspaceClient, error)
- func GetWorkspaceName(args []string) string
- func ListWorkspaces(devPodConfig *config.Config, log log.Logger) ([]*provider2.Workspace, error)
- func LoadAllProviders(devPodConfig *config.Config, log log.Logger) (map[string]*ProviderWithOptions, error)
- func MachineExists(devPodConfig *config.Config, args []string) string
- func ResolveMachine(devPodConfig *config.Config, args []string, userOptions []string, ...) (client.Client, error)
- func ResolveProvider(providerSource string, log log.Logger) ([]byte, *provider2.ProviderSource, error)
- func ResolveWorkspace(ctx context.Context, devPodConfig *config.Config, ide string, ...) (client.WorkspaceClient, error)
- func SingleMachineName(provider string) string
- func ToID(str string) string
- func UpdateProvider(devPodConfig *config.Config, providerName, providerSourceRaw string, ...) (*provider2.ProviderConfig, error)
- type ProviderWithOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProvider ¶
func DownloadProviderGithub ¶
func GetMachine ¶
func GetMachine(devPodConfig *config.Config, args []string, log log.Logger) (client.MachineClient, error)
GetMachine creates a machine client
func GetWorkspace ¶
func GetWorkspace(devPodConfig *config.Config, args []string, changeLastUsed bool, log log.Logger) (client.WorkspaceClient, error)
GetWorkspace tries to retrieve an already existing workspace
func GetWorkspaceName ¶
func ListWorkspaces ¶ added in v0.0.3
func LoadAllProviders ¶
func MachineExists ¶
MachineExists checks if the given workspace already exists
func ResolveMachine ¶
func ResolveProvider ¶
func ResolveWorkspace ¶
func ResolveWorkspace( ctx context.Context, devPodConfig *config.Config, ide string, ideOptions []string, args []string, desiredID, desiredMachine string, providerUserOptions []string, devContainerPath string, changeLastUsed bool, log log.Logger, ) (client.WorkspaceClient, error)
ResolveWorkspace tries to retrieve an already existing workspace or creates a new one
func SingleMachineName ¶
func UpdateProvider ¶
Types ¶
type ProviderWithOptions ¶
type ProviderWithOptions struct { Config *provider2.ProviderConfig `json:"config,omitempty"` State *config.ProviderConfig `json:"state,omitempty"` }
func FindProvider ¶
func LoadProviders ¶
func LoadProviders(devPodConfig *config.Config, log log.Logger) (*ProviderWithOptions, map[string]*ProviderWithOptions, error)
LoadProviders loads all known providers for the given context and
Click to show internal directories.
Click to hide internal directories.