- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for validValues (0.18 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors.go
// valid values). func NotSupported[T ~string](field *Path, value interface{}, validValues []T) *Error { detail := "" if len(validValues) > 0 { quotedValues := make([]string, len(validValues)) for i, v := range validValues { quotedValues[i] = strconv.Quote(fmt.Sprint(v)) } detail = "supported values: " + strings.Join(quotedValues, ", ") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 11.1K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/artifacts/repositories/RepositoryContentDescriptor.java
* specific attribute. * @param attribute the attribute * @param validValues the list of accepted values * @param <T> the type of the attribute */ @SuppressWarnings("unchecked") <T> void onlyForAttribute(Attribute<T> attribute, T... validValues);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 10 23:09:47 UTC 2023 - 4.7K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/DefaultRepositoryContentDescriptor.java
@Override @SuppressWarnings("unchecked") public <T> void onlyForAttribute(Attribute<T> attribute, T... validValues) { if (requiredAttributes == null) { requiredAttributes = new HashMap<>(); } requiredAttributes.put(Cast.uncheckedCast(attribute), ImmutableSet.copyOf(validValues)); } Supplier<String> getRepositoryNameSupplier() { return repositoryNameSupplier; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 19.5K bytes - Viewed (0) -
pkg/apis/apps/validation/validation.go
} allErrs = append(allErrs, ValidateRollingUpdateDaemonSet(strategy.RollingUpdate, fldPath.Child("rollingUpdate"))...) default: validValues := []string{string(apps.RollingUpdateDaemonSetStrategyType), string(apps.OnDeleteDaemonSetStrategyType)} allErrs = append(allErrs, field.NotSupported(fldPath, strategy, validValues)) } return allErrs } // ValidateDaemonSetName can be used to check whether the given daemon set name is valid.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 06 22:11:20 UTC 2024 - 41.4K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Jun 10 11:04:53 UTC 2024 - 73.9K bytes - Viewed (0) -
maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sat May 18 14:09:22 UTC 2024 - 76K bytes - Viewed (0) -
pkg/apis/batch/validation/validation.go
break case "": allErrs = append(allErrs, field.Required(fldPath, "")) default: validValues := []batch.ConcurrencyPolicy{batch.AllowConcurrent, batch.ForbidConcurrent, batch.ReplaceConcurrent} allErrs = append(allErrs, field.NotSupported(fldPath, *concurrencyPolicy, validValues)) } return allErrs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 16:43:24 UTC 2024 - 51.2K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
return allErrors } switch *restartPolicy { case core.ContainerRestartPolicyAlways: break default: validValues := []core.ContainerRestartPolicy{core.ContainerRestartPolicyAlways} allErrors = append(allErrors, field.NotSupported(fldPath, *restartPolicy, validValues)) } return allErrors } type commonHandler struct { Exec *core.ExecAction HTTPGet *core.HTTPGetAction
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (0)