Documentation ¶
Index ¶
- func AddFile(u *model.Universe, add *file.File) (bool, error)
- func DefaultTemplateFunctions() template.FuncMap
- func ExampleChannel(u *model.Universe) error
- func ExampleManifest(u *model.Universe) error
- func JSONTag(tag string) string
- func ReplaceController(u *model.Universe) error
- func ReplaceFile(u *model.Universe, add *file.File) error
- func ReplaceFileIfExists(u *model.Universe, add *file.File) bool
- func ReplaceTypes(u *model.Universe) error
- func RunTemplate(templateName, templateValue string, data interface{}, funcMap template.FuncMap) (string, error)
- type Plugin
- type PluginFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFile ¶
AddFile adds the specified file to the model. If the file exists the function returns false and does not modify the Universe If the file does not exist, the function returns true and adds the file to the Universe If there is a problem with the file the function returns an error
func DefaultTemplateFunctions ¶
DefaultTemplateFunctions returns a map of template helpers
func ExampleChannel ¶
ExampleChannel adds a model file for the channel
func ExampleManifest ¶
ExampleManifest adds a model file for the manifest placeholder
func JSONTag ¶
JSONTag is a helper to build the json tag for a struct It works around escaping problems for the json tag syntax
func ReplaceController ¶
ReplaceController replaces the controller with a modified version
func ReplaceFile ¶
ReplaceFile replaces the specified file in the model by path If the file does not exist, it returns an error
func ReplaceFileIfExists ¶
ReplaceFileIfExists replaces the specified file in the model by path Returns true if the file was replaced.
func ReplaceTypes ¶
ReplaceTypes replaces the API types with a modified version
Types ¶
type PluginFunc ¶
PluginFunc executes a step of Plugin