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 + var DevsySSHHostKeyFile = "id_" + config.BinaryName + "_rsa_host" + var DevsySSHPrivateKeyFile = "id_" + config.BinaryName + "_rsa" + var DevsySSHPublicKeyFile = "id_" + config.BinaryName + "_rsa.pub" + var MarkerEndPrefix = "# Devsy End " + var MarkerStartPrefix = "# Devsy Start " + func AddPrivateKeysToAgent(ctx context.Context, log log.Logger) error + func ConfigFromKeyBytes(keyBytes []byte) (*ssh.ClientConfig, error) + func ConfigureSSHConfig(params SSHConfigParams) error + func FindPrivateKeys() ([]string, error) + func GetDevsyHostKey() (string, error) + func GetDevsyKeysDir() string + func GetDevsyPrivateKeyRaw() ([]byte, error) + func GetDevsyPublicKey() (string, error) + func GetHostKey(context, workspaceID string) (string, error) + func GetHostKeyBase(dir string) (string, error) + func GetPrivateKeyRaw(context, workspaceID string) ([]byte, error) + func GetPrivateKeyRawBase(dir string) ([]byte, error) + func GetPublicKey(context, workspaceID string) (string, error) + func GetPublicKeyBase(dir string) (string, error) + func GetUser(workspaceID string, sshConfigPath string, sshConfigIncludePath string) (string, error) + func NewSSHClient(user, addr string, keyBytes []byte) (*ssh.Client, error) + func NewSSHPassClient(user, addr, password string) (*ssh.Client, error) + func PortForward(ctx context.Context, client *ssh.Client, ...) error + func RemoveFromConfig(workspaceID string, sshConfigPath string, sshConfigIncludePath string, ...) error + func ResolveSSHConfigPath(sshConfigPath string) (string, error) + func ReversePortForward(ctx context.Context, client *ssh.Client, ...) error + func Run(ctx context.Context, opts RunOptions) error + func StdioClient(reader io.Reader, writer io.WriteCloser, exitOnClose bool) (*ssh.Client, error) + func StdioClientFromKeyBytesWithUser(keyBytes []byte, reader io.Reader, writer io.WriteCloser, user string, ...) (*ssh.Client, error) + func StdioClientWithUser(reader io.Reader, writer io.WriteCloser, user string, exitOnClose bool) (*ssh.Client, error) + func WatchWindowSize(ctx context.Context) <-chan os.Signal + type DevsySSHEntry struct + Host string + User string + Workspace string + type ExitError struct + Err error + ExitCode int + func (e *ExitError) Error() string + func (e *ExitError) Unwrap() error + type ForwardingFunction func(net.Conn, *ssh.Client, string, string, log.Logger) + type RunOptions struct + Client *ssh.Client + Command string + EnvVars map[string]string + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + type SSHConfigParams struct + Command string + Context string + DevsyHome string + GPGAgent bool + Log log.Logger + Provider string + SSHConfigIncludePath string + SSHConfigPath string + User string + Workdir string + Workspace string