Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound denotes that the object does not exists.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { io.ReadSeekCloser Size int64 ContentType string ETag string LastModified time.Time }
File contents and info.
type Store ¶
type Store interface { Store(ctx context.Context, bucket, name string, data []byte, opts ...func(*StoreOpts)) (err error) Open(ctx context.Context, bucket, name string) (f *File, err error) Delete(ctx context.Context, bucket, name string) (err error) }
Store interface.
type StoreOpt ¶
type StoreOpt func(*StoreOpts)
StoreOpt type.
func StoreWithCacheControl ¶
StoreWithCacheControl option.
func StoreWithContentEncoding ¶
StoreWithContentEncoding option.
func StoreWithContentType ¶
StoreWithContentType option.
Click to show internal directories.
Click to hide internal directories.