Documentation
¶
Overview ¶
util package provides utility functions for other packages
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFactory ¶
type ClientFactory interface { genericclioptions.RESTClientGetter // DynamicClient returns a dynamic client ready for use DynamicClient() (dynamic.Interface, error) // UnstructuredClientForMapping return a RESTClient that can be used for the Unstructured object described by mapping UnstructuredClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error) // KubernetesClientSet gives you back an external clientset KubernetesClientSet() (kubernetes.Interface, error) }
ClientFactory provides abstractions that allow to change the certain functions in certain cases, like testing
func NewFactory ¶
func NewFactory(clientGetter genericclioptions.RESTClientGetter) ClientFactory
NewFactory return a CleintFactory implementation
Click to show internal directories.
Click to hide internal directories.