Documentation ¶
Index ¶
- func AddService(appDir, templateDir string, outputWriter io.Writer) error
- func CreateApplicationTemplateDir() (string, error)
- func CreateEmptyApp(dirPath string) error
- func CreateServiceTemplateDir(serviceRole string) (string, error)
- func CreateTmpServiceDir(appDir, chosenTemplate string) (string, error)
- func GetTemplates(appDir string) (result []string, err error)
- func HasTemplatesDir(appDir string) (bool, error)
- func IsValidTemplateDir(templateDir string) (bool, string, error)
- func Run(templateDir, resultDir string) error
- func RunTests(appDir string, outputWriter io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddService ¶
AddService (used by exo template test) runs exo-add to add template at templateDir to the app at appDir and returns an error if any
func CreateApplicationTemplateDir ¶
CreateApplicationTemplateDir creates a temporary boilr template directory for the application
func CreateEmptyApp ¶
CreateEmptyApp (used by exo template test) runs exo-init to create an empty app with the default name "my-app" at dirPath and returns an error if any
func CreateServiceTemplateDir ¶
CreateServiceTemplateDir creates a temporary boilr template directory for the service
func CreateTmpServiceDir ¶
CreateTmpServiceDir makes bolir scaffold the template chosenTemplate and store the scaffoled service folder in a tmp folder, and finally returns the path to the tmp folder
func GetTemplates ¶
GetTemplates returns a slice of all template names found in the ".exosphere/service_templates" folder of the application
func HasTemplatesDir ¶
HasTemplatesDir returns whether or not there is an ".exosphere/service_templates" folder
func IsValidTemplateDir ¶
IsValidTemplateDir returns whether or not the template at templateDir is a valid exosphere template, a reason if invalid, and an
Types ¶
This section is empty.