qiniu

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(accessKey, secretKey string) *Client

func (*Client) CopyFiles added in v0.0.10

func (c *Client) CopyFiles(copyKeys, destKeys []string, srcBucket, destBucket string, force bool) error

CopyFiles 复制文件

func (Client) Delete

func (c Client) Delete(bucket, key string) error

func (*Client) GetTimestampSignUrl added in v0.0.14

func (c *Client) GetTimestampSignUrl(urlPath url.URL, secretKey string, expiration time.Duration) string

func (Client) GetUploadToken

func (c Client) GetUploadToken(putPolicy storage.PutPolicy, bucket string) string

func (*Client) ListFiles added in v0.0.10

func (c *Client) ListFiles(bucket, prefix, delimiter, marker string, limit int) ([]storage.ListItem, []string, string, bool, error)

ListFiles 列举文件,每次最大1000

func (*Client) MakePublicUrl added in v0.0.10

func (c *Client) MakePublicUrl(domain, key string) string

MakePublicUrl 公开空间访问链接

func (*Client) MoveFiles added in v0.0.10

func (c *Client) MoveFiles(moveKeys []string, srcBucket, destBucket string, force bool) error

MoveFiles 批量移动或重命名文件

func (Client) PutFile

func (c Client) PutFile(ctx context.Context, bucket, key string, data []byte) error

func (Client) RefreshUrls

func (c Client) RefreshUrls(urlsToRefresh []string) error

type SmsClient

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

func NewSmsClient

func NewSmsClient(accessKey, secretKey string) *SmsClient

func (SmsClient) SendMessage

func (c SmsClient) SendMessage(signatureId, templateId string, mobiles []string, parameters map[string]interface{}) (*string, error)

Jump to

Keyboard shortcuts

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