bank-vaults: github.com/banzaicloud/bank-vaults/internal/configuration Index | Files

package configuration

import "github.com/banzaicloud/bank-vaults/internal/configuration"

Index

Package Files

template.go

Constants

const DefaultLeftDelimiter = "${"
const DefaultRightDelimiter = "}"

type Templater Uses

type Templater struct {
    // contains filtered or unexported fields
}

func NewTemplater Uses

func NewTemplater(leftDelimiter, rightDelimiter string) Templater

func (Templater) EnvTemplate Uses

func (t Templater) EnvTemplate(templateText string) (*bytes.Buffer, error)

EnvTemplate interpolates environment variables in a configuration text

func (Templater) IsGoTemplate Uses

func (t Templater) IsGoTemplate(templateText string) bool

IsGoTemplate returns true if s is probably a Go Template

func (Templater) Template Uses

func (t Templater) Template(templateText string, data interface{}) (*bytes.Buffer, error)

Template interpolates a data structure in a template

Package configuration imports 20 packages (graph) and is imported by 1 packages. Updated 2020-07-08. Refresh now. Tools for package owners.