v2_12_1.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package qemu
  15. func init() {
  16. RegisterCmd(
  17. newCmd_2_12_1_x86_64(),
  18. newCmd_2_12_1_aarch64(),
  19. )
  20. }
  21. func newCmd_2_12_1_x86_64() QemuCommand {
  22. return newBaseCommand(
  23. Version_2_12_1,
  24. Arch_x86_64,
  25. newOpt_2_12_1_x86_64(),
  26. )
  27. }
  28. type opt_2121_x86_64 struct {
  29. *baseOptions_x86_64
  30. }
  31. func (o opt_2121_x86_64) ScsiDeviceId(serial string, driver string) string {
  32. return ""
  33. }
  34. func newOpt_2_12_1_x86_64() QemuOptions {
  35. return &opt_2121_x86_64{
  36. baseOptions_x86_64: newBaseOptions_x86_64(),
  37. }
  38. }
  39. type opt_2121_aarch64 struct {
  40. *baseOptions_aarch64
  41. }
  42. func (o opt_2121_aarch64) ScsiDeviceId(serial string, driver string) string {
  43. return ""
  44. }
  45. func newOpt_2_12_1_aarch64() QemuOptions {
  46. return &opt_2121_aarch64{
  47. baseOptions_aarch64: newBaseOptions_aarch64(),
  48. }
  49. }
  50. func newCmd_2_12_1_aarch64() QemuCommand {
  51. return newBaseCommand(
  52. Version_2_12_1,
  53. Arch_aarch64,
  54. newOpt_2_12_1_aarch64(),
  55. )
  56. }