Documentation
¶
Index ¶
- type OSS
- func (alioss *OSS) ClearDirectory(dir string) error
- func (alioss *OSS) Provide(ctx context.Context) interface{}
- func (alioss *OSS) UnzipFile(zipPath, extractPath string) error
- func (alioss *OSS) Upload(_ context.Context, dir string, file *multipart.FileHeader) (interface{}, error)
- func (alioss *OSS) UploadDirectoryToOSS(ctx context.Context, localPath, ossDir string) ([]string, error)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OSS ¶
type OSS struct {
// contains filtered or unexported fields
}
func (*OSS) ClearDirectory ¶
type Option ¶
type Option func(*Options)
func WithAccessKey ¶
func WithBucketName ¶
func WithEndpoint ¶
func WithSecretKey ¶
Click to show internal directories.
Click to hide internal directories.