ccmetadata

package
v0.0.0-...-7a628bf Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AllowedCharsCollectionName = "[A-Za-z0-9_-]+"

AllowedCharsCollectionName captures the regex pattern for a valid collection name

Variables

This section is empty.

Functions

func ValidateMetadataFile

func ValidateMetadataFile(filePathName string, fileBytes []byte) error

ValidateMetadataFile checks that metadata files are valid according to the validation rules of the file's directory

Types

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