schema

package
v0.1.12-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 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 = errors.New("json schema is not valid")

ErrBadJsonSchema indicates json schema is invalid

View Source
var ErrEmptySchema = errors.New("schema does not create any files")

ErrEmptySchema indicates a schema is empty

View Source
var ErrFileValidationFailed = errors.New("file failed schema validation")

ErrFileValidationFailed indicates dag schema validation failed

View Source
var ErrLinkOrderNotSolvable = errors.New("link order is not solvable")

ErrLinkOrderNotSolvable

View Source
var ErrMissingJsonSchema = errors.New("json mill requires a json schema")

ErrMissingJsonSchema indicates json schema is missing

View Source
var ErrSchemaInvalidMill = errors.New("schema contains an invalid mill")

ErrSchemaInvalidMill indicates a schema has an invalid mill entry

Functions

func LinkByName

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

LinkByName find a link w/ the given name 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