Documentation
¶
Index ¶
- Variables
- func BuildAgentClient(ctx context.Context, opts BuildAgentClientOptions) (*config2.Result, error)
- func DecodeOptionsFromEnv(name string, into any) (bool, error)
- func DecodePlatformOptionsFromEnv(into *devpod.PlatformOptions) error
- func DeleteMachineFolder(context, machineID string) error
- func DeleteWorkspaceFolder(params DeleteWorkspaceFolderParams, log log.Logger) error
- func EncodeOptions(options any, name string) map[string]string
- func NewMachineClient(devPodConfig *config.Config, provider *provider.ProviderConfig, ...) (client.MachineClient, error)
- func NewProxyClient(devPodConfig *config.Config, prov *provider.ProviderConfig, ...) (client.ProxyClient, error)
- func NewWorkspaceClient(devPodConfig *config.Config, prov *provider.ProviderConfig, ...) (client.WorkspaceClient, error)
- func RunCommand(opts RunCommandOptions) error
- func RunCommandWithBinaries(opts CommandOptions) error
- func StartServicesDaemon(ctx context.Context, opts StartServicesDaemonOptions) error
- func StartWait(ctx context.Context, workspaceClient client.WorkspaceClient, create bool, ...) error
- type BuildAgentClientOptions
- type CommandOptions
- type DeleteWorkspaceFolderParams
- type RunCommandOptions
- type StartServicesDaemonOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DevPodDebug = "DEVPOD_DEBUG" DevPodPlatformOptions = "DEVPOD_PLATFORM_OPTIONS" DevPodFlagsUp = "DEVPOD_FLAGS_UP" DevPodFlagsSsh = "DEVPOD_FLAGS_SSH" DevPodFlagsDelete = "DEVPOD_FLAGS_DELETE" DevPodFlagsStatus = "DEVPOD_FLAGS_STATUS" )
Functions ¶
func BuildAgentClient ¶ added in v0.10.0
BuildAgentClient builds an agent client for workspace operations.
func DecodePlatformOptionsFromEnv ¶
func DecodePlatformOptionsFromEnv(into *devpod.PlatformOptions) error
func DeleteMachineFolder ¶
func DeleteWorkspaceFolder ¶
func DeleteWorkspaceFolder(params DeleteWorkspaceFolderParams, log log.Logger) error
func NewMachineClient ¶
func NewProxyClient ¶
func NewWorkspaceClient ¶
func RunCommand ¶
func RunCommand(opts RunCommandOptions) error
func RunCommandWithBinaries ¶
func RunCommandWithBinaries(opts CommandOptions) error
func StartServicesDaemon ¶ added in v0.10.0
func StartServicesDaemon(ctx context.Context, opts StartServicesDaemonOptions) error
StartServicesDaemon starts the services daemon for credential forwarding and port forwarding.
Types ¶
type BuildAgentClientOptions ¶ added in v0.10.0
type BuildAgentClientOptions struct {
WorkspaceClient client.WorkspaceClient
CLIOptions provider.CLIOptions
AgentCommand string
Log log.Logger
TunnelOptions []tunnelserver.Option
}
BuildAgentClientOptions contains parameters for BuildAgentClient.
type CommandOptions ¶ added in v0.9.8
type CommandOptions struct {
Ctx context.Context
Name string
Command types.StrArray
Context string
Workspace *provider.Workspace
Machine *provider.Machine
Options map[string]config.OptionValue
Config *provider.ProviderConfig
ExtraEnv map[string]string
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
Log log.Logger
}
type DeleteWorkspaceFolderParams ¶ added in v0.9.5
type RunCommandOptions ¶ added in v0.9.8
Click to show internal directories.
Click to hide internal directories.