Versions in this module Expand all Collapse all v0 v0.24.0 Mar 25, 2022 Changes in this version + var InternalGV = schema.GroupVersion + var UnlikelyGV = schema.GroupVersion + var ValidVersion = "v1" + var ValidVersionGV = schema.GroupVersion + func AddToScheme(scheme *runtime.Scheme) (meta.RESTMapper, runtime.Codec) + func BytesBody(bodyBytes []byte) io.ReadCloser + func DefaultClientConfig() *restclient.Config + func DefaultHeader() http.Header + func EmptyTestData() (*corev1.PodList, *corev1.ServiceList, *corev1.ReplicationControllerList) + func GenResponseWithJsonEncodedBody(bodyStruct interface{}) (*http.Response, error) + func InitTestErrorHandler(t *testing.T) + func NewExternalScheme() (*runtime.Scheme, meta.RESTMapper, runtime.Codec) + func ObjBody(codec runtime.Codec, obj runtime.Object) io.ReadCloser + func StringBody(body string) io.ReadCloser + func TestData() (*corev1.PodList, *corev1.ServiceList, *corev1.ReplicationControllerList) + type EmptyOpenAPI struct + func (EmptyOpenAPI) OpenAPISchema() (*openapi_v2.Document, error) + type ExternalNamespacedType struct + APIVersion string + Kind string + Name string + Namespace string + 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 struct + APIVersion string + Kind string + Name string + Namespace string + 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 struct + APIVersion string + Kind string + Name string + 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 struct + APIVersion string + Kind string + Name string + 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 struct + APIVersion string + Kind string + Name string + Namespace string + func NewInternalNamespacedType(kind, apiversion, name, namespace string) *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 struct + APIVersion string + Kind string + Name string + func NewInternalType(kind, apiversion, name string) *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 RESTClient interface + Delete func() *client.Request + Get func() *client.Request + Patch func(types.PatchType) *client.Request + Post func() *client.Request + Put func() *client.Request + type TestFactory struct + Client RESTClient + ClientConfigVal *restclient.Config + FakeDynamicClient *fakedynamic.FakeDynamicClient + FakeOpenAPIGetter discovery.OpenAPISchemaInterface + OpenAPISchemaFunc func() (openapi.Resources, error) + ScaleGetter scaleclient.ScalesGetter + UnstructuredClient RESTClient + UnstructuredClientForMappingFunc resource.FakeClientFunc + func NewTestFactory() *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) OpenAPIGetter() discovery.OpenAPISchemaInterface + func (f *TestFactory) OpenAPISchema() (openapi.Resources, error) + func (f *TestFactory) PathOptions() *clientcmd.PathOptions + func (f *TestFactory) PathOptionsWithConfig(config clientcmdapi.Config) (*clientcmd.PathOptions, 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) WithClientConfig(clientConfig clientcmd.ClientConfig) *TestFactory + func (f *TestFactory) WithNamespace(ns string) *TestFactory