Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2019 Changes in this version + const AnyGroup + const AnyKind + const AnyResource + const AnyVersion + var RESTScopeNamespace = &restScope + var RESTScopeRoot = &restScope + func Accessor(obj interface{}) (metav1.Object, error) + func AsPartialObjectMetadata(m metav1.Object) *metav1.PartialObjectMetadata + func CommonAccessor(obj interface{}) (metav1.Common, error) + func EachListItem(obj runtime.Object, fn func(runtime.Object) error) error + func ExtractList(obj runtime.Object) ([]runtime.Object, error) + func GetItemsPtr(list runtime.Object) (interface{}, error) + func IsAmbiguousError(err error) bool + func IsListType(obj runtime.Object) bool + func IsNoMatchError(err error) bool + func LenList(list runtime.Object) int + func SetList(list runtime.Object, objects []runtime.Object) error + func UnsafeGuessKindToResource(kind schema.GroupVersionKind) (schema.GroupVersionResource, schema.GroupVersionResource) + type AmbiguousKindError struct + MatchingKinds []schema.GroupVersionKind + MatchingResources []schema.GroupVersionResource + PartialKind schema.GroupVersionKind + func (e *AmbiguousKindError) Error() string + type AmbiguousResourceError struct + MatchingKinds []schema.GroupVersionKind + MatchingResources []schema.GroupVersionResource + PartialResource schema.GroupVersionResource + func (e *AmbiguousResourceError) Error() string + type DefaultRESTMapper struct + func NewDefaultRESTMapper(defaultGroupVersions []schema.GroupVersion) *DefaultRESTMapper + func (m *DefaultRESTMapper) Add(kind schema.GroupVersionKind, scope RESTScope) + func (m *DefaultRESTMapper) AddSpecific(kind schema.GroupVersionKind, plural, singular schema.GroupVersionResource, ...) + func (m *DefaultRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) + func (m *DefaultRESTMapper) KindsFor(input schema.GroupVersionResource) ([]schema.GroupVersionKind, error) + func (m *DefaultRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) + func (m *DefaultRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*RESTMapping, error) + func (m *DefaultRESTMapper) ResourceFor(resource schema.GroupVersionResource) (schema.GroupVersionResource, error) + func (m *DefaultRESTMapper) ResourceSingularizer(resourceType string) (string, error) + func (m *DefaultRESTMapper) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error) + func (m *DefaultRESTMapper) String() string + type FirstHitRESTMapper struct + func (m FirstHitRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) + func (m FirstHitRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) + func (m FirstHitRESTMapper) ResourceFor(resource schema.GroupVersionResource) (schema.GroupVersionResource, error) + func (m FirstHitRESTMapper) String() string + type List metav1.ListInterface + func ListAccessor(obj interface{}) (List, error) + type ListMetaAccessor interface + GetListMeta func() List + type MetadataAccessor interface + APIVersion func(obj runtime.Object) (string, error) + Annotations func(obj runtime.Object) (map[string]string, error) + Continue func(obj runtime.Object) (string, error) + GenerateName func(obj runtime.Object) (string, error) + Kind func(obj runtime.Object) (string, error) + Labels func(obj runtime.Object) (map[string]string, error) + Name func(obj runtime.Object) (string, error) + Namespace func(obj runtime.Object) (string, error) + SelfLink func(obj runtime.Object) (string, error) + SetAPIVersion func(obj runtime.Object, version string) error + SetAnnotations func(obj runtime.Object, annotations map[string]string) error + SetContinue func(obj runtime.Object, c string) error + SetGenerateName func(obj runtime.Object, name string) error + SetKind func(obj runtime.Object, kind string) error + SetLabels func(obj runtime.Object, labels map[string]string) error + SetName func(obj runtime.Object, name string) error + SetNamespace func(obj runtime.Object, namespace string) error + SetSelfLink func(obj runtime.Object, selfLink string) error + SetUID func(obj runtime.Object, uid types.UID) error + UID func(obj runtime.Object) (types.UID, error) + func NewAccessor() MetadataAccessor + type MultiRESTMapper []RESTMapper + func (m MultiRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) + func (m MultiRESTMapper) KindsFor(resource schema.GroupVersionResource) (gvk []schema.GroupVersionKind, err error) + func (m MultiRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) + func (m MultiRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*RESTMapping, error) + func (m MultiRESTMapper) ResourceFor(resource schema.GroupVersionResource) (schema.GroupVersionResource, error) + func (m MultiRESTMapper) ResourceSingularizer(resource string) (singular string, err error) + func (m MultiRESTMapper) ResourcesFor(resource schema.GroupVersionResource) ([]schema.GroupVersionResource, error) + func (m MultiRESTMapper) String() string + type NoKindMatchError struct + GroupKind schema.GroupKind + SearchedVersions []string + func (e *NoKindMatchError) Error() string + type NoResourceMatchError struct + PartialResource schema.GroupVersionResource + func (e *NoResourceMatchError) Error() string + type PriorityRESTMapper struct + Delegate RESTMapper + KindPriority []schema.GroupVersionKind + ResourcePriority []schema.GroupVersionResource + func (m PriorityRESTMapper) KindFor(partiallySpecifiedResource schema.GroupVersionResource) (schema.GroupVersionKind, error) + func (m PriorityRESTMapper) KindsFor(partiallySpecifiedResource schema.GroupVersionResource) (gvk []schema.GroupVersionKind, err error) + func (m PriorityRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (mapping *RESTMapping, err error) + func (m PriorityRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*RESTMapping, error) + func (m PriorityRESTMapper) ResourceFor(partiallySpecifiedResource schema.GroupVersionResource) (schema.GroupVersionResource, error) + func (m PriorityRESTMapper) ResourceSingularizer(resource string) (singular string, err error) + func (m PriorityRESTMapper) ResourcesFor(partiallySpecifiedResource schema.GroupVersionResource) ([]schema.GroupVersionResource, error) + func (m PriorityRESTMapper) String() string + type RESTMapper interface + KindFor func(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) + KindsFor func(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error) + RESTMapping func(gk schema.GroupKind, versions ...string) (*RESTMapping, error) + RESTMappings func(gk schema.GroupKind, versions ...string) ([]*RESTMapping, error) + ResourceFor func(input schema.GroupVersionResource) (schema.GroupVersionResource, error) + ResourceSingularizer func(resource string) (singular string, err error) + ResourcesFor func(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error) + func NewLazyRESTMapperLoader(fn func() (RESTMapper, error)) RESTMapper + type RESTMapping struct + GroupVersionKind schema.GroupVersionKind + Resource schema.GroupVersionResource + Scope RESTScope + type RESTScope interface + Name func() RESTScopeName + type RESTScopeName string + const RESTScopeNameNamespace + const RESTScopeNameRoot + type Type metav1.Type + func TypeAccessor(obj interface{}) (Type, error)