Documentation ¶
Index ¶
- Constants
- Variables
- func DeployResourcesBox() *rice.Box
- func ExplicitConfirmationPrompt(label interface{}, confirmTexts ...string) error
- func ExtractBoxFiles(box *rice.Box, target string, items ...string) error
- func FixPromptBell(prompt *promptui.Prompt)
- func FormatPlainTable(table *tablewriter.Table)
- func FormatStandardTable(table *tablewriter.Table)
- func LoadKubeObject(decoder runtime.Decoder, objType runtime.Object, target string) (obj runtime.Object, err error)
- func NewPromptSelect(label interface{}, items interface{}) promptui.Select
- func PrintDescStruct(val interface{})
- func PrintImportant(message string, header string)
- func PrintJSON(val interface{})
- func Retry(retryFunc func() error, numTimes int, backoff int) error
- func SaveKubeObject(encoder runtime.Encoder, obj runtime.Object, target string) error
- func SearchFuncFor(slice []string, requirePrefix bool) func(string, int) bool
- func TFResourceBox() *rice.Box
- func ValidateInt(val string) error
- func ValidateIntWithLimits(min, max int) func(val string) error
- func ValidateKubeName(val string) error
- func ValidateMinLength(length int) func(val string) error
- func WaitUntilComplete(timeoutSec int, checkInterval int, checkFunc func() (bool, error)) error
Constants ¶
View Source
const ( MediumCheckInterval = 1000 // 1s LongCheckInterval = 5000 // 5s ShortTimeoutSec = 3 * 60 // 3 mins MediumTimeoutSec = 6 * 60 // 6 mins LongTimeoutSec = 15 * 60 // 15 mins ReallyLongTimeoutSec = 30 * 60 // 30 mins )
Variables ¶
View Source
var (
BellSkipper = &bellSkipper{}
)
Functions ¶
func DeployResourcesBox ¶
func FixPromptBell ¶
func FormatPlainTable ¶
func FormatPlainTable(table *tablewriter.Table)
func FormatStandardTable ¶
func FormatStandardTable(table *tablewriter.Table)
func LoadKubeObject ¶
func NewPromptSelect ¶
func PrintDescStruct ¶
func PrintDescStruct(val interface{})
func PrintImportant ¶
func SaveKubeObject ¶
func TFResourceBox ¶
func ValidateInt ¶
func ValidateIntWithLimits ¶
func ValidateKubeName ¶
func ValidateMinLength ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.