Documentation ¶
Index ¶
- type Client
- func (c *Client) AddPrivateKeyFile(filename string) (err error)
- func (c *Client) Close()
- func (c *Client) Dial(username, addr string) (err error)
- func (c *Client) GetFS() (fs fs.FS, err error)
- func (c *Client) GetHttpFS() (fs http.FileSystem, err error)
- func (c *Client) HostKeyCallback(hostname string, remote net.Addr, key ssh.PublicKey) error
- func (c *Client) Listen(n, addr string) (listener net.Listener, err error)
- func (c *Client) RemoteForward(ctx context.Context, remoteAddr, localAddr string) error
- func (c *Client) RemoteForwardDial(ctx context.Context, remoteAddr string, dial Dial) error
- type Dial
- type DialNet
- type FS
- type FSDirEntry
- type FSFile
- func (fsf *FSFile) Close() error
- func (fsf *FSFile) Read(b []byte) (int, error)
- func (fsd *FSFile) ReadDir(n int) ([]fs.DirEntry, error)
- func (fsf *FSFile) Readdir(n int) ([]fs.FileInfo, error)
- func (fsf *FSFile) Seek(offset int64, whence int) (int64, error)
- func (fsf *FSFile) Stat() (fs.FileInfo, error)
- type HttpFS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddPrivateKeyFile ¶
func (*Client) HostKeyCallback ¶
func (*Client) RemoteForward ¶
type Dial ¶
type Dial interface {
Dial() (io.ReadWriteCloser, error)
}
type FSDirEntry ¶
type FSDirEntry struct {
// contains filtered or unexported fields
}
func (FSDirEntry) IsDir ¶
func (fsde FSDirEntry) IsDir() bool
func (FSDirEntry) Name ¶
func (fsde FSDirEntry) Name() string
func (FSDirEntry) Type ¶
func (fsde FSDirEntry) Type() fs.FileMode
Click to show internal directories.
Click to hide internal directories.