Documentation ¶
Index ¶
- type SSHFS
- func (fsys *SSHFS) Disconnect()
- func (fsys *SSHFS) Open(name string) (fs.File, error)
- func (fsys *SSHFS) OpenFile(name string, flag int, perm fs.FileMode) (writefs.FileWriter, error)
- func (fsys *SSHFS) ReadDir(name string) ([]fs.DirEntry, error)
- func (fsys *SSHFS) ReadFile(name string) ([]byte, error)
- func (fsys *SSHFS) Stat(name string) (fs.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHFS ¶
type SSHFS struct {
// contains filtered or unexported fields
}
SSHFS ...
func Connect ¶
Connect returns a functioning instance of *SSHFS using the given ssh.ClientConfig configuration to create and connect an SSH transport layer. the Disconnect method of the SSHFS instance will disconnect the SSH connection too.
func ConnectClient ¶
ConnectClient returns a functioning instance of *SSHFS using the given ssh.Client as transport layer.
func ConnectFromConfig ¶
ConnectFromConfig returns a functioning instance of *SSHFS using the info in ~/.ssh/config to create and connect an SSH transport layer. the Disconnect method of the SSHFS instance will disconnect the SSH connection too.
Click to show internal directories.
Click to hide internal directories.