util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IBMResourceCRNRegexp = regexp.MustCompile(`^crn:v[0-9]:(?P<cloudName>[^:]*):(?P<cloudType>[^:]*):(?P<serviceName>[^:]*):(?P<location>[^:]*):a/(?P<account>[^:]*):(?P<guid>[^:]*)::$`)
)

Functions

func ParsePowerVSCRN

func ParsePowerVSCRN(crn string) (string, string, string, error)

ParsePowerVSCRN parses powervs crn to extract guid, zone and account information

func ValidateProcType

func ValidateProcType(procType string) error

func ValidateSysType

func ValidateSysType(sysType string) error

func ValidateVMCapacity

func ValidateVMCapacity(catalogCapacity *appv1alpha1.Capacity, vmCapacity *appv1alpha1.Capacity) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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