Versions in this module Expand all Collapse all v1 v1.5.1 Feb 8, 2017 v1.5.0 Oct 23, 2016 Changes in this version + func IsGroupDiscoveryFailedError(err error) bool + func NewRESTMapper(groupResources []*APIGroupResources, ...) meta.RESTMapper + type APIGroupResources struct + Group unversioned.APIGroup + VersionedResources map[string][]unversioned.APIResource + func GetAPIGroupResources(cl DiscoveryInterface) ([]*APIGroupResources, error) + type DeferredDiscoveryRESTMapper struct + func NewDeferredDiscoveryRESTMapper(cl DiscoveryInterface, versionInterface meta.VersionInterfacesFunc) *DeferredDiscoveryRESTMapper + func (d *DeferredDiscoveryRESTMapper) AliasesForResource(resource string) ([]string, bool) + func (d *DeferredDiscoveryRESTMapper) KindFor(resource unversioned.GroupVersionResource) (unversioned.GroupVersionKind, error) + func (d *DeferredDiscoveryRESTMapper) KindsFor(resource unversioned.GroupVersionResource) ([]unversioned.GroupVersionKind, error) + func (d *DeferredDiscoveryRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...string) (*meta.RESTMapping, error) + func (d *DeferredDiscoveryRESTMapper) RESTMappings(gk unversioned.GroupKind) ([]*meta.RESTMapping, error) + func (d *DeferredDiscoveryRESTMapper) Reset() + func (d *DeferredDiscoveryRESTMapper) ResourceFor(input unversioned.GroupVersionResource) (unversioned.GroupVersionResource, error) + func (d *DeferredDiscoveryRESTMapper) ResourceSingularizer(resource string) (singular string, err error) + func (d *DeferredDiscoveryRESTMapper) ResourcesFor(input unversioned.GroupVersionResource) ([]unversioned.GroupVersionResource, error) + func (d *DeferredDiscoveryRESTMapper) String() string + type DiscoveryClient struct + LegacyPrefix string + func NewDiscoveryClient(c *rest.RESTClient) *DiscoveryClient + func NewDiscoveryClientForConfig(c *rest.Config) (*DiscoveryClient, error) + func NewDiscoveryClientForConfigOrDie(c *rest.Config) *DiscoveryClient + func (d *DiscoveryClient) ServerGroups() (apiGroupList *unversioned.APIGroupList, err error) + func (d *DiscoveryClient) ServerPreferredNamespacedResources() ([]unversioned.GroupVersionResource, error) + func (d *DiscoveryClient) ServerPreferredResources() ([]unversioned.GroupVersionResource, error) + func (d *DiscoveryClient) ServerResources() (map[string]*unversioned.APIResourceList, error) + func (d *DiscoveryClient) ServerResourcesForGroupVersion(groupVersion string) (resources *unversioned.APIResourceList, err error) + func (d *DiscoveryClient) ServerVersion() (*version.Info, error) + func (d *DiscoveryClient) SwaggerSchema(version unversioned.GroupVersion) (*swagger.ApiDeclaration, error) + type DiscoveryInterface interface + type ErrGroupDiscoveryFailed struct + Groups map[unversioned.GroupVersion]error + func (e *ErrGroupDiscoveryFailed) Error() string + type ServerGroupsInterface interface + ServerGroups func() (*unversioned.APIGroupList, error) + type ServerResourcesInterface interface + ServerPreferredNamespacedResources func() ([]unversioned.GroupVersionResource, error) + ServerPreferredResources func() ([]unversioned.GroupVersionResource, error) + ServerResources func() (map[string]*unversioned.APIResourceList, error) + ServerResourcesForGroupVersion func(groupVersion string) (*unversioned.APIResourceList, error) + type ServerVersionInterface interface + ServerVersion func() (*version.Info, error) + type SwaggerSchemaInterface interface + SwaggerSchema func(version unversioned.GroupVersion) (*swagger.ApiDeclaration, error) + type UnstructuredObjectTyper struct + func NewUnstructuredObjectTyper(groupResources []*APIGroupResources) *UnstructuredObjectTyper + func (d *UnstructuredObjectTyper) IsUnversioned(obj runtime.Object) (unversioned bool, ok bool) + func (d *UnstructuredObjectTyper) ObjectKind(obj runtime.Object) (unversioned.GroupVersionKind, error) + func (d *UnstructuredObjectTyper) ObjectKinds(obj runtime.Object) (gvks []unversioned.GroupVersionKind, unversionedType bool, err error) + func (d *UnstructuredObjectTyper) Recognizes(gvk unversioned.GroupVersionKind) bool