names

package
v10.1.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 4 Imported by: 42

Documentation

Index

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

func GetScaleSetNameAndInstanceID(hostname string) (string, string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL