package
Version:
v0.0.0-...-0b57644
Opens a new window with list of versions in this module.
Published: Sep 3, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Delete(mybucket, endpoint, key, secret, fileid string) (bool, error)
-
func IsExist(mybucket, endpoint, key, secret, fileid string) (bool, error)
-
func UploadFile(mybucket, endpoint, key, secret, fileid, filepath string) error
-
type Config
-
type OSSConfig
func UploadFile(mybucket, endpoint, key, secret, fileid, filepath string) error
type Config struct {
OSS *OSSConfig `yaml:"oss"`
}
type OSSConfig struct {
Bucket string `yaml:"bucket"`
Endpoint string `yaml:"endpoint"`
Key string `yaml:"key"`
Secret string `yaml:"secret"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.