- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 56 for NewSet (0.14 sec)
-
src/internal/types/testdata/fixedbugs/issue60460.go
func (R1) m(R[int]) {} // Test case from issue. func _() { r := newTestRules() NewSet(r) r2 := newTestRules2() NewSet(r2) } type Set[T any] struct { rules Rules[T] } func NewSet[T any](rules Rules[T]) Set[T] { return Set[T]{ rules: rules, } } func (s Set[T]) Copy() Set[T] { return NewSet(s.rules) } type Rules[T any] interface { Hash(T) int Equivalent(T, T) bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 30 20:19:38 UTC 2023 - 1.3K bytes - Viewed (0) -
pkg/test/framework/label/labels_test.go
{filter: "", labels: NewSet(Postsubmit), expected: true}, {filter: "", labels: NewSet(Postsubmit, CustomSetup), expected: true}, {filter: "$requires.kube", labels: NewSet(Postsubmit, CustomSetup), err: true}, {filter: "zoo", labels: NewSet(Postsubmit, CustomSetup), expected: true}, {filter: "postsubmit", labels: NewSet(Postsubmit), expected: true}, {filter: "postsubmit", labels: NewSet(CustomSetup), expected: false},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 18 17:08:05 UTC 2021 - 3.2K bytes - Viewed (0) -
pkg/registry/autoscaling/horizontalpodautoscaler/strategy.go
fields := map[fieldpath.APIVersion]*fieldpath.Set{ "autoscaling/v1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), "autoscaling/v2": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), "autoscaling/v2beta1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), "autoscaling/v2beta2": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), } return fields }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 02 04:51:00 UTC 2024 - 5.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/stripmeta.go
if ok { if vs == nil { panic(fmt.Sprintf("Found unexpected nil manager which should never happen: %s", manager)) } newSet := vs.Set().Difference(f.stripSet) if newSet.Empty() { delete(managed, manager) } else { managed[manager] = fieldpath.NewVersionedSet(newSet, vs.APIVersion(), vs.Applied()) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 3K bytes - Viewed (0) -
pkg/registry/networking/ingress/strategy.go
fields := map[fieldpath.APIVersion]*fieldpath.Set{ "extensions/v1beta1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), "networking.k8s.io/v1beta1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), "networking.k8s.io/v1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), } return fields }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 01:42:41 UTC 2023 - 6.1K bytes - Viewed (0) -
pkg/registry/admissionregistration/validatingadmissionpolicy/strategy.go
fields := map[fieldpath.APIVersion]*fieldpath.Set{ "admissionregistration.k8s.io/v1alpha1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), "admissionregistration.k8s.io/v1beta1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), "admissionregistration.k8s.io/v1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), } return fields }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 7.8K bytes - Viewed (0) -
test/typeparam/issue51840.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 19:40:04 UTC 2022 - 635 bytes - Viewed (0) -
pkg/registry/flowcontrol/flowschema/strategy.go
"flowcontrol.apiserver.k8s.io/v1beta1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), "flowcontrol.apiserver.k8s.io/v1beta2": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), "flowcontrol.apiserver.k8s.io/v1beta3": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), "flowcontrol.apiserver.k8s.io/v1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 11:48:22 UTC 2023 - 6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastappliedmanager_test.go
labels: app: my-new-label # allowed: update-label spec: containers: - name: my-c image: my-image-new # NOT allowed: update image `), expectConflictSet: fieldpath.NewSet( fieldpath.MakePathOrDie("metadata", "labels", "app"), fieldpath.MakePathOrDie("spec", "replicas"), fieldpath.MakePathOrDie("spec", "template", "spec", "containers", fieldpath.KeyByFields("name", "my-c"), "image"),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 20K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/scalehandler.go
continue } if _, ok := scaleFields[manager]; !ok { // "Steal" the replicas path from the main resource entry newSet := versionedSet.Set().Difference(fieldpath.NewSet(path)) if !newSet.Empty() { newVersionedSet := fieldpath.NewVersionedSet( newSet, versionedSet.APIVersion(), versionedSet.Applied(), ) f[manager] = newVersionedSet
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 5.5K bytes - Viewed (0)