summaryrefslogtreecommitdiff
path: root/internal/client/input/input_client_interface.go
blob: c896ca4784e4f8a5f82a389eadf8d730c2206111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package input

import (
	"io"
	"time"
)

type InputClient interface {
	Scan() ([]string, 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
}