Documentation
¶
Index ¶
- func Validate(url *url.URL) (string, error)
- type FileBackend
- func (FileBackend) Close() error
- func (FileBackend) CreateObject(context.Context, schema.CreateObjectRequest) (*schema.Object, error)
- func (FileBackend) DeleteObjects(context.Context, schema.DeleteObjectsRequest) (*schema.DeleteObjectsResponse, error)
- func (self *FileBackend) GetObject(ctx context.Context, req schema.GetObjectRequest) (*schema.Object, error)
- func (self FileBackend) ListObjects(ctx context.Context, req schema.ObjectListRequest) (*schema.ObjectList, error)
- func (self *FileBackend) Name() string
- func (self *FileBackend) ReadObject(ctx context.Context, req schema.GetObjectRequest) (io.ReadCloser, *schema.Object, error)
- func (self *FileBackend) URL() *url.URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileBackend ¶
type FileBackend struct {
// contains filtered or unexported fields
}
func (FileBackend) Close ¶
func (FileBackend) Close() error
func (FileBackend) CreateObject ¶
func (FileBackend) CreateObject(context.Context, schema.CreateObjectRequest) (*schema.Object, error)
Create object in the backend
func (FileBackend) DeleteObjects ¶
func (FileBackend) DeleteObjects(context.Context, schema.DeleteObjectsRequest) (*schema.DeleteObjectsResponse, error)
Delete objects in the backend (single object or prefix)
func (*FileBackend) GetObject ¶
func (self *FileBackend) GetObject(ctx context.Context, req schema.GetObjectRequest) (*schema.Object, error)
Get object metadata from the backend
func (FileBackend) ListObjects ¶
func (self FileBackend) ListObjects(ctx context.Context, req schema.ObjectListRequest) (*schema.ObjectList, error)
List objects in the backend
func (*FileBackend) Name ¶
func (self *FileBackend) Name() string
Name returns the name of the backend
func (*FileBackend) ReadObject ¶
func (self *FileBackend) ReadObject(ctx context.Context, req schema.GetObjectRequest) (io.ReadCloser, *schema.Object, error)
Read object content from the backend. Caller must close the returned reader.
func (*FileBackend) URL ¶
func (self *FileBackend) URL() *url.URL
URL returns the backend destination URL. The scheme, host (bucket/name), and path (prefix/directory) identify the storage location. Query parameters carry useful non-credential details: region, endpoint, anonymous.
Click to show internal directories.
Click to hide internal directories.