Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RESTClientGetter ¶
type RESTClientGetter struct { // genericclioptions.RESTClientGetter genericclioptions.ConfigFlags RestConfig *rest.Config CacheDir string }
RESTClientGetter is an interface that the ConfigFlags describe to provide an easier way to mock for commands and eliminate the direct coupling to a struct type. Users may wish to duplicate this type in their own packages as per the golang type overlapping.
func (*RESTClientGetter) ToDiscoveryClient ¶
func (r *RESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
ToDiscoveryClient implements RESTClientGetter. Expects the AddFlags method to have been called. Returns a CachedDiscoveryInterface using a computed RESTConfig.
func (*RESTClientGetter) ToRESTConfig ¶
func (r *RESTClientGetter) ToRESTConfig() (*rest.Config, error)
ToRESTConfig implements RESTClientGetter. Returns a REST client configuration.
func (*RESTClientGetter) ToRESTMapper ¶
func (r *RESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)
ToRESTMapper returns a mapper.
Click to show internal directories.
Click to hide internal directories.