- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ResourceSingularizer (0.82 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/meta/multirestmapper.go
} // ResourceSingularizer converts a REST resource name from plural to singular (e.g., from pods to pod) // This implementation supports multiple REST schemas and return the first match. func (m MultiRESTMapper) ResourceSingularizer(resource string) (singular string, err error) { for _, t := range m { singular, err = t.ResourceSingularizer(resource) if err == nil { return } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 23:44:02 UTC 2021 - 5.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/lazy.go
if err := o.init(); err != nil { return nil, err } return o.mapper.RESTMappings(gk, versions...) } func (o *lazyObject) ResourceSingularizer(resource string) (singular string, err error) { if err := o.init(); err != nil { return "", err } return o.mapper.ResourceSingularizer(resource) } func (o *lazyObject) Reset() { o.lock.Lock() defer o.lock.Unlock() if o.loaded && o.err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 23:44:02 UTC 2021 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/priority.go
return m.Delegate.RESTMappings(gk, versions...) } func (m PriorityRESTMapper) ResourceSingularizer(resource string) (singular string, err error) { return m.Delegate.ResourceSingularizer(resource) } func (m PriorityRESTMapper) ResourcesFor(partiallySpecifiedResource schema.GroupVersionResource) ([]schema.GroupVersionResource, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 23:44:02 UTC 2021 - 7.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer_test.go
return nil, nil } func (doNothingRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error) { return nil, nil } func (doNothingRESTMapper) ResourceSingularizer(resource string) (singular string, err error) { return "", nil } type doNothingAdmission struct{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 8.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/interfaces.go
// version search is provided. Otherwise identifies a preferred resource mapping for // the provided version(s). RESTMappings(gk schema.GroupKind, versions ...string) ([]*RESTMapping, error) ResourceSingularizer(resource string) (singular string, err error) } // ResettableRESTMapper is a RESTMapper which is capable of resetting itself // from discovery.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 23:44:02 UTC 2021 - 5.5K bytes - Viewed (0)