Documentation ¶
Index ¶
- func CommandExists(ctx context.Context, client *ssh.Client, cmd string) (bool, error)
- func Dial(ctx context.Context, url *url.URL, config *ssh.ClientConfig) (*ssh.Client, error)
- func FileOrDirectoryExists(ctx context.Context, client *ssh.Client, path string) (exists bool, err error)
- func IsFileNotExist(err error) bool
- func MkdirAll(ctx context.Context, client *ssh.Client, path string) error
- func ReadDir(ctx context.Context, client *ssh.Client, path string) ([]string, error)
- func ReadFile(ctx context.Context, client *ssh.Client, path string) ([]byte, error)
- func RemoveFile(ctx context.Context, client *ssh.Client, path string) error
- func WriteFile(ctx context.Context, client *ssh.Client, path string, rdr io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandExists ¶
func FileOrDirectoryExists ¶
func IsFileNotExist ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.