utils

package
v0.31.8 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CDClientAPIKeyError = "Please provide the value for FirstGen API Key in the provider configuration's api_key field."
View Source
const CacDescription string = "" /* 180-byte string literal not displayed */
View Source
const NextgenDescription string = "This resource is part of the Harness nextgen platform."

Variables

View Source
var AwsRegions = []string{
	"us-east-2",
	"us-east-1",
	"us-west-1",
	"us-west-2",
	"af-south-1",
	"ap-east-1",
	"ap-south-1",
	"ap-northeast-3",
	"ap-northeast-2",
	"ap-southeast-1",
	"ap-southeast-2",
	"ap-northeast-1",
	"ca-central-1",
	"eu-central-1",
	"eu-west-1",
	"eu-west-2",
	"eu-south-1",
	"eu-west-3",
	"eu-north-1",
	"me-south-1",
	"us-gov-east-1",
	"us-gov-west-1",
}

Functions

func ConfigAsCodeDescription

func ConfigAsCodeDescription(descripton string) string

func ExpandDelegateSelectors

func ExpandDelegateSelectors(ds []interface{}) []string

func ExpandTags

func ExpandTags(tags []interface{}) map[string]string

func FlattenDelgateSelectors

func FlattenDelgateSelectors(ds []string) []interface{}

func FlattenTags

func FlattenTags(tags map[string]string) []string

func GetConflictsWithSlice

func GetConflictsWithSlice(source []string, self string) []string

func GetNextgenDescription

func GetNextgenDescription(description string) string

func InterfaceSliceToStringSlice

func InterfaceSliceToStringSlice(slice []interface{}) []string

func StringHashcode

func StringHashcode(s string) int

Borrowed from https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/create/hashcode.go StringHashcode hashes a string to a unique hashcode.

crc32 returns a uint32, but for our use we need and non negative integer. Here we cast to an integer and invert it if the result is negative.

Types

This section is empty.

Jump to

Keyboard shortcuts

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