schema

package
v0.0.0-...-6b55861 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadType      = errors.New("Could not recognize the type")
	ErrMissingField = errors.New("Rego source missing required field")
)

Functions

This section is empty.

Types

type Source

type Source struct {
	// RejectWith is the rejection message
	RejectWith string `json:"rejectWith,omitempty"`
}

func GetSource

func GetSource(code templates.Code) (*Source, error)

func (*Source) ToUnstructured

func (in *Source) ToUnstructured() map[string]interface{}

Jump to

Keyboard shortcuts

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