Documentation ¶
Index ¶
Constants ¶
View Source
const (
// SSHPort is tcp port number of SSH
SSHPort = "22"
)
Variables ¶
This section is empty.
Functions ¶
func GetSigner ¶
GetSigner returns an ssh.Signer for the provider ("gce", etc.) that can be used to SSH to their nodes.
func IssueSSHCommand ¶
IssueSSHCommand tries to execute a SSH command
func NodeSSHHosts ¶
NodeSSHHosts returns SSH-able host names for all schedulable nodes - this excludes master node. If it can't find any external IPs, it falls back to looking for internal IPs. If it can't find an internal IP for every node it returns an error, though it still returns all hosts that it found in that case.
Types ¶
type Result ¶
Result holds the execution result of SSH command
func IssueSSHCommandWithResult ¶
IssueSSHCommandWithResult tries to execute a SSH command and returns the execution result
Click to show internal directories.
Click to hide internal directories.