- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsListType (0.11 sec)
-
staging/src/k8s.io/apiserver/pkg/audit/request.go
func copyWithoutManagedFields(obj runtime.Object) (runtime.Object, bool, error) { isAccessor := true if _, err := meta.Accessor(obj); err != nil { isAccessor = false } isList := meta.IsListType(obj) _, isTable := obj.(*metav1.Table) if !isAccessor && !isList && !isTable { return nil, false, nil } // TODO a deep copy isn't really needed here, figure out how we can reliably
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/test/api_meta_help_test.go
tests := []struct { obj runtime.Object isList bool }{ {&testapigroup.CarpList{}, true}, {&testapigroup.Carp{}, false}, } for _, item := range tests { if e, a := item.isList, meta.IsListType(item.obj); e != a { t.Errorf("%v: Expected %v, got %v", reflect.TypeOf(item.obj), e, a) } } } func TestExtractList(t *testing.T) { list1 := []runtime.Object{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 8.5K bytes - Viewed (0)