code: func getSCSIControllersOfType(vmDevices object.VirtualDeviceList, scsiType string) []*types.VirtualController {
  	// get virtual scsi controllers of passed argument type
  	var scsiControllers []*types.VirtualController
  	for _, device := range vmDevices {
  		devType := vmDevices.Type(device)
  		if devType == scsiType {
  			if c, ok := device.(types.BaseVirtualController); ok {
  				scsiControllers = append(scsiControllers, c.GetVirtualController())
  			}
  		}
  	}
  	return scsiControllers
  }
docs: // getSCSIControllersOfType filters specific type of Controller device from given list of Virtual Machine Devices