schema

package
v0.6.7-365-gf92f5b2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaVersionV0_5   = SchemaVersion("0.5")
	SchemaVersionV0_6   = SchemaVersion("0.6")
	SchemaVersionLatest = SchemaVersionV0_6
)

Variables

View Source
var (
	//go:embed v0.5.json
	SchemaV_05 string

	//go:embed v0.6.json
	SchemaV_06 string
)

Schema is the Kraftfile specification in JSON schema.

Functions

func Validate

func Validate(ctx context.Context, config map[string]interface{}) error

Validate uses the jsonschema to validate the configuration

Types

type SchemaVersion added in v0.6.4

type SchemaVersion string

Jump to

Keyboard shortcuts

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