Documentation
¶
Index ¶
- Constants
- func Builtins() map[string]object.Object
- func Module() *object.Module
- func New(ctx context.Context, args ...object.Object) object.Object
- func Render(ctx context.Context, out io.Writer, tmpl string, values any) error
- func RenderTemplate(ctx context.Context, args ...object.Object) object.Object
- type Template
- func (t *Template) Cost() int
- func (t *Template) Equals(other object.Object) object.Object
- func (t *Template) GetAttr(name string) (object.Object, bool)
- func (t *Template) Inspect() string
- func (t *Template) Interface() interface{}
- func (t *Template) IsTruthy() bool
- func (t *Template) MarshalJSON() ([]byte, error)
- func (db *Template) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (db *Template) SetAttr(name string, value object.Object) error
- func (t *Template) Type() object.Type
Constants ¶
View Source
const ( DelimStart = "{{" DelimEnd = "}}" )
View Source
const TEMPLATE object.Type = "template"
Variables ¶
This section is empty.
Functions ¶
func Render ¶
Render is a go template rendering function it includes all the sprig lib functions as well as some extras like a k8sLookup function to get values from k8s objects you can access environment variables from the template under .Env The passed values will be available under .Values in the templates
Types ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func (*Template) MarshalJSON ¶
func (*Template) RunOperation ¶
Click to show internal directories.
Click to hide internal directories.