schema

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigSchema []byte
View Source
var ConfigTemplate []byte
View Source
var PermsSchema []byte
View Source
var PermsTemplate []byte

Functions

func ValidateJSONWithSchema

func ValidateJSONWithSchema(schemaData []byte, jsonData []byte) error

Types

type Config

type Config struct {
	Perms   []string `json:"perms"`
	Outdir  string   `json:"outdir"`
	Package string   `json:"package"`
}

func ParseAndValidateConfig

func ParseAndValidateConfig(data []byte) (Config, error)

type Perm

type Perm struct {
	Name string `json:"name"`
	Desc string `json:"desc"`
}

type Perms

type Perms []Perm

func ParseAndValidatePerms

func ParseAndValidatePerms(dataSlice [][]byte) (Perms, error)

Jump to

Keyboard shortcuts

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