Documentation ¶
Index ¶
- func SetIndent(s string)
- func SetMaxLevel(l int)
- func SetNewline(s string)
- func WriteAndReturnSchema(w io.Writer, c map[string]interface{}) (s models.SchemaMap, err error)
- func WriteConfig(w io.Writer, s models.SchemaMap, config map[string]interface{}, ...) (err error)
- func WriteConfigLine(w io.Writer, p string, k string, v interface{}, s models.SchemaMap, l int)
- func WriteConfigValue(w io.Writer, p string, v interface{}, s models.SchemaMap, l int)
- func WriteEnvs(w io.Writer, envs map[string]string) error
- func WriteHeader(w io.Writer, pkg string, cmd string) error
- func WriteInit(w io.Writer, pluginCalls map[string]string) error
- func WritePlugins(schema models.SchemaMap, dir string, pkg string, cmd string, ...) ([]string, error)
- func WriteSchema(w io.Writer, k string, v interface{}, s models.SchemaMap, l int) bool
- func WriteSchemaType(w io.Writer, p string, v interface{}, s models.SchemaMap, l int) (isStruct bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetIndent ¶
func SetIndent(s string)
SetIndent sets the indent to be used by the writers to indent recursive data
func SetMaxLevel ¶
func SetMaxLevel(l int)
SetMaxLevel sets the maximum level of recursion; If one configuration exceeds this maximum level, the generation fails
func WriteAndReturnSchema ¶
WriteAndReturnSchema writes
func WriteConfig ¶
func WriteConfig(w io.Writer, s models.SchemaMap, config map[string]interface{}, def map[string]interface{}, env string) (err error)
WriteConfig writes
func WriteConfigLine ¶
WriteConfigLine writes
func WriteConfigValue ¶
WriteConfigValue writes
func WritePlugins ¶
func WritePlugins(schema models.SchemaMap, dir string, pkg string, cmd string, calls map[string]string) ([]string, error)
WritePlugins writes a plugin file for each plugin
func WriteSchema ¶
WriteSchema writes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.