module

package
v0.0.0-...-02c76fb Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	resource.Status

	// the params configured for the module
	Params map[string]resource.Value `export:"params"`
}

Module holds stringified values for parameters

func (*Module) Apply

Apply doesn't do anything since modules are final values

func (*Module) Check

Check just returns the current value of the moduleeter. It should never have to change.

func (*Module) String

func (m *Module) String() string

String is the final value of thie Module

type Preparer

type Preparer struct {
	// Params is a map of strings to anything you'd like. It will be passed to
	// the called module as the default values for the `param`s there.
	Params map[string]resource.Value `hcl:"params"`
}

Preparer for modules

Module remotely sources other modules and adds them to the tree

func NewPreparer

func NewPreparer(params map[string]resource.Value) *Preparer

NewPreparer returns a new preparer for modules

func (*Preparer) Prepare

func (p *Preparer) Prepare(ctx context.Context, render resource.Renderer) (resource.Task, error)

Prepare a new task

Jump to

Keyboard shortcuts

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