Documentation ¶
Index ¶
- Variables
- func BoolWithFalseDefault(tfVal types.Bool) bool
- func ConvertStringMapToMapType(stringMap map[string]string) (types.Map, error)
- func GetThumbprint(oidcEndpointURL string, httpClient HttpClient) (thumbprint string, err error)
- func HandleErr(res *ocmerrors.Error, err error) error
- func HasValue(val attr.Value) bool
- func IsGreaterThanOrEqual(version1, version2 string) (bool, error)
- func IsStringAttributeEmpty(param types.String) bool
- func IsValidDomain(candidate string) bool
- func IsValidEmail(candidate string) bool
- func OptionalInt64(tfVal types.Int64) *int64
- func OptionalMap(ctx context.Context, tfVal types.Map) (map[string]string, error)
- func OptionalString(tfVal types.String) *string
- func Sha1Hash(data []byte) (string, error)
- func ShouldPatchBool(state, plan types.Bool) (value bool, ok bool)
- func ShouldPatchInt(state, plan types.Int64) (value int64, ok bool)
- func ShouldPatchMap(state, plan types.Map) (types.Map, bool)
- func ShouldPatchString(state, plan types.String) (value string, ok bool)
- func StringArrayToList(stringList []string) (types.List, error)
- func StringListToArray(ctx context.Context, tfVal types.List) ([]string, error)
- func ValidateHTPasswdPassword(password string) error
- func ValidateHTPasswdUsername(username string) error
- func WaitTillClusterReady(ctx context.Context, collection *cmv1.ClustersClient, clusterId string) error
- type DefaultHttpClient
- type HttpClient
Constants ¶
This section is empty.
Variables ¶
var EmailRegexp = regexp.MustCompile("^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+$")
Functions ¶
func BoolWithFalseDefault ¶ added in v1.4.0
func ConvertStringMapToMapType ¶ added in v1.4.0
func GetThumbprint ¶ added in v1.4.0
func GetThumbprint(oidcEndpointURL string, httpClient HttpClient) (thumbprint string, err error)
func IsGreaterThanOrEqual ¶
func IsStringAttributeEmpty ¶
func IsValidDomain ¶
func IsValidEmail ¶
func OptionalInt64 ¶ added in v1.3.0
func OptionalMap ¶ added in v1.3.0
func OptionalString ¶ added in v1.3.0
func Sha1Hash ¶ added in v1.4.0
sha1Hash computes the SHA1 of the byte array and returns the hex encoding as a string.
func ShouldPatchBool ¶
ShouldPatchBool changed checks if the change between the given state and plan requires sending a patch request to the server. If it does it return the value to add to the patch.
func ShouldPatchInt ¶
shouldPatchInt changed checks if the change between the given state and plan requires sending a patch request to the server. If it does it returns the value to add to the patch.
func ShouldPatchMap ¶
ShouldPatchMap changed checks if the change between the given state and plan requires sending a patch request to the server. If it does it return the value to add to the patch.
func ShouldPatchString ¶
shouldPatchString changed checks if the change between the given state and plan requires sending a patch request to the server. If it does it returns the value to add to the patch.
func StringListToArray ¶
func ValidateHTPasswdPassword ¶ added in v1.4.0
func ValidateHTPasswdUsername ¶ added in v1.4.0
func WaitTillClusterReady ¶ added in v1.4.0
Types ¶
type DefaultHttpClient ¶ added in v1.4.0
type DefaultHttpClient struct { }