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. 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 ¶
func IssueSSHCommandWithResult(ctx context.Context, cmd, provider string, node *v1.Node) (*Result, error)
IssueSSHCommandWithResult tries to execute a SSH command and returns the execution result
Click to show internal directories.
Click to hide internal directories.