validation

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0, BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package validation - validation is used to validate cloud specific ProviderSpec

Index

Constants

View Source
const (

	// SecretFieldAPIKey is the field name containing the API token
	SecretFieldAPIKey = "apiToken"
	// SecretFieldUserData is the field name containing the userData for the VM
	SecretFieldUserData = "userData"
)

Variables

This section is empty.

Functions

func ValidateName

func ValidateName(name string) []error

ValidateName validate that a name is valid

func ValidateProviderSpec

func ValidateProviderSpec(spec *api.EquinixMetalProviderSpec, fldPath *field.Path) field.ErrorList

ValidateProviderSpec validates provider spec to check if all fields are present and valid

func ValidateSecret

func ValidateSecret(secret *corev1.Secret, fields ...string) field.ErrorList

ValidateSecret makes sure that the supplied secrets contains the required fields

Types

This section is empty.

Jump to

Keyboard shortcuts

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