module

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadWithOptions

func LoadWithOptions(options *Options) (*tfconf.Module, error)

LoadWithOptions returns new instance of Module with all the inputs and outputs discovered from provided 'path' containing Terraform config

Types

type Options

type Options struct {
	Path             string
	ShowHeader       bool
	HeaderFromFile   string
	SortBy           *SortBy
	OutputValues     bool
	OutputValuesPath string
}

Options contains required options to load a Module from path

func NewOptions

func NewOptions() *Options

NewOptions returns new instance of Options

func (*Options) With

func (o *Options) With(override *Options) (*Options, error)

With override options with existing Options

func (*Options) WithOverwrite

func (o *Options) WithOverwrite(override *Options) (*Options, error)

WithOverwrite override options with existing Options and overwrites non-empty items in destination

type SortBy

type SortBy struct {
	Name     bool
	Required bool
}

SortBy contains different sort criteria corresponding to available flags (e.g. name, required, etc)

type TerraformOutput

type TerraformOutput struct {
	Sensitive bool        `json:"sensitive"`
	Type      interface{} `json:"type"`
	Value     interface{} `json:"value"`
}

TerraformOutput is used for unmarshalling `terraform outputs --json` into

Jump to

Keyboard shortcuts

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