fixture

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureStderr

func CaptureStderr(callback func()) (string, error)

func CaptureStdout

func CaptureStdout(callback func()) (string, error)

func MustCreateSecretFromFile

func MustCreateSecretFromFile(filepath string) *v1.Secret

MustCreateSecretFromFile reads a Kubernetes secret definition from filepath and returns a Secret object. Panics on error.

func MustCreateSecretFromJson

func MustCreateSecretFromJson(jsonData string) *v1.Secret

MustCreateSecretFromJson creates a Kubernetes secret from given JSON data and returns a Secret object. Panics on error.

func MustReadFile

func MustReadFile(path string) string

MustReadFile must read a file from given path. Panics if it can't.

func NewSecret

func NewSecret(namespace, name string, entries map[string][]byte) *v1.Secret

NewSecret creates a new Kubernetes secret object in given namespace, with given name and with given data.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL