template

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 7 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 Connection added in v0.7.0

type Connection struct {
	Name               string `json:"name"`
	ArtifactDefinition string `json:"artifact_definition"`
}

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     []Connection `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