schemas

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SCHEMA_SUFFIX      = ".json"
	SCHEMA_PATH_PREFIX = "https://github.com/defenseunicorns/lula/tree/main/src/pkg/schemas/"
)

Variables

View Source
var Schemas embed.FS

Functions

func GetSchema

func GetSchema(path string) ([]byte, error)

GetSchema returns a schema from the schemas directory

func GetSchemaPath added in v0.5.0

func GetSchemaPath(schemaName string) string

func HasSchema

func HasSchema(path string) bool

HasSchema checks if a schema exists in the schemas directory

func ListSchemas

func ListSchemas() ([]string, error)

ListSchemas returns a list of schema names

func PrefixSchema

func PrefixSchema(path string) string

func ToMap

func ToMap() (fileMap map[string]fs.DirEntry, err error)

ToMap returns a map of schema names to schemas

Types

This section is empty.

Jump to

Keyboard shortcuts

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