qiniu

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Config    *Config
	Mac       *qbox.Mac
	PutPolicy storage.PutPolicy
	Cfg       storage.Config
}

func (*Auth) NewUploader

func (auth *Auth) NewUploader() *UploadConfig

type Config

type Config struct {
	AccessKey string
	SecretKey string
	Bucket    string
	CdnHost   string
}

func NewConfig

func NewConfig(accessKey, secretKey, bucket, cdnHost string) *Config

func (*Config) Init

func (config *Config) Init() *Auth

type UploadConfig

type UploadConfig struct {
	Uploader *storage.FormUploader
	PutRet   *storage.PutRet
	UpToken  string
	PutExtra *storage.PutExtra
}

Jump to

Keyboard shortcuts

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