values

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileNameValues string = "values.yaml"
)

Variables

View Source
var (
	Salt      string
	MinLength int
)
View Source
var HelmValuesTemplate = `` /* 1541-byte string literal not displayed */

HelmValuesTemplate is the yaml template for helm command. render values.yaml according to the play resource contain

View Source
var (
	ValueLog = ctrl.Log.WithValues("package", "values")
)

Functions

func HashID

func HashID(pid float64) (string, error)

HashID return hash from pid for the prefix url

func ToYaml

func ToYaml(v interface{}) string

ToYaml returns the v interface into yaml format

func TxtFuncMap

func TxtFuncMap() template.FuncMap

TxtFuncMap returns a template FuncMap with HashID and ToYaml functions

Types

type Templates

type Templates struct {
	Play     *ci.Play
	Spec     ci.PlaySpec
	Internal map[string]interface{}
	Values   map[string]interface{}
}

Templates structure with methods for templating - values.yaml - values.mongodb.yaml - values.postgre.yaml - .s3cfg

func (*Templates) GetValues

func (in *Templates) GetValues(out *bytes.Buffer) error

GetValues builds the values from the template from Play resource

func (*Templates) PrintTemplate

func (in *Templates) PrintTemplate(out *bytes.Buffer, name string, templ string) error

Jump to

Keyboard shortcuts

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