Documentation
¶
Index ¶
- Constants
- type Auth
- type Client
- func (c *Client) Command(command string, args []string) *Command
- func (c Client) CopyFileToRemote(src string, dist string) (err error)
- func (c Client) Exec(command string) (string, error)
- func (c Client) Run(command string) (Result, error)
- func (c Client) RunFile(file string) (res Result, err error)
- type ClientConfig
- type Command
- type Config
- type ConnectionConfig
- type Env
- type Network
- type Result
Constants ¶
View Source
const ( UDP string = "udp" TCP string = "tcp" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth []gossh.AuthMethod
type Client ¶
type Client struct { Client *gossh.Client Conn ConnectionConfig }
func New ¶
func New(c ConnectionConfig) (*Client, error)
func (Client) CopyFileToRemote ¶
Copy file from local machine to remote machine
type ClientConfig ¶
type ClientConfig *gossh.ClientConfig
type Command ¶
type Config ¶
type Config struct { Net string Env Env Addr string Port int User string Auth Auth Config ClientConfig }
func (Config) GetClientConfig ¶
func (d Config) GetClientConfig() ClientConfig
type ConnectionConfig ¶
type ConnectionConfig interface { GetNet() string GetAddr() string GetEnv() Env GetClientConfig() ClientConfig }
Click to show internal directories.
Click to hide internal directories.