configs

package
v0.4.1-0...-5b560ab Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Type   string
	Config hcl.Body

	TypeRange hcl.Range
	DeclRange hcl.Range
}

Backend is an alternative representation of configs.Backend. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/backend.go#L12-L18

type Config

type Config struct {
	// Root            *Config
	// Parent          *Config
	Path addrs.Module
	// Children        map[string]*Config
	Module          *Module
	CallRange       hcl.Range
	SourceAddr      string
	SourceAddrRange hcl.Range
	Version         *version.Version
}

Config is an alternative representation of configs.Config. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/config.go#L22-L78

type Connection

type Connection struct {
	Config hcl.Body

	DeclRange hcl.Range
}

Connection is an alternative representation of configs.Connection. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/provisioner.go#L166-L170

type Local

type Local struct {
	Name string
	Expr hcl.Expression

	DeclRange hcl.Range
}

Local is an alternative representation of configs.Local. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/named_values.go#L485-L490

type ManagedResource

type ManagedResource struct {
	Connection   *Connection
	Provisioners []*Provisioner

	CreateBeforeDestroy bool
	PreventDestroy      bool
	// IgnoreChanges       []hcl.Traversal
	IgnoreAllChanges bool

	CreateBeforeDestroySet bool
	PreventDestroySet      bool
}

ManagedResource is an alternative representation of configs.ManagedResource. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/resource.go#L37-L48 IgnoreChanges is not supported due to the difficulty of intermediate representation.

type Module

type Module struct {
	SourceDir string

	CoreVersionConstraints []VersionConstraint

	ActiveExperiments experiments.Set

	Backend              *Backend
	ProviderConfigs      map[string]*Provider
	ProviderRequirements *RequiredProviders
	ProviderLocalNames   map[addrs.Provider]string
	ProviderMetas        map[addrs.Provider]*ProviderMeta

	Variables map[string]*Variable
	Locals    map[string]*Local
	Outputs   map[string]*Output

	ModuleCalls map[string]*ModuleCall

	ManagedResources map[string]*Resource
	DataResources    map[string]*Resource
}

Module is an alternative representation of configs.Module. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/module.go#L14-L45

type ModuleCall

type ModuleCall struct {
	Name string

	SourceAddr      string
	SourceAddrRange hcl.Range
	SourceSet       bool

	Config hcl.Body

	Version VersionConstraint

	Count   hcl.Expression
	ForEach hcl.Expression

	Providers []PassedProviderConfig

	DeclRange hcl.Range
}

ModuleCall is an alternative representation of configs.ModuleCall. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/module_call.go#L12-L31 DependsOn is not supported due to the difficulty of intermediate representation.

type Output

type Output struct {
	Name        string
	Description string
	Expr        hcl.Expression
	// DependsOn   []hcl.Traversal
	Sensitive bool

	DescriptionSet bool
	SensitiveSet   bool

	DeclRange hcl.Range
}

Output is an alternative representation of configs.Output. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/named_values.go#L422-L433

type PassedProviderConfig

type PassedProviderConfig struct {
	InChild  *ProviderConfigRef
	InParent *ProviderConfigRef
}

PassedProviderConfig is an alternative representation of configs.PassedProviderConfig. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/module_call.go#L140-L143

type Provider

type Provider struct {
	Name       string
	NameRange  hcl.Range
	Alias      string
	AliasRange *hcl.Range // nil if no alias set

	Version VersionConstraint

	Config hcl.Body

	DeclRange hcl.Range
}

Provider is an alternative representation of configs.Provider. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/provider.go#L17-L28

type ProviderConfigRef

type ProviderConfigRef struct {
	Name       string
	NameRange  hcl.Range
	Alias      string
	AliasRange *hcl.Range
}

ProviderConfigRef is an alternative representation of configs.ProviderConfigRef. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/resource.go#L373-L378

type ProviderMeta

type ProviderMeta struct {
	Provider string
	Config   hcl.Body

	ProviderRange hcl.Range
	DeclRange     hcl.Range
}

ProviderMeta is an alternative representation of configs.ProviderMeta. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/provider_meta.go#L7-L13

type Provisioner

type Provisioner struct {
	Type       string
	Config     hcl.Body
	Connection *Connection
	When       ProvisionerWhen
	OnFailure  ProvisionerOnFailure

	DeclRange hcl.Range
	TypeRange hcl.Range
}

Provisioner is an alternative representation of configs.Provisioner. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/provisioner.go#L11-L20

type ProvisionerOnFailure

type ProvisionerOnFailure int

ProvisionerOnFailure is an alternative representation of configs.ProvisionerOnFailure. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/provisioner.go#L183-L193

const (
	// ProvisionerOnFailureInvalid is the zero value of ProvisionerOnFailure.
	ProvisionerOnFailureInvalid ProvisionerOnFailure = iota
	// ProvisionerOnFailureContinue indicates continuation on failure.
	ProvisionerOnFailureContinue
	// ProvisionerOnFailureFail indicates failure on failure.
	ProvisionerOnFailureFail
)

type ProvisionerWhen

type ProvisionerWhen int

ProvisionerWhen is an alternative representation of configs.ProvisionerWhen. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/provisioner.go#L172-L181

const (
	// ProvisionerWhenInvalid is the zero value of ProvisionerWhen.
	ProvisionerWhenInvalid ProvisionerWhen = iota
	// ProvisionerWhenCreate indicates the time of creation.
	ProvisionerWhenCreate
	// ProvisionerWhenDestroy indicates the time of deletion.
	ProvisionerWhenDestroy
)

type RequiredProvider

type RequiredProvider struct {
	Name        string
	Source      string
	Type        addrs.Provider
	Requirement VersionConstraint
	DeclRange   hcl.Range
}

RequiredProvider is an alternative representation of configs.RequiredProvider. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/provider_requirements.go#L14-L20

type RequiredProviders

type RequiredProviders struct {
	RequiredProviders map[string]*RequiredProvider
	DeclRange         hcl.Range
}

RequiredProviders is an alternative representation of configs.RequiredProviders. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/provider_requirements.go#L22-L25

type Resource

type Resource struct {
	Mode    addrs.ResourceMode
	Name    string
	Type    string
	Config  hcl.Body
	Count   hcl.Expression
	ForEach hcl.Expression

	ProviderConfigRef *ProviderConfigRef
	Provider          addrs.Provider

	Managed *ManagedResource

	DeclRange hcl.Range
	TypeRange hcl.Range
}

Resource is an alternative representation of configs.Resource. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/resource.go#L14-L34 DependsOn is not supported due to the difficulty of intermediate representation.

type Variable

type Variable struct {
	Name        string
	Description string
	Default     cty.Value
	Type        cty.Type
	ParsingMode VariableParsingMode
	Validations []*VariableValidation

	DescriptionSet bool

	DeclRange hcl.Range
}

Variable is an alternative representation of configs.Variable. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/named_values.go#L21-L32

type VariableParsingMode

type VariableParsingMode rune

VariableParsingMode is an alternative representation of configs.VariableParsingMode. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/named_values.go#L226-L234

const VariableParseHCL VariableParsingMode = 'H'

VariableParseHCL is a variable parsing mode that attempts to parse the given string as an HCL expression and returns the result.

const VariableParseLiteral VariableParsingMode = 'L'

VariableParseLiteral is a variable parsing mode that just takes the given string directly as a cty.String value.

type VariableValidation

type VariableValidation struct {
	// Condition is an expression that refers to the variable being tested
	// and contains no other references. The expression must return true
	// to indicate that the value is valid or false to indicate that it is
	// invalid. If the expression produces an error, that's considered a bug
	// in the module defining the validation rule, not an error in the caller.
	Condition hcl.Expression

	// ErrorMessage is one or more full sentences, which would need to be in
	// English for consistency with the rest of the error message output but
	// can in practice be in any language as long as it ends with a period.
	// The message should describe what is required for the condition to return
	// true in a way that would make sense to a caller of the module.
	ErrorMessage string

	DeclRange hcl.Range
}

VariableValidation is an alternative representation of configs.VariableValidation. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/named_values.go#L273-L289

type VersionConstraint

type VersionConstraint struct {
	Required  version.Constraints
	DeclRange hcl.Range
}

VersionConstraint is an alternative representation of configs.VersionConstraint. https://github.com/hashicorp/terraform/blob/v0.13.2/configs/version_constraint.go#L16-L19

Jump to

Keyboard shortcuts

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