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

Function getListJSON

dynamic/client_test.go:43–47  ·  view source on GitHub ↗
(version, kind string, items ...[]byte)

Source from the content-addressed store, hash-verified

41}
42
43func getListJSON(version, kind string, items ...[]byte) []byte {
44 json := fmt.Sprintf(`{"apiVersion": %q, "kind": %q, "items": [%s]}`,
45 version, kind, bytes.Join(items, []byte(",")))
46 return []byte(json)
47}
48
49func getObject(version, kind, name string) *unstructured.Unstructured {
50 return &unstructured.Unstructured{

Callers 1

TestListFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected