template

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenPattern  = "<md"
	ClosePattern = "md>"
)

Variables

This section is empty.

Functions

func RenderDirectory

func RenderDirectory(templateDir string, data *Data) error

func RenderEmbededDirectory

func RenderEmbededDirectory(templateFS fs.FS, data *Data) error

func WriteToFile

func WriteToFile(filePath string, tmpl *template.Template, data *Data) error

Types

type Data

type Data struct {
	Name           string
	Description    string
	Access         string
	Chart          string
	Location       string
	TemplateName   string
	TemplateSource string
	OutputDir      string
	Type           string
	CloudProvider  string
	Dependencies   map[string]string
}

Jump to

Keyboard shortcuts

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