Documentation ¶
Index ¶
- type IOss
- type Option
- type Oss
- func (f *Oss) UploadWithContent(ctx context.Context, name string, content []byte, option *Option) (*UploadResult, error)
- func (f *Oss) UploadWithPath(ctx context.Context, name string, filePath string, option *Option) (*UploadResult, error)
- func (f *Oss) UploadWithURL(ctx context.Context, name string, targetUrl string, option *Option) (*UploadResult, error)
- type UploadResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOss ¶
type IOss interface { UploadWithContent(ctx context.Context, name string, content []byte, option *Option) (*UploadResult, error) UploadWithURL(ctx context.Context, name string, targetUrl string, option *Option) (*UploadResult, error) UploadWithPath(ctx context.Context, name string, filePath string, option *Option) (*UploadResult, error) }
type Oss ¶
type Oss struct{}
func (*Oss) UploadWithContent ¶
func (*Oss) UploadWithPath ¶
func (*Oss) UploadWithURL ¶
type UploadResult ¶
type UploadResult struct {
URL string `json:"url,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.