schemas

package
v0.0.0-...-8c4efc2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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