distro: remove architecture names and use platform enum

Removing the dependence of the manifest package on the distro package to
import manifest into distro.
Wherever arch names are needed, we use the enums from the platform
package instead.
This commit is contained in:
Achilleas Koutsou 2023-04-27 14:25:47 +02:00 committed by Simon de Vlieger
parent 0f925c445c
commit 8f69088af1
31 changed files with 108 additions and 101 deletions

View file

@ -3,14 +3,14 @@ package platform
type Arch uint64
type ImageFormat uint64
const (
const ( // architecture enum
ARCH_AARCH64 Arch = iota
ARCH_PPC64LE
ARCH_S390X
ARCH_X86_64
)
const (
const ( // image format enum
FORMAT_UNSET ImageFormat = iota
FORMAT_RAW
FORMAT_ISO