Allow cloud providers to return a node identifier different from the hostname

This commit is contained in:
Justin Santa Barbara
2015-06-12 11:42:38 -04:00
parent dee8d4b90b
commit df87470ecf
11 changed files with 64 additions and 1 deletions

View File

@@ -111,6 +111,9 @@ type Instances interface {
// AddSSHKeyToAllInstances adds an SSH public key as a legal identity for all instances
// expected format for the key is standard ssh-keygen format: <protocol> <blob>
AddSSHKeyToAllInstances(user string, keyData []byte) error
// Returns the name of the node we are currently running on
// On most clouds (e.g. GCE) this is the hostname, so we provide the hostname
CurrentNodeName(hostname string) (string, error)
}
// Route is a representation of an advanced routing rule.