ast

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDeployFilename

func IsDeployFilename(name string) bool

func IsStackFilename

func IsStackFilename(name string) bool

Types

type DeployFilename

type DeployFilename string

DeployFilename is a custom type for deployment files

func (DeployFilename) IsIgnored

func (df DeployFilename) IsIgnored() bool

func (DeployFilename) IsJSON

func (df DeployFilename) IsJSON() bool

func (DeployFilename) String

func (df DeployFilename) String() string

type Diagnostics

type Diagnostics map[Filename]hcl.Diagnostics

func (Diagnostics) AsMap

func (sd Diagnostics) AsMap() map[string]hcl.Diagnostics

func (Diagnostics) AutoloadedOnly

func (sd Diagnostics) AutoloadedOnly() Diagnostics

AutoloadedOnly returns only diagnostics that are not from ignored files

func (Diagnostics) Copy

func (sd Diagnostics) Copy() Diagnostics

func (Diagnostics) Count

func (sd Diagnostics) Count() int

type Filename

type Filename interface {
	String() string
	IsJSON() bool
	IsIgnored() bool
}

func FilenameFromName

func FilenameFromName(name string) Filename

FilenameFromName returns either a StackFilename or DeployFilename based on the name

type Files

type Files map[Filename]*hcl.File

func (Files) Copy

func (sf Files) Copy() Files

type SourceDiagnostics

type SourceDiagnostics map[globalAst.DiagnosticSource]Diagnostics

func (SourceDiagnostics) Count

func (svd SourceDiagnostics) Count() int

type StackFilename

type StackFilename string

StackFilename is a custom type for stack configuration files

func (StackFilename) IsIgnored

func (mf StackFilename) IsIgnored() bool

func (StackFilename) IsJSON

func (mf StackFilename) IsJSON() bool

func (StackFilename) String

func (mf StackFilename) String() string

Jump to

Keyboard shortcuts

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