Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Close() error
- func (c *Client) Execute(ctx context.Context, shell string, opts ...client.ExecOption) (client.ICmd, error)
- func (c *Client) Get(ctx context.Context, src, dst string, opts ...client.GetOption) error
- func (c *Client) Name() string
- func (c *Client) Put(ctx context.Context, src, dst string, opts ...client.PutOption) error
- func (c *Client) ReadFile(ctx context.Context, name string) ([]byte, error)
- func (c *Client) Stat(ctx context.Context, name string) (*client.Stat, error)
- type Cmd
- func (c *Cmd) Close() error
- func (c *Cmd) CombinedOutput() ([]byte, error)
- func (c *Cmd) Run() error
- func (c *Cmd) Session() *ssh.Session
- func (c *Cmd) Start() error
- func (c *Cmd) StderrPipe() (io.Reader, error)
- func (c *Cmd) StdinPipe() (io.WriteCloser, error)
- func (c *Cmd) StdoutPipe() (io.Reader, error)
- func (c *Cmd) Wait() error
- type Config
Constants ¶
View Source
const ( DefaultUser = "root" DefaultPort = 22 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
func (*Cmd) CombinedOutput ¶
Click to show internal directories.
Click to hide internal directories.