mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-26 06:50:36 -05:00
18 lines
415 B
Go
18 lines
415 B
Go
package storage
|
|
|
|
import "github.com/owncloud/ocis-thumbnails/pkg/thumbnail/resolution"
|
|
|
|
// Request combines different attributes needed for storage operations.
|
|
type Request struct {
|
|
ETag string
|
|
Types []string
|
|
Resolution resolution.Resolution
|
|
}
|
|
|
|
// Storage defines the interface for a thumbnail store.
|
|
type Storage interface {
|
|
Get(string) []byte
|
|
Set(string, []byte) error
|
|
BuildKey(Request) string
|
|
}
|