Documentation
¶
Index ¶
- func DirInputProvider(dir fs.FS) <-chan *Data
- func FileGlobsToFileNames(globs ...string) ([]string, error)
- func FileInputProvider(filenames ...string) <-chan *Data
- func ReaderProvider(name string, reader io.Reader) <-chan *Data
- type Config
- type ContextBuilder
- func (cb *ContextBuilder) Build() (context map[string]interface{}, err error)
- func (cb *ContextBuilder) SupportedTypes() []string
- func (cb *ContextBuilder) WithAnyInScope(context interface{}, scope string) *ContextBuilder
- func (cb *ContextBuilder) WithByTypeInScope(ext, text, scope string) error
- func (cb *ContextBuilder) WithEnv(scope string) *ContextBuilder
- func (cb *ContextBuilder) WithJsonInScope(text, scope string) error
- func (cb *ContextBuilder) WithMap(context map[string]interface{}) *ContextBuilder
- func (cb *ContextBuilder) WithProperties(text, scope string) error
- func (cb *ContextBuilder) WithToml(text, scope string) error
- func (cb *ContextBuilder) WithYamlInScope(text, scope string) error
- type Data
- type Engine
- type Renderer
- func (r *Renderer) Clone() *Renderer
- func (r *Renderer) From(fromFunc Source) *Renderer
- func (r *Renderer) Render() (err error)
- func (r *Renderer) To(toFunc Transform) *Renderer
- func (r *Renderer) WithConfig(config Config) *Renderer
- func (r *Renderer) WithFiles(filesFunc Source) *Renderer
- func (r *Renderer) WithReferenceTemplates(refFunc Source) *Renderer
- func (r *Renderer) WithValues(valuesFunc Source) *Renderer
- type Source
- type Transform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirInputProvider ¶
func FileGlobsToFileNames ¶
func FileInputProvider ¶
Types ¶
type ContextBuilder ¶
type ContextBuilder struct {
// contains filtered or unexported fields
}
func NewContextBuilder ¶
func NewContextBuilder() *ContextBuilder
func (*ContextBuilder) Build ¶
func (cb *ContextBuilder) Build() (context map[string]interface{}, err error)
func (*ContextBuilder) SupportedTypes ¶
func (cb *ContextBuilder) SupportedTypes() []string
func (*ContextBuilder) WithAnyInScope ¶
func (cb *ContextBuilder) WithAnyInScope(context interface{}, scope string) *ContextBuilder
func (*ContextBuilder) WithByTypeInScope ¶
func (cb *ContextBuilder) WithByTypeInScope(ext, text, scope string) error
func (*ContextBuilder) WithEnv ¶
func (cb *ContextBuilder) WithEnv(scope string) *ContextBuilder
func (*ContextBuilder) WithJsonInScope ¶
func (cb *ContextBuilder) WithJsonInScope(text, scope string) error
func (*ContextBuilder) WithMap ¶
func (cb *ContextBuilder) WithMap(context map[string]interface{}) *ContextBuilder
func (*ContextBuilder) WithProperties ¶
func (cb *ContextBuilder) WithProperties(text, scope string) error
func (*ContextBuilder) WithToml ¶
func (cb *ContextBuilder) WithToml(text, scope string) error
func (*ContextBuilder) WithYamlInScope ¶
func (cb *ContextBuilder) WithYamlInScope(text, scope string) error
type Engine ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func NewRenderer() *Renderer
func (*Renderer) WithConfig ¶
func (*Renderer) WithReferenceTemplates ¶
func (*Renderer) WithValues ¶
Click to show internal directories.
Click to hide internal directories.