tfvars

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Name() string
	Kind() string
	Execute(io.Writer, *template.Template) error
}

Generator for packages that want to produce tfvars file

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service struct maps provider+object to its corresponding generator/template

func New

func New(gen Generator, tmplStr string, funcMap ...template.FuncMap) *Service

New return new tfvars generator

func (*Service) Generate

func (s *Service) Generate(dir, filename string) error

Generate a tmpl from initialized Generator (name is a concat of provider+object)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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