validation

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Regions is a map of the known AWS regions. The key of the map is
	// the short name of the region. The value of the map is the long
	// name of the region.
	Regions = map[string]string{
		"ap-northeast-1": "Tokyo",
		"ap-northeast-2": "Seoul",

		"ap-south-1":     "Mumbai",
		"ap-southeast-1": "Singapore",
		"ap-southeast-2": "Sydney",
		"ca-central-1":   "Central",

		"eu-central-1": "Frankfurt",
		"eu-west-1":    "Ireland",
		"eu-west-2":    "London",
		"eu-west-3":    "Paris",
		"sa-east-1":    "São Paulo",
		"us-east-1":    "N. Virginia",
		"us-east-2":    "Ohio",
		"us-west-1":    "N. California",
		"us-west-2":    "Oregon",
	}
)

Functions

func ValidateMachinePool

func ValidateMachinePool(p *aws.MachinePool, fldPath *field.Path) field.ErrorList

ValidateMachinePool checks that the specified machine pool is valid.

func ValidatePlatform

func ValidatePlatform(p *aws.Platform, fldPath *field.Path) field.ErrorList

ValidatePlatform checks that the specified platform is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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