schema

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

View Source
const FileTag = ":file"

FileTag indicates the link should "use" the input file as source

View Source
const SingleFileTag = ":single"

SingleFileTag is a magic key indicating that a directory is actually a single file

Variables

View Source
var ErrBadJsonSchema = fmt.Errorf("json schema is not valid")

ErrBadJsonSchema indicates json schema is invalid

View Source
var ErrEmptySchema = fmt.Errorf("schema does not create any files")

ErrEmptySchema indicates a schema is empty

View Source
var ErrFileValidationFailed = fmt.Errorf("file failed schema validation")

ErrFileValidationFailed indicates dag schema validation failed

View Source
var ErrLinkOrderNotSolvable = fmt.Errorf("link order is not solvable")

ErrLinkOrderNotSolvable

View Source
var ErrMissingJsonSchema = fmt.Errorf("json mill requires a json schema")

ErrMissingJsonSchema indicates json schema is missing

View Source
var ErrSchemaInvalidMill = fmt.Errorf("schema contains an invalid mill")

ErrSchemaInvalidMill indicates a schema has an invalid mill entry

Functions

func LinkByName

func LinkByName(links []*ipld.Link, names []string) *ipld.Link

LinkByName finds a link w/ one of the given names in the provided list

func Steps

func Steps(links map[string]*pb.Link) ([]pb.Step, error)

Steps returns link steps in the order they should be processed

func ValidateMill

func ValidateMill(mill string) bool

ValidateMill is false if mill is not one of the built in tags

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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