Documentation
¶
Index ¶
- func Init(config Config) (store.Store, error)
- type Config
- type Qiniu
- func (qiniu *Qiniu) Copy(souKey string, destKey string) error
- func (qiniu *Qiniu) Delete(key string) error
- func (qiniu *Qiniu) Exists(key string) (bool, error)
- func (qiniu *Qiniu) Get(key string) (io.ReadCloser, error)
- func (qiniu *Qiniu) Put(key string, r io.Reader, dataLength int64) error
- func (qiniu *Qiniu) PutFile(key string, localFile string) error
- func (qiniu *Qiniu) Rename(sourceKey string, destKey string) error
- func (qiniu *Qiniu) Size(key string) (int64, error)
- func (qiniu *Qiniu) Url(key string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { AccessKey string `mapstructure:"access_key" json:"access_key" yaml:"access_key"` SecretKey string `mapstructure:"secret_key" json:"secret_key" yaml:"secret_key"` Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket"` Domain string `mapstructure:"domain" json:"domain" yaml:"domain"` IsSSL bool `mapstructure:"is_ssl" json:"is_ssl" yaml:"is_ssl"` IsPrivate bool `mapstructure:"is_private" json:"is_private" yaml:"is_private"` }
Click to show internal directories.
Click to hide internal directories.