summaryrefslogtreecommitdiff
path: root/internal/client/input/input_client_interface.go
diff options
from:
to:
context:
space:
mode:
Diffstat (limited to 'internal/client/input/input_client_interface.go')
-rw-r--r--internal/client/input/input_client_interface.go15
1 files changed, 13 insertions, 2 deletions
diff --git a/internal/client/input/input_client_interface.go b/internal/client/input/input_client_interface.go
index 4bbbae5..c896ca4 100644
--- a/internal/client/input/input_client_interface.go
+++ b/internal/client/input/input_client_interface.go
@@ -2,10 +2,21 @@ package input
import (
"io"
+ "time"
)
type InputClient interface {
Scan() ([]string, error)
- ReadMetadata(string) (map[string]string, error)
- GetReader(string) (io.Reader, error)
+ ReadMetadata(string) (*MetadataStruct, error)
+ GetReader(string) (io.ReadCloser, error)
+}
+
+type MetadataStruct struct {
+ Name string
+ StorageType string
+ Hash string
+ ContentType string
+ FirstCreated time.Time
+ LastModified time.Time
+ Misc map[string]string
}