- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for maskTrailingDash (0.1 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/validation/generic.go
func NameIsDNSSubdomain(name string, prefix bool) []string { if prefix { name = maskTrailingDash(name) } return validation.IsDNS1123Subdomain(name) } // NameIsDNSLabel is a ValidateNameFunc for names that must be a DNS 1123 label. func NameIsDNSLabel(name string, prefix bool) []string { if prefix { name = maskTrailingDash(name) } return validation.IsDNS1123Label(name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 03 14:47:11 UTC 2021 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/validation/generic_test.go
}, { beforeMasking: "ab", expectedAfterMasking: "ab", description: "has neither leading nor trailing dashes", }, } for _, tc := range testCases { afterMasking := maskTrailingDash(tc.beforeMasking) if afterMasking != tc.expectedAfterMasking { t.Errorf("error in test case: %s. expected: %s, actual: %s", tc.description, tc.expectedAfterMasking, afterMasking) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 03 14:47:11 UTC 2021 - 1.7K bytes - Viewed (0)