Documentation
¶
Index ¶
- Constants
- Variables
- func EnrolledDeviceObjectKey(id peer.ID) string
- func EnsureDevice(ctx context.Context, state world.WorldState, authenticatedPeer peer.ID, ...) (string, *s4wave_device.Device, error)
- func EnsureEnrolledDevice(ctx context.Context, engine world.Engine, authenticatedPeer peer.ID, ...) (string, error)
Constants ¶
const ComputersDashboardTypeID = s4wave_device.ComputersDashboardTypeID
ComputersDashboardTypeID is the type identifier for Computers dashboard objects.
const DeviceTypeID = s4wave_device.DeviceTypeID
DeviceTypeID is the type identifier for Spacewave-managed Device objects.
Variables ¶
var ComputersDashboardType = objecttype.NewObjectType(ComputersDashboardTypeID, deviceReadOnlyFactory)
ComputersDashboardType is the ObjectType for Computers dashboard objects.
var DeviceType = objecttype.NewObjectType(DeviceTypeID, deviceFactory)
DeviceType is the ObjectType for Spacewave-managed Device objects.
Functions ¶
func EnrolledDeviceObjectKey ¶ added in v0.57.4
EnrolledDeviceObjectKey preserves the Device setup key derived from the authenticated peer's printable identity. The identifier is a 128-bit hash.
func EnsureDevice ¶
func EnsureDevice(ctx context.Context, state world.WorldState, authenticatedPeer peer.ID, label string) (string, *s4wave_device.Device, error)
EnsureDevice retains the canonical Device in the caller's World transaction. The caller must verify key possession and permission to pair this peer before calling; an unverified request parameter is not an authenticated identity. Existing metadata is returned unchanged. A new Device has no setup readiness, liveness or capabilities until the corresponding native owner reports them. The caller owns commit or discard and may bind application relationships in the same transaction. The returned body is decoded data with no live handles.
func EnsureEnrolledDevice ¶ added in v0.57.4
func EnsureEnrolledDevice(ctx context.Context, engine world.Engine, authenticatedPeer peer.ID, label string) (string, error)
EnsureEnrolledDevice projects a successfully mounted DEVICE session into its writable World. The caller must obtain authenticatedPeer from that mount, after admission, never from a browser request or configured object key. Existing metadata and capabilities are retained; only setup readiness changes. Repeated ready projections do not create a World revision.
Types ¶
This section is empty.