moved imagenode to the imagelist file where it gets created
This commit is contained in:
parent
5a4c133f27
commit
105c89538e
@ -8,6 +8,14 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type ImageNode struct {
|
||||||
|
Path string
|
||||||
|
CategoryName string
|
||||||
|
ModTime time.Time
|
||||||
|
Md5Sum string
|
||||||
|
ImageId int
|
||||||
|
}
|
||||||
|
|
||||||
func GetImageList(fileSystem map[string]*FilesystemNode) ([]*ImageNode, error) {
|
func GetImageList(fileSystem map[string]*FilesystemNode) ([]*ImageNode, error) {
|
||||||
logrus.Debugln("Starting GetImageList to prepare local image metadata.")
|
logrus.Debugln("Starting GetImageList to prepare local image metadata.")
|
||||||
|
|
||||||
|
@ -16,11 +16,3 @@ type FilesystemNode struct {
|
|||||||
func (n *FilesystemNode) String() string {
|
func (n *FilesystemNode) String() string {
|
||||||
return fmt.Sprintf("FilesystemNode: %s", n.Path)
|
return fmt.Sprintf("FilesystemNode: %s", n.Path)
|
||||||
}
|
}
|
||||||
|
|
||||||
type ImageNode struct {
|
|
||||||
Path string
|
|
||||||
CategoryName string
|
|
||||||
ModTime time.Time
|
|
||||||
Md5Sum string
|
|
||||||
ImageId int
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user