Documentation
¶
Index ¶
- type S3Backend
- func (self *S3Backend) Close() error
- func (self *S3Backend) CreateObject(ctx context.Context, req schema.CreateObjectRequest) (*schema.Object, error)
- func (self *S3Backend) DeleteObjects(context.Context, schema.DeleteObjectsRequest) error
- func (self *S3Backend) GetObject(ctx context.Context, req schema.GetObjectRequest) (_ *schema.Object, err error)
- func (self *S3Backend) ListObjects(ctx context.Context, iterator *schema.ObjectListIterator) (err error)
- func (self *S3Backend) Name() string
- func (self *S3Backend) ReadObject(ctx context.Context, req schema.GetObjectRequest) (_ io.ReadCloser, _ *schema.Object, err error)
- func (self *S3Backend) URL() *url.URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Backend ¶
type S3Backend struct {
// contains filtered or unexported fields
}
func (*S3Backend) CreateObject ¶
func (self *S3Backend) CreateObject(ctx context.Context, req schema.CreateObjectRequest) (*schema.Object, error)
Create object in the backend
func (*S3Backend) DeleteObjects ¶
Delete objects in the backend (single object or prefix)
func (*S3Backend) GetObject ¶
func (self *S3Backend) GetObject(ctx context.Context, req schema.GetObjectRequest) (_ *schema.Object, err error)
Get object metadata from the backend
func (*S3Backend) ListObjects ¶
func (self *S3Backend) ListObjects(ctx context.Context, iterator *schema.ObjectListIterator) (err error)
Iterate through the list of objects in the backend, until io.EOF is returned.
func (*S3Backend) ReadObject ¶
func (self *S3Backend) ReadObject(ctx context.Context, req schema.GetObjectRequest) (_ io.ReadCloser, _ *schema.Object, err error)
Read object content from the backend. Caller must close the returned reader.
Click to show internal directories.
Click to hide internal directories.