templater

package
v0.0.221 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuth

func BasicAuth(username, password string) string

BasicAuth encodes the provided user name and password as basic auth credentials

func HashPassword

func HashPassword(password string) string

HashPassword hashes the given password with SHA1

func NewFunctionMap

func NewFunctionMap() template.FuncMap

NewFunctionMap creates a new function map for values.tmpl.yaml templating

func RemoveScheme

func RemoveScheme(u string) string

RemoveScheme removes the scheme from a URL

Types

type Templater

type Templater struct {
	Requirements *config.RequirementsConfig
	ValuesFiles  []string
}

Templater a templater of values yaml

func NewTemplater

func NewTemplater(requirements *config.RequirementsConfig, valuesFiles []string) *Templater

NewTemplater creates a new templater

func (*Templater) Generate

func (o *Templater) Generate(sourceFile string, destFile string) error

Generate generates the destination file from the given source template

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL