ali

package
v0.0.0-...-0e6b51b Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliSource

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

func NewAliSource

func NewAliSource(endpoint string, accessKey string, secretKey string, bucket string, baseURL string) (*AliSource, error)

func (*AliSource) Del

func (S *AliSource) Del(key string) error

func (*AliSource) Get

func (S *AliSource) Get(key string, header map[string]string) ([]byte, error)

func (*AliSource) GetSignURL

func (S *AliSource) GetSignURL(key string, expires time.Duration, header map[string]string) (string, error)

func (*AliSource) GetURL

func (S *AliSource) GetURL(key string) string

func (*AliSource) Has

func (S *AliSource) Has(key string) error

func (*AliSource) PostSignURL

func (S *AliSource) PostSignURL(key string, expires time.Duration) (string, map[string]string, error)

func (*AliSource) Put

func (S *AliSource) Put(key string, data []byte, header map[string]string) error

func (*AliSource) PutSignURL

func (S *AliSource) PutSignURL(key string, expires time.Duration) (string, error)

Jump to

Keyboard shortcuts

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