ast

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIgnoredFile added in v0.29.0

func IsIgnoredFile(name string) bool

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 IsModuleFilename(name string) bool

func IsVarsFilename

func IsVarsFilename(name string) bool

Types

type ModDiags

type ModDiags map[ModFilename]hcl.Diagnostics

func ModDiagsFromMap

func ModDiagsFromMap(m map[string]hcl.Diagnostics) ModDiags

func (ModDiags) AsMap

func (md ModDiags) AsMap() map[string]hcl.Diagnostics

func (ModDiags) AutoloadedOnly added in v0.29.0

func (md ModDiags) AutoloadedOnly() ModDiags

func (ModDiags) Count added in v0.25.2

func (md ModDiags) Count() int

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 ModFiles

type ModFiles map[ModFilename]*hcl.File

func ModFilesFromMap

func ModFilesFromMap(m map[string]*hcl.File) ModFiles

func (ModFiles) AsMap

func (mf ModFiles) AsMap() map[string]*hcl.File

type VarsDiags

type VarsDiags map[VarsFilename]hcl.Diagnostics

func VarsDiagsFromMap

func VarsDiagsFromMap(m map[string]hcl.Diagnostics) VarsDiags

func (VarsDiags) AsMap

func (vd VarsDiags) AsMap() map[string]hcl.Diagnostics

func (VarsDiags) AutoloadedOnly

func (vd VarsDiags) AutoloadedOnly() VarsDiags

func (VarsDiags) Count added in v0.25.2

func (vd VarsDiags) Count() int

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

type VarsFiles

type VarsFiles map[VarsFilename]*hcl.File

func VarsFilesFromMap

func VarsFilesFromMap(m map[string]*hcl.File) VarsFiles

Jump to

Keyboard shortcuts

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