common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 13

Documentation

Index

Constants

View Source
const (
	// SelfPackagePath is the golang path for this package.
	SelfPackagePath = "github.com/upbound/provider-aws/config/common"

	// PathARNExtractor is the golang path to ARNExtractor function
	// in this package.
	PathARNExtractor = SelfPackagePath + ".ARNExtractor()"

	// PathTerraformIDExtractor is the golang path to TerraformID extractor
	// function in this package.
	PathTerraformIDExtractor = SelfPackagePath + ".TerraformID()"

	// VersionV1Beta1 is used for resources that meet the v1beta1 criteria
	// here: https://github.com/upbound/arch/pull/33
	VersionV1Beta1 = "v1beta1"

	// ErrGetPasswordSecret is an error string for failing to get password secret
	ErrGetPasswordSecret = "cannot get password secret"
)

Variables

This section is empty.

Functions

func ARNExtractor

func ARNExtractor() reference.ExtractValueFn

ARNExtractor extracts ARN of the resources from "status.atProvider.arn" which is quite common among all AWS resources.

func PasswordGenerator added in v1.0.0

func PasswordGenerator(secretRefFieldPath, toggleFieldPath string) config.NewInitializerFn

PasswordGenerator returns an InitializerFn that will generate a password for a resource if the toggle field is set to true and the secret referenced by the secretRefFieldPath is not found or does not have content corresponding to the password key.

func TerraformID

func TerraformID() reference.ExtractValueFn

TerraformID returns the Terraform ID string of the resource without any manipulation.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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