validation

package
v0.91.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 35 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidUUIDv4 added in v0.9.153

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         *Network
	Flavors                 map[string]Flavor
	IngressFIP              *floatingips.FloatingIP
	ControlPlanePortSubnets []*subnets.Subnet
	ControlPlanePortNetwork *Network
	OSImage                 *images.Image
	ComputeZones            []string
	VolumeZones             []string
	VolumeTypes             []string
	NetworkExtensions       []extensions.Extension
	Quotas                  []quota.Quota
	Networks                []string
	SecurityGroups          []string
	// contains filtered or unexported fields
}

CloudInfo caches data fetched from the user's openstack cloud

func GetCloudInfo

func GetCloudInfo(ctx context.Context, 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.

type Network added in v0.91.0

type Network struct {
	networks.Network
	mtu.NetworkMTUExt
}

Network holds a gophercloud network with additional info such as MTU.

Jump to

Keyboard shortcuts

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