alioss

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OSSCacheFilePath = cmdutil.ReturnCacheFile("alibaba", "OSS")
)

Functions

func CreateOSSEndpoint

func CreateOSSEndpoint(region string) string

func DownloadAllObjects

func DownloadAllObjects(bucketName string, outputPath string)

func DownloadObjects

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

func IsDir

func IsDir(path string) bool

func PrintBucketsList

func PrintBucketsList(region string, lsFlushCache bool)

func PrintBucketsListHistory

func PrintBucketsListHistory(region string)

func PrintBucketsListRealTime

func PrintBucketsListRealTime(region string)

func PrintObjectsList

func PrintObjectsList(bucketName 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() []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)

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