Documentation
¶
Index ¶
- type SSHComputeAccess
- func (s *SSHComputeAccess) Exec(ctx context.Context, command string, env []string) (string, error)
- func (s *SSHComputeAccess) ReadFile(ctx context.Context, relPath string) ([]byte, error)
- func (s *SSHComputeAccess) Root() string
- func (s *SSHComputeAccess) WriteFile(ctx context.Context, relPath string, data []byte, _ os.FileMode) error
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) Root ¶
func (s *SSHComputeAccess) Root() string
Click to show internal directories.
Click to hide internal directories.