Documentation
¶
Index ¶
- func CheckCsvRowLengths(r io.Reader) error
- func Commit(cm *dataset.Commit) error
- func Dataset(ds *dataset.Dataset) error
- func EntryReader(r dsio.EntryReader) ([]jsonschema.KeyError, error)
- func Schema(sch map[string]interface{}) error
- func Structure(s *dataset.Structure) error
- func ValidName(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCsvRowLengths ¶
CheckCsvRowLengths ensures that csv input has the same number of columns in every row and otherwise returns an error
func Commit ¶
Commit checks that a dataset Commit is valid for use returning the first error encountered, nil if valid
func Dataset ¶
Dataset checks that a dataset is valid for use returning the first error encountered, nil if valid
func EntryReader ¶
func EntryReader(r dsio.EntryReader) ([]jsonschema.KeyError, error)
EntryReader consumes a reader & returns any validation errors present TODO - refactor this to wrap a reader & return a struct that gives an error or nil on each entry read.
func Schema ¶
Schema checks that a dataset schema is valid for use returning the first error encountered, nil if valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.