Documentation
¶
Index ¶
Constants ¶
View Source
const (
// NaisManifestSchema is the path to the JSON schema for validating a nais manifest
NaisManifestSchema = "https://storage.googleapis.com/nais-json-schema-2c91/nais-all.json"
)
Variables ¶
This section is empty.
Functions ¶
func ExecTemplate ¶
ExecTemplate evaluates a template with the given context.
func YAMLToJSONMessages ¶
func YAMLToJSONMessages(data []byte) ([]json.RawMessage, error)
YAMLToJSONMessages converts raw multi-document YAML bytes to a slice of JSON messages.
Types ¶
type TemplateVariables ¶
type TemplateVariables map[string]interface{}
func TemplateVariablesFromFile ¶
func TemplateVariablesFromFile(path string) (TemplateVariables, error)
func TemplateVariablesFromSlice ¶
func TemplateVariablesFromSlice(vars []string) TemplateVariables
Click to show internal directories.
Click to hide internal directories.