Documentation ¶
Index ¶
- Variables
- 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 FakeFactory
- func (f *FakeFactory) ApproximatePodTemplateForObject(obj runtime.Object) (*api.PodTemplateSpec, error)
- func (f *FakeFactory) AttachablePodForObject(ob runtime.Object, timeout time.Duration) (*api.Pod, error)
- func (f *FakeFactory) BareClientConfig() (*restclient.Config, error)
- func (f *FakeFactory) BindExternalFlags(flags *pflag.FlagSet)
- func (f *FakeFactory) BindFlags(flags *pflag.FlagSet)
- func (f *FakeFactory) CanBeAutoscaled(schema.GroupKind) error
- func (f *FakeFactory) CanBeExposed(schema.GroupKind) error
- func (f *FakeFactory) CategoryExpander() categories.CategoryExpander
- func (f *FakeFactory) ClientConfig() (*restclient.Config, error)
- func (f *FakeFactory) ClientConfigForVersion(requiredVersion *schema.GroupVersion) (*restclient.Config, error)
- func (f *FakeFactory) ClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)
- func (f *FakeFactory) ClientSet() (internalclientset.Interface, error)
- func (f *FakeFactory) ClientSetForVersion(requiredVersion *schema.GroupVersion) (internalclientset.Interface, error)
- func (f *FakeFactory) Command(*cobra.Command, bool) string
- func (f *FakeFactory) Decoder(bool) runtime.Decoder
- func (f *FakeFactory) DefaultNamespace() (string, bool, error)
- func (f *FakeFactory) DefaultResourceFilterFunc() kubectl.Filters
- func (f *FakeFactory) DefaultResourceFilterOptions(cmd *cobra.Command, withNamespace bool) *printers.PrintOptions
- func (f *FakeFactory) Describer(*meta.RESTMapping) (printers.Describer, error)
- func (f *FakeFactory) DiscoveryClient() (discovery.CachedDiscoveryInterface, error)
- func (f *FakeFactory) EditorEnvs() []string
- func (f *FakeFactory) FlagSet() *pflag.FlagSet
- func (f *FakeFactory) Generators(cmdName string) map[string]kubectl.Generator
- func (f *FakeFactory) HistoryViewer(*meta.RESTMapping) (kubectl.HistoryViewer, error)
- func (f *FakeFactory) JSONEncoder() runtime.Encoder
- func (f *FakeFactory) KubernetesClientSet() (*kubernetes.Clientset, error)
- func (f *FakeFactory) LabelsForObject(runtime.Object) (map[string]string, error)
- func (f *FakeFactory) LogsForObject(object, options runtime.Object, timeout time.Duration) (*restclient.Request, error)
- func (f *FakeFactory) MapBasedSelectorForObject(runtime.Object) (string, error)
- func (f *FakeFactory) MetricsClientSet() (metricsclientset.Interface, error)
- func (f *FakeFactory) NewBuilder() *resource.Builder
- func (f *FakeFactory) Object() (meta.RESTMapper, runtime.ObjectTyper)
- func (f *FakeFactory) OpenAPISchema() (openapi.Resources, error)
- func (f *FakeFactory) Pauser(info *resource.Info) ([]byte, error)
- func (f *FakeFactory) PluginLoader() plugins.PluginLoader
- func (f *FakeFactory) PluginRunner() plugins.PluginRunner
- func (f *FakeFactory) PortsForObject(runtime.Object) ([]string, error)
- func (f *FakeFactory) PrintObject(cmd *cobra.Command, isLocal bool, mapper meta.RESTMapper, obj runtime.Object, ...) error
- func (f *FakeFactory) PrintObjectSpecificMessage(obj runtime.Object, out io.Writer)
- func (f *FakeFactory) PrintResourceInfoForCommand(cmd *cobra.Command, info *resource.Info, out io.Writer) error
- func (f *FakeFactory) PrintSuccess(shortOutput bool, out io.Writer, resource, name string, dryRun bool, ...)
- func (f *FakeFactory) Printer(mapping *meta.RESTMapping, options printers.PrintOptions) (printers.ResourcePrinter, error)
- func (f *FakeFactory) PrinterForMapping(printOpts *printers.PrintOptions, mapping *meta.RESTMapping) (printers.ResourcePrinter, error)
- func (f *FakeFactory) PrinterForOptions(options *printers.PrintOptions) (printers.ResourcePrinter, error)
- func (f *FakeFactory) ProtocolsForObject(runtime.Object) (map[string]string, error)
- func (f *FakeFactory) RESTClient() (*restclient.RESTClient, error)
- func (f *FakeFactory) Reaper(*meta.RESTMapping) (kubectl.Reaper, error)
- func (f *FakeFactory) ResolveImage(name string) (string, error)
- func (f *FakeFactory) Resumer(info *resource.Info) ([]byte, error)
- func (f *FakeFactory) Rollbacker(*meta.RESTMapping) (kubectl.Rollbacker, error)
- func (f *FakeFactory) Scaler(*meta.RESTMapping) (kubectl.Scaler, error)
- func (f *FakeFactory) StatusViewer(*meta.RESTMapping) (kubectl.StatusViewer, error)
- func (f *FakeFactory) SuggestedPodTemplateResources() []schema.GroupResource
- func (f *FakeFactory) UnstructuredClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)
- func (f *FakeFactory) UpdatePodSpecForObject(obj runtime.Object, fn func(*v1.PodSpec) error) (bool, error)
- func (f *FakeFactory) Validator(validate bool) (validation.Schema, error)
- 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
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 = legacyscheme.Registry.GroupOrDie(api.GroupName).GroupVersion.Version
var ValidVersionGV = schema.GroupVersion{Group: "apitest", Version: ValidVersion}
Functions ¶
This section is empty.
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
func (in *ExternalNamespacedType) DeepCopy() *ExternalNamespacedType
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
func (in *ExternalNamespacedType2) DeepCopy() *ExternalNamespacedType2
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 FakeFactory ¶
func (*FakeFactory) ApproximatePodTemplateForObject ¶ added in v1.9.0
func (f *FakeFactory) ApproximatePodTemplateForObject(obj runtime.Object) (*api.PodTemplateSpec, error)
func (*FakeFactory) AttachablePodForObject ¶
func (*FakeFactory) BareClientConfig ¶ added in v1.6.0
func (f *FakeFactory) BareClientConfig() (*restclient.Config, error)
func (*FakeFactory) BindExternalFlags ¶
func (f *FakeFactory) BindExternalFlags(flags *pflag.FlagSet)
func (*FakeFactory) BindFlags ¶
func (f *FakeFactory) BindFlags(flags *pflag.FlagSet)
func (*FakeFactory) CanBeAutoscaled ¶
func (f *FakeFactory) CanBeAutoscaled(schema.GroupKind) error
func (*FakeFactory) CanBeExposed ¶
func (f *FakeFactory) CanBeExposed(schema.GroupKind) error
func (*FakeFactory) CategoryExpander ¶ added in v1.7.0
func (f *FakeFactory) CategoryExpander() categories.CategoryExpander
func (*FakeFactory) ClientConfig ¶
func (f *FakeFactory) ClientConfig() (*restclient.Config, error)
func (*FakeFactory) ClientConfigForVersion ¶ added in v1.6.0
func (f *FakeFactory) ClientConfigForVersion(requiredVersion *schema.GroupVersion) (*restclient.Config, error)
func (*FakeFactory) ClientForMapping ¶
func (f *FakeFactory) ClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)
func (*FakeFactory) ClientSet ¶
func (f *FakeFactory) ClientSet() (internalclientset.Interface, error)
func (*FakeFactory) ClientSetForVersion ¶ added in v1.6.0
func (f *FakeFactory) ClientSetForVersion(requiredVersion *schema.GroupVersion) (internalclientset.Interface, error)
func (*FakeFactory) DefaultNamespace ¶
func (f *FakeFactory) DefaultNamespace() (string, bool, error)
func (*FakeFactory) DefaultResourceFilterFunc ¶
func (f *FakeFactory) DefaultResourceFilterFunc() kubectl.Filters
func (*FakeFactory) DefaultResourceFilterOptions ¶
func (f *FakeFactory) DefaultResourceFilterOptions(cmd *cobra.Command, withNamespace bool) *printers.PrintOptions
func (*FakeFactory) Describer ¶
func (f *FakeFactory) Describer(*meta.RESTMapping) (printers.Describer, error)
func (*FakeFactory) DiscoveryClient ¶
func (f *FakeFactory) DiscoveryClient() (discovery.CachedDiscoveryInterface, error)
func (*FakeFactory) EditorEnvs ¶
func (f *FakeFactory) EditorEnvs() []string
func (*FakeFactory) FlagSet ¶
func (f *FakeFactory) FlagSet() *pflag.FlagSet
func (*FakeFactory) Generators ¶
func (f *FakeFactory) Generators(cmdName string) map[string]kubectl.Generator
func (*FakeFactory) HistoryViewer ¶
func (f *FakeFactory) HistoryViewer(*meta.RESTMapping) (kubectl.HistoryViewer, error)
func (*FakeFactory) JSONEncoder ¶
func (f *FakeFactory) JSONEncoder() runtime.Encoder
func (*FakeFactory) KubernetesClientSet ¶ added in v1.8.0
func (f *FakeFactory) KubernetesClientSet() (*kubernetes.Clientset, error)
func (*FakeFactory) LabelsForObject ¶
func (*FakeFactory) LogsForObject ¶
func (f *FakeFactory) LogsForObject(object, options runtime.Object, timeout time.Duration) (*restclient.Request, error)
func (*FakeFactory) MapBasedSelectorForObject ¶
func (f *FakeFactory) MapBasedSelectorForObject(runtime.Object) (string, error)
func (*FakeFactory) MetricsClientSet ¶
func (f *FakeFactory) MetricsClientSet() (metricsclientset.Interface, error)
func (*FakeFactory) NewBuilder ¶
func (f *FakeFactory) NewBuilder() *resource.Builder
func (*FakeFactory) Object ¶
func (f *FakeFactory) Object() (meta.RESTMapper, runtime.ObjectTyper)
func (*FakeFactory) OpenAPISchema ¶ added in v1.7.0
func (f *FakeFactory) OpenAPISchema() (openapi.Resources, error)
func (*FakeFactory) PluginLoader ¶ added in v1.7.0
func (f *FakeFactory) PluginLoader() plugins.PluginLoader
func (*FakeFactory) PluginRunner ¶ added in v1.7.0
func (f *FakeFactory) PluginRunner() plugins.PluginRunner
func (*FakeFactory) PortsForObject ¶
func (f *FakeFactory) PortsForObject(runtime.Object) ([]string, error)
func (*FakeFactory) PrintObject ¶
func (*FakeFactory) PrintObjectSpecificMessage ¶
func (f *FakeFactory) PrintObjectSpecificMessage(obj runtime.Object, out io.Writer)
func (*FakeFactory) PrintResourceInfoForCommand ¶ added in v1.9.0
func (*FakeFactory) PrintSuccess ¶ added in v1.9.0
func (*FakeFactory) Printer ¶
func (f *FakeFactory) Printer(mapping *meta.RESTMapping, options printers.PrintOptions) (printers.ResourcePrinter, error)
func (*FakeFactory) PrinterForMapping ¶
func (f *FakeFactory) PrinterForMapping(printOpts *printers.PrintOptions, mapping *meta.RESTMapping) (printers.ResourcePrinter, error)
func (*FakeFactory) PrinterForOptions ¶ added in v1.9.0
func (f *FakeFactory) PrinterForOptions(options *printers.PrintOptions) (printers.ResourcePrinter, error)
func (*FakeFactory) ProtocolsForObject ¶
func (*FakeFactory) RESTClient ¶
func (f *FakeFactory) RESTClient() (*restclient.RESTClient, error)
func (*FakeFactory) Reaper ¶
func (f *FakeFactory) Reaper(*meta.RESTMapping) (kubectl.Reaper, error)
func (*FakeFactory) ResolveImage ¶ added in v1.6.0
func (f *FakeFactory) ResolveImage(name string) (string, error)
func (*FakeFactory) Rollbacker ¶
func (f *FakeFactory) Rollbacker(*meta.RESTMapping) (kubectl.Rollbacker, error)
func (*FakeFactory) Scaler ¶
func (f *FakeFactory) Scaler(*meta.RESTMapping) (kubectl.Scaler, error)
func (*FakeFactory) StatusViewer ¶
func (f *FakeFactory) StatusViewer(*meta.RESTMapping) (kubectl.StatusViewer, error)
func (*FakeFactory) SuggestedPodTemplateResources ¶
func (f *FakeFactory) SuggestedPodTemplateResources() []schema.GroupResource
func (*FakeFactory) UnstructuredClientForMapping ¶
func (f *FakeFactory) UnstructuredClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)
func (*FakeFactory) UpdatePodSpecForObject ¶
func (*FakeFactory) Validator ¶
func (f *FakeFactory) Validator(validate bool) (validation.Schema, error)
type InternalNamespacedType ¶ added in v1.6.0
+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
func (in *InternalNamespacedType) DeepCopy() *InternalNamespacedType
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 ¶
+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 { Mapper meta.RESTMapper Typer runtime.ObjectTyper Client kubectl.RESTClient UnstructuredClient kubectl.RESTClient Describer printers.Describer Printer printers.ResourcePrinter Validator validation.Schema Namespace string ClientConfig *restclient.Config Err error Command string TmpDir string CategoryExpander categories.CategoryExpander SkipDiscovery bool MetricsClientSet metricsclientset.Interface ClientForMappingFunc func(mapping *meta.RESTMapping) (resource.RESTClient, error) UnstructuredClientForMappingFunc func(mapping *meta.RESTMapping) (resource.RESTClient, error) OpenAPISchemaFunc func() (openapi.Resources, error) }
func NewAPIFactory ¶
func NewAPIFactory() (cmdutil.Factory, *TestFactory, runtime.Codec, runtime.NegotiatedSerializer)
func NewMixedFactory ¶
func NewMixedFactory(apiClient resource.RESTClient) (cmdutil.Factory, *TestFactory, runtime.Codec)
func NewTestFactory ¶
func NewTestFactory() (cmdutil.Factory, *TestFactory, runtime.Codec, runtime.NegotiatedSerializer)
func (*TestFactory) WithCustomScheme ¶ added in v1.9.0
func (f *TestFactory) WithCustomScheme() *TestFactory
func (*TestFactory) WithLegacyScheme ¶ added in v1.9.0
func (f *TestFactory) WithLegacyScheme() *TestFactory