gcp

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ObjList = ObjectList

Functions

func BucketList

func BucketList(svc s3iface.S3API, backendRegion *string) ([]*model.MetaBucket, error)

func GetBucketMeta

func GetBucketMeta(buckIdx int, bucket *s3.Bucket, svc s3iface.S3API, backendRegion *string, bucketArray []*model.MetaBucket, wg *sync.WaitGroup)

func GetHeadObject

func GetHeadObject(svc s3iface.S3API, bucketName *string, obj *model.MetaObject)

func ObjectList

func ObjectList(svc s3iface.S3API, bucketName string) ([]*model.MetaObject, int64, error)

Types

type GcpAdapter

type GcpAdapter struct {
	Backend *backendpb.BackendDetail
	Session *session.Session
}

func (*GcpAdapter) DownloadObject

func (ad *GcpAdapter) DownloadObject()

func (*GcpAdapter) SyncMetadata

func (ad *GcpAdapter) SyncMetadata(ctx context.Context, in *pb.SyncMetadataRequest) error

type GcpDriverFactory

type GcpDriverFactory struct {
}

func (*GcpDriverFactory) CreateDriver

func (cdf *GcpDriverFactory) CreateDriver(backend *backendpb.BackendDetail) (driver.CloudDriver, error)

type S3Cred

type S3Cred struct {
	Ak string
	Sk string
}

func (*S3Cred) IsExpired

func (myc *S3Cred) IsExpired() bool

func (*S3Cred) Retrieve

func (myc *S3Cred) Retrieve() (credentials.Value, error)

Jump to

Keyboard shortcuts

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