utils

package
v0.1.0-beta.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileReferenceFromKubeconfig

func GetFileReferenceFromKubeconfig(
	filename string,
	kubeconfigPath string,
) (string, error)

func OpenBrowser

func OpenBrowser(url string) error

OpenBrowser opens the specified URL in the default browser of the user.

func PromptPassword

func PromptPassword(prompt string) (string, error)

PromptPassword prompts a user to input a hidden field

func PromptPasswordWithConfirmation

func PromptPasswordWithConfirmation() (string, error)

PromptPasswordWithConfirmation is a helper function to prompt for a password twice

func PromptPlaintext

func PromptPlaintext(prompt string) (string, error)

PromptPlaintext prompts a user to input plain text

func String

func String(length int) string

String returns a random string, pulling from a standard alphanumeric charset [a-zA-Z0-9]

func StringWithCharset

func StringWithCharset(length int, charset string) string

StringWithCharset returns a random string by pulling from a given charset

Types

This section is empty.

Jump to

Keyboard shortcuts

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