MCPcopy Index your code
hub / github.com/redspread/spread / createSecret

Function createSecret

pkg/input/dir/source_test.go:342–350  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

340}
341
342func createSecret(name string) *kube.Secret {
343 return &kube.Secret{
344 ObjectMeta: kube.ObjectMeta{Name: name},
345 TypeMeta: unversioned.TypeMeta{Kind: "Secret", APIVersion: "v1"},
346
347 Type: kube.SecretTypeOpaque,
348 Data: map[string][]byte{randomString(10): []byte(randomString(80))},
349 }
350}
351
352// testRandomObjects returns a slice of randomly generated objects. If it is called with an object
353// count of < 0 a random number of slices (with an upper bound of 100) will be generated.

Callers 1

testRandomObjectsFunction · 0.70

Calls 1

randomStringFunction · 0.70

Tested by

no test coverage detected