Documentation ¶
Overview ¶
Mostly adapted from tfschema - https://github.com/minamijoyo/tfschema
Index ¶
- Variables
- func GetAllConfigs(filePath string, tempFilePath string) *configs.Module
- func GetAttributeCompletion(result []lsp.CompletionItem, configType string, origConfig interface{}, ...) (lsp.CompletionList, bool, error)
- func GetConfig(file *configs.File, posHCL hcl.Pos) (*hclsyntax.Body, interface{}, string)
- func GetDiagnostics(fileName string, originalFile string) []lsp.Diagnostic
- func GetLocalsForDiags(local configs.Local, targetDir string, variables map[string]cty.Value) hcl.Diagnostics
- func GetModuleVariables(moduleAddr string, config hcl.Body, targetDir string) (map[string]*configs.Variable, bool)
- func GetNestingAttributeCompletion(attr *hcl.Attribute, result []lsp.CompletionItem, configType string, ...) (lsp.CompletionList, bool, error)
- func GetNestingCompletion(blocks []*hcl.Block, result []lsp.CompletionItem, configType string, ...) (lsp.CompletionList, bool, error)
- func GetTopLevelCompletion() []lsp.CompletionItem
- func GetTopLevelCompletionWithPos(pos hcl.Pos) []lsp.CompletionItem
- func GetTypeCompletion(result []lsp.CompletionItem, fileDir string, hclFile *hclsyntax.Body, ...) (lsp.CompletionList, bool, error)
- func GetVarAttributeCompletion(request GetVarAttributeRequest) []lsp.CompletionItem
- type Client
- func (c *Client) GetDataSourceTypes() ([]string, error)
- func (c *Client) GetRawDataSourceTypeSchema(dataSourceType string) (*providers.Schema, error)
- func (c *Client) GetRawProviderSchema() (*providers.Schema, error)
- func (c *Client) GetRawProvisionerSchema() (*provisioners.GetSchemaResponse, error)
- func (c *Client) GetRawResourceTypeSchema(resourceType string) (*providers.Schema, error)
- func (c *Client) GetResourceTypes() ([]string, error)
- func (c *Client) Kill()
- type GetVarAttributeRequest
- type TerraformProvider
- type TerraformProvisionerSchema
- type TerraformSchema
- func GetDataSourceSchema(dataSourceType string, config hcl.Body, targetDir string, ...) *TerraformSchema
- func GetDataSourceSchemaForDiags(dataSourceType string, config hcl.Body, targetDir string, ...) *TerraformSchema
- func GetProviderSchema(providerType string, config hcl.Body, targetDir string) *TerraformSchema
- func GetProviderSchemaForDiags(providerType string, config hcl.Body, targetDir string, ...) *TerraformSchema
- func GetResourceSchema(resourceType string, config hcl.Body, targetDir string, ...) *TerraformSchema
- func GetResourceSchemaForDiags(resourceType string, config hcl.Body, targetDir string, ...) *TerraformSchema
Constants ¶
This section is empty.
Variables ¶
View Source
var Clients = make(map[string]*Client)
View Source
var OfficialProviders = make(map[string]TerraformProvider)
View Source
var TerraformBackends = map[string]*configschema.Block{}
Functions ¶
func GetAllConfigs ¶ added in v0.0.2
func GetAttributeCompletion ¶
func GetDiagnostics ¶
func GetLocalsForDiags ¶ added in v0.0.12
func GetModuleVariables ¶
func GetNestingCompletion ¶
func GetTopLevelCompletion ¶
func GetTopLevelCompletion() []lsp.CompletionItem
func GetTopLevelCompletionWithPos ¶ added in v0.0.12
func GetTopLevelCompletionWithPos(pos hcl.Pos) []lsp.CompletionItem
func GetTypeCompletion ¶
func GetVarAttributeCompletion ¶ added in v0.0.2
func GetVarAttributeCompletion(request GetVarAttributeRequest) []lsp.CompletionItem
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a tfschema Client.
func GetProvisioner ¶ added in v0.0.4
func NewProvisionerClient ¶ added in v0.0.4
NewProvisionerClient creates a new Client instance for Provisioner.
func (*Client) GetDataSourceTypes ¶
GetDataSourceTypes returns a type definiton of resource type.
func (*Client) GetRawDataSourceTypeSchema ¶
GetRawDataSourceTypeSchema returns a type definiton of resource type.
func (*Client) GetRawProviderSchema ¶
GetRawProviderSchema returns a raw type definiton of provider schema.
func (*Client) GetRawProvisionerSchema ¶ added in v0.0.4
func (c *Client) GetRawProvisionerSchema() (*provisioners.GetSchemaResponse, error)
GetRawProvisionerSchema returns a raw type definiton of provisioner schema.
func (*Client) GetRawResourceTypeSchema ¶
GetRawResourceTypeSchema returns a type definiton of resource type.
func (*Client) GetResourceTypes ¶
GetResourceTypes returns a type definiton of resource type.
type GetVarAttributeRequest ¶ added in v0.0.2
type TerraformProvider ¶
type TerraformProvisionerSchema ¶ added in v0.0.4
type TerraformProvisionerSchema struct { Schema *provisioners.GetSchemaResponse DecodedSchema cty.Value Diags hcl.Diagnostics }
func GetProvisionerSchema ¶ added in v0.0.4
func GetProvisionerSchema(provisionerType string, config hcl.Body, targetDir string) *TerraformProvisionerSchema
type TerraformSchema ¶
type TerraformSchema struct { Schema *providers.Schema DecodedSchema cty.Value Diags hcl.Diagnostics }
func GetDataSourceSchema ¶
func GetDataSourceSchema(dataSourceType string, config hcl.Body, targetDir string, overrideProvider string) *TerraformSchema
func GetDataSourceSchemaForDiags ¶ added in v0.0.6
func GetProviderSchema ¶ added in v0.0.2
func GetProviderSchema(providerType string, config hcl.Body, targetDir string) *TerraformSchema
func GetProviderSchemaForDiags ¶ added in v0.0.6
func GetProviderSchemaForDiags(providerType string, config hcl.Body, targetDir string, variables map[string]cty.Value) *TerraformSchema
Need to combine with GetProviderSchema after testing
func GetResourceSchema ¶
func GetResourceSchema(resourceType string, config hcl.Body, targetDir string, overrideProvider string) *TerraformSchema
func GetResourceSchemaForDiags ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.