Documentation
¶
Index ¶
- type ALiYunOSS
- func (this *ALiYunOSS) Delete(path string) error
- func (this *ALiYunOSS) DeleteDir(dirname string) error
- func (this *ALiYunOSS) Read(path string) (map[string]any, error)
- func (this *ALiYunOSS) SetVisibility(path string, visibility string) (map[string]string, error)
- func (this *ALiYunOSS) Write(path string, contents []byte, conf interfaces.Config) (map[string]any, error)
- func (this *ALiYunOSS) WriteStream(path string, stream io.Reader, conf interfaces.Config) (map[string]interface{}, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ALiYunOSS ¶
func (*ALiYunOSS) SetVisibility ¶
设置文件的权限
func (*ALiYunOSS) Write ¶
func (this *ALiYunOSS) Write(path string, contents []byte, conf interfaces.Config) (map[string]any, error)
上传
func (*ALiYunOSS) WriteStream ¶
func (this *ALiYunOSS) WriteStream(path string, stream io.Reader, conf interfaces.Config) (map[string]interface{}, error)
上传 Stream 文件类型
type Option ¶
type Option func(*ALiYunOSS)
func WithAccessKeyId ¶
func WithAccessKeySecret ¶
func WithBucketName ¶
func WithEndpoint ¶
Click to show internal directories.
Click to hide internal directories.