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

tfschema

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resources []Resource

Functions

func PropertiesCandidates

func PropertiesCandidates(props []Property, r lsp.Range) []lsp.CompletionItem

Types

type GenericCandidatesFunc

type GenericCandidatesFunc func(data []byte, filename string, block *hclsyntax.Block, attribute *hclsyntax.Attribute, pos hcl.Pos, property *Property) []lsp.CompletionItem

type Property

type Property struct {
	Name              string
	Modifier          string
	Type              string
	Description       string
	CompletionNewText string

	GenericCandidatesFunc GenericCandidatesFunc
	ValueCandidatesFunc   ValueCandidatesFunc
	NestedProperties      []Property
}

type Resource

type Resource struct {
	Name       string
	Properties []Property
}

func GetResourceSchema

func GetResourceSchema(name string) *Resource

func (*Resource) GetProperty

func (r *Resource) GetProperty(propertyName string) *Property

type ValueCandidatesFunc

type ValueCandidatesFunc func(prefix *string, r lsp.Range) []lsp.CompletionItem

func FixedValueCandidatesFunc

func FixedValueCandidatesFunc(fixedItems []lsp.CompletionItem) ValueCandidatesFunc

Jump to

Keyboard shortcuts

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