// Copyright 2024 Matthew Rich . All rights reserved. package fan import ( "errors" ) // Convert a resource to a document and a document to a resource /* type Emitter interface { Emit(document *resource.Document) (resource.Resource, error) } type Extracter interface { Extract(resource resource.Resource, filter resource.ResourceSelector) (*resource.Document, error) } type Converter interface { Emitter Extracter } */ var ( ErrInvalidSource error = errors.New("Invalid source") ErrInvalidResource error = errors.New("Invalid resource") ErrEmptyDocument error = errors.New("Document containers no resources") )