template

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigTemplate

type ConfigTemplate struct {
	FileTemplate `mapstructure:",squash"`
	PemFilePath  string `mapstructure:"pem_filepath"`
}

for configs `filepath`, must be relative to config_dir for configs `pem_filepath` must be relative to pem_dir

func (*ConfigTemplate) DeleteTemplate added in v1.0.5

func (t *ConfigTemplate) DeleteTemplate(answerData map[string]interface{}) error

func (*ConfigTemplate) WriteTemplate

func (t *ConfigTemplate) WriteTemplate(answerData map[string]interface{}, ignoreKeys []string, dryRun bool) (map[string]interface{}, error)

type FileTemplate

type FileTemplate struct {
	Template `mapstructure:",squash"`
	FilePath string `mapstructure:"filepath"`
}

func (*FileTemplate) DeleteTemplate added in v1.0.5

func (t *FileTemplate) DeleteTemplate(answerData map[string]interface{}) error

func (*FileTemplate) WriteTemplate

func (t *FileTemplate) WriteTemplate(answerData map[string]interface{}, dryRun bool) (map[string]interface{}, error)

type PacTemplate added in v1.0.8

type PacTemplate struct {
	FileTemplate `mapstructure:",squash"`
}

func (*PacTemplate) WriteTemplate added in v1.0.8

func (t *PacTemplate) WriteTemplate(answerDataList []map[string]interface{}, dryRun bool) (map[string]interface{}, error)

type Template

type Template struct {
	Content string `mapstructure:"content"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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