Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateRaw ¶
func ValidateRaw(raw interface{}) (interface{}, bool)
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) GetManifest ¶
func (g *Generator) GetManifest(name string) (*TemplateManifest, error)
func (*Generator) GetTemplate ¶
func (*Generator) LoadSchema ¶
type RenderTarget ¶
type TemplateContext ¶
type TemplateContext struct {
Doc *specv31.Document
Raw map[string]interface{}
Node any
Config *TemplateManifest
}
type TemplateManifest ¶
type TemplateManifest struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Render []*RenderTarget `json:"render,omitempty"`
Post *string `json:"post,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.