remote

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHComputeAccess

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

SSHComputeAccess implements domain.ComputeAccess over SSH. It uses the system ssh and scp binaries.

func NewSSHComputeAccess

func NewSSHComputeAccess(host, user, root string) *SSHComputeAccess

NewSSHComputeAccess creates a ComputeAccess backed by SSH to a remote host.

func (*SSHComputeAccess) Exec

func (s *SSHComputeAccess) Exec(ctx context.Context, command string, env []string) (string, error)

func (*SSHComputeAccess) ReadFile

func (s *SSHComputeAccess) ReadFile(ctx context.Context, relPath string) ([]byte, error)

func (*SSHComputeAccess) Root

func (s *SSHComputeAccess) Root() string

func (*SSHComputeAccess) WriteFile

func (s *SSHComputeAccess) WriteFile(ctx context.Context, relPath string, data []byte, _ os.FileMode) error

Jump to

Keyboard shortcuts

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