Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NodeRoleMasterLabel defines the master node's label. NodeRoleMasterLabel = "node-role.kubernetes.io/master" // NodeRoleWorkerLabel defines the worker node's label. NodeRoleWorkerLabel = "node-role.kubernetes.io/node" )
Variables ¶
This section is empty.
Functions ¶
func ExternalIP ¶
ExternalIP returns external IP for a node. Will be empty string if not External IP found for node.
func IsMaster ¶
IsMaster returns true if the node's labels contains "node-role.kubernetes.io/master".
func NewScpClient ¶
NewScpClient returns scp client with given host and ssh client.
Types ¶
type SSHClient ¶
type SSHClient struct { *ssh.ClientConfig // contains filtered or unexported fields }
SSHClient holds config for ssh.
func MustNewSSHClient ¶
MustNewSSHClient returns *SSHClient. Uses default values for SSHConfig.
Click to show internal directories.
Click to hide internal directories.