- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for defaultOnRead (0.18 sec)
-
pkg/registry/core/persistentvolumeclaim/storage/storage.go
rest := &REST{store} store.Decorator = rest.defaultOnRead return rest, &StatusREST{store: &statusStore}, nil } // Implement ShortNamesProvider var _ rest.ShortNamesProvider = &REST{} // ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource. func (r *REST) ShortNames() []string { return []string{"pvc"} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:19 UTC 2022 - 5.8K bytes - Viewed (0) -
pkg/registry/core/service/storage/storage.go
} type After struct { *api.Service } // defaultOnRead sets interlinked fields that were not previously set on read. // We can't do this in the normal defaulting path because that same logic // applies on Get, Create, and Update, but we need to distinguish between them. // // This will be called on both Service and ServiceList types. func (r *REST) defaultOnRead(obj runtime.Object) { switch s := obj.(type) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 11 13:09:33 UTC 2024 - 22.3K bytes - Viewed (0) -
pkg/registry/core/service/storage/storage_test.go
storage, _, server := newStorage(t, []api.IPFamily{api.IPv4Protocol, api.IPv6Protocol}) defer server.Terminate(t) defer storage.Store.DestroyFunc() tmp := tc.input.DeepCopyObject() storage.defaultOnRead(tmp) svc, ok := tmp.(*api.Service) if !ok { list, ok := tmp.(*api.ServiceList) if !ok { return } svc = &list.Items[0] }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 440.2K bytes - Viewed (0)