Documentation ¶
Index ¶
- func AppendToStringSliceIfNotExist(slice []string, value string) []string
- func AssertWaitPollNoErr(e error, msg string)
- func AssertWaitPollWithErr(e error, msg string)
- func CreateFileWithContent(fileAbsPath string, content interface{}) (string, error)
- func CreateTempFileWithContent(fileContent string) (string, error)
- func CreateTempFileWithPrefixAndContent(prefix string, fileContent string) (string, error)
- func CreateTempOCMConfig() (string, error)
- func ExtractCommandsFromOIDCRegister(bf bytes.Buffer) []string
- func ExtractCommandsToCreateAWSResoueces(bf bytes.Buffer) []string
- func ExtractCommandsToDeleteAWSResoueces(bf bytes.Buffer) []string
- func ExtractOIDCProviderARN(output string) string
- func ExtractOIDCProviderIDFromARN(arn string) string
- func GenerateHtpasswdPair(user string, pass string) (string, string, string, error)
- func GenerateMultipleHtpasswdPairs(pairNum int) ([]string, error)
- func GenerateRandomName(prefix string, n int) string
- func GenerateRandomString(length int) string
- func GenerateRandomStringWithSymbols(length int) string
- func ParseCommaSeparatedStrings(input string) (output []string)
- func ParseCommandToArgs(command string) []string
- func ParseIssuerURLFromCommand(command string) string
- func ParseLabels(labels string) []string
- func ParseRoleARN(arn string) (string, string, error)
- func ParseSecretArnFromOutput(output string) string
- func ParseTagsFronJsonOutput(tags string) map[string]interface{}
- func ParseTaints(taints string) []string
- func ParseTuningConfigs(tuningConfigs string) []string
- func RandomInt(max int) int
- func ReadENVWithDefaultValue(envName string, fallback string) string
- func ReadFileContent(fileAbsPath string) (string, error)
- func RemoveFromStringSlice(slice []string, value string) []string
- func ReplaceCommaSpaceWithComma(sourceValue string) string
- func ReplaceCommaWithCommaSpace(sourceValue string) string
- func SliceContains(slice []string, value string) bool
- func SplitARNResources(v string) []string
- func SplitMajorVersion(openshiftVersion string) string
- func TrimNameByLength(name string, length int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertWaitPollNoErr ¶
func AssertWaitPollWithErr ¶
func CreateFileWithContent ¶
Write string to a file
func CreateTempOCMConfig ¶ added in v1.2.41
func ExtractCommandsFromOIDCRegister ¶ added in v1.2.43
func ExtractCommandsToCreateAWSResoueces ¶ added in v1.2.43
Extract aws commands to create AWS resource promted by rosacli, this function supports to parse bellow commands `rosa create account-role --mode manual` `rosa create operator-roles --mode manual` `rosa create oidc-provider --mode manual`
func ExtractCommandsToDeleteAWSResoueces ¶ added in v1.2.43
Extract aws commands to create AWS resource promted by rosacli, this function supports to parse bellow commands `rosa create operator-roles --mode manual` `rosa create oidc-provider --mode manual`
func ExtractOIDCProviderARN ¶
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 ¶
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 ¶
Generate htpasspwd key value pair, return with a string
func GenerateMultipleHtpasswdPairs ¶
generate Htpasswd user-password Pairs
func GenerateRandomName ¶
func GenerateRandomStringWithSymbols ¶ added in v1.2.39
func ParseCommandToArgs ¶ added in v1.2.43
Parse command string to args array. NOTE:If the flag value contains spaces, put the whole value into the array
func ParseIssuerURLFromCommand ¶ added in v1.2.43
func ParseLabels ¶
func ParseRoleARN ¶ added in v1.2.41
Function to parse the ARN of a role, return rolePath,roleName and err
func ParseSecretArnFromOutput ¶ added in v1.2.43
func ParseTagsFronJsonOutput ¶ added in v1.2.40
func ParseTaints ¶
func ParseTuningConfigs ¶
func ReadENVWithDefaultValue ¶ added in v1.2.39
func ReadFileContent ¶ added in v1.2.38
Read file content to a string
func RemoveFromStringSlice ¶
func ReplaceCommaSpaceWithComma ¶ added in v1.2.40
func ReplaceCommaWithCommaSpace ¶ added in v1.2.39
func SliceContains ¶
func SplitMajorVersion ¶ added in v1.2.39
func TrimNameByLength ¶ added in v1.2.39
Types ¶
This section is empty.