- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 107 for NewREST (0.14 sec)
-
pkg/registry/certificates/certificates/storage/storage.go
) // REST implements a RESTStorage for CertificateSigningRequest. type REST struct { *genericregistry.Store } // NewREST returns a registry which will store CertificateSigningRequest in the given helper. func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, *ApprovalREST, error) { store := &genericregistry.Store{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:19 UTC 2022 - 6.3K bytes - Viewed (0) -
pkg/registry/node/rest/runtime_class.go
storage := map[string]rest.Storage{} if resource := "runtimeclasses"; apiResourceConfigSource.ResourceEnabled(nodev1.SchemeGroupVersion.WithResource(resource)) { s, err := runtimeclassstorage.NewREST(restOptionsGetter) if err != nil { return storage, err } storage[resource] = s } return storage, nil } // GroupName is the group name for the storage provider
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 14:40:26 UTC 2023 - 2.4K bytes - Viewed (0) -
pkg/registry/events/rest/storage_events.go
storage := map[string]rest.Storage{} // events if resource := "events"; apiResourceConfigSource.ResourceEnabled(eventsapiv1.SchemeGroupVersion.WithResource(resource)) { eventsStorage, err := eventstore.NewREST(restOptionsGetter, uint64(p.TTL.Seconds())) if err != nil { return storage, err } storage[resource] = eventsStorage } return storage, nil } func (p RESTStorageProvider) GroupName() string {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 28 06:58:59 UTC 2023 - 2.5K bytes - Viewed (0) -
pkg/registry/policy/rest/storage_policy.go
if resource := "poddisruptionbudgets"; apiResourceConfigSource.ResourceEnabled(policyapiv1.SchemeGroupVersion.WithResource(resource)) { poddisruptionbudgetStorage, poddisruptionbudgetStatusStorage, err := poddisruptionbudgetstore.NewREST(restOptionsGetter) if err != nil { return storage, err } storage[resource] = poddisruptionbudgetStorage storage[resource+"/status"] = poddisruptionbudgetStatusStorage } return storage, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 18 02:24:26 UTC 2023 - 2.6K bytes - Viewed (0) -
pkg/registry/storagemigration/rest/storage_storagemigration.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 04:18:56 UTC 2024 - 2.6K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/etcd.go
"sigs.k8s.io/structured-merge-diff/v4/fieldpath" ) // rest implements a RESTStorage for API services against etcd type REST struct { *genericregistry.Store } // NewREST returns a RESTStorage object that will work against API services. func NewREST(scheme *runtime.Scheme, optsGetter generic.RESTOptionsGetter) (*REST, error) { strategy := NewStrategy(scheme) store := &genericregistry.Store{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:19 UTC 2022 - 8K bytes - Viewed (0) -
pkg/registry/authorization/subjectaccessreview/rest.go
authorizationvalidation "k8s.io/kubernetes/pkg/apis/authorization/validation" authorizationutil "k8s.io/kubernetes/pkg/registry/authorization/util" ) type REST struct { authorizer authorizer.Authorizer } func NewREST(authorizer authorizer.Authorizer) *REST { return &REST{authorizer} } func (r *REST) NamespaceScoped() bool { return false } func (r *REST) New() runtime.Object {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:13 UTC 2022 - 2.7K bytes - Viewed (0) -
pkg/registry/discovery/rest/storage_discovery.go
storage := map[string]rest.Storage{} if resource := "endpointslices"; apiResourceConfigSource.ResourceEnabled(discoveryv1.SchemeGroupVersion.WithResource(resource)) { endpointSliceStorage, err := endpointslicestorage.NewREST(restOptionsGetter) if err != nil { return storage, err } storage[resource] = endpointSliceStorage } return storage, nil } // GroupName is the group name for the storage provider.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Apr 30 11:21:46 UTC 2023 - 2.6K bytes - Viewed (0) -
pkg/registry/coordination/rest/storage_coordination.go
storage := map[string]rest.Storage{} // leases if resource := "leases"; apiResourceConfigSource.ResourceEnabled(coordinationv1.SchemeGroupVersion.WithResource(resource)) { leaseStorage, err := leasestorage.NewREST(restOptionsGetter) if err != nil { return storage, err } storage[resource] = leaseStorage } return storage, nil } func (p RESTStorageProvider) GroupName() string {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 23 18:36:33 UTC 2022 - 2.4K bytes - Viewed (0) -
pkg/registry/apiserverinternal/rest/storage.go
storage := map[string]rest.Storage{} if resource := "storageversions"; apiResourceConfigSource.ResourceEnabled(apiserverv1alpha1.SchemeGroupVersion.WithResource(resource)) { s, status, err := storageversionstorage.NewREST(restOptionsGetter) if err != nil { return nil, err } storage[resource] = s storage[resource+"/status"] = status } return storage, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 23 18:36:33 UTC 2022 - 2.5K bytes - Viewed (0)