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 ¶
func ExecTemplate(data []byte, ctx TemplateVariables) ([]byte, error)
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
type Validate ¶
type Validate struct {
ResourcePaths []string
Variables TemplateVariables
Verbose bool
SchemaLoader gojsonschema.JSONLoader
}
Click to show internal directories.
Click to hide internal directories.