Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OAS_type_string  = "string"
	OAS_type_integer = "integer"
	OAS_type_number  = "number"
	OAS_type_boolean = "boolean"
	OAS_type_array   = "array"
	OAS_type_object  = "object"
	OAS_type_null    = "null"

	OAS_format_double   = "double"
	OAS_format_float    = "float"
	OAS_format_password = "password"

	OAS_param_path  = "path"
	OAS_param_query = "query"

	// Custom format for SetNested and Set attributes
	TF_format_set = "set"

	OAS_mediatype_json = "application/json"

	OAS_response_code_ok      = "200"
	OAS_response_code_created = "201"
)

Reference links:

Variables

This section is empty.

Functions

func CreateElementType

func CreateElementType(attrType schema.ObjectAttributeType) schema.ElementType

CreateElementType is a helper function that assists in mapping between ObjectAttributeType and ElementType as their structs share the same underlying types

func CreateObjectAttributeType

func CreateObjectAttributeType(name string, elemType schema.ElementType) schema.ObjectAttributeType

CreateObjectAttributeType is a helper function that assists in mapping between ElementType and ObjectAttributeType as their structs share the same underlying types

func SortedKeys

func SortedKeys[V any](m map[string]V) []string

Generics? ☜(ಠ_ಠ☜)

func TerraformIdentifier

func TerraformIdentifier(original string) string

TerraformIdentifier attempts to convert the given string to a valid Terraform identifier for usage in a Provider Code Specification.

Types

This section is empty.

Jump to

Keyboard shortcuts

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