Skip to main content
Version: v3.9.0

Architecture codes and registry ids

pkg/arch​

Import github.com/eclipse-iofog/iofog-go-sdk/v3/pkg/arch.

These integers are the Controller architectures table, archId on agents and catalog images, and the Edgelet architecture code.

NameIDConstant
auto0arch.Auto
amd641arch.AMD64
arm642arch.ARM64
riscv643arch.RISCV64
arm4arch.ARM

arch.NameToID and arch.IDToName are the two maps. arch.DeployArchIDs is AMD64, ARM64, RISCV64, ARM (auto is excluded).

client.ArchNameToID and client.ArchIDToName are the same maps.

YAML image keys are amd64, arm64, riscv64, and arm. The old x86 key is not decoded.

client.GetArchitectures returns the Controller's /architectures/ list (Architecture objects). Use that list when you need the server's names. Use pkg/arch when you need the stable integer.

Registry id aliases​

These aliases are for YAML registry fields. They are not the registry type (oci or hf).

AliasID
remote1
local2

Maps: client.RegistryTypeRegistryTypeIDDict, client.RegistryTypeIDRegistryTypeDict.

apps.RegistryRef accepts the alias, a number, or a numeric string. Empty and 0 marshal as 1.

Ports​

ConstantValue
client.ControllerPort51121
client.ControllerPortString"51121"
microservices.PortEdgeletAPI54321
Group 3See anything wrong with the document? Help us improve it!