jsonschema

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FmtAny      = stringFormat("")
	FmtDateTime = stringFormat("date-time")
	FmtDate     = stringFormat("date")
	FmtTime     = stringFormat("time")
	FmtEmail    = stringFormat("email")
	FmtHostname = stringFormat("hostname")
	FmtIPv4     = stringFormat("ipv4")
	FmtIPv6     = stringFormat("ipv6")
	FmtURI      = stringFormat("uri")
	FmtURIRef   = stringFormat("uri-reference")
	FmtUUID     = stringFormat("uuid")
	FmtRegex    = stringFormat("regex")
)

Variables

This section is empty.

Functions

func WriteJsonSchema

func WriteJsonSchema(version config.Version, resticVersion string, output io.Writer) error

WriteJsonSchema generates a JSON schema to validate (and complete) resticprofile JSON and YAML configuration files. Use version and resticVersion to specify what config file format and restic version to use when generating the schema.

Types

type SchemaType

type SchemaType interface {
	// contains filtered or unexported methods
}

SchemaType is the interface for all json schema types

Jump to

Keyboard shortcuts

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