cbs

package
v1.28.0-alpha.54 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GB xxx
	GB = 1 << (10 * 3)

	// DiskTypeAttr xxx
	// cbs disk type
	DiskTypeAttr = "diskType"

	// DiskNameAttr xxx
	// cbs disk name
	DiskNameAttr = "diskName"
	// DiskTagsAttr xxx
	// cbs disk tags
	DiskTagsAttr = "diskTags"

	// DiskTypeCloudBasic xxx
	// tencentcloud cbs types, now support CLOUD_BASIC, CLOUD_PREMIUM, CLOUD_SSD
	DiskTypeCloudBasic = "CLOUD_BASIC"
	// DiskTypeCloudPremium xxx
	DiskTypeCloudPremium = "CLOUD_PREMIUM"
	// DiskTypeCloudSsd xxx
	DiskTypeCloudSsd = "CLOUD_SSD"

	// DiskTypeDefault xxx
	DiskTypeDefault = DiskTypeCloudBasic

	// DiskChargeTypeAttr xxx
	// cbs disk charge type
	DiskChargeTypeAttr = "diskChargeType"
	// DiskChargeTypePrePaid xxx
	DiskChargeTypePrePaid = "PREPAID"
	// DiskChargeTypePostPaidByHour xxx
	DiskChargeTypePostPaidByHour = "POSTPAID_BY_HOUR"

	// DiskChargeTypeDefault xxx
	DiskChargeTypeDefault = DiskChargeTypePostPaidByHour

	// DiskChargePrepaidPeriodAttr xxx
	// cbs disk charge prepaid options
	DiskChargePrepaidPeriodAttr = "diskChargeTypePrepaidPeriod"

	// DiskChargePrepaidPeriodValidValues xxx
	DiskChargePrepaidPeriodValidValues = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36}
	// DiskChargePrepaidPeriodDefault xxx
	DiskChargePrepaidPeriodDefault = 1

	// DiskChargePrepaidRenewFlagAttr xxx
	DiskChargePrepaidRenewFlagAttr = "diskChargePrepaidRenewFlag"

	// DiskChargePrepaidRenewFlagNotifyAndAutoRenew xxx
	DiskChargePrepaidRenewFlagNotifyAndAutoRenew = "NOTIFY_AND_AUTO_RENEW"
	// DiskChargePrepaidRenewFlagNotifyAndManualRenewd xxx
	DiskChargePrepaidRenewFlagNotifyAndManualRenewd = "NOTIFY_AND_MANUAL_RENEW"
	// DiskChargePrepaidRenewFlagDisableNotifyAndManualRenew xxx
	DiskChargePrepaidRenewFlagDisableNotifyAndManualRenew = "DISABLE_NOTIFY_AND_MANUAL_RENEW"

	// DiskChargePrepaidRenewFlagDefault xxx
	DiskChargePrepaidRenewFlagDefault = DiskChargePrepaidRenewFlagNotifyAndManualRenewd

	// EncryptAttr xxx
	// cbs disk encrypt
	EncryptAttr = "encrypt"
	// EncryptEnable xxx
	EncryptEnable = "ENCRYPT"

	// DiskZone xxx
	// cbs disk zone
	DiskZone = "diskZone"

	// DiskZones xxx
	// cbs disk zones
	DiskZones = "diskZones"

	// AspId xxx
	// cbs disk asp Id
	AspId = "aspId"
	// StatusUnattached xxx
	// cbs status
	StatusUnattached = "UNATTACHED"
	// StatusAttached xxx
	StatusAttached = "ATTACHED"
)
View Source
var (
	// DriverName xxx
	DriverName = "com.tencent.cloud.csi.cbs"
	// DriverVerision xxx
	DriverVerision = "0.1.0"
)
View Source
var (
	// DiskByIdDevicePath xxx
	DiskByIdDevicePath = "/dev/disk/by-id"
	// DiskByIdDeviceNamePrefix xxx
	DiskByIdDeviceNamePrefix = "virtio-"
)

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

Driver xxx

func NewDriver

func NewDriver(region string, zone string, secretId string, secretKey string) (*Driver, error)

NewDriver xxx

func (*Driver) Run

func (drv *Driver) Run(endpoint *url.URL, cbsUrl string) error

Run xxx

Jump to

Keyboard shortcuts

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