Documentation ¶ Index ¶ func New() corefile.Driver type Oss func (m *Oss) GetMode() (data interface{}, err error) func (m *Oss) New() corefile.Driver func (m *Oss) Upload(ctx g.Ctx) (string, error) func (m *Oss) UploadFile(ctx g.Ctx, filePath string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New() corefile.Driver Types ¶ type Oss ¶ type Oss struct { Client *oss.Client Bucket *oss.Bucket } func (*Oss) GetMode ¶ func (m *Oss) GetMode() (data interface{}, err error) func (*Oss) New ¶ func (m *Oss) New() corefile.Driver func (*Oss) Upload ¶ func (m *Oss) Upload(ctx g.Ctx) (string, error) func (*Oss) UploadFile ¶ func (m *Oss) UploadFile(ctx g.Ctx, filePath string) (string, error) 上传文件 Source Files ¶ View all Source files oss.go Click to show internal directories. Click to hide internal directories.