testing

package
v1.11.1-rancher1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2018 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InternalGV = schema.GroupVersion{Group: "apitest", Version: runtime.APIVersionInternal}
View Source
var UnlikelyGV = schema.GroupVersion{Group: "apitest", Version: "unlikelyversion"}
View Source
var ValidVersion = "v1"
View Source
var ValidVersionGV = schema.GroupVersion{Group: "apitest", Version: ValidVersion}

Functions

func AddToScheme added in v1.10.0

func AddToScheme(scheme *runtime.Scheme) (meta.RESTMapper, runtime.Codec)

func NewExternalScheme added in v1.10.0

func NewExternalScheme() (*runtime.Scheme, meta.RESTMapper, runtime.Codec)

Types

type ExternalNamespacedType added in v1.6.0

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 added in v1.8.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalNamespacedType.

func (*ExternalNamespacedType) DeepCopyInto added in v1.8.0

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 added in v1.8.0

func (in *ExternalNamespacedType) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ExternalNamespacedType) GetObjectKind added in v1.6.0

func (obj *ExternalNamespacedType) GetObjectKind() schema.ObjectKind

func (*ExternalNamespacedType) GroupVersionKind added in v1.6.0

func (obj *ExternalNamespacedType) GroupVersionKind() schema.GroupVersionKind

func (*ExternalNamespacedType) SetGroupVersionKind added in v1.6.0

func (obj *ExternalNamespacedType) SetGroupVersionKind(gvk schema.GroupVersionKind)

type ExternalNamespacedType2 added in v1.6.0

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 added in v1.8.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalNamespacedType2.

func (*ExternalNamespacedType2) DeepCopyInto added in v1.8.0

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 added in v1.8.0

func (in *ExternalNamespacedType2) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ExternalNamespacedType2) GetObjectKind added in v1.6.0

func (obj *ExternalNamespacedType2) GetObjectKind() schema.ObjectKind

func (*ExternalNamespacedType2) GroupVersionKind added in v1.6.0

func (obj *ExternalNamespacedType2) GroupVersionKind() schema.GroupVersionKind

func (*ExternalNamespacedType2) SetGroupVersionKind added in v1.6.0

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 added in v1.8.0

func (in *ExternalType) DeepCopy() *ExternalType

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalType.

func (*ExternalType) DeepCopyInto added in v1.8.0

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 added in v1.8.0

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 added in v1.8.0

func (in *ExternalType2) DeepCopy() *ExternalType2

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalType2.

func (*ExternalType2) DeepCopyInto added in v1.8.0

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 added in v1.8.0

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 added in v1.6.0

type InternalNamespacedType struct {
	Kind       string
	APIVersion string

	Name      string
	Namespace string
}

+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewInternalNamespacedType added in v1.6.0

func NewInternalNamespacedType(kind, apiversion, name, namespace string) *InternalNamespacedType

func (*InternalNamespacedType) DeepCopy added in v1.8.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalNamespacedType.

func (*InternalNamespacedType) DeepCopyInto added in v1.8.0

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 added in v1.8.0

func (in *InternalNamespacedType) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*InternalNamespacedType) GetObjectKind added in v1.6.0

func (obj *InternalNamespacedType) GetObjectKind() schema.ObjectKind

func (*InternalNamespacedType) GroupVersionKind added in v1.6.0

func (obj *InternalNamespacedType) GroupVersionKind() schema.GroupVersionKind

func (*InternalNamespacedType) SetGroupVersionKind added in v1.6.0

func (obj *InternalNamespacedType) SetGroupVersionKind(gvk schema.GroupVersionKind)

type InternalType

type InternalType struct {
	Kind       string
	APIVersion string

	Name string
}

+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 added in v1.8.0

func (in *InternalType) DeepCopy() *InternalType

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalType.

func (*InternalType) DeepCopyInto added in v1.8.0

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 added in v1.8.0

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 added in v1.10.0

func (f *TestFactory) Cleanup()

func (*TestFactory) ClientForMapping added in v1.10.0

func (f *TestFactory) ClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)

func (*TestFactory) ClientSet added in v1.10.0

func (f *TestFactory) ClientSet() (internalclientset.Interface, error)

func (*TestFactory) DiscoveryClient added in v1.10.0

func (f *TestFactory) DiscoveryClient() (discovery.CachedDiscoveryInterface, error)

func (*TestFactory) DynamicClient added in v1.11.0

func (f *TestFactory) DynamicClient() (dynamic.Interface, error)

func (*TestFactory) KubernetesClientSet added in v1.10.0

func (f *TestFactory) KubernetesClientSet() (*kubernetes.Clientset, error)

func (*TestFactory) NewBuilder added in v1.10.0

func (f *TestFactory) NewBuilder() *resource.Builder

func (*TestFactory) OpenAPISchema added in v1.10.0

func (f *TestFactory) OpenAPISchema() (openapi.Resources, error)

func (*TestFactory) RESTClient added in v1.10.0

func (f *TestFactory) RESTClient() (*restclient.RESTClient, error)

func (*TestFactory) ScaleClient added in v1.11.0

func (f *TestFactory) ScaleClient() (scaleclient.ScalesGetter, error)

func (*TestFactory) ToRESTConfig added in v1.11.0

func (f *TestFactory) ToRESTConfig() (*restclient.Config, error)

func (*TestFactory) UnstructuredClientForMapping added in v1.10.0

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 added in v1.11.0

func (f *TestFactory) WithNamespace(ns string) *TestFactory

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL