Documentation ¶
Index ¶
- func CaptureOutput(f func()) (printed string)
- func CaptureOutputSync(f func()) (printed string)
- func Int64Value(x int64) *int64
- func TempClusterCache(fs afero.Fs, cacheYAML string) (string, error)
- func TempConfig(fs afero.Fs, configYAML string) (string, error)
- func TempDir(fs afero.Fs) string
- func TempKubeconfig(fs afero.Fs) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureOutput ¶
func CaptureOutput(f func()) (printed string)
CaptureOutput runs a function and captures returns STDOUT output as a string.
func CaptureOutputSync ¶
func CaptureOutputSync(f func()) (printed string)
CaptureOutputSync runs a function synchronously and captures returns STDOUT output as a string.
func TempClusterCache ¶
TempClusterCache creates a temporary config directory with clustercache file containing the given cache content The directory path is returned.
func TempConfig ¶
TempConfig creates a temporary config directory with config.yaml file containing the given YAML content and initializes our config from it. The directory path is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.