qiniu

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver() core.Driver

Types

type Driver

type Driver struct{}

func (Driver) Name

func (d Driver) Name() string

func (*Driver) Storage

func (d *Driver) Storage() core.Storage

type File

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

func (*File) ETag

func (f *File) ETag() string

func (*File) Key

func (f *File) Key() string

func (*File) LastModified

func (f *File) LastModified() time.Time

func (*File) Size

func (f *File) Size() int64

func (*File) Type

func (f *File) Type() string

type Storage

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

func (*Storage) Delete

func (s *Storage) Delete(key string) error

func (*Storage) Exists

func (s *Storage) Exists(key string) (bool, error)

func (*Storage) Files

func (s *Storage) Files(dir string) ([]core.File, error)

func (*Storage) Get

func (s *Storage) Get(key string) (string, error)

func (*Storage) Put

func (s *Storage) Put(key string, localPath string) error

func (*Storage) Save

func (s *Storage) Save(key string, localPath string) error

func (*Storage) Size

func (s *Storage) Size(key string) (int64, error)

func (*Storage) Storage

func (s *Storage) Storage() interface{}

type Store

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

func (*Store) Delete

func (s *Store) Delete(key string) error

func (*Store) Iterator

func (s *Store) Iterator(dir string) core.FileIterator

func (*Store) SaveToFile

func (s *Store) SaveToFile(key string, localPath string) error

func (*Store) Stat

func (s *Store) Stat(key string) (fileInfo storage.FileInfo, err error)

Jump to

Keyboard shortcuts

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