metadata

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: GPL-3.0, GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateMetadataFile

func ValidateMetadataFile(fileName string, fileBytes []byte, metadataType string) error

ValidateMetadataFile checks that metadata files are valid according to the validation rules of the metadata directory (metadataType)

Types

type BadExtensionError

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

BadExtensionError is returned for metadata files with extension other than .json

func (*BadExtensionError) Error

func (e *BadExtensionError) Error() string

type InvalidIndexContentError

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

InvalidIndexContentError is returned for metadata files with invalid content

func (*InvalidIndexContentError) Error

func (e *InvalidIndexContentError) Error() string

type UnhandledDirectoryError

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

UnhandledDirectoryError is returned for metadata files in unhandled directories

func (*UnhandledDirectoryError) Error

func (e *UnhandledDirectoryError) Error() string

Jump to

Keyboard shortcuts

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