Documentation
¶
Index ¶
- func DeleteObject(uri string) error
- func GetObject(uri string) ([]byte, error)
- func IsObjectExist(uri string) (bool, error)
- func PutObject(uri string, content []byte) error
- func PutObjectByReader(uri string, reader io.Reader) error
- func Remove(uri string) error
- func RemoveSubDir(dir string) error
- type Instance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PutObjectByReader ¶
PutObjectByReader 上传流式对象
Types ¶
type Instance ¶
type Instance struct { Endpoint string `yaml:"endpoint" json:"endpoint"` AccessKeyId string `yaml:"access_key_id" json:"access_key_id"` AccessKeySecret string `yaml:"access_key_secret" json:"access_key_secret"` BucketName string `yaml:"bucket_name" json:"bucket_name"` Domain string `yaml:"domain" json:"domain"` }
Click to show internal directories.
Click to hide internal directories.