fs

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver(opt Options) interfaces.Accessor

Types

type DirStream

type DirStream struct {
	*Driver
	// contains filtered or unexported fields
}

func (*DirStream) HasNext

func (d *DirStream) HasNext() bool

func (*DirStream) Next

func (d *DirStream) Next(ctx context.Context) (entry interfaces.Entry, err error)

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (Driver) AbortMultipart

func (d Driver) AbortMultipart(ctx context.Context, path string, args options.AbortMultipart) error

func (Driver) CompleteMultipart

func (d Driver) CompleteMultipart(ctx context.Context, path string, args options.CompleteMultipart) error

func (Driver) Create

func (d Driver) Create(ctx context.Context, path string, args options.CreateOptions) error

func (Driver) CreateMultipart

func (d Driver) CreateMultipart(ctx context.Context, path string, args options.CreateMultipart) (string, error)

func (Driver) Delete

func (d Driver) Delete(ctx context.Context, path string, args options.DeleteOptions) error

func (Driver) List

func (Driver) Metadata

func (d Driver) Metadata() interfaces.Metadata

func (Driver) PreSign

func (d Driver) PreSign(ctx context.Context, path string, args options.PreSignOptions) (*http.Request, error)

func (Driver) Read

func (d Driver) Read(ctx context.Context, path string, args options.ReadOptions) (io.ReadCloser, error)

func (Driver) Stat

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)

type Options

type Options struct {
	Root string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL