github.com/caos/orbos@v1.5.14-0.20221103111702-e6cd0cea7ad4/internal/operator/boom/templator/templator.go (about) 1 package templator 2 3 import ( 4 "github.com/caos/orbos/internal/operator/boom/api/latest" 5 "github.com/caos/orbos/internal/operator/boom/name" 6 "github.com/caos/orbos/internal/operator/boom/templator/helm/chart" 7 "github.com/caos/orbos/mntr" 8 ) 9 10 type Templator interface { 11 Template(interface{}, *latest.ToolsetSpec, func(string, string) error) error 12 GetResultsFilePath(name.Application, string, string) string 13 CleanUp() error 14 } 15 16 type BaseApplication interface { 17 GetName() name.Application 18 } 19 20 type YamlApplication interface { 21 BaseApplication 22 GetYaml(mntr.Monitor, *latest.ToolsetSpec) interface{} 23 } 24 25 type HelmApplication interface { 26 BaseApplication 27 GetNamespace() string 28 SpecToHelmValues(mntr.Monitor, *latest.ToolsetSpec) interface{} 29 GetChartInfo() *chart.Chart 30 }