quark

package
v0.0.0-...-f4650a3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opt *Option) (cloudfs.FS, error)

func WrapFS

func WrapFS(fs cloudfs.FS, expireTime time.Duration) cloudfs.FS

Types

type Option

type Option struct {
	Cookie string `json:"cookie"  validate:"required"`
}

func (*Option) NewFS

func (opt *Option) NewFS() (cloudfs.FS, error)

type Quark

type Quark struct {
	cloudfs.BaseFS
	// contains filtered or unexported fields
}

func (*Quark) List

func (d *Quark) List(ctx context.Context, path string) ([]cloudfs.FileInfo, error)

func (*Quark) MakeDir

func (d *Quark) MakeDir(ctx context.Context, path string) error

func (*Quark) Move

func (d *Quark) Move(ctx context.Context, src, dst string) error

func (*Quark) Open

func (d *Quark) Open(ctx context.Context, path string) (cloudfs.File, error)

func (*Quark) Remove

func (d *Quark) Remove(ctx context.Context, path string) error

func (*Quark) Rename

func (d *Quark) Rename(ctx context.Context, path, newName string) error

Jump to

Keyboard shortcuts

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