util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MPL-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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_format_int32    = "int32"
	OAS_format_int64    = "int64"

	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