Documentation ¶
Index ¶
- func CaptureStderr(callback func()) (string, error)
- func CaptureStdout(callback func()) (string, error)
- func MustCreateSecretFromFile(filepath string) *v1.Secret
- func MustCreateSecretFromJson(jsonData string) *v1.Secret
- func MustReadFile(path string) string
- func NewSecret(namespace, name string, entries map[string][]byte) *v1.Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStderr ¶
func CaptureStdout ¶
func MustCreateSecretFromFile ¶
MustCreateSecretFromFile reads a Kubernetes secret definition from filepath and returns a Secret object. Panics on error.
func MustCreateSecretFromJson ¶
MustCreateSecretFromJson creates a Kubernetes secret from given JSON data and returns a Secret object. Panics on error.
func MustReadFile ¶
MustReadFile must read a file from given path. Panics if it can't.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.