k8s

package
v0.0.0-...-b7f36a4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserAgent = "churn"

UserAgent is the default value for the USer-Agent header.

Functions

func DefaultClientConfig

func DefaultClientConfig() (*rest.Config, error)

DefaultClientConfig() returns the default Kubernetes client config.

func NewClientset

func NewClientset() (*kubernetes.Clientset, error)

NewClientset returns a new defaulted *kubernetes.Clientset.

func NewDynamicClientset

func NewDynamicClientset() (dynamic.Interface, error)

NewDynamicClientset returns a new defaulted dynamic.Interface.

func NewDynamicInformer

NewDynamicInformer returns an informer for the given resource type.

func NewDynamicInformerFactory

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

type DiscoveryHelper = velero.Helper

func NewDiscoveryHelper

func NewDiscoveryHelper(cs *kubernetes.Clientset) (DiscoveryHelper, error)

NewDiscoveryHelper returns a new resource discovery helper.

Jump to

Keyboard shortcuts

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