index

package
v0.0.0-...-ecd18d7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const INDEX_VERSION = "1.0.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Message  string
	Location hcltoken.Pos
}

type Index

type Index struct {
	Version    string
	Errors     []Error
	Variables  []VariableDeclaration
	Resources  []ResourceDeclaration
	Outputs    []OutputDeclaration
	References map[string]ReferenceList
	RawAst     *hclast.File
}

func NewIndex

func NewIndex() *Index

func (*Index) Collect

func (index *Index) Collect(astFile *hclast.File, path string, includeRaw bool) error

func (*Index) CollectString

func (index *Index) CollectString(contents []byte, path string, includeRaw bool) error

type OutputDeclaration

type OutputDeclaration struct {
	Name     string
	Location hcltoken.Pos
}

type ReferenceList

type ReferenceList struct {
	Name      string
	Locations []hcltoken.Pos
}

type ResourceDeclaration

type ResourceDeclaration struct {
	Type     string
	Name     string
	Location hcltoken.Pos
}

type VariableDeclaration

type VariableDeclaration struct {
	Name     string
	Location hcltoken.Pos
}

Jump to

Keyboard shortcuts

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