Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RxClusterID = regexp.MustCompile(`(?i)^/subscriptions/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/resourceGroups/[-a-z0-9_().]{0,89}[-a-z0-9_()]/providers/Microsoft\.RedHatOpenShift/openShiftClusters/[-a-z0-9_().]{0,89}[-a-z0-9_()]$`) RxResourceGroupID = regexp.MustCompile(`(?i)^/subscriptions/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/resourceGroups/[-a-z0-9_().]{0,89}[-a-z0-9_()]$`) RxSubnetID = regexp.MustCompile(`(?i)^/subscriptions/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/resourceGroups/[-a-z0-9_().]{0,89}[-a-z0-9_()]/providers/Microsoft\.Network/virtualNetworks/[-a-z0-9_.]{2,64}/subnets/[-a-z0-9_.]{2,80}$`) RxDomainName = regexp.MustCompile(`^` + `([a-z][-a-z0-9]{0,61}[a-z0-9])` + `(\.([a-z0-9]|[a-z0-9][-a-z0-9]{0,61}[a-z0-9]))*` + `$`) RxDomainNameRFC1123 = regexp.MustCompile(`^` + `([a-z0-9]|[a-z0-9][-a-z0-9]{0,61}[a-z0-9])` + `(\.([a-z0-9]|[a-z0-9][-a-z0-9]{0,61}[a-z0-9]))*` + `$`) )
Regular expressions used to validate the format of resource names and IDs acceptable by API.
Functions ¶
func DiskSizeIsValid ¶
Types ¶
type OpenShiftClusterDynamicValidator ¶
OpenShiftClusterDynamicValidator is the dynamic validator interface
func NewOpenShiftClusterDynamicValidator ¶
func NewOpenShiftClusterDynamicValidator(log *logrus.Entry, env env.Core, oc *api.OpenShiftCluster, subscriptionDoc *api.SubscriptionDocument, fpAuthorizer refreshable.Authorizer) OpenShiftClusterDynamicValidator
NewOpenShiftClusterDynamicValidator creates a new OpenShiftClusterDynamicValidator
Click to show internal directories.
Click to hide internal directories.