convert

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranslateModule

func TranslateModule(
	source afero.Fs, sourceDirectory string,
	destination afero.Fs, info il.ProviderInfoSource,
) hcl.Diagnostics

func TranslateState

func TranslateState(info il.ProviderInfoSource, path string) (*plugin.ConvertStateResponse, error)

Types

type PathInfo

type PathInfo struct {
	// The final part of the path (e.g. a_field)
	Name string

	// The Resource that contains the path (e.g. data.simple_data_source)
	Resource shim.Resource
	// The DataSourceInfo for the path (e.g. data.simple_data_source)
	DataSourceInfo *tfbridge.DataSourceInfo
	// The ResourceInfo for the path (e.g. simple_resource)
	ResourceInfo *tfbridge.ResourceInfo

	// The Schema for the path (e.g. data.simple_data_source.a_field)
	Schema shim.Schema
	// The SchemaInfo for the path (e.g. data.simple_data_source.a_field)
	SchemaInfo *tfbridge.SchemaInfo

	// The expression for a local variable
	Expression *hcl.Expression
}

Used to return info about a path in the schema.

Jump to

Keyboard shortcuts

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