Documentation ¶
Index ¶
- type GCloudStorage
- func (s *GCloudStorage) Get(r *http.Request, image string) (imageData *imagor.Bytes, err error)
- func (s *GCloudStorage) Path(image string) (string, bool)
- func (s *GCloudStorage) Put(ctx context.Context, image string, blob *imagor.Bytes) (err error)
- func (s *GCloudStorage) Stat(ctx context.Context, image string) (stat *imagor.Stat, err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCloudStorage ¶
type GCloudStorage struct { BaseDir string PathPrefix string ACL string SafeChars string Expiration time.Duration Bucket string // contains filtered or unexported fields }
type Option ¶
type Option func(h *GCloudStorage)
func WithBaseDir ¶
func WithExpiration ¶
func WithPathPrefix ¶
func WithSafeChars ¶
Click to show internal directories.
Click to hide internal directories.