template

package
v0.0.4-rc4 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Apache-2.0 Imports: 21 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(dir string, answersFromEnv bool) (map[string]*Template, error)

Types

type Template

type Template struct {
	Namespace       string
	Meta            pretty.TemplateMeta
	Content         []byte
	AdditionalFiles map[string][]byte
	Answers         map[string]string
	Questions       []v3.Question
}

func FromClientStack

func FromClientStack(stack *client.Stack) (*Template, error)

func FromStack

func FromStack(stack *v1.Stack) (*Template, error)

func (*Template) PopulateAnswersFromEnv

func (t *Template) PopulateAnswersFromEnv() error

func (*Template) RequiredEnv

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

func (*Template) RequiredFiles

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

func (*Template) ToClientStack

func (t *Template) ToClientStack() (*client.Stack, error)

func (*Template) ToInternalStack

func (t *Template) ToInternalStack() (*v1.InternalStack, error)

func (*Template) ToStack

func (t *Template) ToStack(namespace, name string) *v1.Stack

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