Documentation ¶
Index ¶
- type Config
- type Store
- func (s *Store) Copy(bucket string, from string, to string) error
- func (s *Store) Delete(bucket string, key string) error
- func (s *Store) Get(ctx context.Context, bucket string, key string) (io.ReadCloser, error)
- func (s *Store) PresignGetURL(bucket string, key string, expires time.Duration, contentRange *store.Range) (string, error)
- func (s *Store) Put(ctx context.Context, bucket string, key string, r io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Region string Endpoint string AccessKey string SecretKey string PathStyle bool DisableSSL bool }
Config stores the configuration for the S3 store.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements the Store interface for an S3-compatible backend.
func (*Store) Get ¶
Get returns an object from the store as an io.ReadCloser. Returns store.ErrNotFound if the object does not exist.
Click to show internal directories.
Click to hide internal directories.