schema

package
v4.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const PackageData = "data"
View Source
const PackageResource = "resource"

Variables

This section is empty.

Functions

func GenerateGoFileContent

func GenerateGoFileContent(blockName, schema string, pkg Package) (string, error)

func GenerateGoTestFileContent

func GenerateGoTestFileContent(blockName string, pkg Package) (string, error)

func RefreshSchema

func RefreshSchema(folder string) (version *version.Version, err error)

func SaveDataSourceSchema

func SaveDataSourceSchema(name, folder string, s *tfjson.Schema) error

func SaveProviderSchema

func SaveProviderSchema(folder string, s *tfjson.ProviderSchema) error

func SaveResourceSchema

func SaveResourceSchema(name, folder string, s *tfjson.Schema) error

Types

type Package

type Package string

type ProviderSchema

type ProviderSchema struct {
	*tfjson.ProviderSchema
	Version *version.Version
}

func ExtractProviderSchema

func ExtractProviderSchema() (*ProviderSchema, error)

type RegisterParameter

type RegisterParameter struct {
	ResourceSchemas   map[string]string
	DataSourceSchemas map[string]string
	RepoOwner         string
	GoModule          string
}

type TemplateData

type TemplateData struct {
	Package           string
	ResourceName      string
	ResourceSchema    string
	ResourceNameCamel string
	RepoOwner         string
	GoModule          string
}

Jump to

Keyboard shortcuts

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