alioss

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OneBucketOss

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

OneBucketOss all oss store into one bucket 所有数据保存在同一个bucket中的方式

func NewOneBucketOss

func NewOneBucketOss(endP, buckName, accKey, secret string) (*OneBucketOss, error)

NewOneBucketOss new

func (*OneBucketOss) Delete

func (o *OneBucketOss) Delete(_ context.Context, key string) error

Delete delete

func (*OneBucketOss) DeleteMulti

func (o *OneBucketOss) DeleteMulti(_ context.Context, keys []string) ([]string, error)

DeleteMulti delete multi keys

func (*OneBucketOss) Get

func (o *OneBucketOss) Get(_ context.Context, key string) ([]byte, error)

Get return data/error

func (*OneBucketOss) Save

func (o *OneBucketOss) Save(_ context.Context, key string, data []byte, acl oss.ACLType) error

Save save

Jump to

Keyboard shortcuts

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