Documentation ¶
Index ¶
- Variables
- type Storage
- func (s *Storage) Display(sha string, opt *engine.ImageOptions) (image.Image, error)
- func (s *Storage) Find(sha string) (storage.File, *metadata.Metadata, error)
- func (s *Storage) PathForCached(sha string, opt *engine.ImageOptions) string
- func (s *Storage) PathForSHA(sha string) string
- func (s *Storage) Save(f storage.File, m *metadata.Metadata) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Extensions = map[string]string{
"image/jpeg": "jpg",
"image/png": "png",
"image/bmp": "bmp",
"image/gif": "gif",
}
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage service
func (*Storage) Display ¶
Display a image, resampled images are not stored on disk and are generated on the fly. we can cache these images in a proxy
func (*Storage) PathForCached ¶
func (s *Storage) PathForCached(sha string, opt *engine.ImageOptions) string
func (*Storage) PathForSHA ¶
Click to show internal directories.
Click to hide internal directories.