Help us shape the future of Go! Take the 2026 Go Developer Survey

s4wave_device_world

package
v0.57.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ComputersDashboardTypeID = s4wave_device.ComputersDashboardTypeID

ComputersDashboardTypeID is the type identifier for Computers dashboard objects.

View Source
const DeviceTypeID = s4wave_device.DeviceTypeID

DeviceTypeID is the type identifier for Spacewave-managed Device objects.

Variables

View Source
var ComputersDashboardType = objecttype.NewObjectType(ComputersDashboardTypeID, deviceReadOnlyFactory)

ComputersDashboardType is the ObjectType for Computers dashboard objects.

View Source
var DeviceType = objecttype.NewObjectType(DeviceTypeID, deviceFactory)

DeviceType is the ObjectType for Spacewave-managed Device objects.

Functions

func EnrolledDeviceObjectKey added in v0.57.4

func EnrolledDeviceObjectKey(id peer.ID) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL