Documentation
¶
Index ¶
- Constants
- func Connect(p *ConnectParams, addr string) (*ssh.Client, error)
- func Console(ctx context.Context, sshClient *ssh.Client, cmd string, allocPTY bool, ...) (err error)
- func MarshalED25519PrivateKey(key ed25519.PrivateKey, comment string) []byte
- func New() *cobra.Command
- func NewSFTP() *cobra.Command
- func RunSSHCommand(ctx context.Context, org OrganizationImpl, appName string, dialer agent.Dialer, ...) ([]byte, error)
- func SSHConnect(p *SSHParams, addr string) error
- type ConnectParams
- type OrganizationImpl
- type SSHParams
- type SessionTarget
- Bugs
Constants ¶
const DefaultSshUsername = "root"
Variables ¶
This section is empty.
Functions ¶
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
type OrganizationImpl ¶ added in v0.3.221
type SSHParams ¶
type SSHParams struct {
Ctx context.Context
Org OrganizationImpl
App string
Username string
Dialer agent.Dialer
Cmd string
Stdin io.Reader
Stdout io.WriteCloser
Stderr io.WriteCloser
DisableSpinner bool
}
type SessionTarget ¶ added in v0.4.83
type SessionTarget = ssh.SessionTarget
SessionTarget selects where a session runs on the remote machine.
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.