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

Function getJSON

deprecated-dynamic/client_test.go:39–41  ·  view source on GitHub ↗
(version, kind, name string)

Source from the content-addressed store, hash-verified

37)
38
39func getJSON(version, kind, name string) []byte {
40 return []byte(fmt.Sprintf(`{"apiVersion": %q, "kind": %q, "metadata": {"name": %q}}`, version, kind, name))
41}
42
43func getListJSON(version, kind string, items ...[]byte) []byte {
44 json := fmt.Sprintf(`{"apiVersion": %q, "kind": %q, "items": [%s]}`,

Callers 3

TestListFunction · 0.70
TestGetFunction · 0.70
TestPatchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected