clusterdictionary

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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

func IsValidClusterSize(size string) bool

IsValidClusterSize returns true if the given size string is supported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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