Documentation
¶
Index ¶
- type Config
- type FopConfig
- type Option
- func WithAccess(access string) Option
- func WithBucket(bucket string) Option
- func WithDomain(domain string) Option
- func WithOperationConf(conf *Config) Option
- func WithPrivate(private bool) Option
- func WithSecret(secret string) Option
- func WithStorageConfig(config *Config) Option
- func WithTTL(ttl time.Duration) Option
- type Options
- type Qiniu
- func (qiniu *Qiniu) EncodeEntry(fileName string) string
- func (qiniu *Qiniu) MakePrivateURL(domain, key string, deadline int64) string
- func (qiniu *Qiniu) MakePrivateURLWithQuery(domain, key string, query url.Values, deadline int64) string
- func (qiniu *Qiniu) MakePrivateURLWithQueryString(domain, key, query string, deadline int64) string
- func (qiniu *Qiniu) Mkzip(mode int, files []string, zipFile string) string
- func (qiniu *Qiniu) Pfop(config *FopConfig) (string, error)
- func (qiniu *Qiniu) Provide(ctx context.Context) interface{}
- func (qiniu *Qiniu) UploadToken(keys ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
func WithAccess ¶
func WithBucket ¶
func WithDomain ¶
func WithOperationConf ¶
func WithPrivate ¶
func WithSecret ¶
func WithStorageConfig ¶
type Qiniu ¶
type Qiniu struct {
// contains filtered or unexported fields
}
func (*Qiniu) EncodeEntry ¶
func (*Qiniu) MakePrivateURL ¶
MakePrivateURL 获取私有文件的下载链接地址
func (*Qiniu) MakePrivateURLWithQuery ¶
func (*Qiniu) MakePrivateURLWithQueryString ¶
func (*Qiniu) UploadToken ¶
Click to show internal directories.
Click to hide internal directories.