Documentation ¶
Index ¶
- func AMAVersionStatusToString(amaVersionStatus models.HashicorpCloudConsulamaAmaVersionStatus) string
- func FederationTokensHaveSamePrimary(encodedToken1, encodedToken2 string) bool
- func IsAutoRestResponseCodeNotFound(resp autorest.Response) bool
- func ParseResourceGroupNameFromID(id string) (string, error)
- func String(s string) *string
- func ToError(d diag.Diagnostics) *multierror.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AMAVersionStatusToString ¶
func AMAVersionStatusToString(amaVersionStatus models.HashicorpCloudConsulamaAmaVersionStatus) string
AMAVersionStatusToString converts a HashicorpCloudConsulamaAmaVersionStatus to a string.
func FederationTokensHaveSamePrimary ¶
FederationTokensHaveSamePrimary determines if two federation tokens (base64 encoded JWTs) have the same 'Primary' claim, which denotes that the tokens belong to the same primary HCS cluster.
func IsAutoRestResponseCodeNotFound ¶
IsAutoRestResponseCodeNotFound determines if an AutoRest response code was 404 not found.
func ParseResourceGroupNameFromID ¶
ParseResourceGroupNameFromID takes an Azure id string and parses the Azure Resource Group name. The Resource Group name can be the name of a Resource Group or a Managed Resource Group. Azure ids are of the form: /subscriptions/{GUID}/resourceGroups/{RESOURCE_GROUP_NAME}/...
func ToError ¶
func ToError(d diag.Diagnostics) *multierror.Error
ToError will convert the passed in diag.Diagnostics d to an error if it is non-nil and contains an error.
Types ¶
This section is empty.