aliyunoss

package
v0.0.0-...-a4f77ab Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Endpoint        = "oss-cn-xxxx.aliyuncs.com"
	AccessKeyID     = "xxx"
	AccessKeySecret = "xxx"
	BucketName      = "xx"
	Prefix          = "xx/"
)
View Source
var SplitKeys = stores.SplitKeys

Functions

This section is empty.

Types

type Option

type Option func(*Store)

func OssPrefix

func OssPrefix(prefix string) Option

func Suffix

func Suffix(suffix string) Option

type Store

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

func NewStore

func NewStore(opts ...Option) *Store

func (*Store) Keys

func (s *Store) Keys(dirs ...string) []string

func (*Store) MakeKey

func (s *Store) MakeKey(key string) string

func (*Store) Perfix

func (s *Store) Perfix() string

func (*Store) Read

func (s *Store) Read(key string, to interface{}) error

func (*Store) ReadAll

func (s *Store) ReadAll(to interface{}) error

func (*Store) Write

func (s *Store) Write(key string, in interface{}) error

Jump to

Keyboard shortcuts

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