Documentation ¶
Index ¶
- type Driver
- func (d *Driver) CopyObject(ctx context.Context, srcPath, destPath string) error
- func (d *Driver) DeleteObjects(ctx context.Context, prefix string) error
- func (d *Driver) GetBucket(ctx context.Context) string
- func (d *Driver) GetObject(ctx context.Context, path string) ([]byte, error)
- func (d *Driver) GetSignedObjectURL(path string, expire time.Duration) (string, error)
- func (d *Driver) ListObjects(ctx context.Context, prefix string, maxKeys int64) ([]*awss3.Object, error)
- func (d *Driver) PutObject(ctx context.Context, path string, content io.ReadSeeker, ...) error
- type Interface
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
func (*Driver) CopyObject ¶
func (*Driver) DeleteObjects ¶
func (*Driver) GetSignedObjectURL ¶
func (*Driver) ListObjects ¶
type Interface ¶
type Interface interface { PutObject(ctx context.Context, path string, content io.ReadSeeker, metadata map[string]string) error GetObject(ctx context.Context, path string) ([]byte, error) CopyObject(ctx context.Context, srcPath, destPath string) error // ListObjects NOTE: The returned results of the func are sorted alphabetically by key, not by upload time // Ref: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html ListObjects(ctx context.Context, prefix string, maxKeys int64) ([]*awss3.Object, error) DeleteObjects(ctx context.Context, prefix string) error GetSignedObjectURL(path string, expire time.Duration) (string, error) GetBucket(ctx context.Context) string }
Click to show internal directories.
Click to hide internal directories.