ssh

package
v0.0.0-...-02d62a9 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Remote

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

func NewRemote

func NewRemote(addr, user, password string) (*Remote, error)

func (*Remote) Copy

func (r *Remote) Copy(ctx context.Context, src, dest string) error

func (*Remote) Read

func (r *Remote) Read(ctx context.Context, src string) ([]byte, error)

func (*Remote) Run

func (r *Remote) Run(cmd string, options ...SessionOpts) ([]byte, error)

func (*Remote) Write

func (r *Remote) Write(ctx context.Context, dest, content string) error

type SessionOpts

type SessionOpts interface {
	// contains filtered or unexported methods
}

type WithEnv

type WithEnv map[string]string

Jump to

Keyboard shortcuts

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