Documentation ¶
Index ¶
- Variables
- func NewQiniuOSS() file.File
- type BucketManager
- type FormUploader
- type OssMetadata
- type QiniuOSS
- func (q *QiniuOSS) Del(ctx context.Context, st *file.DelRequest) error
- func (q *QiniuOSS) Get(ctx context.Context, st *file.GetFileStu) (io.ReadCloser, error)
- func (q *QiniuOSS) Init(ctx context.Context, metadata *file.FileConfig) error
- func (q *QiniuOSS) List(ctx context.Context, st *file.ListRequest) (*file.ListResp, error)
- func (q *QiniuOSS) Put(ctx context.Context, st *file.PutFileStu) error
- func (q *QiniuOSS) Stat(ctx context.Context, st *file.FileMetaRequest) (*file.FileMetaResp, error)
- type QiniuOSSClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrClientNotExist = errors.New("specific client not exist") ErrNotSpecifyEndPoint = errors.New("not specify endpoint in metadata") )
Functions ¶
func NewQiniuOSS ¶
Types ¶
type BucketManager ¶
type FormUploader ¶
type OssMetadata ¶
type OssMetadata struct { Endpoint string `json:"endpoint"` // bucket url AccessKeyID string `json:"accessKeyID"` // SecretID AccessKeySecret string `json:"accessKeySecret"` // SecretKey Bucket string `json:"bucket"` Private bool `json:"private"` UseHTTPS bool `json:"useHTTPS"` UseCdnDomains bool `json:"useCdnDomains"` }
type QiniuOSS ¶
type QiniuOSS struct {
// contains filtered or unexported fields
}
func (*QiniuOSS) Get ¶
func (q *QiniuOSS) Get(ctx context.Context, st *file.GetFileStu) (io.ReadCloser, error)
func (*QiniuOSS) Stat ¶
func (q *QiniuOSS) Stat(ctx context.Context, st *file.FileMetaRequest) (*file.FileMetaResp, error)
Click to show internal directories.
Click to hide internal directories.