Versions in this module Expand all Collapse all v0 v0.2.2 Jan 15, 2025 Changes in this version + var ErrFailed = errors.New("registration failed") + var ErrInProgress = errors.New("registration is still in progress") + type Registrar struct + func NewRegistrar(ctx context.Context, cl zbus.Client, env environment.Environment, ...) *Registrar + func (r *Registrar) NodeID() (uint32, error) + func (r *Registrar) TwinID() (uint32, error) + type RegistrationInfo struct + Capacity gridtypes.Capacity + GPUs map[string]interface{} + Location geoip.Location + SecureBoot bool + SerialNumber string + Virtualized bool + func (r RegistrationInfo) WithCapacity(v gridtypes.Capacity) RegistrationInfo + func (r RegistrationInfo) WithGPU(short string) RegistrationInfo + func (r RegistrationInfo) WithLocation(v geoip.Location) RegistrationInfo + func (r RegistrationInfo) WithSecureBoot(v bool) RegistrationInfo + func (r RegistrationInfo) WithSerialNumber(v string) RegistrationInfo + func (r RegistrationInfo) WithVirtualized(v bool) RegistrationInfo + type RegistrationState string + const Done + const Failed + const InProgress + type State struct + Msg string + NodeID uint32 + State RegistrationState + TwinID uint32 + func DoneState(nodeID uint32, twinID uint32) State + func FailedState(err error) State + func InProgressState() State