From 105c89538ef6ea5582e065d2d209407611aee17e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Tue, 12 Mar 2019 23:46:35 +0100 Subject: [PATCH] moved imagenode to the imagelist file where it gets created --- internal/pkg/localFileStructure/imageList.go | 8 ++++++++ internal/pkg/localFileStructure/types.go | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/pkg/localFileStructure/imageList.go b/internal/pkg/localFileStructure/imageList.go index 6d3c2a1..a8b249d 100644 --- a/internal/pkg/localFileStructure/imageList.go +++ b/internal/pkg/localFileStructure/imageList.go @@ -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.") diff --git a/internal/pkg/localFileStructure/types.go b/internal/pkg/localFileStructure/types.go index 01f1d2f..dc0f1af 100644 --- a/internal/pkg/localFileStructure/types.go +++ b/internal/pkg/localFileStructure/types.go @@ -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 -}