Versions in this module Expand all Collapse all v2 v2.0.1 Aug 29, 2022 Changes in this version + func MD5file(url string) (string, error) + func MD5fileBytes(url string) (hash []byte, err error) type Bucket + func (b *Bucket) UploadVerify(localFile, dst string) error v2.0.0 Jun 1, 2022 Changes in this version + type Bucket struct + func (b *Bucket) Attrs(filePath string) (attrs *storage.ObjectAttrs, err error) + func (b *Bucket) CopyFile(src, dst string) error + func (b *Bucket) CopyFolder(srcFolder, dstFolder string, multiple bool) error + func (b *Bucket) Delete(filePath string) error + func (b *Bucket) DeleteFolder(folder string) error + func (b *Bucket) DeleteOldFiles(folder string, fileAge time.Duration) error + func (b *Bucket) Download(src, dst string) error + func (b *Bucket) Exists(filePath string) (bool, error) + func (b *Bucket) GetFileReader(object string, optionalBucket ...string) (reader io.Reader, err error) + func (b *Bucket) GetMeta(src string, optionalBucket ...string) (Meta, error) + func (b *Bucket) GetSignedURL(objectPath string, duration time.Duration, optionalBucket ...string) (string, error) + func (b *Bucket) Init(bucket string) + func (b *Bucket) List(prefix string, limit int) (files []string, err error) + func (b *Bucket) MD5(filePath string) (md5String string, err error) + func (b *Bucket) MakePublic(filePath string) (downloadURL string, err error) + func (b *Bucket) ReadFile(filepath string, obj interface{}) (err error) + func (b *Bucket) Size(filePath string) (size int64, err error) + func (b *Bucket) Upload(localFile, dst string) error + func (b *Bucket) UploadFromReader(reader io.Reader, dst string, optionalBucket ...string) error + type Meta struct + ContentType string + Created time.Time + LastUpdate time.Time + MD5 string + Size int64 + SizeStr string