ssh

package
v1.0.1-0...-0be5405 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package ssh contains utilities for ssh'ing into machines for e2e tests.

It hooks into both the Golang SSH implementation and the core SSH utilities in Kubernetes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSigner

func GetSigner(provider string) (ssh.Signer, error)

getSigner returns an ssh.Signer for the provider ("gce", etc.) that can be used to SSH to their nodes. TODO(mbforbes): Make GetSigner unexported by doing the refactor proposed as a

TODO in addon_update.go (it copy/pastes much of this code).

func NodeSSHHosts

func NodeSSHHosts(c *client.Client) ([]string, error)

NodeSSHHosts returns SSH-able host names for all nodes. It returns an error if it can't find an external IP for every node, though it still returns all hosts that it found in that case.

func SSH

func SSH(cmd, host, provider string) (string, string, int, error)

SSH synchronously SSHs to a node running on provider and runs cmd. If there is no error performing the SSH, the stdout, stderr, and exit code are returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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