schemas

package
v0.89.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Property

type Property struct {
	Type       string              `json:"type,omitempty"`
	Ref        string              `json:"$ref,omitempty"`
	Properties map[string]Property `json:"properties,omitempty"`
	Items      *Property           `json:"items,omitempty"`
}

type RawSchema

type RawSchema struct {
	Type       string               `json:"type"` // object
	Properties map[string]Property  `json:"properties,omitempty"`
	Defs       map[string]*Property `json:"definitions,omitempty"`
}

func Build

func Build() (*RawSchema, error)

type Schema

type Schema string
var (
	None     Schema = ""
	Anything Schema = `{}`

	//go:embed dockerfile.json
	Dockerfile Schema

	//go:embed kubernetes.json
	Kubernetes Schema

	//go:embed rbac.json
	RBAC Schema

	//go:embed cloud.json
	Cloud Schema
)

Jump to

Keyboard shortcuts

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