Documentation ¶
Index ¶
- func Commands(path string, options CommandOptions)
- func Dockerfile(path string, options DockerfileOptions)
- func ErrorDefinitionFile(options ErrorDefinitionFileOptions)
- func ErrorDefinitionsMarkdown(options ErrorDefinitionFileOptions)
- func Makefile(path string, options MakefileOptions)
- func Rest(options RestOptions)
- type CommandOptions
- type DockerfileOptions
- type ErrorDefinitionFileOptions
- type MakefileOptions
- type RestOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Commands ¶
func Commands(path string, options CommandOptions)
Commands generates the microservice commands based of the given path
func Dockerfile ¶
func Dockerfile(path string, options DockerfileOptions)
Dockerfile generate a dockerfile using the given options for specified path
func ErrorDefinitionFile ¶ added in v0.4.13
func ErrorDefinitionFile(options ErrorDefinitionFileOptions)
ErrorDefinitionFile builds a file with error definitions
func ErrorDefinitionsMarkdown ¶ added in v0.4.15
func ErrorDefinitionsMarkdown(options ErrorDefinitionFileOptions)
func Makefile ¶
func Makefile(path string, options MakefileOptions)
Makefile generates a with given options for the specified path
Types ¶
type CommandOptions ¶
CommandOptions are applied when generating the different microservice commands
func NewCommandOptions ¶
func NewCommandOptions(name string) CommandOptions
NewCommandOptions generate command names using given name
type DockerfileOptions ¶
type DockerfileOptions struct { Name string Commands CommandOptions }
DockerfileOptions configure the output of the generated docker file
type ErrorDefinitionFileOptions ¶ added in v0.4.13
type ErrorDefinitionFileOptions struct {
PkgName, Path, Source string
}
ErrorDefinitionFileOptions options that change the rendering of the error definition file
type MakefileOptions ¶
type MakefileOptions struct {
Name string
}
MakefileOptions options that change the rendering of the makefile
type RestOptions ¶
type RestOptions struct {
PkgName, Path, Source string
}
RestOptions options to respect when generating the rest api