template

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 6 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 WriteToFile

func WriteToFile(filePath string, template []byte, data *Data) error

Types

type Data

type Data struct {
	Name            string                 `json:"name"`
	Description     string                 `json:"description"`
	Access          string                 `json:"access"`
	Location        string                 `json:"location"`
	TemplateName    string                 `json:"templateName"`
	TemplateSource  string                 `json:"templateSource"`
	OutputDir       string                 `json:"outputDir"`
	Type            string                 `json:"type"`
	Connections     map[string]interface{} `json:"connections"`
	CloudPrefix     string                 `json:"cloudPrefix"`
	RepoName        string                 `json:"repoName"`
	RepoNameEncoded string                 `json:"repoNameEncoded"`
}

Jump to

Keyboard shortcuts

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