Documentation ¶
Index ¶
- Variables
- func DefaultClientConfig() (*rest.Config, error)
- func NewClientset() (*kubernetes.Clientset, error)
- func NewDynamicClientset() (dynamic.Interface, error)
- func NewDynamicInformer(resource schema.GroupVersionResource, ...) (informers.GenericInformer, error)
- func NewDynamicInformerFactory(optionsFunc dynamicinformer.TweakListOptionsFunc) (dynamicinformer.DynamicSharedInformerFactory, error)
- func ParseGroupVersionKind(groupVersion string, r v1.APIResource) schema.GroupVersionKind
- func ParseGroupVersionResource(groupVersion string, r v1.APIResource) schema.GroupVersionResource
- type DiscoveryHelper
Constants ¶
This section is empty.
Variables ¶
View Source
var UserAgent = "churn"
UserAgent is the default value for the USer-Agent header.
Functions ¶
func DefaultClientConfig ¶
DefaultClientConfig() returns the default Kubernetes client config.
func NewClientset ¶
func NewClientset() (*kubernetes.Clientset, error)
NewClientset returns a new defaulted *kubernetes.Clientset.
func NewDynamicClientset ¶
NewDynamicClientset returns a new defaulted dynamic.Interface.
func NewDynamicInformer ¶
func NewDynamicInformer(resource schema.GroupVersionResource, optionsFunc dynamicinformer.TweakListOptionsFunc) (informers.GenericInformer, error)
NewDynamicInformer returns an informer for the given resource type.
func NewDynamicInformerFactory ¶
func NewDynamicInformerFactory(optionsFunc dynamicinformer.TweakListOptionsFunc) (dynamicinformer.DynamicSharedInformerFactory, error)
NewDynamicInformerFactory returns an configured dynamic informer factory.
func ParseGroupVersionKind ¶
func ParseGroupVersionKind(groupVersion string, r v1.APIResource) schema.GroupVersionKind
ParseGroupVersionKind parses the GroupVersion and Kind strings from an APIResourceList and returns the corresponding GroupVersionKind.
func ParseGroupVersionResource ¶
func ParseGroupVersionResource(groupVersion string, r v1.APIResource) schema.GroupVersionResource
Types ¶
type DiscoveryHelper ¶
func NewDiscoveryHelper ¶
func NewDiscoveryHelper(cs *kubernetes.Clientset) (DiscoveryHelper, error)
NewDiscoveryHelper returns a new resource discovery helper.
Click to show internal directories.
Click to hide internal directories.