Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsIgnoredFile ¶ added in v0.29.0
isIgnoredFile returns true if the given filename (which must not have a directory path ahead of it) should be ignored as e.g. an editor swap file. See https://github.com/hashicorp/terraform/blob/d35bc05/internal/configs/parser_config_dir.go#L107
func IsModuleFilename ¶
func IsVarsFilename ¶
Types ¶
type DiagnosticSource ¶ added in v0.32.0
type DiagnosticSource int
DiagnosticSource differentiates different sources of diagnostics.
const ( HCLParsingSource DiagnosticSource = iota SchemaValidationSource ReferenceValidationSource TerraformValidateSource )
func (DiagnosticSource) String ¶ added in v0.32.0
func (d DiagnosticSource) String() string
type DiagnosticSourceState ¶ added in v0.32.0
type DiagnosticSourceState map[DiagnosticSource]op.OpState
func (DiagnosticSourceState) Copy ¶ added in v0.32.0
func (dss DiagnosticSourceState) Copy() DiagnosticSourceState
type ModDiags ¶
type ModDiags map[ModFilename]hcl.Diagnostics
func ModDiagsFromMap ¶
func (ModDiags) AutoloadedOnly ¶ added in v0.29.0
type ModFilename ¶
type ModFilename string
func (ModFilename) IsIgnored ¶ added in v0.29.0
func (mf ModFilename) IsIgnored() bool
func (ModFilename) IsJSON ¶ added in v0.23.0
func (mf ModFilename) IsJSON() bool
func (ModFilename) String ¶
func (mf ModFilename) String() string
type SourceModDiags ¶ added in v0.32.0
type SourceModDiags map[DiagnosticSource]ModDiags
func (SourceModDiags) Count ¶ added in v0.32.0
func (smd SourceModDiags) Count() int
type SourceVarsDiags ¶ added in v0.32.0
type SourceVarsDiags map[DiagnosticSource]VarsDiags
func (SourceVarsDiags) Count ¶ added in v0.32.0
func (svd SourceVarsDiags) Count() int
type VarsDiags ¶
type VarsDiags map[VarsFilename]hcl.Diagnostics
func VarsDiagsFromMap ¶
func (VarsDiags) AutoloadedOnly ¶
type VarsFilename ¶
type VarsFilename string
func NewVarsFilename ¶
func NewVarsFilename(name string) (VarsFilename, bool)
func (VarsFilename) IsAutoloaded ¶
func (vf VarsFilename) IsAutoloaded() bool
func (VarsFilename) IsJSON ¶ added in v0.24.0
func (vf VarsFilename) IsJSON() bool
func (VarsFilename) String ¶
func (vf VarsFilename) String() string
Click to show internal directories.
Click to hide internal directories.