Documentation ¶
Index ¶
- func MakePrivateKeySigner(privateKey []byte, passPhrase []byte) (ssh.Signer, error)
- func MakePrivateKeySignerFromFile(key string) (ssh.Signer, error)
- func ParsePublicKeyFromFile(keyFile string) (*rsa.PublicKey, error)
- type Config
- type Interface
- type SSH
- func (s *SSH) CombinedOutput(cmd ...string) ([]byte, error)
- func (s *SSH) CopyFile(src, dst string) error
- func (s *SSH) Exec(cmd ...string) (stdout string, stderr string, exit int, err error)
- func (s *SSH) LookPath(file string) (string, error)
- func (s *SSH) Ping() error
- func (s *SSH) ReadFile(filename string) ([]byte, error)
- func (s *SSH) Run(cmd ...string) error
- func (s *SSH) Stat(p string) (os.FileInfo, error)
- func (s *SSH) WriteFile(src io.Reader, dst string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakePrivateKeySigner ¶
Types ¶
type Interface ¶
type Interface interface { Ping() error Exec(cmd ...string) (stdout string, stderr string, exit int, err error) Run(cmd ...string) error CombinedOutput(cmd ...string) ([]byte, error) CopyFile(src, dst string) error WriteFile(src io.Reader, dst string) error ReadFile(filename string) ([]byte, error) Stat(p string) (os.FileInfo, error) LookPath(file string) (string, error) }
Click to show internal directories.
Click to hide internal directories.