cfgfile

package
v0.16.1-beta Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2016 License: Apache-2.0 Imports: 8 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(path string, v interface{}, schema string) []serror.SnapError

Read an input configuration file, parsing it (as YAML or JSON) into the input 'interface{}', v

func ValidateSchema

func ValidateSchema(schema, cfg string) []serror.SnapError

Validate an input JSON string against the input schema (and return a set of errors or nil if the input JSON string matches the constraints defined in that schema)

Types

This section is empty.

Jump to

Keyboard shortcuts

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