add check for none driver

pull/14555/head
klaases 2022-07-22 21:29:06 +00:00
parent a7dc4435c5
commit 1ec4a14acd
1 changed files with 5 additions and 0 deletions

View File

@ -157,6 +157,11 @@ func IsMock(name string) bool {
return name == Mock
}
// IsNone checks if the driver is a none
func IsNone(name string) bool {
return name == None
}
// IsKVM checks if the driver is a KVM[2]
func IsKVM(name string) bool {
return name == KVM2 || name == AliasKVM