Documentation
¶
Index ¶
- type Jinja2
- func (j *Jinja2) Close()
- func (j *Jinja2) RenderDirectory(rootDir string, searchDirs []string, relSourceDir string, ...) error
- func (j *Jinja2) RenderFile(template string, searchDirs []string, vars *uo.UnstructuredObject) (string, error)
- func (j *Jinja2) RenderFiles(jobs []*RenderJob, searchDirs []string, vars *uo.UnstructuredObject) error
- func (j *Jinja2) RenderString(template string, searchDirs []string, vars *uo.UnstructuredObject) (string, error)
- func (j *Jinja2) RenderStrings(jobs []*RenderJob, searchDirs []string, vars *uo.UnstructuredObject) error
- func (j *Jinja2) RenderStruct(dst interface{}, src interface{}, vars *uo.UnstructuredObject) error
- type Jinja2Error
- type RenderJob
- type VarsCtx
- func (vc *VarsCtx) Copy() *VarsCtx
- func (vc *VarsCtx) LoadVarsList(k *k8s.K8sCluster, searchDirs []string, varsList []*types.VarsListItem) error
- func (vc *VarsCtx) RenderDirectory(rootDir string, searchDirs []string, relSourceDir string, ...) error
- func (vc *VarsCtx) RenderYamlFile(p string, searchDirs []string, out interface{}) error
- func (vc *VarsCtx) Update(vars *uo.UnstructuredObject)
- func (vc *VarsCtx) UpdateChild(child string, vars *uo.UnstructuredObject)
- func (vc *VarsCtx) UpdateChildFromStruct(child string, o interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Jinja2 ¶
type Jinja2 struct {
// contains filtered or unexported fields
}
func (*Jinja2) RenderDirectory ¶
func (*Jinja2) RenderFile ¶
func (*Jinja2) RenderFiles ¶
func (*Jinja2) RenderString ¶
func (*Jinja2) RenderStrings ¶
func (*Jinja2) RenderStruct ¶
func (j *Jinja2) RenderStruct(dst interface{}, src interface{}, vars *uo.UnstructuredObject) error
type Jinja2Error ¶
type Jinja2Error struct {
// contains filtered or unexported fields
}
func (*Jinja2Error) Error ¶
func (m *Jinja2Error) Error() string
type VarsCtx ¶
type VarsCtx struct { J2 *Jinja2 Vars *uo.UnstructuredObject }
func NewVarsCtx ¶
func (*VarsCtx) LoadVarsList ¶
func (vc *VarsCtx) LoadVarsList(k *k8s.K8sCluster, searchDirs []string, varsList []*types.VarsListItem) error
func (*VarsCtx) RenderDirectory ¶
func (*VarsCtx) RenderYamlFile ¶
func (*VarsCtx) Update ¶
func (vc *VarsCtx) Update(vars *uo.UnstructuredObject)
func (*VarsCtx) UpdateChild ¶
func (vc *VarsCtx) UpdateChild(child string, vars *uo.UnstructuredObject)
func (*VarsCtx) UpdateChildFromStruct ¶
Click to show internal directories.
Click to hide internal directories.