Documentation ¶
Overview ¶
Package emu contains emulator specific resources.
Index ¶
Constants ¶
const ClusterStatusType = resource.Type("ClusterStatuses.talemu.sidero.dev")
ClusterStatusType is the type of ClusterStatus resource.
tsgen:ClusterStatusType
const LabelCluster = SystemLabelPrefix + "cluster"
LabelCluster is the cluster identity.
const LabelControlPlaneRole = SystemLabelPrefix + "role-control-plane"
LabelControlPlaneRole the machine is a contol plane.
const LabelWorkerRole = SystemLabelPrefix + "role-worker"
LabelWorkerRole the machine is a worker.
const MachineStatusType = resource.Type("MachineStatuses.talemu.sidero.dev")
MachineStatusType is the type of MachineStatus resource.
tsgen:MachineStatusType
const NamespaceName = "emulator"
NamespaceName sets the default namespace name for the emulator resources.
const SystemLabelPrefix = "talemu.sidero.dev/"
SystemLabelPrefix is the prefix of all internal talemu labels.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClusterStatus ¶
type ClusterStatus = typed.Resource[ClusterStatusSpec, ClusterStatusExtension]
ClusterStatus resource contains current information about the Machine bootstrap status.
func NewClusterStatus ¶
func NewClusterStatus(ns, id string) *ClusterStatus
NewClusterStatus creates new ClusterStatus state.
type ClusterStatusExtension ¶
type ClusterStatusExtension struct{}
ClusterStatusExtension providers auxiliary methods for ClusterStatus resource.
func (ClusterStatusExtension) ResourceDefinition ¶
func (ClusterStatusExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension interface.
type ClusterStatusSpec ¶
type ClusterStatusSpec = protobuf.ResourceSpec[specs.ClusterStatusSpec, *specs.ClusterStatusSpec]
ClusterStatusSpec wraps specs.ClusterStatusSpec.
type MachineStatus ¶
type MachineStatus = typed.Resource[MachineStatusSpec, MachineStatusExtension]
MachineStatus describes virtual machine status.
func NewMachineStatus ¶
func NewMachineStatus(ns, id string) *MachineStatus
NewMachineStatus creates new MachineStatus.
type MachineStatusExtension ¶
type MachineStatusExtension struct{}
MachineStatusExtension providers auxiliary methods for MachineStatus resource.
func (MachineStatusExtension) ResourceDefinition ¶
func (MachineStatusExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension interface.
type MachineStatusSpec ¶
type MachineStatusSpec = protobuf.ResourceSpec[specs.MachineStatusSpec, *specs.MachineStatusSpec]
MachineStatusSpec wraps specs.MachineStatusSpec.