Versions in this module Expand all Collapse all v1 v1.0.3 Mar 6, 2021 Changes in this version + type DeleteObjectsResult struct + DeletedObjects []string + Local string + Space string + type ListObjectsResult struct + CommonPrefixes []string + Delimiter string + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + Objects []ObjectProperties + Prefix string + XMLName xml.Name + type ObjectProperties struct + ETag string + Key string + LastModified time.Time + Name xml.Name + Owner Owner + Size int64 + StorageClass string + Type string + type Option func(map[string]optionValue) error + type Oss interface + DeleteObject func(dstPath string) error + DeleteObjects func(dstPaths []string, options ...Option) (DeleteObjectsResult, error) + GetObject func(dstPath string, options ...Option) ([]byte, error) + GetObjectToFile func(dstPath, srcPath string, options ...Option) error + IsObjectExist func(dstPath string) (bool, error) + ListObjects func(options ...Option) (ListObjectsResult, error) + PutObject func(dstPath string, reader io.Reader, options ...Option) error + PutObjectFromFile func(dstPath, srcPath string, options ...Option) error + SignURL func(dstPath string, method string, expiredInSec int64, options ...Option) (string, error) + type Owner struct + DisplayName string + ID string + Name xml.Name