tfschema

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrResourceTypeNotFound = errors.New("resource type not found")

Functions

func IsTaggable

func IsTaggable(dir string, iacType common.IACType, defaultToTerraform bool, resource hclwrite.Block) (bool, error)

Types

type Attribute added in v0.2.0

type Attribute struct {
	Type      cty.Type `json:"type"`
	Required  bool     `json:"required"`
	Optional  bool     `json:"optional"`
	Computed  bool     `json:"computed"`
	Sensitive bool     `json:"sensitive"`
}

type Block added in v0.2.0

type Block struct {
	Attributes map[string]*Attribute `json:"attributes"`
}

type ProviderSchema added in v0.2.0

type ProviderSchema struct {
	ResourceSchemas map[string]*ResourceSchema `json:"resource_schemas"`
}

type ProviderSchemas added in v0.2.0

type ProviderSchemas struct {
	ProviderSchemas map[string]*ProviderSchema `json:"provider_schemas"`
}

type ResourceSchema added in v0.2.0

type ResourceSchema struct {
	Block Block `json:"block"`
}

type TfSchemaAttribute

type TfSchemaAttribute struct {
	Name string
	Type string
}

Jump to

Keyboard shortcuts

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