validation

package
v0.0.0-...-c53fdc3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidUUIDv4

func ValidUUIDv4(s string) bool

validUUIDv4 checks if string is in UUID v4 format For more information: https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)

func ValidateMachinePool

func ValidateMachinePool(p *openstack.MachinePool, ci *CloudInfo, controlPlane bool, fldPath *field.Path) field.ErrorList

ValidateMachinePool checks that the specified machine pool is valid.

func ValidatePlatform

func ValidatePlatform(p *openstack.Platform, n *types.Networking, ci *CloudInfo) field.ErrorList

ValidatePlatform checks that the specified platform is valid.

Types

type CloudInfo

type CloudInfo struct {
	APIFIP                  *floatingips.FloatingIP
	ExternalNetwork         *networks.Network
	Flavors                 map[string]Flavor
	IngressFIP              *floatingips.FloatingIP
	ControlPlanePortSubnets []*subnets.Subnet
	ControlPlanePortNetwork *networks.Network
	OSImage                 *images.Image
	ComputeZones            []string
	VolumeZones             []string
	VolumeTypes             []string
	NetworkExtensions       []extensions.Extension
	Quotas                  []quota.Quota
	// contains filtered or unexported fields
}

CloudInfo caches data fetched from the user's openstack cloud

func GetCloudInfo

func GetCloudInfo(ic *types.InstallConfig) (*CloudInfo, error)

GetCloudInfo fetches and caches metadata from openstack

type Flavor

type Flavor struct {
	flavors.Flavor
	Baremetal bool
}

Flavor embeds information from the Gophercloud Flavor struct and adds information on whether a flavor is of baremetal type.

Jump to

Keyboard shortcuts

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