Documentation ¶
Index ¶
- Variables
- func AddToScheme(scheme *runtime.Scheme) (meta.RESTMapper, runtime.Codec)
- func NewExternalScheme() (*runtime.Scheme, meta.RESTMapper, runtime.Codec)
- type ExternalNamespacedType
- func (in *ExternalNamespacedType) DeepCopy() *ExternalNamespacedType
- func (in *ExternalNamespacedType) DeepCopyInto(out *ExternalNamespacedType)
- func (in *ExternalNamespacedType) DeepCopyObject() runtime.Object
- func (obj *ExternalNamespacedType) GetObjectKind() schema.ObjectKind
- func (obj *ExternalNamespacedType) GroupVersionKind() schema.GroupVersionKind
- func (obj *ExternalNamespacedType) SetGroupVersionKind(gvk schema.GroupVersionKind)
- type ExternalNamespacedType2
- func (in *ExternalNamespacedType2) DeepCopy() *ExternalNamespacedType2
- func (in *ExternalNamespacedType2) DeepCopyInto(out *ExternalNamespacedType2)
- func (in *ExternalNamespacedType2) DeepCopyObject() runtime.Object
- func (obj *ExternalNamespacedType2) GetObjectKind() schema.ObjectKind
- func (obj *ExternalNamespacedType2) GroupVersionKind() schema.GroupVersionKind
- func (obj *ExternalNamespacedType2) SetGroupVersionKind(gvk schema.GroupVersionKind)
- type ExternalType
- func (in *ExternalType) DeepCopy() *ExternalType
- func (in *ExternalType) DeepCopyInto(out *ExternalType)
- func (in *ExternalType) DeepCopyObject() runtime.Object
- func (obj *ExternalType) GetObjectKind() schema.ObjectKind
- func (obj *ExternalType) GroupVersionKind() schema.GroupVersionKind
- func (obj *ExternalType) SetGroupVersionKind(gvk schema.GroupVersionKind)
- type ExternalType2
- func (in *ExternalType2) DeepCopy() *ExternalType2
- func (in *ExternalType2) DeepCopyInto(out *ExternalType2)
- func (in *ExternalType2) DeepCopyObject() runtime.Object
- func (obj *ExternalType2) GetObjectKind() schema.ObjectKind
- func (obj *ExternalType2) GroupVersionKind() schema.GroupVersionKind
- func (obj *ExternalType2) SetGroupVersionKind(gvk schema.GroupVersionKind)
- type InternalNamespacedType
- func (in *InternalNamespacedType) DeepCopy() *InternalNamespacedType
- func (in *InternalNamespacedType) DeepCopyInto(out *InternalNamespacedType)
- func (in *InternalNamespacedType) DeepCopyObject() runtime.Object
- func (obj *InternalNamespacedType) GetObjectKind() schema.ObjectKind
- func (obj *InternalNamespacedType) GroupVersionKind() schema.GroupVersionKind
- func (obj *InternalNamespacedType) SetGroupVersionKind(gvk schema.GroupVersionKind)
- type InternalType
- func (in *InternalType) DeepCopy() *InternalType
- func (in *InternalType) DeepCopyInto(out *InternalType)
- func (in *InternalType) DeepCopyObject() runtime.Object
- func (obj *InternalType) GetObjectKind() schema.ObjectKind
- func (obj *InternalType) GroupVersionKind() schema.GroupVersionKind
- func (obj *InternalType) SetGroupVersionKind(gvk schema.GroupVersionKind)
- type TestFactory
- func (f *TestFactory) Cleanup()
- func (f *TestFactory) ClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)
- func (f *TestFactory) DiscoveryClient() (discovery.CachedDiscoveryInterface, error)
- func (f *TestFactory) DynamicClient() (dynamic.Interface, error)
- func (f *TestFactory) KubernetesClientSet() (*kubernetes.Clientset, error)
- func (f *TestFactory) NewBuilder() *resource.Builder
- func (f *TestFactory) OpenAPISchema() (openapi.Resources, error)
- func (f *TestFactory) RESTClient() (*restclient.RESTClient, error)
- func (f *TestFactory) ScaleClient() (scaleclient.ScalesGetter, error)
- func (f *TestFactory) ToRESTConfig() (*restclient.Config, error)
- func (f *TestFactory) UnstructuredClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)
- func (f *TestFactory) Validator(validate bool) (validation.Schema, error)
- func (f *TestFactory) WithNamespace(ns string) *TestFactory
Constants ¶
This section is empty.
Variables ¶
var InternalGV = schema.GroupVersion{Group: "apitest", Version: runtime.APIVersionInternal}
var UnlikelyGV = schema.GroupVersion{Group: "apitest", Version: "unlikelyversion"}
var ValidVersion = "v1"
var ValidVersionGV = schema.GroupVersion{Group: "apitest", Version: ValidVersion}
Functions ¶
func AddToScheme ¶
func NewExternalScheme ¶
Types ¶
type ExternalNamespacedType ¶
type ExternalNamespacedType struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Name string `json:"name"` Namespace string `json:"namespace"` }
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ExternalNamespacedType) DeepCopy ¶
func (in *ExternalNamespacedType) DeepCopy() *ExternalNamespacedType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalNamespacedType.
func (*ExternalNamespacedType) DeepCopyInto ¶
func (in *ExternalNamespacedType) DeepCopyInto(out *ExternalNamespacedType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExternalNamespacedType) DeepCopyObject ¶
func (in *ExternalNamespacedType) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ExternalNamespacedType) GetObjectKind ¶
func (obj *ExternalNamespacedType) GetObjectKind() schema.ObjectKind
func (*ExternalNamespacedType) GroupVersionKind ¶
func (obj *ExternalNamespacedType) GroupVersionKind() schema.GroupVersionKind
func (*ExternalNamespacedType) SetGroupVersionKind ¶
func (obj *ExternalNamespacedType) SetGroupVersionKind(gvk schema.GroupVersionKind)
type ExternalNamespacedType2 ¶
type ExternalNamespacedType2 struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Name string `json:"name"` Namespace string `json:"namespace"` }
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ExternalNamespacedType2) DeepCopy ¶
func (in *ExternalNamespacedType2) DeepCopy() *ExternalNamespacedType2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalNamespacedType2.
func (*ExternalNamespacedType2) DeepCopyInto ¶
func (in *ExternalNamespacedType2) DeepCopyInto(out *ExternalNamespacedType2)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExternalNamespacedType2) DeepCopyObject ¶
func (in *ExternalNamespacedType2) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ExternalNamespacedType2) GetObjectKind ¶
func (obj *ExternalNamespacedType2) GetObjectKind() schema.ObjectKind
func (*ExternalNamespacedType2) GroupVersionKind ¶
func (obj *ExternalNamespacedType2) GroupVersionKind() schema.GroupVersionKind
func (*ExternalNamespacedType2) SetGroupVersionKind ¶
func (obj *ExternalNamespacedType2) SetGroupVersionKind(gvk schema.GroupVersionKind)
type ExternalType ¶
type ExternalType struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Name string `json:"name"` }
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ExternalType) DeepCopy ¶
func (in *ExternalType) DeepCopy() *ExternalType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalType.
func (*ExternalType) DeepCopyInto ¶
func (in *ExternalType) DeepCopyInto(out *ExternalType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExternalType) DeepCopyObject ¶
func (in *ExternalType) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ExternalType) GetObjectKind ¶
func (obj *ExternalType) GetObjectKind() schema.ObjectKind
func (*ExternalType) GroupVersionKind ¶
func (obj *ExternalType) GroupVersionKind() schema.GroupVersionKind
func (*ExternalType) SetGroupVersionKind ¶
func (obj *ExternalType) SetGroupVersionKind(gvk schema.GroupVersionKind)
type ExternalType2 ¶
type ExternalType2 struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Name string `json:"name"` }
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ExternalType2) DeepCopy ¶
func (in *ExternalType2) DeepCopy() *ExternalType2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalType2.
func (*ExternalType2) DeepCopyInto ¶
func (in *ExternalType2) DeepCopyInto(out *ExternalType2)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExternalType2) DeepCopyObject ¶
func (in *ExternalType2) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ExternalType2) GetObjectKind ¶
func (obj *ExternalType2) GetObjectKind() schema.ObjectKind
func (*ExternalType2) GroupVersionKind ¶
func (obj *ExternalType2) GroupVersionKind() schema.GroupVersionKind
func (*ExternalType2) SetGroupVersionKind ¶
func (obj *ExternalType2) SetGroupVersionKind(gvk schema.GroupVersionKind)
type InternalNamespacedType ¶
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func NewInternalNamespacedType ¶
func NewInternalNamespacedType(kind, apiversion, name, namespace string) *InternalNamespacedType
func (*InternalNamespacedType) DeepCopy ¶
func (in *InternalNamespacedType) DeepCopy() *InternalNamespacedType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalNamespacedType.
func (*InternalNamespacedType) DeepCopyInto ¶
func (in *InternalNamespacedType) DeepCopyInto(out *InternalNamespacedType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InternalNamespacedType) DeepCopyObject ¶
func (in *InternalNamespacedType) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*InternalNamespacedType) GetObjectKind ¶
func (obj *InternalNamespacedType) GetObjectKind() schema.ObjectKind
func (*InternalNamespacedType) GroupVersionKind ¶
func (obj *InternalNamespacedType) GroupVersionKind() schema.GroupVersionKind
func (*InternalNamespacedType) SetGroupVersionKind ¶
func (obj *InternalNamespacedType) SetGroupVersionKind(gvk schema.GroupVersionKind)
type InternalType ¶
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func NewInternalType ¶
func NewInternalType(kind, apiversion, name string) *InternalType
func (*InternalType) DeepCopy ¶
func (in *InternalType) DeepCopy() *InternalType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalType.
func (*InternalType) DeepCopyInto ¶
func (in *InternalType) DeepCopyInto(out *InternalType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InternalType) DeepCopyObject ¶
func (in *InternalType) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*InternalType) GetObjectKind ¶
func (obj *InternalType) GetObjectKind() schema.ObjectKind
func (*InternalType) GroupVersionKind ¶
func (obj *InternalType) GroupVersionKind() schema.GroupVersionKind
func (*InternalType) SetGroupVersionKind ¶
func (obj *InternalType) SetGroupVersionKind(gvk schema.GroupVersionKind)
type TestFactory ¶
type TestFactory struct { cmdutil.Factory Client kubectl.RESTClient ScaleGetter scaleclient.ScalesGetter UnstructuredClient kubectl.RESTClient ClientConfigVal *restclient.Config FakeDynamicClient *fakedynamic.FakeDynamicClient UnstructuredClientForMappingFunc resource.FakeClientFunc OpenAPISchemaFunc func() (openapi.Resources, error) // contains filtered or unexported fields }
func NewTestFactory ¶
func NewTestFactory() *TestFactory
func (*TestFactory) Cleanup ¶
func (f *TestFactory) Cleanup()
func (*TestFactory) ClientForMapping ¶
func (f *TestFactory) ClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)
func (*TestFactory) DiscoveryClient ¶
func (f *TestFactory) DiscoveryClient() (discovery.CachedDiscoveryInterface, error)
func (*TestFactory) DynamicClient ¶
func (f *TestFactory) DynamicClient() (dynamic.Interface, error)
func (*TestFactory) KubernetesClientSet ¶
func (f *TestFactory) KubernetesClientSet() (*kubernetes.Clientset, error)
func (*TestFactory) NewBuilder ¶
func (f *TestFactory) NewBuilder() *resource.Builder
func (*TestFactory) OpenAPISchema ¶
func (f *TestFactory) OpenAPISchema() (openapi.Resources, error)
func (*TestFactory) RESTClient ¶
func (f *TestFactory) RESTClient() (*restclient.RESTClient, error)
func (*TestFactory) ScaleClient ¶
func (f *TestFactory) ScaleClient() (scaleclient.ScalesGetter, error)
func (*TestFactory) ToRESTConfig ¶
func (f *TestFactory) ToRESTConfig() (*restclient.Config, error)
func (*TestFactory) UnstructuredClientForMapping ¶
func (f *TestFactory) UnstructuredClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)
func (*TestFactory) Validator ¶
func (f *TestFactory) Validator(validate bool) (validation.Schema, error)
func (*TestFactory) WithNamespace ¶
func (f *TestFactory) WithNamespace(ns string) *TestFactory