Documentation
¶
Index ¶
- Variables
- 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
- type ExitError
- type ForwardingFunction
- type RunOptions
- type SSHConfigParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MarkerStartPrefix = "# Devsy Start " MarkerEndPrefix = "# Devsy End " )
View Source
var ( DevsySSHHostKeyFile = "id_" + config.BinaryName + "_rsa_host" DevsySSHPrivateKeyFile = "id_" + config.BinaryName + "_rsa" DevsySSHPublicKeyFile = "id_" + config.BinaryName + "_rsa.pub" )
Functions ¶
func ConfigFromKeyBytes ¶
func ConfigFromKeyBytes(keyBytes []byte) (*ssh.ClientConfig, error)
func ConfigureSSHConfig ¶
func ConfigureSSHConfig(params SSHConfigParams) error
func FindPrivateKeys ¶
func GetDevsyHostKey ¶
func GetDevsyKeysDir ¶
func GetDevsyKeysDir() string
func GetDevsyPrivateKeyRaw ¶
func GetDevsyPublicKey ¶
func GetHostKey ¶
func GetHostKeyBase ¶
func GetPrivateKeyRaw ¶
func GetPrivateKeyRawBase ¶
func GetPublicKey ¶
func GetPublicKeyBase ¶
func PortForward ¶
func RemoveFromConfig ¶
func ResolveSSHConfigPath ¶
func ReversePortForward ¶
func StdioClient ¶
func StdioClientWithUser ¶
Types ¶
type DevsySSHEntry ¶
type ForwardingFunction ¶
type RunOptions ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.