Documentation ¶
Index ¶
- Constants
- func BringUpAgent(ctx context.Context, client *api.Client, app *api.AppCompact, quiet bool) (*agent.Client, agent.Dialer, error)
- func Connect(p *ConnectParams, addr string) (*ssh.Client, error)
- func Console(ctx context.Context, sshClient *ssh.Client, cmd string, allocPTY bool) error
- func MarshalED25519PrivateKey(key ed25519.PrivateKey, comment string) []byte
- func New() *cobra.Command
- func NewSFTP() *cobra.Command
- func RunSSHCommand(ctx context.Context, app *api.AppCompact, dialer agent.Dialer, addr string, ...) ([]byte, error)
- func SSHConnect(p *SSHParams, addr string) error
- type ConnectParams
- type SSHParams
- Bugs
Constants ¶
View Source
const DefaultSshUsername = "root"
Variables ¶
This section is empty.
Functions ¶
func BringUpAgent ¶ added in v0.0.557
func MarshalED25519PrivateKey ¶ added in v0.0.359
func MarshalED25519PrivateKey(key ed25519.PrivateKey, comment string) []byte
stolen from `mikesmitty`, thanks, you are a mikesmitty and a scholar
func RunSSHCommand ¶
func SSHConnect ¶
Types ¶
type ConnectParams ¶ added in v0.0.557
Notes ¶
Bugs ¶
do better
these return `error` because in theory an error might be bad enough that we want to kill the session, but nothing does that right now.
Click to show internal directories.
Click to hide internal directories.