writers

package
v0.3.2-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 SetNewline

func SetNewline(s string)

SetNewline sets the new line to be used by the writers

func WriteAndReturnSchema

func WriteAndReturnSchema(w io.Writer, c map[string]interface{}) (s models.SchemaMap, err error)

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

func WriteConfigLine(w io.Writer, p string, k string, v interface{}, s models.SchemaMap, l int)

WriteConfigLine writes

func WriteConfigValue

func WriteConfigValue(w io.Writer, p string, v interface{}, s models.SchemaMap, l int)

WriteConfigValue writes

func WriteEnvs

func WriteEnvs(w io.Writer, envs map[string]string) error

WriteEnvs writes

func WriteHeader

func WriteHeader(w io.Writer, pkg string, cmd string) error

WriteHeader writes

func WriteInit

func WriteInit(w io.Writer, pluginCalls map[string]string) error

WriteInit 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

func WriteSchema(w io.Writer, k string, v interface{}, s models.SchemaMap, l int) bool

WriteSchema writes

func WriteSchemaType

func WriteSchemaType(w io.Writer, p string, v interface{}, s models.SchemaMap, l int) (isStruct bool)

WriteSchemaType the type text to a writer and returns, if type is a struct or not WriteSchemaType writes

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL