Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultDSL DSLType = "gotemplate" KBDSL DSLType = "kbdsl" KBDSL2 DSLType = "kbdsl2" TemplateBeginDelim = "{{" TemplateEndDelim = "}}" KBDSLBeginDelim = "{%" KBDSLEndDelim = "%}" KBDSL2BeginDelim = "<%" KBDSL2EndDelim = "%>" )
View Source
const (
DefaultTemplateOps = "missingkey=error"
)
View Source
const (
GoTemplateLibraryAnnotationKey = "config.kubeblocks.io/go-template-library"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuiltInObjectsFunc ¶
type BuiltInObjectsFunc map[string]interface{}
type TplEngine ¶
type TplEngine struct {
// contains filtered or unexported fields
}
func NewTplEngine ¶
func NewTplEngine(values *TplValues, funcs *BuiltInObjectsFunc, tplName string, cli types2.ReadonlyClient, ctx context.Context, options ...TplEngineOptions) *TplEngine
NewTplEngine creates go template helper
func (*TplEngine) GetTplEngine ¶
type TplEngineOptions ¶
type TplEngineOptions func(*TplEngine)
func WithCustomizedSyntax ¶
func WithCustomizedSyntax(begin, end string) TplEngineOptions
func WithCustomizedWithType ¶
func WithCustomizedWithType(dsl DSLType) TplEngineOptions
Click to show internal directories.
Click to hide internal directories.