alibaba

package
v0.0.0-...-2bcb355 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blobstore

type Blobstore struct {
	BucketName string
	Client     *oss.Client
}

func NewBlobstore

func NewBlobstore(config config.AlibabaBlobstoreConfig) *Blobstore

func (*Blobstore) Copy

func (blobstore *Blobstore) Copy(src string, dest string) error

func (*Blobstore) Delete

func (blobstore *Blobstore) Delete(resource string) error

func (*Blobstore) DeleteDir

func (blobstore *Blobstore) DeleteDir(prefix string) error

func (*Blobstore) Exists

func (blobstore *Blobstore) Exists(resource string) (bool, error)

func (*Blobstore) Get

func (blobstore *Blobstore) Get(path string) (io.ReadCloser, error)

func (*Blobstore) GetOrRedirect

func (blobstore *Blobstore) GetOrRedirect(path string) (io.ReadCloser, string, error)

func (*Blobstore) HeadOrRedirectAsGet

func (blobstore *Blobstore) HeadOrRedirectAsGet(resource string) (string, error)

func (*Blobstore) Put

func (blobstore *Blobstore) Put(path string, rs io.ReadSeeker) error

func (*Blobstore) Sign

func (blobstore *Blobstore) Sign(resource string, method string, timestamp time.Time) string

Jump to

Keyboard shortcuts

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