Documentation ¶
Index ¶
- type VarsCtx
- func (vc *VarsCtx) CheckConditional(c string) (bool, error)
- func (vc *VarsCtx) Copy() *VarsCtx
- func (vc *VarsCtx) RenderDirectory(sourceDir string, targetDir string, excludePatterns []string, ...) error
- func (vc *VarsCtx) RenderFile(p string, searchDirs []string) (string, error)
- func (vc *VarsCtx) RenderString(t string, searchDirs []string) (string, error)
- func (vc *VarsCtx) RenderStruct(o interface{}) (bool, 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
- type VarsLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VarsCtx ¶
type VarsCtx struct { J2 *jinja2.Jinja2 Vars *uo.UnstructuredObject }
func NewVarsCtx ¶
func NewVarsCtx(j2 *jinja2.Jinja2) *VarsCtx
func (*VarsCtx) CheckConditional ¶ added in v2.20.0
func (*VarsCtx) RenderDirectory ¶
func (*VarsCtx) RenderFile ¶ added in v2.17.0
func (*VarsCtx) RenderString ¶ added in v2.14.0
func (*VarsCtx) RenderStruct ¶ added in v2.14.0
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 ¶
type VarsLoader ¶
type VarsLoader struct {
// contains filtered or unexported fields
}
func NewVarsLoader ¶
func NewVarsLoader(ctx context.Context, k *k8s.K8sCluster, sops *decryptor.Decryptor, rp *repocache.GitRepoCache, aws aws.AwsClientFactory, gcp gcp.GcpClientFactory) *VarsLoader
func (*VarsLoader) LoadVars ¶
func (v *VarsLoader) LoadVars(ctx context.Context, varsCtx *VarsCtx, sourceIn *types.VarsSource, searchDirs []string, rootKey string) error
func (*VarsLoader) LoadVarsList ¶
func (v *VarsLoader) LoadVarsList(ctx context.Context, varsCtx *VarsCtx, varsList []types.VarsSource, searchDirs []string, rootKey string) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.