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 + const AnyGroup + const AnyKind + const AnyResource + const AnyVersion + var RESTScopeNamespace = &restScope + var RESTScopeRoot = &restScope + 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 KindToResource(kind unversioned.GroupVersionKind) (unversioned.GroupVersionResource, unversioned.GroupVersionResource) + func SetList(list runtime.Object, objects []runtime.Object) error + type AmbiguousKindError struct + MatchingKinds []unversioned.GroupVersionKind + MatchingResources []unversioned.GroupVersionResource + PartialKind unversioned.GroupVersionKind + func (e *AmbiguousKindError) Error() string + type AmbiguousResourceError struct + MatchingKinds []unversioned.GroupVersionKind + MatchingResources []unversioned.GroupVersionResource + PartialResource unversioned.GroupVersionResource + func (e *AmbiguousResourceError) Error() string + type DefaultRESTMapper struct + func NewDefaultRESTMapper(defaultGroupVersions []unversioned.GroupVersion, f VersionInterfacesFunc) *DefaultRESTMapper + func (m *DefaultRESTMapper) Add(kind unversioned.GroupVersionKind, scope RESTScope) + func (m *DefaultRESTMapper) AddResourceAlias(alias string, resources ...string) + func (m *DefaultRESTMapper) AliasesForResource(alias string) ([]string, bool) + func (m *DefaultRESTMapper) KindFor(resource unversioned.GroupVersionResource) (unversioned.GroupVersionKind, error) + func (m *DefaultRESTMapper) KindsFor(input unversioned.GroupVersionResource) ([]unversioned.GroupVersionKind, error) + func (m *DefaultRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...string) (*RESTMapping, error) + func (m *DefaultRESTMapper) RESTMappings(gk unversioned.GroupKind) ([]*RESTMapping, error) + func (m *DefaultRESTMapper) ResourceFor(resource unversioned.GroupVersionResource) (unversioned.GroupVersionResource, error) + func (m *DefaultRESTMapper) ResourceSingularizer(resourceType string) (string, error) + func (m *DefaultRESTMapper) ResourcesFor(input unversioned.GroupVersionResource) ([]unversioned.GroupVersionResource, error) + func (m *DefaultRESTMapper) String() string + type FirstHitRESTMapper struct + func (m FirstHitRESTMapper) KindFor(resource unversioned.GroupVersionResource) (unversioned.GroupVersionKind, error) + func (m FirstHitRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...string) (*RESTMapping, error) + func (m FirstHitRESTMapper) ResourceFor(resource unversioned.GroupVersionResource) (unversioned.GroupVersionResource, error) + func (m FirstHitRESTMapper) String() string + type List unversioned.List + 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) + 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 + 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) AliasesForResource(alias string) ([]string, bool) + func (m MultiRESTMapper) KindFor(resource unversioned.GroupVersionResource) (unversioned.GroupVersionKind, error) + func (m MultiRESTMapper) KindsFor(resource unversioned.GroupVersionResource) (gvk []unversioned.GroupVersionKind, err error) + func (m MultiRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...string) (*RESTMapping, error) + func (m MultiRESTMapper) RESTMappings(gk unversioned.GroupKind) ([]*RESTMapping, error) + func (m MultiRESTMapper) ResourceFor(resource unversioned.GroupVersionResource) (unversioned.GroupVersionResource, error) + func (m MultiRESTMapper) ResourceSingularizer(resource string) (singular string, err error) + func (m MultiRESTMapper) ResourcesFor(resource unversioned.GroupVersionResource) ([]unversioned.GroupVersionResource, error) + func (m MultiRESTMapper) String() string + type NoKindMatchError struct + PartialKind unversioned.GroupVersionKind + func (e *NoKindMatchError) Error() string + type NoResourceMatchError struct + PartialResource unversioned.GroupVersionResource + func (e *NoResourceMatchError) Error() string + type Object interface + GetAnnotations func() map[string]string + GetClusterName func() string + GetCreationTimestamp func() unversioned.Time + GetDeletionTimestamp func() *unversioned.Time + GetFinalizers func() []string + GetGenerateName func() string + GetLabels func() map[string]string + GetName func() string + GetNamespace func() string + GetOwnerReferences func() []metatypes.OwnerReference + GetResourceVersion func() string + GetSelfLink func() string + GetUID func() types.UID + SetAnnotations func(annotations map[string]string) + SetClusterName func(clusterName string) + SetCreationTimestamp func(timestamp unversioned.Time) + SetDeletionTimestamp func(timestamp *unversioned.Time) + SetFinalizers func(finalizers []string) + SetGenerateName func(name string) + SetLabels func(labels map[string]string) + SetName func(name string) + SetNamespace func(namespace string) + SetOwnerReferences func([]metatypes.OwnerReference) + SetResourceVersion func(version string) + SetSelfLink func(selfLink string) + SetUID func(uid types.UID) + func Accessor(obj interface{}) (Object, error) + type ObjectMetaAccessor interface + GetObjectMeta func() Object + type PriorityRESTMapper struct + Delegate RESTMapper + KindPriority []unversioned.GroupVersionKind + ResourcePriority []unversioned.GroupVersionResource + func (m PriorityRESTMapper) AliasesForResource(alias string) (aliases []string, ok bool) + func (m PriorityRESTMapper) KindFor(partiallySpecifiedResource unversioned.GroupVersionResource) (unversioned.GroupVersionKind, error) + func (m PriorityRESTMapper) KindsFor(partiallySpecifiedResource unversioned.GroupVersionResource) (gvk []unversioned.GroupVersionKind, err error) + func (m PriorityRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...string) (mapping *RESTMapping, err error) + func (m PriorityRESTMapper) RESTMappings(gk unversioned.GroupKind) ([]*RESTMapping, error) + func (m PriorityRESTMapper) ResourceFor(partiallySpecifiedResource unversioned.GroupVersionResource) (unversioned.GroupVersionResource, error) + func (m PriorityRESTMapper) ResourceSingularizer(resource string) (singular string, err error) + func (m PriorityRESTMapper) ResourcesFor(partiallySpecifiedResource unversioned.GroupVersionResource) ([]unversioned.GroupVersionResource, error) + func (m PriorityRESTMapper) String() string + type RESTMapper interface + AliasesForResource func(resource string) ([]string, bool) + KindFor func(resource unversioned.GroupVersionResource) (unversioned.GroupVersionKind, error) + KindsFor func(resource unversioned.GroupVersionResource) ([]unversioned.GroupVersionKind, error) + RESTMapping func(gk unversioned.GroupKind, versions ...string) (*RESTMapping, error) + RESTMappings func(gk unversioned.GroupKind) ([]*RESTMapping, error) + ResourceFor func(input unversioned.GroupVersionResource) (unversioned.GroupVersionResource, error) + ResourceSingularizer func(resource string) (singular string, err error) + ResourcesFor func(input unversioned.GroupVersionResource) ([]unversioned.GroupVersionResource, error) + type RESTMapping struct + GroupVersionKind unversioned.GroupVersionKind + Resource string + Scope RESTScope + type RESTScope interface + ArgumentName func() string + Name func() RESTScopeName + ParamDescription func() string + ParamName func() string + type RESTScopeName string + const RESTScopeNameNamespace + const RESTScopeNameRoot + type Type unversioned.Type + func TypeAccessor(obj interface{}) (Type, error) + type VersionInterfaces struct + func InterfacesForUnstructured(unversioned.GroupVersion) (*VersionInterfaces, error) + type VersionInterfacesFunc func(version unversioned.GroupVersion) (*VersionInterfaces, error)