Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OBSAcls = []obs.AclType{ obs.AclPrivate, obs.AclPublicRead, obs.AclPublicReadWrite, obs.AclAuthenticatedRead, obs.AclBucketOwnerRead, obs.AclBucketOwnerFullControl, obs.AclLogDeliveryWrite, obs.AclPublicReadDelivery, obs.AclPublicReadWriteDelivery, }
View Source
var OBSStorageClasses = []obs.StorageClassType{ noStorageClass, obs.StorageClassStandard, obs.StorageClassWarm, obs.StorageClassCold, }
OBSStorageClasses lists all compatible (instant retrieval) OBS storage classes
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is a storagedriver.StorageDriver implementation backed by OBS Objects are stored at absolute keys in the provided bucket.
func FromParameters ¶
FromParameters constructs a new Driver with a given parameters map Required parameters: - accesskeyid - accesskeysecret - region - bucket - encrypt
func New ¶
func New(params DriverParameters) (*Driver, error)
New constructs a new Driver with the given Aliyun credentials, region, encryption flag, and bucketName
type DriverParameters ¶
type DriverParameters struct { AccessKey string SecretKey string Bucket string Endpoint string Encrypt bool ChunkSize int64 RootDirectory string KeyID string MultipartCopyChunkSize int64 MultipartCopyMaxConcurrency int64 MultipartCopyThresholdSize int64 MultipartCombineSmallPart bool StorageClass obs.StorageClassType ObjectACL obs.AclType }
DriverParameters A struct that encapsulates all of the driver parameters after all values have been set
Click to show internal directories.
Click to hide internal directories.