Documentation ¶
Index ¶
- func MD5(output string, err error) (string, error)
- func ToString(output []byte, err error) (string, error)
- type Client
- type Clients
- type Config
- type Connection
- func (conn *Connection) CatFile(pathFile string) ([]byte, error)
- func (conn *Connection) Close() error
- func (conn *Connection) Execute(cmd string) ([]byte, error)
- func (conn *Connection) Host() string
- func (conn *Connection) MD5SumFile(pathFile string) (string, error)
- func (conn *Connection) NewSession() (*Session, error)
- func (conn *Connection) Port() int
- func (conn *Connection) ReadStream(ctx context.Context, cmd string) (*Stream, error)
- func (conn *Connection) Run(cmd string) error
- func (conn *Connection) Username() string
- type Crypto
- type Logger
- type Session
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) Close ¶
func (conn *Connection) Close() error
func (*Connection) Host ¶
func (conn *Connection) Host() string
func (*Connection) MD5SumFile ¶
func (conn *Connection) MD5SumFile(pathFile string) (string, error)
func (*Connection) NewSession ¶
func (conn *Connection) NewSession() (*Session, error)
func (*Connection) Port ¶
func (conn *Connection) Port() int
func (*Connection) ReadStream ¶
func (*Connection) Run ¶
func (conn *Connection) Run(cmd string) error
func (*Connection) Username ¶
func (conn *Connection) Username() string
Click to show internal directories.
Click to hide internal directories.