Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { Configs map[string]string Service service.TemplateService Services Services Parameters Parameters }
type Maker ¶
type Maker interface { Make( service service.TemplateService, services Services, serverTemplates templates.Templates, ) Template }
func CreateMaker ¶
func CreateMaker(fnd app.Foundation) Maker
type Parameter ¶
type Parameter struct {
// contains filtered or unexported fields
}
Parameter is used to encapsulate values and provide a ToString method.
func NewParameter ¶
func NewParameter(param parameter.Parameter, params parameters.Parameters, tmpl Template) *Parameter
func (*Parameter) ToObject ¶
func (p *Parameter) ToObject() Parameters
type Parameters ¶
func NewParameters ¶
func NewParameters(origParams parameters.Parameters, tmpl Template) Parameters
func (Parameters) GetObject ¶
func (p Parameters) GetObject(key string) Parameters
GetObject retrieves a map as a dynamic object with `ToString` method for each value.
func (Parameters) GetObjectString ¶
func (p Parameters) GetObjectString(firstKey, secondKey string) (string, error)
GetObjectString retrieves a string value by the secondKey of the object retrieved by the firstKey
type Services ¶
type Services map[string]service.TemplateService
type Template ¶
type Template interface { RenderToWriter(content string, parameters parameters.Parameters, writer io.Writer) error RenderToFile(content string, parameters parameters.Parameters, filePath string, perm os.FileMode) error RenderToString(content string, parameters parameters.Parameters) (string, error) }
Click to show internal directories.
Click to hide internal directories.