mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
27 lines
539 B
Go
27 lines
539 B
Go
package hostdrivers
|
|
|
|
import (
|
|
"yunion.io/x/onecloud/pkg/compute/models"
|
|
)
|
|
|
|
type SOpenStackHostDriver struct {
|
|
SManagedVirtualizationHostDriver
|
|
}
|
|
|
|
func init() {
|
|
driver := SOpenStackHostDriver{}
|
|
models.RegisterHostDriver(&driver)
|
|
}
|
|
|
|
func (self *SOpenStackHostDriver) GetHostType() string {
|
|
return models.HOST_TYPE_OPENSTACK
|
|
}
|
|
|
|
func (self *SOpenStackHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error {
|
|
return nil
|
|
}
|
|
|
|
func (driver *SOpenStackHostDriver) GetStoragecacheQuota(host *models.SHost) int {
|
|
return 100
|
|
}
|