validation

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	Decode(out interface{}) error
}

Decoder - Decoder interface

func NewDecoderFromURL

func NewDecoderFromURL(url *url.URL) (Decoder, error)

NewDecoderFromURL - Creates new decoder

type FileDecoder

type FileDecoder struct {
	// contains filtered or unexported fields
}

func NewFileDecoder

func NewFileDecoder(path string) *FileDecoder

func (FileDecoder) Decode

func (d FileDecoder) Decode(out interface{}) (err error)

Decode - Decode a file

type HTTPDecoder

type HTTPDecoder struct {
	// contains filtered or unexported fields
}

func NewHTTPDecoder

func NewHTTPDecoder(url string) *HTTPDecoder

NewHTTPDecoder - Creates new HTTP decoder

func (HTTPDecoder) Decode

func (d HTTPDecoder) Decode(out interface{}) (err error)

Decode - decode HTTP

type Shape

type Shape struct {
	// Schema - String of authorization model.
	Schema string `yaml:"schema"`

	// Tuples - Authorization data
	Tuples []string `yaml:"relationships"`

	// Assertions -
	// can user:1 push repository:2 => true
	Assertions []map[string]bool `yaml:"assertions"`
}

Shape - Is a file shape.

Jump to

Keyboard shortcuts

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