Documentation
¶
Index ¶
- func IsLinuxBuildInPath(filepath string) bool
- type Client
- func (c *Client) Connect(host, port, username string, password *string, privateKey *[]byte) error
- func (c *Client) Copy(sourceFilepath string, destinationFilepath string) error
- func (c *Client) Delete(files ...string) error
- func (c *Client) Disconnect() error
- func (c *Client) Download(remoteFilePath string, localDir string) error
- func (c *Client) Env(key string, options Options) (string, error)
- func (c *Client) Move(oldFilepath string, newFilepath string) error
- func (c *Client) Pwd() (string, error)
- func (c *Client) Run(command string, options Options) (stdout bytes.Buffer, stderr bytes.Buffer, err error)
- func (c *Client) Upload(localFilePath string, remoteDir string) error
- type Options
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLinuxBuildInPath ¶ added in v0.5.6
判断是否是 linux 的危险路径,通常这个路径是不能删除的
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Disconnect ¶
Click to show internal directories.
Click to hide internal directories.