Documentation
¶
Index ¶
- Variables
- type Driver
- type Local
- func (l *Local) Delete(ctx context.Context, key string) error
- func (l *Local) Get(ctx context.Context, key string) ([]byte, error)
- func (l *Local) GetStream(ctx context.Context, key string) (io.ReadCloser, error)
- func (l *Local) Put(ctx context.Context, key string, value []byte) error
- func (l *Local) PutStream(ctx context.Context, key string, r io.Reader) error
- func (l *Local) URL(ctx context.Context, key string) *url.URL
- type S3
- func (s *S3) Delete(ctx context.Context, key string) error
- func (s *S3) Get(ctx context.Context, key string) ([]byte, error)
- func (s *S3) GetStream(ctx context.Context, key string) (io.ReadCloser, error)
- func (s *S3) Put(ctx context.Context, key string, value []byte) error
- func (s *S3) PutStream(ctx context.Context, key string, r io.Reader) error
- func (s *S3) URL(ctx context.Context, key string) *url.URL
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSupported = errors.New("driver does not suppport functionality")
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { Get(ctx context.Context, key string) ([]byte, error) GetStream(ctx context.Context, key string) (io.ReadCloser, error) PutStream(ctx context.Context, key string, r io.Reader) error Put(ctx context.Context, key string, value []byte) error Delete(ctx context.Context, key string) error URL(ctx context.Context, key string) *url.URL }
Driver implements the functionality to store and retrieve blobs (images,video,audio)
func AutoConfig ¶
Click to show internal directories.
Click to hide internal directories.