schema

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllowedValues

func GetAllowedValues(resourceType *types.TypeBase) []string

func GetDef

func GetDef(resourceType *types.TypeBase, hclNodes []*parser.HclNode, index int) []*types.TypeBase

func GetTypeName

func GetTypeName(typeBase *types.TypeBase) string

Types

type Modifier

type Modifier string
const (
	Optional Modifier = "Optional"
	Required Modifier = "Required"
)

type Property

type Property struct {
	Name        string
	Description string
	Modifier    Modifier
	Type        string
	Value       string
}

func GetAllowedProperties

func GetAllowedProperties(resourceType *types.TypeBase) []Property

func PropertyFromObjectProperty

func PropertyFromObjectProperty(propertyName string, property types.ObjectProperty) *Property

type PropertySet

type PropertySet struct {
	Name       string
	Properties map[string]Property
}

func GetRequiredPropertySet

func GetRequiredPropertySet(typeBase *types.TypeBase) []PropertySet

Jump to

Keyboard shortcuts

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