alioss

package
v0.0.0-...-caacdb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ObjectSize int64

	TimestampType = util.ReturnTimestampType("alibaba", "oss")
)

Functions

func CreateOSSEndpoint

func CreateOSSEndpoint(region string) string

func DownloadAllObjects

func DownloadAllObjects(bucketName string, outputPath string, ossLsRegion string, ossDownloadNumber string)

func DownloadObjects

func DownloadObjects(bucketName string, objectKey string, outputPath string, ossLsRegion string, ossDownloadNumber string)

func PrintBucketsList

func PrintBucketsList(region string, lsFlushCache bool, ossLsObjectNumber string, ossLsBucket string)

func PrintBucketsListHistory

func PrintBucketsListHistory(region string, ossLsBucket string)

func PrintBucketsListRealTime

func PrintBucketsListRealTime(region string, ossLsObjectNumber string, ossLsBucket string)

func PrintObjectsList

func PrintObjectsList(ossLsObjectNumber string, ossLsBucket string, ossLsRegion string)

func ReturnBucketList

func ReturnBucketList(ossLsBucket string, ossLsRegion string) []string

Types

type Acl

type Acl struct {
	BucketName string
	Acl        string
}

type Bucket

type Bucket = cloud.Resource

type OSSCollector

type OSSCollector struct {
	Conf   cloud.Config
	Client *oss.Client
}

func (*OSSCollector) GetBucketACL

func (o *OSSCollector) GetBucketACL(ossLsBucket string, ossLsRegion string) []Acl

func (*OSSCollector) GetBucketRegion

func (o *OSSCollector) GetBucketRegion(bucketName string) string

func (*OSSCollector) ListBuckets

func (o *OSSCollector) ListBuckets(ossLsBucket string, ossLsRegion string) ([]Bucket, error)

func (*OSSCollector) ListObjects

func (o *OSSCollector) ListObjects(bucketName string, ossLsObjectNumber string, ossLsRegion 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, region string) (*os.File, io.ReadCloser, error, string)

type Object

type Object struct {
	BucketName   string
	ObjectNumber int
	ObjectSize   int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL