common

package
v0.0.0-...-8e62913 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ExtractResourceIDFuncPath holds the MongoDBAtlas resource ID extractor func name
	ExtractResourceIDFuncPath = commonConfigPackagePath + ".ExtractResourceID()"

	// VersionV1Alpha2 is used as minimum version for all manually configured resources.
	VersionV1Alpha2 = "v1alpha2"
)
View Source
const (
	// APISPackagePath is the package path for generated APIs root package
	APISPackagePath = "github.com/Teja446/mongodbatlasprov/apis"
)

Variables

This section is empty.

Functions

func Base64EncodeTokens

func Base64EncodeTokens(keyVal ...interface{}) (string, error)

Base64EncodeTokens base64-encode key-value pairs using a colon as a separator between them and concatenate pairs with hyphens

func ExtractResourceID

func ExtractResourceID() xpref.ExtractValueFn

ExtractResourceID extracts the value of `spec.atProvider.id` from a Terraformed resource. If mr is not a Terraformed resource, returns an empty string.

func GetAttributeValue

func GetAttributeValue(attrMap map[string]interface{}, attr string) (string, error)

GetAttributeValue reads a string attribute from the specified map

func SetIdentifierFunc

func SetIdentifierFunc(base map[string]interface{}, externalName string)

SetIdentifierFunc sets the identifier attribute `name` from a composite external-name where the identifier resides at index 0 of a colon-delimited string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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