sshutil

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2022 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandExists

func CommandExists(ctx context.Context, client *ssh.Client, cmd string) (bool, error)

func Dial

func Dial(ctx context.Context, url *url.URL, config *ssh.ClientConfig) (*ssh.Client, error)

func FileOrDirectoryExists

func FileOrDirectoryExists(ctx context.Context, client *ssh.Client, path string) (exists bool, err error)

func IsFileNotExist

func IsFileNotExist(err error) bool

func MkdirAll

func MkdirAll(ctx context.Context, client *ssh.Client, path string) error

func ReadDir

func ReadDir(ctx context.Context, client *ssh.Client, path string) ([]string, error)

func ReadFile

func ReadFile(ctx context.Context, client *ssh.Client, path string) ([]byte, error)

func RemoveFile

func RemoveFile(ctx context.Context, client *ssh.Client, path string) error

func WriteFile

func WriteFile(ctx context.Context, client *ssh.Client, path string, rdr io.Reader) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL