Documentation ¶
Index ¶
- func HumanBytesLoaded(bytesLength int64) string
- type OssProgressListener
- type Provider
- func (p *Provider) GetBucket(bucketName string) (*oss.Bucket, error)
- func (p *Provider) GetFile(bucketName, objectKey, localFilePath string) error
- func (p *Provider) UploadFile(bucketName, objectKey, localFilePath, public string) error
- func (p *Provider) Validate() error
- func (p *Provider) WatchFile(bucketName, watchFilePrefix string, maxkeys int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HumanBytesLoaded ¶
HumanBytesLoaded 单位转换 1023 1023Byte - 1024 1KB
Types ¶
type OssProgressListener ¶
type OssProgressListener struct { }
func (*OssProgressListener) ProgressChanged ¶
func (listener *OssProgressListener) ProgressChanged(event *oss.ProgressEvent)
type Provider ¶
type Provider struct { Endpoint string `validate:"required"` AccessID string `validate:"required"` AccessKey string `validate:"required"` }
Provider todo
func NewProvider ¶
NewProvider todo
func (*Provider) UploadFile ¶
Click to show internal directories.
Click to hide internal directories.