validate

package
v0.0.0-...-c8472d9 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstanceConfigFromFile

func InstanceConfigFromFile(filename string) (*config.InstanceConfig, []string, error)

InstanceConfigFromFile returns the deserialized JSON of an InstanceConfig found in filename.

If there was an error loading the file a list of schema violations may be returned also.

func LoadAndValidate

func LoadAndValidate(filename string) error

LoadAndValidate loads the selected config by name into config.Config.

func Validate

func Validate(i config.InstanceConfig) error

Validate the config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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