package hostdrivers
import (
api "yunion.io/x/onecloud/pkg/apis/compute"
"yunion.io/x/onecloud/pkg/compute/models"
)
type SNutanixHostDriver struct {
SManagedVirtualizationHostDriver
}
func init() {
driver := SNutanixHostDriver{}
models.RegisterHostDriver(&driver)
}
func (self *SNutanixHostDriver) GetHostType() string {
return api.HOST_TYPE_NUTANIX
}
func (self *SNutanixHostDriver) GetHypervisor() string {
return api.HYPERVISOR_NUTANIX
}
func (self *SNutanixHostDriver) GetProvider() string {
return api.CLOUD_PROVIDER_NUTANIX
}
func (self *SNutanixHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error {
return nil
}
func (driver *SNutanixHostDriver) GetStoragecacheQuota(host *models.SHost) int {
return -1
}