ssh

package
v0.1.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

https://gist.github.com/stefanprodan/2d20d0c6fdab6f14ce8219464e8b4b9a Refer to okteto/pkg/ssh/exec.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(local io.Reader, remote io.WriteCloser)

Types

type Client

type Client interface {
	Attach() error
	ExecWithOutput(cmd string) ([]byte, error)
	Close() error
}

func NewClient

func NewClient(server, user string,
	port int, auth bool, privateKeyPath, privateKeyPwd string) (Client, error)

type Copier

type Copier struct {
	Local  io.Reader
	Remote io.WriteCloser
}

Copier copies from local to remote terminalhandles the lifecycle of all the forwards

func (*Copier) Copy

func (c *Copier) Copy()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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