- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IsListType (0.08 sec)
-
staging/src/k8s.io/apiserver/pkg/registry/rest/table.go
Cells: []interface{}{m.GetName(), m.GetCreationTimestamp().Time.UTC().Format(time.RFC3339)}, Object: runtime.RawExtension{Object: obj}, }) return nil } switch { case meta.IsListType(object): if err := meta.EachListItem(object, fn); err != nil { return nil, err } default: if err := fn(object); err != nil { return nil, err } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 14 17:25:12 UTC 2022 - 3.4K bytes - Viewed (0) -
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)