Documentation ¶
Index ¶
- Variables
- func AddPrivateKeysToAgent(ctx context.Context, log log.Logger) error
- func ConfigFromKeyBytes(keyBytes []byte) (*ssh.ClientConfig, error)
- func ConfigureSSHConfig(configPath, context, workspace, user string, gpgagent bool, log log.Logger) error
- func FindPrivateKeys() ([]string, error)
- func GetDevPodHostKey() (string, error)
- func GetDevPodKeysDir() string
- func GetDevPodPrivateKeyRaw() ([]byte, error)
- func GetDevPodPublicKey() (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(workspace 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(workspace string, log log.Logger) error
- func ReversePortForward(ctx context.Context, client *ssh.Client, ...) error
- func Run(ctx context.Context, client *ssh.Client, command string, stdin io.Reader, ...) 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 DevPodSSHEntry
- type ForwardingFunction
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MarkerStartPrefix = "# DevPod Start " MarkerEndPrefix = "# DevPod End " )
View Source
var ( DevPodSSHHostKeyFile = "id_devpod_rsa_host" DevPodSSHPrivateKeyFile = "id_devpod_rsa" DevPodSSHPublicKeyFile = "id_devpod_rsa.pub" )
Functions ¶
func AddPrivateKeysToAgent ¶ added in v0.3.4
func ConfigFromKeyBytes ¶
func ConfigFromKeyBytes(keyBytes []byte) (*ssh.ClientConfig, error)
func ConfigureSSHConfig ¶
func FindPrivateKeys ¶ added in v0.3.4
func GetDevPodHostKey ¶
func GetDevPodKeysDir ¶
func GetDevPodKeysDir() string
func GetDevPodPrivateKeyRaw ¶
func GetDevPodPublicKey ¶
func GetHostKey ¶
func GetHostKeyBase ¶
func GetPrivateKeyRaw ¶
func GetPrivateKeyRawBase ¶
func GetPublicKey ¶
func GetPublicKeyBase ¶
func NewSSHPassClient ¶ added in v0.0.3
func PortForward ¶
func ReversePortForward ¶ added in v0.4.0
func StdioClient ¶ added in v0.2.0
func StdioClientWithUser ¶ added in v0.2.0
Types ¶
type DevPodSSHEntry ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.