MCPcopy
hub / github.com/kubernetes/client-go / New

Function New

scale/client.go:68–76  ·  view source on GitHub ↗

New creates a new ScalesGetter using the given client to make requests. The GroupVersion on the client is ignored.

(baseClient restclient.Interface, mapper PreferredResourceMapper, resolver dynamic.APIPathResolverFunc, scaleKindResolver ScaleKindResolver)

Source from the content-addressed store, hash-verified

66// New creates a new ScalesGetter using the given client to make requests.
67// The GroupVersion on the client is ignored.
68func New(baseClient restclient.Interface, mapper PreferredResourceMapper, resolver dynamic.APIPathResolverFunc, scaleKindResolver ScaleKindResolver) ScalesGetter {
69 return &scaleClient{
70 mapper: mapper,
71
72 apiPathResolverFunc: resolver,
73 scaleKindResolver: scaleKindResolver,
74 clientBase: baseClient,
75 }
76}
77
78// pathAndVersionFor returns the appropriate base path and the associated full GroupVersionResource
79// for the given GroupResource

Callers 2

fakeScaleClientFunction · 0.70
NewForConfigFunction · 0.70

Calls

no outgoing calls

Tested by 1

fakeScaleClientFunction · 0.56