helper

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func FederationTokensHaveSamePrimary(encodedToken1, encodedToken2 string) bool

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

func IsAutoRestResponseCodeNotFound(resp autorest.Response) bool

IsAutoRestResponseCodeNotFound determines if an AutoRest response code was 404 not found.

func ParseResourceGroupNameFromID

func ParseResourceGroupNameFromID(id string) (string, error)

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 String

func String(s string) *string

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.

Jump to

Keyboard shortcuts

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