-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtemplate_cache.go
More file actions
43 lines (36 loc) · 1.38 KB
/
template_cache.go
File metadata and controls
43 lines (36 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package templatecache
type TemplateCache interface {
RefreshTemplates() error
ListTemplates() ([]TemplateList, error)
GetTemplatePath() (string, error)
RenderTemplate(*TemplateData) error
}
type TemplateData struct {
Name string `json:"name"`
Description string `json:"description"`
Location string `json:"location"`
TemplateName string `json:"templateName"`
TemplateRepo string `json:"templateRepo"`
OutputDir string `json:"outputDir"`
Type string `json:"type"`
Connections []Connection `json:"connections"`
Artifacts []Artifact `json:"artifacts"`
Envs map[string]string `json:"envs"`
// ParamsSchema is a YAML formatted string
ParamsSchema string `json:"paramsSchema"`
// Path to a terraform-module or helm-chart to parse for params
ExistingParamsPath string `json:"existingParamsPath"`
// Specificaly for the README
CloudAbbreviation string `json:"cloudAbbreviation"`
RepoName string `json:"repoName"`
RepoNameEncoded string `json:"repoNameEncoded"`
}
type Artifact struct {
Name string `json:"name"`
ArtifactDefinition string `json:"artifact_definition"`
}
type Connection struct {
Name string `json:"name"`
ArtifactDefinition string `json:"artifact_definition"`
}
type Fetcher func(writePath string) error