ssh

package
v0.0.0-...-63b66d1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 (c *Client) AddPrivateKeyFile(filename string) (err error)

func (*Client) Close

func (c *Client) Close()

func (*Client) Dial

func (c *Client) Dial(username, addr string) (err error)

func (*Client) GetFS

func (c *Client) GetFS() (fs fs.FS, err error)

func (*Client) GetHttpFS

func (c *Client) GetHttpFS() (fs http.FileSystem, err error)

func (*Client) HostKeyCallback

func (c *Client) HostKeyCallback(hostname string, remote net.Addr, key ssh.PublicKey) error

func (*Client) Listen

func (c *Client) Listen(n, addr string) (listener net.Listener, err error)

func (*Client) RemoteForward

func (c *Client) RemoteForward(ctx context.Context, remoteAddr, localAddr string) error

func (*Client) RemoteForwardDial

func (c *Client) RemoteForwardDial(ctx context.Context, remoteAddr string, dial Dial) error

type Dial

type Dial interface {
	Dial() (io.ReadWriteCloser, error)
}

type DialNet

type DialNet struct {
	Network string
	Address string
}

func (DialNet) Dial

func (d DialNet) Dial() (io.ReadWriteCloser, error)

type FS

type FS struct {
	// contains filtered or unexported fields
}

func (*FS) Open

func (fs *FS) Open(name string) (fs.File, error)

type FSDirEntry

type FSDirEntry struct {
	// contains filtered or unexported fields
}

func (FSDirEntry) Info

func (fsde FSDirEntry) Info() (fs.FileInfo, error)

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

type FSFile

type FSFile struct {
	// contains filtered or unexported fields
}

func (*FSFile) Close

func (fsf *FSFile) Close() error

func (*FSFile) Read

func (fsf *FSFile) Read(b []byte) (int, error)

func (*FSFile) ReadDir

func (fsd *FSFile) ReadDir(n int) ([]fs.DirEntry, error)

func (*FSFile) Readdir

func (fsf *FSFile) Readdir(n int) ([]fs.FileInfo, error)

func (*FSFile) Seek

func (fsf *FSFile) Seek(offset int64, whence int) (int64, error)

func (*FSFile) Stat

func (fsf *FSFile) Stat() (fs.FileInfo, error)

type HttpFS

type HttpFS struct {
	// contains filtered or unexported fields
}

func (*HttpFS) Open

func (fs *HttpFS) Open(name string) (http.File, error)

Jump to

Keyboard shortcuts

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