sshtools

package
v0.0.0-...-8536149 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoteCommand

func RemoteCommand(client *ssh.Client, cmd string, commandOutput io.Writer) error

func SSHClient

func SSHClient(sshKey []byte, addr string) (*ssh.Client, error)

func SSHInteractiveKubesPod

func SSHInteractiveKubesPod(podName string) error

SSHInteractiveKubesPod will create an interactive shell for the given pod.

func SSHInteractiveTerminal

func SSHInteractiveTerminal(sshKey []byte, addr string) error

func UploadBytes

func UploadBytes(client *ssh.Client, source []byte, destination string, commandOutput io.Writer) error

func UploadFile

func UploadFile(client *ssh.Client, source, destination string, commandOutput io.Writer) error

func UploadReader

func UploadReader(client *ssh.Client, source io.Reader, destination string, commandOutput io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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