common

package
v1.2.38 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToStringSliceIfNotExist

func AppendToStringSliceIfNotExist(slice []string, value string) []string

func AssertWaitPollNoErr

func AssertWaitPollNoErr(e error, msg string)

func AssertWaitPollWithErr

func AssertWaitPollWithErr(e error, msg string)

func CreateFileWithContent

func CreateFileWithContent(fileAbsPath string, content string) (string, error)

Write string to a file

func CreateTempFileWithContent

func CreateTempFileWithContent(fileContent string) (string, error)

func CreateTempFileWithPrefixAndContent

func CreateTempFileWithPrefixAndContent(prefix string, fileContent string) (string, error)

func ExtractOIDCProviderARN

func ExtractOIDCProviderARN(output string) string

Extract the oidc provider ARN from the output of `rosa create oidc-config --mode auto` and also for common message containing the arn

func ExtractOIDCProviderIDFromARN

func ExtractOIDCProviderIDFromARN(arn string) string

Extract the oidc provider ARN from the output of `rosa create oidc-config --mode auto` and also for common message containing the arn

func GenerateHtpasswdPair

func GenerateHtpasswdPair(user string, pass string) (string, string, string, error)

Generate htpasspwd key value pair, return with a string

func GenerateMultipleHtpasswdPairs

func GenerateMultipleHtpasswdPairs(pairNum int) ([]string, error)

generate Htpasswd user-password Pairs

func GenerateRandomName

func GenerateRandomName(prefix string, n int) string

func GenerateRandomString

func GenerateRandomString(n int) string

Generate random string

func ParseCommaSeparatedStrings

func ParseCommaSeparatedStrings(input string) (output []string)

func ParseLabels

func ParseLabels(labels string) []string

func ParseTaints

func ParseTaints(taints string) []string

func ParseTuningConfigs

func ParseTuningConfigs(tuningConfigs string) []string

func ReadFileContent added in v1.2.38

func ReadFileContent(fileAbsPath string) (string, error)

Read file content to a string

func RemoveFromStringSlice

func RemoveFromStringSlice(slice []string, value string) []string

func SliceContains

func SliceContains(slice []string, value string) bool

func SplitARNResources

func SplitARNResources(v string) []string

Split resources from the aws arn

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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