Documentation ¶
Index ¶
- Variables
- func Decode[T any](data []byte, decoder runtime.Decoder) (T, error)
- func Indent(spaceCount int, s string) string
- func IndentNext(spaceCount int, s string) string
- func IsTrue(v *bool) bool
- func MakeMap(kvs ...any) (map[any]any, error)
- func MarshalYAML(v any) (string, error)
- func NIndent(spaceCount int, s string) string
- func RenderAndDecode[T runtime.Object](tmpl *template.Template, inputs any, decoder runtime.Decoder) (T, string, error)
- func RenderTemplate(tmpl *template.Template, inputs any) ([]byte, error)
- func Repeat(s string, count int) string
- func SanitizeDNSSubdomain(s string) string
- func ToBase64(data []byte) string
- func ToBytes(s string) []byte
- type ObjectTemplate
Constants ¶
This section is empty.
Variables ¶
View Source
var TemplateFuncs template.FuncMap = template.FuncMap{ "toYAML": MarshalYAML, "indent": Indent, "nindent": NIndent, "indentNext": IndentNext, "toBytes": ToBytes, "toBase64": ToBase64, "map": MakeMap, "repeat": Repeat, "isTrue": IsTrue, "sanitizeDNSSubdomain": SanitizeDNSSubdomain, }
Functions ¶
func IndentNext ¶ added in v1.12.0
func MarshalYAML ¶ added in v1.12.0
func RenderAndDecode ¶ added in v1.9.0
func SanitizeDNSSubdomain ¶ added in v1.15.0
Types ¶
type ObjectTemplate ¶ added in v1.9.0
func ParseObjectTemplate ¶ added in v1.9.0
func ParseObjectTemplateOrDie ¶ added in v1.9.0
func (*ObjectTemplate[T]) RenderObject ¶ added in v1.9.0
func (t *ObjectTemplate[T]) RenderObject(inputs any) (T, string, error)
Click to show internal directories.
Click to hide internal directories.