Documentation ¶
Index ¶
- func NewDriver(opt Options) interfaces.Accessor
- type DirStream
- type Driver
- func (d Driver) AbortMultipart(ctx context.Context, path string, args options.AbortMultipart) error
- func (d Driver) CompleteMultipart(ctx context.Context, path string, args options.CompleteMultipart) error
- func (d Driver) Create(ctx context.Context, path string, args options.CreateOptions) error
- func (d Driver) CreateMultipart(ctx context.Context, path string, args options.CreateMultipart) (string, error)
- func (d Driver) Delete(ctx context.Context, path string, args options.DeleteOptions) error
- func (d Driver) List(ctx context.Context, path string, args options.ListOptions) (interfaces.ObjectStream, error)
- func (d Driver) Metadata() interfaces.Metadata
- func (d Driver) PreSign(ctx context.Context, path string, args options.PreSignOptions) (*http.Request, error)
- func (d Driver) Read(ctx context.Context, path string, args options.ReadOptions) (io.ReadCloser, error)
- func (d Driver) Stat(ctx context.Context, path string, args options.StatOptions) (interfaces.ObjectMetadata, error)
- func (d Driver) Write(ctx context.Context, path string, args options.WriteOptions, ...) (uint64, error)
- func (d Driver) WriteMultipart(ctx context.Context, path string, args options.WriteMultipart, ...) (interfaces.ObjectPart, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDriver ¶
func NewDriver(opt Options) interfaces.Accessor
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (Driver) AbortMultipart ¶
func (Driver) CompleteMultipart ¶
func (Driver) CreateMultipart ¶
func (Driver) List ¶
func (d Driver) List(ctx context.Context, path string, args options.ListOptions) (interfaces.ObjectStream, error)
func (Driver) Metadata ¶
func (d Driver) Metadata() interfaces.Metadata
func (Driver) Read ¶
func (d Driver) Read(ctx context.Context, path string, args options.ReadOptions) (io.ReadCloser, error)
func (Driver) Stat ¶
func (d Driver) Stat(ctx context.Context, path string, args options.StatOptions) (interfaces.ObjectMetadata, error)
func (Driver) Write ¶
func (d Driver) Write(ctx context.Context, path string, args options.WriteOptions, reader io.ReadSeeker) (uint64, error)
func (Driver) WriteMultipart ¶
func (d Driver) WriteMultipart(ctx context.Context, path string, args options.WriteMultipart, reader io.ReadSeeker) (interfaces.ObjectPart, error)
Click to show internal directories.
Click to hide internal directories.