From 1ea07d7c3b6a5cf1b5d81f17d2f52dfaecf492b7 Mon Sep 17 00:00:00 2001 From: Alexander Jung Date: Sun, 30 Jul 2023 10:54:34 +0000 Subject: [PATCH] refactor(qemu): Move qemu-system-* binary constant names to own file Signed-off-by: Alexander Jung --- machine/qemu/qemu_system.go | 11 +++++++++++ machine/qemu/v1alpha1.go | 6 ------ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 machine/qemu/qemu_system.go diff --git a/machine/qemu/qemu_system.go b/machine/qemu/qemu_system.go new file mode 100644 index 000000000..28b6fc334 --- /dev/null +++ b/machine/qemu/qemu_system.go @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: BSD-3-Clause +// Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. +// Licensed under the BSD-3-Clause License (the "License"). +// You may not use this file except in compliance with the License. +package qemu + +const ( + QemuSystemX86 = "qemu-system-x86_64" + QemuSystemArm = "qemu-system-arm" + QemuSystemAarch64 = "qemu-system-aarch64" +) diff --git a/machine/qemu/v1alpha1.go b/machine/qemu/v1alpha1.go index 53f18c082..eb4e898f0 100644 --- a/machine/qemu/v1alpha1.go +++ b/machine/qemu/v1alpha1.go @@ -40,12 +40,6 @@ import ( "kraftkit.sh/unikraft/export/v0/vfscore" ) -const ( - QemuSystemX86 = "qemu-system-x86_64" - QemuSystemArm = "qemu-system-arm" - QemuSystemAarch64 = "qemu-system-aarch64" -) - // machineV1alpha1Service ... type machineV1alpha1Service struct { eopts []exec.ExecOption