MCPcopy
hub / github.com/kubernetes/kubectl / ToRESTConfig

Method ToRESTConfig

pkg/cmd/testing/fake.go:491–493  ·  view source on GitHub ↗

ToRESTConfig is used to get ClientConfigVal from a TestFactory

()

Source from the content-addressed store, hash-verified

489
490// ToRESTConfig is used to get ClientConfigVal from a TestFactory
491func (f *TestFactory) ToRESTConfig() (*restclient.Config, error) {
492 return f.ClientConfigVal, nil
493}
494
495// ClientForMapping is used to Client from a TestFactory
496func (f *TestFactory) ClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error) {

Callers 15

attachablePodForObjectFunction · 0.45
allPodLogsForObjectFunction · 0.45
logsForObjectFunction · 0.45
historyViewerFunction · 0.45
rollbackerFunction · 0.45
CompleteMethod · 0.45
ToOptionsMethod · 0.45
CompleteMethod · 0.45
CompleteMethod · 0.45
CompleteMethod · 0.45
CompleteMethod · 0.45
CompleteMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestApplyPluginPolicyFunction · 0.36