comp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package comp contains compositions for configuration structs. These provide common functionality that is shared between the different config elements.

hcl2 does not support compositions yet.. so this is for future improvement

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Remainer

type Remainer struct {
}

Remainer includes a hcl remain tag to parse all remaining items in block

func (*Remainer) ResolveVariables

func (r *Remainer) ResolveVariables(body hcl.Body) ([]hcl.Traversal, error)

ResolveVariables decodes the config and returns a list of all variables found in hcl.Body. This is used later to be able to determine what variables it needs to resolve before finally resolving the body.

Jump to

Keyboard shortcuts

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