Versions in this module Expand all Collapse all v0 v0.18.0 Mar 16, 2019 Changes in this version + var ErrInvalidKeyFormat = errors.New("Blob key is in invalid format") + var ErrNotFound = errors.New("Blob not found") + func SanitizeFileName(fileName string) string + func ValidateKey(key string) error + type Blob struct + ContentType string + Key string + Object []byte + Size int64 + type Cache struct + func NewAutoCert(storage Storage) *Cache + func (c *Cache) Delete(ctx context.Context, key string) error + func (c *Cache) Get(ctx context.Context, key string) ([]byte, error) + func (c *Cache) Put(ctx context.Context, key string, data []byte) error + type Storage interface + Delete func(key string) error + Get func(key string) (*Blob, error) + Put func(key string, content []byte, contentType string) error + SetCurrentTenant func(tenant *models.Tenant)