moved imagenode to the imagelist file where it gets created

This commit is contained in:
Philipp Häfelfinger 2019-03-12 23:46:35 +01:00
parent 5a4c133f27
commit 105c89538e
2 changed files with 8 additions and 8 deletions

View File

@ -8,6 +8,14 @@ import (
"time"
)
type ImageNode struct {
Path string
CategoryName string
ModTime time.Time
Md5Sum string
ImageId int
}
func GetImageList(fileSystem map[string]*FilesystemNode) ([]*ImageNode, error) {
logrus.Debugln("Starting GetImageList to prepare local image metadata.")

View File

@ -16,11 +16,3 @@ type FilesystemNode struct {
func (n *FilesystemNode) String() string {
return fmt.Sprintf("FilesystemNode: %s", n.Path)
}
type ImageNode struct {
Path string
CategoryName string
ModTime time.Time
Md5Sum string
ImageId int
}