Documentation
¶
Index ¶
- type Config
- type Object
- func (o *Object) Delete(ctx context.Context, key string) error
- func (o *Object) DeleteObjects(ctx context.Context, keys []string) error
- func (o *Object) Download(ctx context.Context, key string, w io.WriterAt) error
- func (o *Object) DownloadFile(ctx context.Context, key string, path string) error
- func (o *Object) Exists(ctx context.Context, key string) (bool, error)
- func (o *Object) ListObjects(ctx context.Context, prefix string, limit int) ([]string, error)
- func (o *Object) Upload(ctx context.Context, key string, body io.Reader) error
- func (o *Object) UploadFile(ctx context.Context, key string, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct {
Client *s3.Client
Uploader *manager.Uploader
Downloader *manager.Downloader
// contains filtered or unexported fields
}
func (*Object) DeleteObjects ¶
DeleteObjects deletes objects in the bucket with the given keys.
func (*Object) Download ¶
Download downloads an object in the bucket with the given key to the given writer.
func (*Object) DownloadFile ¶
DownloadFile downloads an object in the bucket with the given key to the given path.
func (*Object) ListObjects ¶
ListObjects lists objects in the bucket with the given prefix and limit. Prefix & limit will be ignored if it's default value.
Click to show internal directories.
Click to hide internal directories.