package scanner

type FilterEntry string

type Filter []FilterEntry

type Directory struct {
}

type Image struct {
	filter       Filter
	topDirectory *Directory
}

type Hash [64]byte

type Object struct {
	length uint64
}

type ImageDataBase struct {
	imageMap  map[string]*Image
	objectMap map[Hash]*Object
}

func LoadImageDataBase(baseDir string) (*ImageDataBase, error) {
	return loadImageDataBase(baseDir)
}

package scanner

type FilterEntry string

type Filter []FilterEntry

type Directory struct {
}

type Image struct {
	filter       Filter
	topDirectory *Directory
}

type Hash [64]byte

type ImageDataBase struct {
	imageMap map[string]*Image
}

func LoadImageDataBase(baseDir string) (*ImageDataBase, error) {
	return loadImageDataBase(baseDir)
}

--- 
+++ 
@@ -14,8 +14,13 @@
 
 type Hash [64]byte
 
+type Object struct {
+	length uint64
+}
+
 type ImageDataBase struct {
-	imageMap map[string]*Image
+	imageMap  map[string]*Image
+	objectMap map[Hash]*Object
 }
 
 func LoadImageDataBase(baseDir string) (*ImageDataBase, error) {
Define Object type and add objectMap.
