Documentation
¶
Overview ¶
Package machine declares the entities related to the machines stored in the database
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MachineModel ¶
type MachineModel struct { // General Info Name string `gorm:"unique"` Architecture SystemArchitecture // Managed indicates that a machine should be managed by BAAS (if false baas will not touch the machine in any way) Managed bool // MacAddress is the mac address associated with this machine MacAddress util.MacAddress `gorm:"embedded;unique;primaryKey"` ImageUUID string }
MachineModel stores information intrinsic to a machine. Used together with the MachineStore. nolint: golint
type SystemArchitecture ¶
type SystemArchitecture string
SystemArchitecture defines constants describing the architecture of machines.
const ( // Arm64 is the 64-bit Arm architecture Arm64 SystemArchitecture = "Arm64" // X86_64 is the 64-bit x86 architecture X86_64 SystemArchitecture = "x86_64" //nolint // Unknown is any architecture which baas could not identify. Unknown SystemArchitecture = "unknown" )
func (*SystemArchitecture) Name ¶
func (id *SystemArchitecture) Name() string
Name gets the name of an architecture as a string. Convenience function, but actually does very little as the name is also the value of the constant.
Click to show internal directories.
Click to hide internal directories.