aliyun

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver() core.Driver

Types

type Chunks added in v1.1.0

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

func (*Chunks) Chunk added in v1.1.0

func (c *Chunks) Chunk(marker interface{}) (core.ListObjectResult, error)

type Driver

type Driver struct{}

func (Driver) Name

func (d Driver) Name() string

func (*Driver) Storage

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

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 ListObjectResult added in v1.1.0

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

func (*ListObjectResult) Get added in v1.1.0

func (l *ListObjectResult) Get(index int) core.File

func (*ListObjectResult) IsTruncated added in v1.1.0

func (l *ListObjectResult) IsTruncated() bool

func (*ListObjectResult) Len added in v1.1.0

func (l *ListObjectResult) Len() int

func (*ListObjectResult) NextMarker added in v1.1.0

func (l *ListObjectResult) NextMarker() interface{}

type Store

type Store struct {
	Bucket *oss.Bucket
}

func (*Store) Delete

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

func (*Store) Exists

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

func (*Store) Get

func (s *Store) Get(key string) (io.ReadCloser, error)

func (*Store) Iterator

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

func (*Store) Put

func (s *Store) Put(key string, r io.Reader) error

func (*Store) PutFromFile added in v1.0.1

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

func (*Store) SaveToFile

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

func (*Store) Size added in v1.1.0

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

Jump to

Keyboard shortcuts

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