Documentation ¶
Index ¶
- Variables
- func AgentPersistentPreRunE(cobraCmd *cobra.Command, args []string, globalFlags *flags.GlobalFlags) error
- func NewAgentCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewContainerTunnelCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewDaemonCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewDockerCredentialsCmd(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 StartContainer(ctx context.Context, runner devcontainer.Runner, log log.Logger) (*config.Result, error)
- type ContainerTunnelCmd
- type DaemonCmd
- type DockerCredentialsCmd
- type GitCredentialsCmd
- type GitSSHSignatureCmd
- type GitSSHSignatureHelperCmd
Constants ¶
This section is empty.
Variables ¶
var AgentExecutedAnnotation = "loft.sh/agent-executed"
Functions ¶
func AgentPersistentPreRunE ¶ added in v0.2.1
func NewAgentCmd ¶
func NewAgentCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewAgentCmd returns a new root command
func NewContainerTunnelCmd ¶
func NewContainerTunnelCmd(flags *flags.GlobalFlags) *cobra.Command
NewContainerTunnelCmd creates a new command
func NewDaemonCmd ¶
func NewDaemonCmd(flags *flags.GlobalFlags) *cobra.Command
NewDaemonCmd creates a new command
func NewDockerCredentialsCmd ¶
func NewDockerCredentialsCmd(flags *flags.GlobalFlags) *cobra.Command
NewDockerCredentialsCmd creates a new command
func NewGitCredentialsCmd ¶
func NewGitCredentialsCmd(flags *flags.GlobalFlags) *cobra.Command
NewGitCredentialsCmd creates a new command
func NewGitSSHSignatureCmd ¶ added in v0.5.18
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 "devpod 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 ¶ added in v0.5.18
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.
Types ¶
type ContainerTunnelCmd ¶
type ContainerTunnelCmd struct { *flags.GlobalFlags WorkspaceInfo string User string }
ContainerTunnelCmd holds the ws-tunnel cmd flags
type DaemonCmd ¶
type DaemonCmd struct { *flags.GlobalFlags Interval string }
DaemonCmd holds the cmd flags
type DockerCredentialsCmd ¶
type DockerCredentialsCmd struct { *flags.GlobalFlags Port int }
DockerCredentialsCmd holds the cmd flags
type GitCredentialsCmd ¶
type GitCredentialsCmd struct { *flags.GlobalFlags Port int }
GitCredentialsCmd holds the cmd flags
type GitSSHSignatureCmd ¶ added in v0.5.18
type GitSSHSignatureHelperCmd ¶ added in v0.5.18
type GitSSHSignatureHelperCmd struct { *flags.GlobalFlags CertPath string }