18 lines
418 B
Go
18 lines
418 B
Go
package storage
|
|
|
|
import "github.com/owncloud/ocis-thumbnails/pkg/thumbnails/resolutions"
|
|
|
|
// Context combines different attributes needed for storage operations.
|
|
type Context struct {
|
|
ETag string
|
|
Types []string
|
|
Resolution resolutions.Resolution
|
|
}
|
|
|
|
// Storage defines the interface for a thumbnail store.
|
|
type Storage interface {
|
|
Get(string) []byte
|
|
Set(string, []byte) error
|
|
BuildKey(Context) string
|
|
}
|