oss

package
v0.0.0-...-183aa75 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation interface {
	Put(ctx context.Context, key string, data io.Reader, size int64, mimeType string) error
	Base64Put(ctx context.Context, key string, raw []byte, mimeType string) error
	Delete(key string) error
	Bucket() string
	Domain() string
	URL(key string) string
	Token() string
}

type QiNiuOSS

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

func NewQiNiuOSS

func NewQiNiuOSS(ak, sk, domain, bucket string) *QiNiuOSS

func (*QiNiuOSS) Base64Put

func (oss *QiNiuOSS) Base64Put(ctx context.Context, key string, raw []byte, mimeType string) error

func (*QiNiuOSS) Bucket

func (oss *QiNiuOSS) Bucket() string

func (*QiNiuOSS) Delete

func (oss *QiNiuOSS) Delete(key string) error

func (*QiNiuOSS) Domain

func (oss *QiNiuOSS) Domain() string

func (*QiNiuOSS) Put

func (oss *QiNiuOSS) Put(ctx context.Context, key string, data io.Reader, size int64, mimeType string) error

func (*QiNiuOSS) Token

func (oss *QiNiuOSS) Token() string

func (*QiNiuOSS) URL

func (oss *QiNiuOSS) URL(key string) string

Jump to

Keyboard shortcuts

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