Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlattenToV1 ¶
func FlattenToV1(objs []runtime.Object) []*unstructured.Unstructured
FlattenToV1 expands any List-type objects into their members, and cooerces everything to v1.Unstructured. Panics if coercion encounters an unexpected object type.
func RegisterNativeFuncs ¶
RegisterNativeFuncs adds kubecfg's native jsonnet functions to provided VM
Types ¶
type JsonnetTemplator ¶
type JsonnetTemplator struct {
// contains filtered or unexported fields
}
JsonnetTemplator is a jsonnet based templator.
func NewJsonnetTemplator ¶
func NewJsonnetTemplator(path string) (*JsonnetTemplator, error)
NewJsonnetTemplator returns a new Templator backed by jsonnet.
func (*JsonnetTemplator) Template ¶
func (jt *JsonnetTemplator) Template() ([]*unstructured.Unstructured, error)
Template implements Templator.
type Templator ¶
type Templator interface {
Template() ([]*unstructured.Unstructured, error)
}
Templator is the interface for the templating engine.
Click to show internal directories.
Click to hide internal directories.