Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper interface { // Resources gets the current set of resources retrieved from discovery // that are backuppable by Velero. Resources() []*metav1.APIResourceList // ResourceFor gets a fully-resolved GroupVersionResource and an // APIResource for the provided partially-specified GroupVersionResource. ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, metav1.APIResource, error) // Refresh pulls an updated set of Velero-backuppable resources from the // discovery API. Refresh() error // APIGroups gets the current set of supported APIGroups // in the cluster. APIGroups() []metav1.APIGroup }
Helper exposes functions for interacting with the Kubernetes discovery API.
func NewHelper ¶
func NewHelper(discoveryClient discovery.DiscoveryInterface, logger logrus.FieldLogger) (Helper, error)
Click to show internal directories.
Click to hide internal directories.