Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SizeAlefDev is the definition of a cluster supporting dev purposes. SizeAlefDev = "SizeAlefDev" // SizeAlef500 is the key representing a cluster supporting 500 users. SizeAlef500 = "SizeAlef500" // SizeAlef1000 is the key representing a cluster supporting 1000 users. SizeAlef1000 = "SizeAlef1000" // SizeAlef5000 is the key representing a cluster supporting 5000 users. SizeAlef5000 = "SizeAlef5000" // SizeAlef10000 is the key representing a cluster supporting 10000 users. SizeAlef10000 = "SizeAlef10000" )
Variables ¶
View Source
var ValidSizes = map[string]size{ SizeAlefDev: sizeAlefDev, SizeAlef500: sizeAlef500, SizeAlef1000: sizeAlef1000, SizeAlef5000: sizeAlef5000, SizeAlef10000: sizeAlef10000, }
ValidSizes is a mapping of a size keyword to kops cluster configuration.
Functions ¶
func ApplyToCreateClusterRequest ¶
func ApplyToCreateClusterRequest(size string, request *model.CreateClusterRequest) error
ApplyToCreateClusterRequest takes a size keyword and applies the corresponding cluster values to a CreateClusterRequest.
func ApplyToPatchClusterSizeRequest ¶
func ApplyToPatchClusterSizeRequest(size string, request *model.PatchClusterSizeRequest) error
ApplyToPatchClusterSizeRequest takes a size keyword and applies the corresponding cluster values to a PatchClusterSizeRequest.
func IsValidClusterSize ¶
IsValidClusterSize returns true if the given size string is supported.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.