services

package
v0.0.0-...-d214319 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbortMultipartUpload

func AbortMultipartUpload(c *config.CloudCredentials, bucketName string) error

func AddBucketTags

func AddBucketTags(c *config.CloudCredentials, bucketName string, tags []obs.Tag) error

func CheckBucketExist

func CheckBucketExist(c *config.CloudCredentials, bucketName string) (bool, error)

func CleanBucket

func CleanBucket(c *config.CloudCredentials, bucketName string) error

func CreateBucket

func CreateBucket(c *config.CloudCredentials, bucketName string, acl obs.AclType) error

func DeleteBucket

func DeleteBucket(c *config.CloudCredentials, bucketName string) error

func DeleteObjects

func DeleteObjects(c *config.CloudCredentials, bucketName string) error

func GetBucketCapacity

func GetBucketCapacity(c *config.CloudCredentials, bucketName string) (int64, error)

func GetBucketMetadata

func GetBucketMetadata(c *config.CloudCredentials, bucketName string) (*obs.GetBucketMetadataOutput, error)

func GetBucketStorage

func GetBucketStorage(c *config.CloudCredentials, bucketName string) (int64, int, error)

func IsParallelFSBucket

func IsParallelFSBucket(FSStatus obs.FSStatusType) bool

func ListBucketTags

func ListBucketTags(c *config.CloudCredentials, bucketName string) ([]obs.Tag, error)

func ListMultipartUploads

func ListMultipartUploads(c *config.CloudCredentials, bucketName string) (*obs.ListMultipartUploadsOutput, error)

func ListObjects

func ListObjects(c *config.CloudCredentials, bucketName string, maxKeys int) (*obs.ListObjectsOutput, error)

func SetBucketCapacity

func SetBucketCapacity(c *config.CloudCredentials, bucketName string, capacity int64) error

Types

type Bucket

type Bucket struct {
	BucketName          string
	Region              string
	AZRedundancy        string
	EnterpriseProjectID string
	Capacity            int64
}

func GetParallelFSBucket

func GetParallelFSBucket(c *config.CloudCredentials, bucketName string) (*Bucket, error)

func ListBuckets

func ListBuckets(c *config.CloudCredentials, opts ListOpts) ([]*Bucket, error)

type ListOpts

type ListOpts struct {
	Marker string
	Limit  int
}

Jump to

Keyboard shortcuts

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