-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtemplate_cache.go
More file actions
33 lines (29 loc) · 1.08 KB
/
template_cache.go
File metadata and controls
33 lines (29 loc) · 1.08 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
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"`
Access string `json:"access"`
Location string `json:"location"`
SourceURL string `json:"source_url"`
TemplateName string `json:"templateName"`
TemplateRepo string `json:"templateRepo"`
TemplateSource string `json:"templateSource"`
OutputDir string `json:"outputDir"`
Type string `json:"type"`
Connections []Connection `json:"connections"`
// Specificaly for the README
CloudAbbreviation string `json:"cloudAbbreviation"`
RepoName string `json:"repoName"`
RepoNameEncoded string `json:"repoNameEncoded"`
}
type Connection struct {
Name string `json:"name"`
ArtifactDefinition string `json:"artifact_definition"`
}
type Fetcher func(writePath string) error