local

package
v0.6.8-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalCommand

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

func (*LocalCommand) Interactive

func (a *LocalCommand) Interactive() (io.WriteCloser, io.Reader, io.Reader, remote.Closer, error)

func (*LocalCommand) Output

func (a *LocalCommand) Output(ctx context.Context) ([]byte, error)

func (*LocalCommand) Run

func (a *LocalCommand) Run(ctx context.Context) error

type LocalConnection

type LocalConnection struct{}

func (*LocalConnection) Forward

func (a *LocalConnection) Forward(ctx context.Context, localPort int, remotePort int) error

func (*LocalConnection) ForwardKillAll

func (a *LocalConnection) ForwardKillAll(ctx context.Context) error

func (*LocalConnection) GetCmd

func (a *LocalConnection) GetCmd(cmd string, args ...string) remote.Cmder

func (*LocalConnection) List

func (a *LocalConnection) List(path string) ([]remote.FileInfo, error)

func (*LocalConnection) MkDirAll

func (a *LocalConnection) MkDirAll(path string) error

func (*LocalConnection) ReadFile

func (a *LocalConnection) ReadFile(path string) (io.ReadCloser, error)

func (*LocalConnection) Remove

func (a *LocalConnection) Remove(path string) error

func (*LocalConnection) Stats

func (a *LocalConnection) Stats(path string) (remote.FileInfo, error)

func (*LocalConnection) WriteFile

func (a *LocalConnection) WriteFile(r io.Reader, path string) error

Jump to

Keyboard shortcuts

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