Documentation ¶
Index ¶
- Constants
- func GetAgentRole(hostname string) api.AgentPoolProfileRole
- func GetHostname(app *api.AgentPoolProfile, suffix string, instance int64) string
- func GetHostnamePrefix(app *api.AgentPoolProfile, suffix string) string
- func GetScaleSetNameAndInstanceID(hostname string) (string, string, error)
- func GetScalesetName(app *api.AgentPoolProfile, suffix string) string
Constants ¶
View Source
const MasterScalesetName = "ss-master"
MasterScalesetName contains the name of the master VMs scaleset
Variables ¶
This section is empty.
Functions ¶
func GetAgentRole ¶
func GetAgentRole(hostname string) api.AgentPoolProfileRole
GetAgentRole parses a hostname, e.g. master-000000 or infra-12345-000000 and returns the lowercase role name ("master", "infra" or "compute")
func GetHostname ¶
func GetHostname(app *api.AgentPoolProfile, suffix string, instance int64) string
GetHostname returns the hostname of a given instance in an AgentPoolProfile
func GetHostnamePrefix ¶
func GetHostnamePrefix(app *api.AgentPoolProfile, suffix string) string
GetHostnamePrefix returns the computer name prefix for a given AgentPoolProfile
func GetScaleSetNameAndInstanceID ¶
GetScaleSetNameAndInstanceID parses a hostname, e.g. master-000000 or infra-1234567890-00000a, and returns the corresponding scaleset name and instance ID, e.g. ss-master, 0 or ss-infra-1234567890, 10
func GetScalesetName ¶
func GetScalesetName(app *api.AgentPoolProfile, suffix string) string
GetScalesetName returns the VMSS name for a given AgentPoolProfile
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.