Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoreDeploySchemaForVersion ¶
func CoreDeploySchemaForVersion(v *version.Version) (*schema.BodySchema, error)
CoreDeploySchemaForVersion finds a schema for deployment configuration files that is relevant for the given Terraform version. It will return an error if such schema cannot be found.
func CoreStackSchemaForVersion ¶
func CoreStackSchemaForVersion(v *version.Version) (*schema.BodySchema, error)
CoreStackSchemaForVersion finds a schema for stack configuration files that is relevant for the given Terraform version. It will return an error if such schema cannot be found.
func StackVarToAttribute ¶
func StackVarToAttribute(stackVar stack.Variable) *schema.AttributeSchema
Types ¶
type DeploySchemaMerger ¶
type DeploySchemaMerger struct {
// contains filtered or unexported fields
}
func NewDeploySchemaMerger ¶
func NewDeploySchemaMerger(coreSchema *schema.BodySchema) *DeploySchemaMerger
func (*DeploySchemaMerger) SchemaForDeployment ¶
func (m *DeploySchemaMerger) SchemaForDeployment(meta *stack.Meta) (*schema.BodySchema, error)
SchemaForDeployment returns the schema for a deployment block
type StackSchemaMerger ¶
type StackSchemaMerger struct {
// contains filtered or unexported fields
}
func NewStackSchemaMerger ¶
func NewStackSchemaMerger(coreSchema *schema.BodySchema) *StackSchemaMerger
func (*StackSchemaMerger) SchemaForStack ¶
func (m *StackSchemaMerger) SchemaForStack(meta *stack.Meta) (*schema.BodySchema, error)
func (*StackSchemaMerger) SetStateReader ¶
func (m *StackSchemaMerger) SetStateReader(mr StateReader)
type StateReader ¶
type StateReader interface { // ProviderSchema returns the schema for a provider we have stored in memory. The can come // from different sources. ProviderSchema(modPath string, addr tfaddr.Provider, vc version.Constraints) (*tfschema.ProviderSchema, error) // InstalledModulePath checks if there is an installed module available for // the given normalized source address. InstalledModulePath(rootPath string, normalizedSource string) (string, bool) // LocalModuleMeta returns the module meta data for a local module. This is the result // of the [earlydecoder] when processing module files LocalModuleMeta(modPath string) (*tfmod.Meta, error) }
StateReader exposes a set of methods to read data from the internal language server state
Click to show internal directories.
Click to hide internal directories.