Documentation ¶
Index ¶
- func CommonSlicePrefix(first []string, second []string) []string
- func CompareStringArrays(arr1, arr2 []string) bool
- func ExtractTGZArchive(tgzFile string, destDir string) error
- func FixUpYAML(inputContent []byte) ([]byte, error)
- func GenPassword(length int) string
- func IntPointer(x int) *int64
- func IsURL(str string) bool
- func MarshalIndent(indent int, in interface{}) ([]byte, error)
- func SplitStringOnLen(str string, maxLength int) ([]string, error)
- type ActionableError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonSlicePrefix ¶
func CompareStringArrays ¶
CompareStringArrays returns true if all elements in arr1 are present in arr2 and the other way around. it does not check for equal counts of duplicates, or for ordering.
func ExtractTGZArchive ¶
func FixUpYAML ¶
FixUpYAML is a general purpose function that will ensure that YAML is copmatible with KOTS This ensures that lines aren't wrapped at 80 chars which breaks template functions
func GenPassword ¶
generates a [0-9a-zA-Z] password of the specified length
func IntPointer ¶
func MarshalIndent ¶
Types ¶
type ActionableError ¶
type ActionableError struct {
Message string
}
func (ActionableError) Error ¶
func (e ActionableError) Error() string
Click to show internal directories.
Click to hide internal directories.