Documentation
¶
Index ¶
- func NewAgentCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewBrowserTunnelCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewCheckProviderUpdateCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewContainerTunnelCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewDaemonCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewDaemonLocalCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewDockerCredentialsCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewDockerCredentialsHelperCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewFleetServerCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewGetCmd() *cobra.Command
- func NewGetImageCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewGetImagePlatformsCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewGetProviderNameCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewGetWorkspaceConfigCommand(flags *flags.GlobalFlags) *cobra.Command
- func NewGetWorkspaceNameCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewGetWorkspaceUIDCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewGitCredentialsCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewGitSSHSignatureCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewGitSSHSignatureHelperCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewHTTPCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewInternalCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewJSONCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewLogsDaemonCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewRequestCmd() *cobra.Command
- func NewRunUserCommandsCmd(f *flags.GlobalFlags) *cobra.Command
- func NewRunUserCommandsCmdAlias(f *flags.GlobalFlags) *cobra.Command
- func NewSSHClientCmd() *cobra.Command
- func NewSSHGitCloneCmd() *cobra.Command
- func NewSSHServerCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewShellCmd() *cobra.Command
- func NewStringsCmd(flags *flags.GlobalFlags) *cobra.Command
- func StartContainer(ctx context.Context, runner devcontainer.Runner, ...) (*config.Result, error)
- type BrowserTunnelCmd
- type CheckProviderUpdateCmd
- type ContainerTunnelCmd
- type DaemonCmd
- type DaemonLocalCmd
- type DockerCredentialsCmd
- type DockerCredentialsHelperCmd
- type FleetServerCmd
- type GetCmd
- type GetImageCommand
- type GetImagePlatformsCommand
- type GetProviderNameCmd
- type GetWorkspaceConfigCommand
- type GetWorkspaceConfigCommandResult
- type GetWorkspaceNameCommand
- type GetWorkspaceUIDCommand
- type GitCredentialsCmd
- type GitSSHSignatureHelperCmd
- type LogsDaemonCmd
- type RequestCmd
- type RunUserCommandsCmd
- type SSHClient
- type SSHGitClone
- type ShellCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAgentCmd ¶
func NewAgentCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewAgentCmd is the hidden parent for commands that run inside a workspace or container, invoked by the daemon over the agent tunnel.
func NewBrowserTunnelCmd ¶
func NewBrowserTunnelCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewBrowserTunnelCmd creates a new browser-tunnel helper command.
func NewCheckProviderUpdateCmd ¶
func NewCheckProviderUpdateCmd(flags *flags.GlobalFlags) *cobra.Command
NewCheckProviderUpdateCmd creates a new command.
func NewContainerTunnelCmd ¶
func NewContainerTunnelCmd(flags *flags.GlobalFlags) *cobra.Command
NewContainerTunnelCmd creates a new command.
func NewDaemonCmd ¶
func NewDaemonCmd(flags *flags.GlobalFlags) *cobra.Command
func NewDaemonLocalCmd ¶
func NewDaemonLocalCmd(flags *flags.GlobalFlags) *cobra.Command
func NewDockerCredentialsCmd ¶
func NewDockerCredentialsCmd(flags *flags.GlobalFlags) *cobra.Command
NewDockerCredentialsCmd creates a new command.
func NewDockerCredentialsHelperCmd ¶
func NewDockerCredentialsHelperCmd(flags *flags.GlobalFlags) *cobra.Command
func NewFleetServerCmd ¶
func NewFleetServerCmd(flags *flags.GlobalFlags) *cobra.Command
NewFleetServerCmd creates a new fleet command.
func NewGetImageCmd ¶
func NewGetImageCmd(flags *flags.GlobalFlags) *cobra.Command
NewGetImageCmd creates a new command.
func NewGetImagePlatformsCmd ¶
func NewGetImagePlatformsCmd(flags *flags.GlobalFlags) *cobra.Command
NewGetImagePlatformsCmd creates a new command.
func NewGetProviderNameCmd ¶
func NewGetProviderNameCmd(flags *flags.GlobalFlags) *cobra.Command
NewGetProviderNameCmd creates a new command.
func NewGetWorkspaceConfigCommand ¶
func NewGetWorkspaceConfigCommand(flags *flags.GlobalFlags) *cobra.Command
NewGetWorkspaceConfigCommand creates a new command.
func NewGetWorkspaceNameCmd ¶
func NewGetWorkspaceNameCmd(flags *flags.GlobalFlags) *cobra.Command
NewGetWorkspaceNameCmd creates a new command.
func NewGetWorkspaceUIDCmd ¶
func NewGetWorkspaceUIDCmd(flags *flags.GlobalFlags) *cobra.Command
NewGetWorkspaceUIDCmd creates a new command.
func NewGitCredentialsCmd ¶
func NewGitCredentialsCmd(flags *flags.GlobalFlags) *cobra.Command
NewGitCredentialsCmd creates a new command.
func NewGitSSHSignatureCmd ¶
func NewGitSSHSignatureCmd(flags *flags.GlobalFlags) *cobra.Command
NewGitSSHSignatureCmd creates new git-ssh-signature command This agent command can be used as git ssh program by setting
> git config --global gpg.ssh.program "devsy internal agent git-ssh-signature"
Git by default uses ssh-keygen for signing commits with ssh. This CLI command is a drop-in replacement for ssh-keygen and hence needs to support ssh-keygen interface that git uses.
custom-ssh-signature-handler -Y sign -n git -f /Users/johndoe/.ssh/my-key.pub /tmp/.git_signing_buffer_tmp4Euk6d
func NewGitSSHSignatureHelperCmd ¶
func NewGitSSHSignatureHelperCmd(flags *flags.GlobalFlags) *cobra.Command
NewGitSSHSignatureHelperCmd creates a new git-ssh-signature-helper command This agent command can be used to inject the Git SSH signature helper.
This command is used to set up the environment for Git SSH signature verification by configuring the necessary helper using a provided signing key path.
Example usage:
git-ssh-signature-helper [signing-key-path]
The signing key path is a required argument for this command. It should be what equal to what you would have set as user.signingkey git config.
func NewHTTPCmd ¶
func NewHTTPCmd(flags *flags.GlobalFlags) *cobra.Command
NewHTTPCmd returns a new command.
func NewInternalCmd ¶
func NewInternalCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewInternalCmd is the hidden parent for plumbing commands invoked by other processes (the daemon, the desktop app, container init scripts), not part of the user-facing CLI contract.
func NewJSONCmd ¶
func NewJSONCmd(flags *flags.GlobalFlags) *cobra.Command
NewJSONCmd returns a new command.
func NewLogsDaemonCmd ¶
func NewLogsDaemonCmd(flags *flags.GlobalFlags) *cobra.Command
NewLogsDaemonCmd creates a new destroy command.
func NewRunUserCommandsCmd ¶
func NewRunUserCommandsCmd(f *flags.GlobalFlags) *cobra.Command
NewRunUserCommandsCmd creates a new run-user-commands command.
func NewRunUserCommandsCmdAlias ¶
func NewRunUserCommandsCmdAlias(f *flags.GlobalFlags) *cobra.Command
NewRunUserCommandsCmdAlias creates the hidden camelCase alias for devcontainer CLI compat.
func NewSSHClientCmd ¶
NewSSHClientCmd creates a new ssh command.
func NewSSHGitCloneCmd ¶
func NewSSHServerCmd ¶
func NewSSHServerCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewSSHServerCmd creates a new ssh command.
func NewStringsCmd ¶
func NewStringsCmd(flags *flags.GlobalFlags) *cobra.Command
NewStringsCmd returns a new command.
func StartContainer ¶
func StartContainer( ctx context.Context, runner devcontainer.Runner, workspaceConfig *provider2.AgentWorkspaceInfo, ) (*config.Result, error)
Types ¶
type BrowserTunnelCmd ¶
type BrowserTunnelCmd struct {
*flags.GlobalFlags
Workspace string
TargetURL string
AuthSockID string
ForwardPorts bool
ExtraPorts []string
User string
GitSSHSigningKey string
InheritListeners []string
// OpenBrowser tells the helper to probe TargetURL and open the host
// browser once the listener accepts. The parent CLI exits in
// milliseconds after spawning the helper, so the auto-open must be
// owned by this long-lived process.
OpenBrowser bool
}
BrowserTunnelCmd holds the browser-tunnel helper flags.
type CheckProviderUpdateCmd ¶
type CheckProviderUpdateCmd struct {
*flags.GlobalFlags
}
type ContainerTunnelCmd ¶
type ContainerTunnelCmd struct {
*flags.GlobalFlags
WorkspaceInfo string
User string
}
ContainerTunnelCmd holds the ws-tunnel cmd flags.
type DaemonLocalCmd ¶
type DaemonLocalCmd struct {
*flags.GlobalFlags
}
type DockerCredentialsCmd ¶
type DockerCredentialsCmd struct {
*flags.GlobalFlags
Port int
}
DockerCredentialsCmd holds the cmd flags.
type DockerCredentialsHelperCmd ¶
type DockerCredentialsHelperCmd struct {
*flags.GlobalFlags
WorkspaceID string
}
type FleetServerCmd ¶
type FleetServerCmd struct {
*flags.GlobalFlags
WorkspaceID string
}
FleetServerCmd holds the fleet server cmd flags.
type GetImageCommand ¶
type GetImageCommand struct {
*flags.GlobalFlags
}
type GetImagePlatformsCommand ¶
type GetImagePlatformsCommand struct {
*flags.GlobalFlags
}
type GetProviderNameCmd ¶
type GetProviderNameCmd struct {
*flags.GlobalFlags
}
type GetWorkspaceConfigCommand ¶
type GetWorkspaceConfigCommand struct {
*flags.GlobalFlags
// contains filtered or unexported fields
}
type GetWorkspaceNameCommand ¶
type GetWorkspaceNameCommand struct {
*flags.GlobalFlags
}
type GetWorkspaceUIDCommand ¶
type GetWorkspaceUIDCommand struct {
*flags.GlobalFlags
}
type GitCredentialsCmd ¶
type GitCredentialsCmd struct {
*flags.GlobalFlags
Port int
}
GitCredentialsCmd holds the cmd flags.
type GitSSHSignatureHelperCmd ¶
type GitSSHSignatureHelperCmd struct {
*flags.GlobalFlags
CertPath string
}
type LogsDaemonCmd ¶
type LogsDaemonCmd struct {
*flags.GlobalFlags
}
LogsDaemonCmd holds the configuration.
type RequestCmd ¶
type RunUserCommandsCmd ¶
type RunUserCommandsCmd struct {
*flags.GlobalFlags
WorkspaceFolder string
ContainerID string
DockerPath string
Config string
OverrideConfig string
RemoteEnv []string
IDLabels []string
Prebuild bool
SkipNonBlockingCommands bool
SkipPostCreate bool
SkipPostStart bool
SkipPostAttach bool
SkipOnCreate bool
SkipUpdateContent bool
}
RunUserCommandsCmd holds the run-user-commands command flags.
type SSHGitClone ¶
Source Files
¶
- agent.go
- agent_daemon.go
- agent_docker_credentials.go
- browser_tunnel.go
- check_provider_update.go
- container_tunnel.go
- daemon_local.go
- fleet_server.go
- get.go
- get_image.go
- get_image_platforms.go
- get_provider_name.go
- get_workspace_config.go
- get_workspace_name.go
- get_workspace_uid.go
- git_credentials.go
- git_ssh_signature.go
- http.go
- internal.go
- json.go
- logs_daemon.go
- request.go
- runusercommands.go
- setup_docker_credentials.go
- sh.go
- ssh_client.go
- ssh_git_clone.go
- ssh_server.go
- strings.go