pkg/types/templater.go
raw| 1 | package types |
| 2 | |
| 3 | import ( |
| 4 | "text/template" |
| 5 | ) |
| 6 | |
| 7 | // Templater is the interface for the service template API. |
| 8 | type Templater interface { |
| 9 | GetTemplate(id string) (template *template.Template, found bool) |
| 10 | SetTemplateString(id, body string) error |
| 11 | SetTemplateFile(id, file string) error |
| 12 | } |