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

Method Get

scale/fake/client.go:46–55  ·  view source on GitHub ↗
(resource schema.GroupResource, name string)

Source from the content-addressed store, hash-verified

44}
45
46func (f *fakeNamespacedScaleClient) Get(resource schema.GroupResource, name string) (*autoscalingapi.Scale, error) {
47 obj, err := f.fake.
48 Invokes(testing.NewGetSubresourceAction(resource.WithVersion(""), f.namespace, "scale", name), &autoscalingapi.Scale{})
49
50 if err != nil {
51 return nil, err
52 }
53
54 return obj.(*autoscalingapi.Scale), err
55}
56
57func (f *fakeNamespacedScaleClient) Update(resource schema.GroupResource, scale *autoscalingapi.Scale) (*autoscalingapi.Scale, error) {
58 obj, err := f.fake.

Callers

nothing calls this directly

Calls 2

NewGetSubresourceActionFunction · 0.92
InvokesMethod · 0.80

Tested by

no test coverage detected