template

package
v0.6.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadDir added in v0.1.0

func ReadDir(suffix, dir string) (map[string]*Template, error)

Types

type AnswerCallback added in v0.1.0

type AnswerCallback func(key string, questions []v1.Question) (string, error)

func AnswersFromMap added in v0.1.0

func AnswersFromMap(answers map[string]string) AnswerCallback

type Template

type Template struct {
	Content     []byte
	BuiltinVars []string
}

func (*Template) Parse added in v0.1.0

func (t *Template) Parse(answers AnswerCallback) ([]byte, error)

func (*Template) Questions

func (t *Template) Questions() ([]v1.Question, error)

func (*Template) RequiredEnv

func (t *Template) RequiredEnv() ([]string, error)

func (*Template) Validate

func (t *Template) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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