Documentation ¶
Index ¶
- Variables
- func CreateOSSEndpoint(region string) string
- func DownloadAllObjects(bucketName string, outputPath string)
- func DownloadObjects(bucketName string, objectKey string, outputPath string)
- func IsDir(path string) bool
- func PrintBucketsList(region string, lsFlushCache bool)
- func PrintBucketsListHistory(region string)
- func PrintBucketsListRealTime(region string)
- func PrintObjectsList(bucketName string)
- type Acl
- type Bucket
- type OSSCollector
- func (o *OSSCollector) GetBucketACL() []Acl
- func (o *OSSCollector) ListBuckets() ([]Bucket, error)
- func (o *OSSCollector) ListObjects(bucketName string) ([]Object, []objectContents)
- func (o *OSSCollector) OSSClient(region string) *OSSCollector
- func (o *OSSCollector) ReturnBucket(bucketName string, objectKey string, outputPath string) ([]objectContents, *os.File, io.ReadCloser, error, string)
- type Object
Constants ¶
This section is empty.
Variables ¶
View Source
var (
OSSCacheFilePath = cmdutil.ReturnCacheFile("alibaba", "OSS")
)
Functions ¶
func CreateOSSEndpoint ¶
func DownloadAllObjects ¶
func DownloadObjects ¶
func PrintBucketsList ¶
func PrintBucketsListHistory ¶
func PrintBucketsListHistory(region string)
func PrintBucketsListRealTime ¶
func PrintBucketsListRealTime(region string)
func PrintObjectsList ¶
func PrintObjectsList(bucketName string)
Types ¶
type OSSCollector ¶
func (*OSSCollector) GetBucketACL ¶
func (o *OSSCollector) GetBucketACL() []Acl
func (*OSSCollector) ListBuckets ¶
func (o *OSSCollector) ListBuckets() ([]Bucket, error)
func (*OSSCollector) ListObjects ¶
func (o *OSSCollector) ListObjects(bucketName string) ([]Object, []objectContents)
func (*OSSCollector) OSSClient ¶
func (o *OSSCollector) OSSClient(region string) *OSSCollector
func (*OSSCollector) ReturnBucket ¶
func (o *OSSCollector) ReturnBucket(bucketName string, objectKey string, outputPath string) ([]objectContents, *os.File, io.ReadCloser, error, string)
Click to show internal directories.
Click to hide internal directories.