alioss

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OSSCacheFilePath = cmdutil.ReturnOSSCacheFile()
)

Functions

func CreateOSSEndpoint

func CreateOSSEndpoint(region string) string

func PrintBucketsList

func PrintBucketsList(region string, lsFlushCache bool)

func PrintBucketsListHistory

func PrintBucketsListHistory(region string)

func PrintBucketsListRealTime

func PrintBucketsListRealTime(region string)

func PrintObjectsList added in v0.2.2

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.Credential
	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

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