s4wave_device

package
v0.52.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// DeviceCapabilityKindFilesystem identifies filesystem-owner access exposed by a Device.
	DeviceCapabilityKindFilesystem = "filesystem"
	// DeviceCapabilityKindForgeWorker identifies Forge Worker execution exposed by a Device.
	DeviceCapabilityKindForgeWorker = "forge-worker"
	// DeviceCapabilityKindTerminal identifies terminal access exposed by a Device.
	DeviceCapabilityKindTerminal = "terminal"
)
View Source
const ComputersDashboardTypeID = "spacewave/computers"

ComputersDashboardTypeID is the object type identifier for Computers dashboards.

View Source
const DeviceTypeID = "spacewave/device"

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

View Source
const SRPCDeviceResourceServiceServiceID = "s4wave.device.DeviceResourceService"

Variables

View Source
var (
	DeviceSetupState_name = map[int32]string{
		0: "DEVICE_SETUP_STATE_UNKNOWN",
		1: "DEVICE_SETUP_STATE_WAITING_FOR_COMPLETION",
		2: "DEVICE_SETUP_STATE_COMPLETION_IMPORTED",
		3: "DEVICE_SETUP_STATE_DEVICE_SESSION_READY",
		4: "DEVICE_SETUP_STATE_FAILED",
	}
	DeviceSetupState_value = map[string]int32{
		"DEVICE_SETUP_STATE_UNKNOWN":                0,
		"DEVICE_SETUP_STATE_WAITING_FOR_COMPLETION": 1,
		"DEVICE_SETUP_STATE_COMPLETION_IMPORTED":    2,
		"DEVICE_SETUP_STATE_DEVICE_SESSION_READY":   3,
		"DEVICE_SETUP_STATE_FAILED":                 4,
	}
)

Enum value maps for DeviceSetupState.

View Source
var (
	DeviceUpdateState_name = map[int32]string{
		0: "DEVICE_UPDATE_STATE_UNKNOWN",
		1: "DEVICE_UPDATE_STATE_IDLE",
		2: "DEVICE_UPDATE_STATE_READY",
		3: "DEVICE_UPDATE_STATE_STAGING",
		4: "DEVICE_UPDATE_STATE_APPLYING",
		5: "DEVICE_UPDATE_STATE_UPDATED",
		6: "DEVICE_UPDATE_STATE_FAILED",
	}
	DeviceUpdateState_value = map[string]int32{
		"DEVICE_UPDATE_STATE_UNKNOWN":  0,
		"DEVICE_UPDATE_STATE_IDLE":     1,
		"DEVICE_UPDATE_STATE_READY":    2,
		"DEVICE_UPDATE_STATE_STAGING":  3,
		"DEVICE_UPDATE_STATE_APPLYING": 4,
		"DEVICE_UPDATE_STATE_UPDATED":  5,
		"DEVICE_UPDATE_STATE_FAILED":   6,
	}
)

Enum value maps for DeviceUpdateState.

View Source
var (
	DeviceLiveness_name = map[int32]string{
		0: "DEVICE_LIVENESS_UNKNOWN",
		1: "DEVICE_LIVENESS_ONLINE",
		2: "DEVICE_LIVENESS_DEGRADED",
		3: "DEVICE_LIVENESS_OFFLINE",
	}
	DeviceLiveness_value = map[string]int32{
		"DEVICE_LIVENESS_UNKNOWN":  0,
		"DEVICE_LIVENESS_ONLINE":   1,
		"DEVICE_LIVENESS_DEGRADED": 2,
		"DEVICE_LIVENESS_OFFLINE":  3,
	}
)

Enum value maps for DeviceLiveness.

View Source
var (
	DeviceCapabilityState_name = map[int32]string{
		0: "DEVICE_CAPABILITY_STATE_UNKNOWN",
		1: "DEVICE_CAPABILITY_STATE_DECLARED",
		2: "DEVICE_CAPABILITY_STATE_DISABLED",
		3: "DEVICE_CAPABILITY_STATE_GRANT_BLOCKED",
		4: "DEVICE_CAPABILITY_STATE_AVAILABLE",
		5: "DEVICE_CAPABILITY_STATE_ACTIVE",
	}
	DeviceCapabilityState_value = map[string]int32{
		"DEVICE_CAPABILITY_STATE_UNKNOWN":       0,
		"DEVICE_CAPABILITY_STATE_DECLARED":      1,
		"DEVICE_CAPABILITY_STATE_DISABLED":      2,
		"DEVICE_CAPABILITY_STATE_GRANT_BLOCKED": 3,
		"DEVICE_CAPABILITY_STATE_AVAILABLE":     4,
		"DEVICE_CAPABILITY_STATE_ACTIVE":        5,
	}
)

Enum value maps for DeviceCapabilityState.

View Source
var (
	DeviceCapabilityLocalState_name = map[int32]string{
		0: "DEVICE_CAPABILITY_LOCAL_STATE_UNKNOWN",
		1: "DEVICE_CAPABILITY_LOCAL_STATE_ENABLED",
		2: "DEVICE_CAPABILITY_LOCAL_STATE_DISABLED",
	}
	DeviceCapabilityLocalState_value = map[string]int32{
		"DEVICE_CAPABILITY_LOCAL_STATE_UNKNOWN":  0,
		"DEVICE_CAPABILITY_LOCAL_STATE_ENABLED":  1,
		"DEVICE_CAPABILITY_LOCAL_STATE_DISABLED": 2,
	}
)

Enum value maps for DeviceCapabilityLocalState.

View Source
var (
	DeviceCapabilityGrantState_name = map[int32]string{
		0: "DEVICE_CAPABILITY_GRANT_STATE_UNKNOWN",
		1: "DEVICE_CAPABILITY_GRANT_STATE_ALLOWED",
		2: "DEVICE_CAPABILITY_GRANT_STATE_BLOCKED",
	}
	DeviceCapabilityGrantState_value = map[string]int32{
		"DEVICE_CAPABILITY_GRANT_STATE_UNKNOWN": 0,
		"DEVICE_CAPABILITY_GRANT_STATE_ALLOWED": 1,
		"DEVICE_CAPABILITY_GRANT_STATE_BLOCKED": 2,
	}
)

Enum value maps for DeviceCapabilityGrantState.

View Source
var (
	DeviceCheckoutRootAccess_name = map[int32]string{
		0: "DEVICE_CHECKOUT_ROOT_ACCESS_UNKNOWN",
		1: "DEVICE_CHECKOUT_ROOT_ACCESS_READ_ONLY",
		2: "DEVICE_CHECKOUT_ROOT_ACCESS_READ_WRITE",
	}
	DeviceCheckoutRootAccess_value = map[string]int32{
		"DEVICE_CHECKOUT_ROOT_ACCESS_UNKNOWN":    0,
		"DEVICE_CHECKOUT_ROOT_ACCESS_READ_ONLY":  1,
		"DEVICE_CHECKOUT_ROOT_ACCESS_READ_WRITE": 2,
	}
)

Enum value maps for DeviceCheckoutRootAccess.

View Source
var CreateComputersDashboardOpId = "spacewave/computers/create"

CreateComputersDashboardOpId is the operation id for CreateComputersDashboardOp.

Functions

func DeviceCapabilityCanWriteCheckoutRoot

func DeviceCapabilityCanWriteCheckoutRoot(cap *DeviceCapability) bool

DeviceCapabilityCanWriteCheckoutRoot reports whether a capability can pass the checkout-root write gate after a caller supplies approval.

func DeviceCapabilityIsSelectable

func DeviceCapabilityIsSelectable(cap *DeviceCapability) bool

DeviceCapabilityIsSelectable reports whether a capability can be selected by another owner without taking over the capability's execution state.

func DeviceCapabilityPolicyAllowsWrite

func DeviceCapabilityPolicyAllowsWrite(cap *DeviceCapability) bool

DeviceCapabilityPolicyAllowsWrite reports whether the projected policy state permits a caller-approved write escalation.

func DeviceCheckoutRootCanRead

func DeviceCheckoutRootCanRead(checkoutRoot *DeviceCheckoutRootCapability) bool

DeviceCheckoutRootCanRead reports whether a checkout root may be opened for reads through its linked filesystem owner.

func DeviceCheckoutRootCanWrite

func DeviceCheckoutRootCanWrite(checkoutRoot *DeviceCheckoutRootCapability) bool

DeviceCheckoutRootCanWrite reports whether a checkout root may be written after the caller obtains the required approval.

func LookupCreateComputersDashboardOp

func LookupCreateComputersDashboardOp(ctx context.Context, operationTypeID string) (world.Operation, error)

LookupCreateComputersDashboardOp looks up a CreateComputersDashboardOp operation type.

func NewCreateComputersDashboardOpBlock

func NewCreateComputersDashboardOpBlock() block.Block

NewCreateComputersDashboardOpBlock constructs a CreateComputersDashboardOp block.

func NewDeviceBlock

func NewDeviceBlock() block.Block

NewDeviceBlock constructs a new Device block.

func NewSRPCDeviceResourceServiceHandler

func NewSRPCDeviceResourceServiceHandler(impl SRPCDeviceResourceServiceServer, serviceID string) srpc.Handler

NewSRPCDeviceResourceServiceHandler constructs a new RPC handler. serviceID: if empty, uses default: s4wave.device.DeviceResourceService

func SRPCRegisterDeviceResourceService

func SRPCRegisterDeviceResourceService(mux srpc.Mux, impl SRPCDeviceResourceServiceServer) error

SRPCRegisterDeviceResourceService registers the implementation with the mux. Uses the default serviceID: s4wave.device.DeviceResourceService

Types

type AccessCheckoutRootRequest

type AccessCheckoutRootRequest struct {

	// Name is the checkout-root selector. Empty selects the first readable root.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Write requests a write-capable filesystem handle.
	Write bool `protobuf:"varint,2,opt,name=write,proto3" json:"write,omitempty"`
	// WriteApprovalRef identifies the Decision or equivalent approval for writes.
	WriteApprovalRef string `protobuf:"bytes,3,opt,name=write_approval_ref,json=writeApprovalRef,proto3" json:"writeApprovalRef,omitempty"`
	// contains filtered or unexported fields
}

AccessCheckoutRootRequest opens a named checkout root as a filesystem resource.

func (*AccessCheckoutRootRequest) CloneMessageVT

func (*AccessCheckoutRootRequest) CloneVT

func (*AccessCheckoutRootRequest) EqualMessageVT

func (this *AccessCheckoutRootRequest) EqualMessageVT(thatMsg any) bool

func (*AccessCheckoutRootRequest) EqualVT

func (*AccessCheckoutRootRequest) GetName

func (x *AccessCheckoutRootRequest) GetName() string

func (*AccessCheckoutRootRequest) GetWrite

func (x *AccessCheckoutRootRequest) GetWrite() bool

func (*AccessCheckoutRootRequest) GetWriteApprovalRef

func (x *AccessCheckoutRootRequest) GetWriteApprovalRef() string

func (*AccessCheckoutRootRequest) MarshalJSON

func (x *AccessCheckoutRootRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AccessCheckoutRootRequest to JSON.

func (*AccessCheckoutRootRequest) MarshalProtoJSON

func (x *AccessCheckoutRootRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AccessCheckoutRootRequest message to JSON.

func (*AccessCheckoutRootRequest) MarshalProtoText

func (x *AccessCheckoutRootRequest) MarshalProtoText() string

func (*AccessCheckoutRootRequest) MarshalToSizedBufferVT

func (m *AccessCheckoutRootRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AccessCheckoutRootRequest) MarshalToVT

func (m *AccessCheckoutRootRequest) MarshalToVT(dAtA []byte) (int, error)

func (*AccessCheckoutRootRequest) MarshalVT

func (m *AccessCheckoutRootRequest) MarshalVT() (dAtA []byte, err error)

func (*AccessCheckoutRootRequest) ProtoMessage

func (*AccessCheckoutRootRequest) ProtoMessage()

func (*AccessCheckoutRootRequest) Reset

func (x *AccessCheckoutRootRequest) Reset()

func (*AccessCheckoutRootRequest) SizeVT

func (m *AccessCheckoutRootRequest) SizeVT() (n int)

func (*AccessCheckoutRootRequest) String

func (x *AccessCheckoutRootRequest) String() string

func (*AccessCheckoutRootRequest) UnmarshalJSON

func (x *AccessCheckoutRootRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AccessCheckoutRootRequest from JSON.

func (*AccessCheckoutRootRequest) UnmarshalProtoJSON

func (x *AccessCheckoutRootRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AccessCheckoutRootRequest message from JSON.

func (*AccessCheckoutRootRequest) UnmarshalVT

func (m *AccessCheckoutRootRequest) UnmarshalVT(dAtA []byte) error

type AccessCheckoutRootResponse

type AccessCheckoutRootResponse struct {

	// ResourceId is the FSHandle resource id.
	ResourceId uint32 `protobuf:"varint,1,opt,name=resource_id,json=resourceId,proto3" json:"resourceId,omitempty"`
	// CapabilityId is the selected Device capability id.
	CapabilityId string `protobuf:"bytes,2,opt,name=capability_id,json=capabilityId,proto3" json:"capabilityId,omitempty"`
	// ObjectKey is the linked filesystem owner object key.
	ObjectKey string `protobuf:"bytes,3,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
	// TypeId is the linked filesystem ObjectType id.
	TypeId string `protobuf:"bytes,4,opt,name=type_id,json=typeId,proto3" json:"typeId,omitempty"`
	// CheckoutRoot is the selected checkout-root metadata.
	CheckoutRoot *DeviceCheckoutRootCapability `protobuf:"bytes,5,opt,name=checkout_root,json=checkoutRoot,proto3" json:"checkoutRoot,omitempty"`
	// WriteAvailable reports whether the selected capability can be write-gated.
	WriteAvailable bool `protobuf:"varint,6,opt,name=write_available,json=writeAvailable,proto3" json:"writeAvailable,omitempty"`
	// WriteEnabled reports whether this mounted handle was opened for writes.
	WriteEnabled bool `protobuf:"varint,7,opt,name=write_enabled,json=writeEnabled,proto3" json:"writeEnabled,omitempty"`
	// WriteApprovalRef is the approval ref accepted for a write-enabled handle.
	WriteApprovalRef string `protobuf:"bytes,8,opt,name=write_approval_ref,json=writeApprovalRef,proto3" json:"writeApprovalRef,omitempty"`
	// contains filtered or unexported fields
}

AccessCheckoutRootResponse contains the mounted filesystem resource.

func (*AccessCheckoutRootResponse) CloneMessageVT

func (*AccessCheckoutRootResponse) CloneVT

func (*AccessCheckoutRootResponse) EqualMessageVT

func (this *AccessCheckoutRootResponse) EqualMessageVT(thatMsg any) bool

func (*AccessCheckoutRootResponse) EqualVT

func (*AccessCheckoutRootResponse) GetCapabilityId

func (x *AccessCheckoutRootResponse) GetCapabilityId() string

func (*AccessCheckoutRootResponse) GetCheckoutRoot

func (*AccessCheckoutRootResponse) GetObjectKey

func (x *AccessCheckoutRootResponse) GetObjectKey() string

func (*AccessCheckoutRootResponse) GetResourceId

func (x *AccessCheckoutRootResponse) GetResourceId() uint32

func (*AccessCheckoutRootResponse) GetTypeId

func (x *AccessCheckoutRootResponse) GetTypeId() string

func (*AccessCheckoutRootResponse) GetWriteApprovalRef

func (x *AccessCheckoutRootResponse) GetWriteApprovalRef() string

func (*AccessCheckoutRootResponse) GetWriteAvailable

func (x *AccessCheckoutRootResponse) GetWriteAvailable() bool

func (*AccessCheckoutRootResponse) GetWriteEnabled

func (x *AccessCheckoutRootResponse) GetWriteEnabled() bool

func (*AccessCheckoutRootResponse) MarshalJSON

func (x *AccessCheckoutRootResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AccessCheckoutRootResponse to JSON.

func (*AccessCheckoutRootResponse) MarshalProtoJSON

func (x *AccessCheckoutRootResponse) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AccessCheckoutRootResponse message to JSON.

func (*AccessCheckoutRootResponse) MarshalProtoText

func (x *AccessCheckoutRootResponse) MarshalProtoText() string

func (*AccessCheckoutRootResponse) MarshalToSizedBufferVT

func (m *AccessCheckoutRootResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AccessCheckoutRootResponse) MarshalToVT

func (m *AccessCheckoutRootResponse) MarshalToVT(dAtA []byte) (int, error)

func (*AccessCheckoutRootResponse) MarshalVT

func (m *AccessCheckoutRootResponse) MarshalVT() (dAtA []byte, err error)

func (*AccessCheckoutRootResponse) ProtoMessage

func (*AccessCheckoutRootResponse) ProtoMessage()

func (*AccessCheckoutRootResponse) Reset

func (x *AccessCheckoutRootResponse) Reset()

func (*AccessCheckoutRootResponse) SizeVT

func (m *AccessCheckoutRootResponse) SizeVT() (n int)

func (*AccessCheckoutRootResponse) String

func (x *AccessCheckoutRootResponse) String() string

func (*AccessCheckoutRootResponse) UnmarshalJSON

func (x *AccessCheckoutRootResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AccessCheckoutRootResponse from JSON.

func (*AccessCheckoutRootResponse) UnmarshalProtoJSON

func (x *AccessCheckoutRootResponse) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AccessCheckoutRootResponse message from JSON.

func (*AccessCheckoutRootResponse) UnmarshalVT

func (m *AccessCheckoutRootResponse) UnmarshalVT(dAtA []byte) error

type ComputersDashboard

type ComputersDashboard struct {

	// Name is the display name of this dashboard.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// CreatedAt is the time this dashboard was created.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

ComputersDashboard is the Space-local dashboard for managed Devices and future host entries.

func UnmarshalComputersDashboard

func UnmarshalComputersDashboard(ctx context.Context, bcs *block.Cursor) (*ComputersDashboard, error)

UnmarshalComputersDashboard unmarshals a ComputersDashboard from a cursor.

func (*ComputersDashboard) CloneMessageVT

func (m *ComputersDashboard) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ComputersDashboard) CloneVT

func (m *ComputersDashboard) CloneVT() *ComputersDashboard

func (*ComputersDashboard) EqualMessageVT

func (this *ComputersDashboard) EqualMessageVT(thatMsg any) bool

func (*ComputersDashboard) EqualVT

func (this *ComputersDashboard) EqualVT(that *ComputersDashboard) bool

func (*ComputersDashboard) GetBlockTypeId

func (d *ComputersDashboard) GetBlockTypeId() string

GetBlockTypeId returns the block type identifier.

func (*ComputersDashboard) GetCreatedAt

func (x *ComputersDashboard) GetCreatedAt() *timestamppb.Timestamp

func (*ComputersDashboard) GetName

func (x *ComputersDashboard) GetName() string

func (*ComputersDashboard) MarshalBlock

func (d *ComputersDashboard) MarshalBlock() ([]byte, error)

MarshalBlock marshals the block to binary.

func (*ComputersDashboard) MarshalJSON

func (x *ComputersDashboard) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ComputersDashboard to JSON.

func (*ComputersDashboard) MarshalProtoJSON

func (x *ComputersDashboard) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ComputersDashboard message to JSON.

func (*ComputersDashboard) MarshalProtoText

func (x *ComputersDashboard) MarshalProtoText() string

func (*ComputersDashboard) MarshalToSizedBufferVT

func (m *ComputersDashboard) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ComputersDashboard) MarshalToVT

func (m *ComputersDashboard) MarshalToVT(dAtA []byte) (int, error)

func (*ComputersDashboard) MarshalVT

func (m *ComputersDashboard) MarshalVT() (dAtA []byte, err error)

func (*ComputersDashboard) ProtoMessage

func (*ComputersDashboard) ProtoMessage()

func (*ComputersDashboard) Reset

func (x *ComputersDashboard) Reset()

func (*ComputersDashboard) SizeVT

func (m *ComputersDashboard) SizeVT() (n int)

func (*ComputersDashboard) String

func (x *ComputersDashboard) String() string

func (*ComputersDashboard) UnmarshalBlock

func (d *ComputersDashboard) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the block from binary.

func (*ComputersDashboard) UnmarshalJSON

func (x *ComputersDashboard) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ComputersDashboard from JSON.

func (*ComputersDashboard) UnmarshalProtoJSON

func (x *ComputersDashboard) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ComputersDashboard message from JSON.

func (*ComputersDashboard) UnmarshalVT

func (m *ComputersDashboard) UnmarshalVT(dAtA []byte) error

func (*ComputersDashboard) Validate

func (d *ComputersDashboard) Validate() error

Validate performs cursory checks on the ComputersDashboard.

type CreateComputersDashboardOp

type CreateComputersDashboardOp struct {

	// ObjectKey is the key to create the dashboard at.
	ObjectKey string `protobuf:"bytes,1,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
	// Name is the display name of the dashboard.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Timestamp is the creation timestamp.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

CreateComputersDashboardOp creates a ComputersDashboard world object.

func NewCreateComputersDashboardOp

func NewCreateComputersDashboardOp(objKey, name string, ts time.Time) *CreateComputersDashboardOp

NewCreateComputersDashboardOp constructs a new CreateComputersDashboardOp.

func (*CreateComputersDashboardOp) ApplyWorldObjectOp

func (o *CreateComputersDashboardOp) ApplyWorldObjectOp(
	ctx context.Context,
	le *logrus.Entry,
	os world.ObjectState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldObjectOp applies the operation to a world object handle.

func (*CreateComputersDashboardOp) ApplyWorldOp

func (o *CreateComputersDashboardOp) ApplyWorldOp(
	ctx context.Context,
	le *logrus.Entry,
	ws world.WorldState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldOp applies the operation as a world operation.

func (*CreateComputersDashboardOp) CloneMessageVT

func (*CreateComputersDashboardOp) CloneVT

func (*CreateComputersDashboardOp) EqualMessageVT

func (this *CreateComputersDashboardOp) EqualMessageVT(thatMsg any) bool

func (*CreateComputersDashboardOp) EqualVT

func (*CreateComputersDashboardOp) GetName

func (x *CreateComputersDashboardOp) GetName() string

func (*CreateComputersDashboardOp) GetObjectKey

func (x *CreateComputersDashboardOp) GetObjectKey() string

func (*CreateComputersDashboardOp) GetOperationTypeId

func (o *CreateComputersDashboardOp) GetOperationTypeId() string

GetOperationTypeId returns the operation type identifier.

func (*CreateComputersDashboardOp) GetTimestamp

func (*CreateComputersDashboardOp) MarshalBlock

func (o *CreateComputersDashboardOp) MarshalBlock() ([]byte, error)

MarshalBlock marshals the block to binary.

func (*CreateComputersDashboardOp) MarshalJSON

func (x *CreateComputersDashboardOp) MarshalJSON() ([]byte, error)

MarshalJSON marshals the CreateComputersDashboardOp to JSON.

func (*CreateComputersDashboardOp) MarshalProtoJSON

func (x *CreateComputersDashboardOp) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the CreateComputersDashboardOp message to JSON.

func (*CreateComputersDashboardOp) MarshalProtoText

func (x *CreateComputersDashboardOp) MarshalProtoText() string

func (*CreateComputersDashboardOp) MarshalToSizedBufferVT

func (m *CreateComputersDashboardOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CreateComputersDashboardOp) MarshalToVT

func (m *CreateComputersDashboardOp) MarshalToVT(dAtA []byte) (int, error)

func (*CreateComputersDashboardOp) MarshalVT

func (m *CreateComputersDashboardOp) MarshalVT() (dAtA []byte, err error)

func (*CreateComputersDashboardOp) ProtoMessage

func (*CreateComputersDashboardOp) ProtoMessage()

func (*CreateComputersDashboardOp) Reset

func (x *CreateComputersDashboardOp) Reset()

func (*CreateComputersDashboardOp) SizeVT

func (m *CreateComputersDashboardOp) SizeVT() (n int)

func (*CreateComputersDashboardOp) String

func (x *CreateComputersDashboardOp) String() string

func (*CreateComputersDashboardOp) UnmarshalBlock

func (o *CreateComputersDashboardOp) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the block from binary.

func (*CreateComputersDashboardOp) UnmarshalJSON

func (x *CreateComputersDashboardOp) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the CreateComputersDashboardOp from JSON.

func (*CreateComputersDashboardOp) UnmarshalProtoJSON

func (x *CreateComputersDashboardOp) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the CreateComputersDashboardOp message from JSON.

func (*CreateComputersDashboardOp) UnmarshalVT

func (m *CreateComputersDashboardOp) UnmarshalVT(dAtA []byte) error

func (*CreateComputersDashboardOp) Validate

func (o *CreateComputersDashboardOp) Validate() error

Validate performs cursory checks on the op.

type Device

type Device struct {

	// PeerId is the daemon DEVICE session peer ID.
	PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peerId,omitempty"`
	// Label is the operator-visible Device label.
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// Platform summarizes the daemon runtime platform.
	Platform *DevicePlatform `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"`
	// DaemonVersion is the daemon entrypoint version label.
	DaemonVersion string `protobuf:"bytes,4,opt,name=daemon_version,json=daemonVersion,proto3" json:"daemonVersion,omitempty"`
	// SetupState is the setup lifecycle projection.
	SetupState DeviceSetupState `protobuf:"varint,5,opt,name=setup_state,json=setupState,proto3" json:"setupState,omitempty"`
	// UpdateState is the daemon update lifecycle projection.
	UpdateState DeviceUpdateState `protobuf:"varint,6,opt,name=update_state,json=updateState,proto3" json:"updateState,omitempty"`
	// LastStatus is the last durable daemon-authored status.
	LastStatus *DeviceStatus `protobuf:"bytes,7,opt,name=last_status,json=lastStatus,proto3" json:"lastStatus,omitempty"`
	// Capabilities are declared capability summaries.
	Capabilities []*DeviceCapability `protobuf:"bytes,8,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
	// CreatedAt is when this Device object was first created.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"createdAt,omitempty"`
	// UpdatedAt is when this Device object was last updated.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

Device is the world-block state for a Spacewave-managed Device object.

func UnmarshalDevice

func UnmarshalDevice(ctx context.Context, bcs *block.Cursor) (*Device, error)

UnmarshalDevice unmarshals a Device from a cursor.

func (*Device) CloneMessageVT

func (m *Device) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Device) CloneVT

func (m *Device) CloneVT() *Device

func (*Device) EqualMessageVT

func (this *Device) EqualMessageVT(thatMsg any) bool

func (*Device) EqualVT

func (this *Device) EqualVT(that *Device) bool

func (*Device) FindCapabilityByKind

func (d *Device) FindCapabilityByKind(kind string) *DeviceCapability

FindCapabilityByKind returns the first capability matching the requested kind.

func (*Device) FindReadableCheckoutRoot

func (d *Device) FindReadableCheckoutRoot(name string) *DeviceCapability

FindReadableCheckoutRoot returns a selectable checkout-root capability with a linked filesystem owner object that can be opened through the Resource SDK.

func (*Device) FindSelectableCheckoutRoot

func (d *Device) FindSelectableCheckoutRoot(name string) *DeviceCapability

FindSelectableCheckoutRoot returns a selectable filesystem capability for a named checkout root. An empty name selects the first selectable checkout root.

func (*Device) FindSelectableForgeWorker

func (d *Device) FindSelectableForgeWorker() *DeviceCapability

FindSelectableForgeWorker returns a selectable Forge Worker capability linked to the owner object that records execution state, logs, and results.

func (*Device) FindWritableCheckoutRoot

func (d *Device) FindWritableCheckoutRoot(name string) *DeviceCapability

FindWritableCheckoutRoot returns a selectable checkout-root capability with a linked filesystem owner object that may be opened for writes after approval.

func (*Device) GetCapabilities

func (x *Device) GetCapabilities() []*DeviceCapability

func (*Device) GetCreatedAt

func (x *Device) GetCreatedAt() *timestamppb.Timestamp

func (*Device) GetDaemonVersion

func (x *Device) GetDaemonVersion() string

func (*Device) GetLabel

func (x *Device) GetLabel() string

func (*Device) GetLastStatus

func (x *Device) GetLastStatus() *DeviceStatus

func (*Device) GetPeerId

func (x *Device) GetPeerId() string

func (*Device) GetPlatform

func (x *Device) GetPlatform() *DevicePlatform

func (*Device) GetSetupState

func (x *Device) GetSetupState() DeviceSetupState

func (*Device) GetUpdateState

func (x *Device) GetUpdateState() DeviceUpdateState

func (*Device) GetUpdatedAt

func (x *Device) GetUpdatedAt() *timestamppb.Timestamp

func (*Device) HasSelectableCapabilityKind

func (d *Device) HasSelectableCapabilityKind(kind string) bool

HasSelectableCapabilityKind reports whether the Device exposes a selectable capability of the requested kind.

func (*Device) IsSelectable

func (d *Device) IsSelectable() bool

IsSelectable reports whether the Device has enough identity and setup state for another owner to present it as an execution or resource target.

func (*Device) MarshalBlock

func (d *Device) MarshalBlock() ([]byte, error)

MarshalBlock marshals the Device to bytes.

func (*Device) MarshalJSON

func (x *Device) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Device to JSON.

func (*Device) MarshalProtoJSON

func (x *Device) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Device message to JSON.

func (*Device) MarshalProtoText

func (x *Device) MarshalProtoText() string

func (*Device) MarshalToSizedBufferVT

func (m *Device) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Device) MarshalToVT

func (m *Device) MarshalToVT(dAtA []byte) (int, error)

func (*Device) MarshalVT

func (m *Device) MarshalVT() (dAtA []byte, err error)

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) Reset

func (x *Device) Reset()

func (*Device) SizeVT

func (m *Device) SizeVT() (n int)

func (*Device) String

func (x *Device) String() string

func (*Device) UnmarshalBlock

func (d *Device) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the Device from bytes.

func (*Device) UnmarshalJSON

func (x *Device) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Device from JSON.

func (*Device) UnmarshalProtoJSON

func (x *Device) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Device message from JSON.

func (*Device) UnmarshalVT

func (m *Device) UnmarshalVT(dAtA []byte) error

func (*Device) Validate

func (d *Device) Validate() error

Validate performs cursory checks on the Device block.

type DeviceCapability

type DeviceCapability struct {

	// Id is the stable capability identifier.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Kind is the capability family, such as filesystem or forge-worker.
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	// Label is the operator-visible capability label.
	Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
	// State is the projected capability state.
	State DeviceCapabilityState `protobuf:"varint,4,opt,name=state,proto3" json:"state,omitempty"`
	// Detail is a short status or policy note.
	Detail string `protobuf:"bytes,5,opt,name=detail,proto3" json:"detail,omitempty"`
	// Link points at the owner that executes the capability.
	Link *DeviceCapabilityLink `protobuf:"bytes,6,opt,name=link,proto3" json:"link,omitempty"`
	// Policy records the local and Space policy refs used for the effective state.
	Policy *DeviceCapabilityPolicy `protobuf:"bytes,7,opt,name=policy,proto3" json:"policy,omitempty"`
	// CheckoutRoot records named checkout-root metadata for filesystem capabilities.
	CheckoutRoot *DeviceCheckoutRootCapability `protobuf:"bytes,8,opt,name=checkout_root,json=checkoutRoot,proto3" json:"checkoutRoot,omitempty"`
	// contains filtered or unexported fields
}

DeviceCapability is a declared capability summary, not the capability owner.

func (*DeviceCapability) CloneMessageVT

func (m *DeviceCapability) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*DeviceCapability) CloneVT

func (m *DeviceCapability) CloneVT() *DeviceCapability

func (*DeviceCapability) EqualMessageVT

func (this *DeviceCapability) EqualMessageVT(thatMsg any) bool

func (*DeviceCapability) EqualVT

func (this *DeviceCapability) EqualVT(that *DeviceCapability) bool

func (*DeviceCapability) GetCheckoutRoot

func (x *DeviceCapability) GetCheckoutRoot() *DeviceCheckoutRootCapability

func (*DeviceCapability) GetDetail

func (x *DeviceCapability) GetDetail() string

func (*DeviceCapability) GetId

func (x *DeviceCapability) GetId() string

func (*DeviceCapability) GetKind

func (x *DeviceCapability) GetKind() string

func (*DeviceCapability) GetLabel

func (x *DeviceCapability) GetLabel() string
func (x *DeviceCapability) GetLink() *DeviceCapabilityLink

func (*DeviceCapability) GetPolicy

func (x *DeviceCapability) GetPolicy() *DeviceCapabilityPolicy

func (*DeviceCapability) GetState

func (*DeviceCapability) MarshalJSON

func (x *DeviceCapability) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DeviceCapability to JSON.

func (*DeviceCapability) MarshalProtoJSON

func (x *DeviceCapability) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DeviceCapability message to JSON.

func (*DeviceCapability) MarshalProtoText

func (x *DeviceCapability) MarshalProtoText() string

func (*DeviceCapability) MarshalToSizedBufferVT

func (m *DeviceCapability) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DeviceCapability) MarshalToVT

func (m *DeviceCapability) MarshalToVT(dAtA []byte) (int, error)

func (*DeviceCapability) MarshalVT

func (m *DeviceCapability) MarshalVT() (dAtA []byte, err error)

func (*DeviceCapability) ProtoMessage

func (*DeviceCapability) ProtoMessage()

func (*DeviceCapability) Reset

func (x *DeviceCapability) Reset()

func (*DeviceCapability) SizeVT

func (m *DeviceCapability) SizeVT() (n int)

func (*DeviceCapability) String

func (x *DeviceCapability) String() string

func (*DeviceCapability) UnmarshalJSON

func (x *DeviceCapability) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DeviceCapability from JSON.

func (*DeviceCapability) UnmarshalProtoJSON

func (x *DeviceCapability) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DeviceCapability message from JSON.

func (*DeviceCapability) UnmarshalVT

func (m *DeviceCapability) UnmarshalVT(dAtA []byte) error

type DeviceCapabilityGrantState

type DeviceCapabilityGrantState int32

DeviceCapabilityGrantState is the Space grant projection for a capability.

const (
	// DEVICE_CAPABILITY_GRANT_STATE_UNKNOWN is unset.
	DeviceCapabilityGrantState_DEVICE_CAPABILITY_GRANT_STATE_UNKNOWN DeviceCapabilityGrantState = 0
	// DEVICE_CAPABILITY_GRANT_STATE_ALLOWED means Space policy currently allows the capability.
	DeviceCapabilityGrantState_DEVICE_CAPABILITY_GRANT_STATE_ALLOWED DeviceCapabilityGrantState = 1
	// DEVICE_CAPABILITY_GRANT_STATE_BLOCKED means Space policy currently blocks the capability.
	DeviceCapabilityGrantState_DEVICE_CAPABILITY_GRANT_STATE_BLOCKED DeviceCapabilityGrantState = 2
)

func (DeviceCapabilityGrantState) Enum

func (DeviceCapabilityGrantState) MarshalJSON

func (x DeviceCapabilityGrantState) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DeviceCapabilityGrantState to JSON.

func (DeviceCapabilityGrantState) MarshalProtoJSON

func (x DeviceCapabilityGrantState) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DeviceCapabilityGrantState to JSON.

func (DeviceCapabilityGrantState) MarshalProtoText

func (x DeviceCapabilityGrantState) MarshalProtoText() string

func (DeviceCapabilityGrantState) MarshalText

func (x DeviceCapabilityGrantState) MarshalText() ([]byte, error)

MarshalText marshals the DeviceCapabilityGrantState to text.

func (DeviceCapabilityGrantState) String

func (*DeviceCapabilityGrantState) UnmarshalJSON

func (x *DeviceCapabilityGrantState) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DeviceCapabilityGrantState from JSON.

func (*DeviceCapabilityGrantState) UnmarshalProtoJSON

func (x *DeviceCapabilityGrantState) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DeviceCapabilityGrantState from JSON.

func (*DeviceCapabilityGrantState) UnmarshalText

func (x *DeviceCapabilityGrantState) UnmarshalText(b []byte) error

UnmarshalText unmarshals the DeviceCapabilityGrantState from text.

type DeviceCapabilityLink struct {

	// ObjectKey is the linked owner object, such as a UnixFS root or Forge Worker.
	ObjectKey string `protobuf:"bytes,1,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
	// TypeId is the ObjectType id for ObjectKey when ObjectKey is set.
	TypeId string `protobuf:"bytes,2,opt,name=type_id,json=typeId,proto3" json:"typeId,omitempty"`
	// ProtocolId is the post-registration Bifrost protocol id for stream-backed adapters.
	ProtocolId string `protobuf:"bytes,3,opt,name=protocol_id,json=protocolId,proto3" json:"protocolId,omitempty"`
	// contains filtered or unexported fields
}

DeviceCapabilityLink points at the capability execution owner.

func (*DeviceCapabilityLink) CloneMessageVT

func (*DeviceCapabilityLink) CloneVT

func (*DeviceCapabilityLink) EqualMessageVT

func (this *DeviceCapabilityLink) EqualMessageVT(thatMsg any) bool

func (*DeviceCapabilityLink) EqualVT

func (this *DeviceCapabilityLink) EqualVT(that *DeviceCapabilityLink) bool

func (*DeviceCapabilityLink) GetObjectKey

func (x *DeviceCapabilityLink) GetObjectKey() string

func (*DeviceCapabilityLink) GetProtocolId

func (x *DeviceCapabilityLink) GetProtocolId() string

func (*DeviceCapabilityLink) GetTypeId

func (x *DeviceCapabilityLink) GetTypeId() string

func (*DeviceCapabilityLink) MarshalJSON

func (x *DeviceCapabilityLink) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DeviceCapabilityLink to JSON.

func (*DeviceCapabilityLink) MarshalProtoJSON

func (x *DeviceCapabilityLink) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DeviceCapabilityLink message to JSON.

func (*DeviceCapabilityLink) MarshalProtoText

func (x *DeviceCapabilityLink) MarshalProtoText() string

func (*DeviceCapabilityLink) MarshalToSizedBufferVT

func (m *DeviceCapabilityLink) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DeviceCapabilityLink) MarshalToVT

func (m *DeviceCapabilityLink) MarshalToVT(dAtA []byte) (int, error)

func (*DeviceCapabilityLink) MarshalVT

func (m *DeviceCapabilityLink) MarshalVT() (dAtA []byte, err error)

func (*DeviceCapabilityLink) ProtoMessage

func (*DeviceCapabilityLink) ProtoMessage()

func (*DeviceCapabilityLink) Reset

func (x *DeviceCapabilityLink) Reset()

func (*DeviceCapabilityLink) SizeVT

func (m *DeviceCapabilityLink) SizeVT() (n int)

func (*DeviceCapabilityLink) String

func (x *DeviceCapabilityLink) String() string

func (*DeviceCapabilityLink) UnmarshalJSON

func (x *DeviceCapabilityLink) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DeviceCapabilityLink from JSON.

func (*DeviceCapabilityLink) UnmarshalProtoJSON

func (x *DeviceCapabilityLink) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DeviceCapabilityLink message from JSON.

func (*DeviceCapabilityLink) UnmarshalVT

func (m *DeviceCapabilityLink) UnmarshalVT(dAtA []byte) error

type DeviceCapabilityLocalState

type DeviceCapabilityLocalState int32

DeviceCapabilityLocalState is the daemon-local allowlist state.

const (
	// DEVICE_CAPABILITY_LOCAL_STATE_UNKNOWN is unset.
	DeviceCapabilityLocalState_DEVICE_CAPABILITY_LOCAL_STATE_UNKNOWN DeviceCapabilityLocalState = 0
	// DEVICE_CAPABILITY_LOCAL_STATE_ENABLED means daemon-local policy allows the capability.
	DeviceCapabilityLocalState_DEVICE_CAPABILITY_LOCAL_STATE_ENABLED DeviceCapabilityLocalState = 1
	// DEVICE_CAPABILITY_LOCAL_STATE_DISABLED means daemon-local policy disables the capability.
	DeviceCapabilityLocalState_DEVICE_CAPABILITY_LOCAL_STATE_DISABLED DeviceCapabilityLocalState = 2
)

func (DeviceCapabilityLocalState) Enum

func (DeviceCapabilityLocalState) MarshalJSON

func (x DeviceCapabilityLocalState) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DeviceCapabilityLocalState to JSON.

func (DeviceCapabilityLocalState) MarshalProtoJSON

func (x DeviceCapabilityLocalState) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DeviceCapabilityLocalState to JSON.

func (DeviceCapabilityLocalState) MarshalProtoText

func (x DeviceCapabilityLocalState) MarshalProtoText() string

func (DeviceCapabilityLocalState) MarshalText

func (x DeviceCapabilityLocalState) MarshalText() ([]byte, error)

MarshalText marshals the DeviceCapabilityLocalState to text.

func (DeviceCapabilityLocalState) String

func (*DeviceCapabilityLocalState) UnmarshalJSON

func (x *DeviceCapabilityLocalState) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DeviceCapabilityLocalState from JSON.

func (*DeviceCapabilityLocalState) UnmarshalProtoJSON

func (x *DeviceCapabilityLocalState) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DeviceCapabilityLocalState from JSON.

func (*DeviceCapabilityLocalState) UnmarshalText

func (x *DeviceCapabilityLocalState) UnmarshalText(b []byte) error

UnmarshalText unmarshals the DeviceCapabilityLocalState from text.

type DeviceCapabilityPolicy

type DeviceCapabilityPolicy struct {

	// LocalPolicyRef identifies the daemon-local policy entry.
	LocalPolicyRef string `protobuf:"bytes,1,opt,name=local_policy_ref,json=localPolicyRef,proto3" json:"localPolicyRef,omitempty"`
	// GrantPolicyRef identifies the Space grant or policy entry.
	GrantPolicyRef string `protobuf:"bytes,2,opt,name=grant_policy_ref,json=grantPolicyRef,proto3" json:"grantPolicyRef,omitempty"`
	// LocalState is the daemon-local allowlist state.
	LocalState DeviceCapabilityLocalState `protobuf:"varint,3,opt,name=local_state,json=localState,proto3" json:"localState,omitempty"`
	// GrantState is the current Space grant projection.
	GrantState DeviceCapabilityGrantState `protobuf:"varint,4,opt,name=grant_state,json=grantState,proto3" json:"grantState,omitempty"`
	// contains filtered or unexported fields
}

DeviceCapabilityPolicy records inputs to the effective capability state.

func (*DeviceCapabilityPolicy) CloneMessageVT

func (*DeviceCapabilityPolicy) CloneVT

func (*DeviceCapabilityPolicy) EqualMessageVT

func (this *DeviceCapabilityPolicy) EqualMessageVT(thatMsg any) bool

func (*DeviceCapabilityPolicy) EqualVT

func (this *DeviceCapabilityPolicy) EqualVT(that *DeviceCapabilityPolicy) bool

func (*DeviceCapabilityPolicy) GetGrantPolicyRef

func (x *DeviceCapabilityPolicy) GetGrantPolicyRef() string

func (*DeviceCapabilityPolicy) GetGrantState

func (*DeviceCapabilityPolicy) GetLocalPolicyRef

func (x *DeviceCapabilityPolicy) GetLocalPolicyRef() string

func (*DeviceCapabilityPolicy) GetLocalState

func (*DeviceCapabilityPolicy) MarshalJSON

func (x *DeviceCapabilityPolicy) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DeviceCapabilityPolicy to JSON.

func (*DeviceCapabilityPolicy) MarshalProtoJSON

func (x *DeviceCapabilityPolicy) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DeviceCapabilityPolicy message to JSON.

func (*DeviceCapabilityPolicy) MarshalProtoText

func (x *DeviceCapabilityPolicy) MarshalProtoText() string

func (*DeviceCapabilityPolicy) MarshalToSizedBufferVT

func (m *DeviceCapabilityPolicy) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DeviceCapabilityPolicy) MarshalToVT

func (m *DeviceCapabilityPolicy) MarshalToVT(dAtA []byte) (int, error)

func (*DeviceCapabilityPolicy) MarshalVT

func (m *DeviceCapabilityPolicy) MarshalVT() (dAtA []byte, err error)

func (*DeviceCapabilityPolicy) ProtoMessage

func (*DeviceCapabilityPolicy) ProtoMessage()

func (*DeviceCapabilityPolicy) Reset

func (x *DeviceCapabilityPolicy) Reset()

func (*DeviceCapabilityPolicy) SizeVT

func (m *DeviceCapabilityPolicy) SizeVT() (n int)

func (*DeviceCapabilityPolicy) String

func (x *DeviceCapabilityPolicy) String() string

func (*DeviceCapabilityPolicy) UnmarshalJSON

func (x *DeviceCapabilityPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DeviceCapabilityPolicy from JSON.

func (*DeviceCapabilityPolicy) UnmarshalProtoJSON

func (x *DeviceCapabilityPolicy) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DeviceCapabilityPolicy message from JSON.

func (*DeviceCapabilityPolicy) UnmarshalVT

func (m *DeviceCapabilityPolicy) UnmarshalVT(dAtA []byte) error

type DeviceCapabilityState

type DeviceCapabilityState int32

DeviceCapabilityState is the declared capability state projection.

const (
	// DEVICE_CAPABILITY_STATE_UNKNOWN is unset.
	DeviceCapabilityState_DEVICE_CAPABILITY_STATE_UNKNOWN DeviceCapabilityState = 0
	// DEVICE_CAPABILITY_STATE_DECLARED means the daemon advertises this capability.
	DeviceCapabilityState_DEVICE_CAPABILITY_STATE_DECLARED DeviceCapabilityState = 1
	// DEVICE_CAPABILITY_STATE_DISABLED means local policy disables this capability.
	DeviceCapabilityState_DEVICE_CAPABILITY_STATE_DISABLED DeviceCapabilityState = 2
	// DEVICE_CAPABILITY_STATE_GRANT_BLOCKED means Space grants block this capability.
	DeviceCapabilityState_DEVICE_CAPABILITY_STATE_GRANT_BLOCKED DeviceCapabilityState = 3
	// DEVICE_CAPABILITY_STATE_AVAILABLE means the capability can be used.
	DeviceCapabilityState_DEVICE_CAPABILITY_STATE_AVAILABLE DeviceCapabilityState = 4
	// DEVICE_CAPABILITY_STATE_ACTIVE means the capability currently has active work.
	DeviceCapabilityState_DEVICE_CAPABILITY_STATE_ACTIVE DeviceCapabilityState = 5
)

func (DeviceCapabilityState) Enum

func (DeviceCapabilityState) MarshalJSON

func (x DeviceCapabilityState) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DeviceCapabilityState to JSON.

func (DeviceCapabilityState) MarshalProtoJSON

func (x DeviceCapabilityState) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DeviceCapabilityState to JSON.

func (DeviceCapabilityState) MarshalProtoText

func (x DeviceCapabilityState) MarshalProtoText() string

func (DeviceCapabilityState) MarshalText

func (x DeviceCapabilityState) MarshalText() ([]byte, error)

MarshalText marshals the DeviceCapabilityState to text.

func (DeviceCapabilityState) String

func (x DeviceCapabilityState) String() string

func (*DeviceCapabilityState) UnmarshalJSON

func (x *DeviceCapabilityState) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DeviceCapabilityState from JSON.

func (*DeviceCapabilityState) UnmarshalProtoJSON

func (x *DeviceCapabilityState) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DeviceCapabilityState from JSON.

func (*DeviceCapabilityState) UnmarshalText

func (x *DeviceCapabilityState) UnmarshalText(b []byte) error

UnmarshalText unmarshals the DeviceCapabilityState from text.

type DeviceCheckoutRootAccess

type DeviceCheckoutRootAccess int32

DeviceCheckoutRootAccess is the checkout-root access mode advertised by a Device.

const (
	// DEVICE_CHECKOUT_ROOT_ACCESS_UNKNOWN is unset.
	DeviceCheckoutRootAccess_DEVICE_CHECKOUT_ROOT_ACCESS_UNKNOWN DeviceCheckoutRootAccess = 0
	// DEVICE_CHECKOUT_ROOT_ACCESS_READ_ONLY means the checkout root can be read but not mutated.
	DeviceCheckoutRootAccess_DEVICE_CHECKOUT_ROOT_ACCESS_READ_ONLY DeviceCheckoutRootAccess = 1
	// DEVICE_CHECKOUT_ROOT_ACCESS_READ_WRITE means the checkout root can be read and written after approval.
	DeviceCheckoutRootAccess_DEVICE_CHECKOUT_ROOT_ACCESS_READ_WRITE DeviceCheckoutRootAccess = 2
)

func (DeviceCheckoutRootAccess) Enum

func (DeviceCheckoutRootAccess) MarshalJSON

func (x DeviceCheckoutRootAccess) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DeviceCheckoutRootAccess to JSON.

func (DeviceCheckoutRootAccess) MarshalProtoJSON

func (x DeviceCheckoutRootAccess) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DeviceCheckoutRootAccess to JSON.

func (DeviceCheckoutRootAccess) MarshalProtoText

func (x DeviceCheckoutRootAccess) MarshalProtoText() string

func (DeviceCheckoutRootAccess) MarshalText

func (x DeviceCheckoutRootAccess) MarshalText() ([]byte, error)

MarshalText marshals the DeviceCheckoutRootAccess to text.

func (DeviceCheckoutRootAccess) String

func (x DeviceCheckoutRootAccess) String() string

func (*DeviceCheckoutRootAccess) UnmarshalJSON

func (x *DeviceCheckoutRootAccess) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DeviceCheckoutRootAccess from JSON.

func (*DeviceCheckoutRootAccess) UnmarshalProtoJSON

func (x *DeviceCheckoutRootAccess) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DeviceCheckoutRootAccess from JSON.

func (*DeviceCheckoutRootAccess) UnmarshalText

func (x *DeviceCheckoutRootAccess) UnmarshalText(b []byte) error

UnmarshalText unmarshals the DeviceCheckoutRootAccess from text.

type DeviceCheckoutRootCapability

type DeviceCheckoutRootCapability struct {

	// Name is the stable checkout-root selector, such as skiffos.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// DisplayPath is a human-readable path or mount label.
	DisplayPath string `protobuf:"bytes,2,opt,name=display_path,json=displayPath,proto3" json:"displayPath,omitempty"`
	// SelectionRef is the durable local policy selector for this root.
	SelectionRef string `protobuf:"bytes,3,opt,name=selection_ref,json=selectionRef,proto3" json:"selectionRef,omitempty"`
	// Access is the read/write mode currently exposed by the Device policy.
	Access DeviceCheckoutRootAccess `protobuf:"varint,4,opt,name=access,proto3" json:"access,omitempty"`
	// ReadAvailable reports whether the linked filesystem owner may be opened for reads.
	ReadAvailable bool `protobuf:"varint,5,opt,name=read_available,json=readAvailable,proto3" json:"readAvailable,omitempty"`
	// WriteAvailable reports whether the linked filesystem owner may accept writes after approval.
	WriteAvailable bool `protobuf:"varint,6,opt,name=write_available,json=writeAvailable,proto3" json:"writeAvailable,omitempty"`
	// contains filtered or unexported fields
}

DeviceCheckoutRootCapability records selection metadata for a named checkout root.

func (*DeviceCheckoutRootCapability) CloneMessageVT

func (*DeviceCheckoutRootCapability) CloneVT

func (*DeviceCheckoutRootCapability) EqualMessageVT

func (this *DeviceCheckoutRootCapability) EqualMessageVT(thatMsg any) bool

func (*DeviceCheckoutRootCapability) EqualVT

func (*DeviceCheckoutRootCapability) GetAccess

func (*DeviceCheckoutRootCapability) GetDisplayPath

func (x *DeviceCheckoutRootCapability) GetDisplayPath() string

func (*DeviceCheckoutRootCapability) GetName

func (x *DeviceCheckoutRootCapability) GetName() string

func (*DeviceCheckoutRootCapability) GetReadAvailable

func (x *DeviceCheckoutRootCapability) GetReadAvailable() bool

func (*DeviceCheckoutRootCapability) GetSelectionRef

func (x *DeviceCheckoutRootCapability) GetSelectionRef() string

func (*DeviceCheckoutRootCapability) GetWriteAvailable

func (x *DeviceCheckoutRootCapability) GetWriteAvailable() bool

func (*DeviceCheckoutRootCapability) MarshalJSON

func (x *DeviceCheckoutRootCapability) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DeviceCheckoutRootCapability to JSON.

func (*DeviceCheckoutRootCapability) MarshalProtoJSON

func (x *DeviceCheckoutRootCapability) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DeviceCheckoutRootCapability message to JSON.

func (*DeviceCheckoutRootCapability) MarshalProtoText

func (x *DeviceCheckoutRootCapability) MarshalProtoText() string

func (*DeviceCheckoutRootCapability) MarshalToSizedBufferVT

func (m *DeviceCheckoutRootCapability) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DeviceCheckoutRootCapability) MarshalToVT

func (m *DeviceCheckoutRootCapability) MarshalToVT(dAtA []byte) (int, error)

func (*DeviceCheckoutRootCapability) MarshalVT

func (m *DeviceCheckoutRootCapability) MarshalVT() (dAtA []byte, err error)

func (*DeviceCheckoutRootCapability) ProtoMessage

func (*DeviceCheckoutRootCapability) ProtoMessage()

func (*DeviceCheckoutRootCapability) Reset

func (x *DeviceCheckoutRootCapability) Reset()

func (*DeviceCheckoutRootCapability) SizeVT

func (m *DeviceCheckoutRootCapability) SizeVT() (n int)

func (*DeviceCheckoutRootCapability) String

func (*DeviceCheckoutRootCapability) UnmarshalJSON

func (x *DeviceCheckoutRootCapability) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DeviceCheckoutRootCapability from JSON.

func (*DeviceCheckoutRootCapability) UnmarshalProtoJSON

func (x *DeviceCheckoutRootCapability) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DeviceCheckoutRootCapability message from JSON.

func (*DeviceCheckoutRootCapability) UnmarshalVT

func (m *DeviceCheckoutRootCapability) UnmarshalVT(dAtA []byte) error

type DeviceLiveness

type DeviceLiveness int32

DeviceLiveness is durable liveness as last reported by the daemon.

const (
	// DEVICE_LIVENESS_UNKNOWN is unset.
	DeviceLiveness_DEVICE_LIVENESS_UNKNOWN DeviceLiveness = 0
	// DEVICE_LIVENESS_ONLINE means the daemon last reported itself reachable.
	DeviceLiveness_DEVICE_LIVENESS_ONLINE DeviceLiveness = 1
	// DEVICE_LIVENESS_DEGRADED means the daemon last reported partial service.
	DeviceLiveness_DEVICE_LIVENESS_DEGRADED DeviceLiveness = 2
	// DEVICE_LIVENESS_OFFLINE means the daemon last reported a shutdown/offline state.
	DeviceLiveness_DEVICE_LIVENESS_OFFLINE DeviceLiveness = 3
)

func (DeviceLiveness) Enum

func (x DeviceLiveness) Enum() *DeviceLiveness

func (DeviceLiveness) MarshalJSON

func (x DeviceLiveness) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DeviceLiveness to JSON.

func (DeviceLiveness) MarshalProtoJSON

func (x DeviceLiveness) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DeviceLiveness to JSON.

func (DeviceLiveness) MarshalProtoText

func (x DeviceLiveness) MarshalProtoText() string

func (DeviceLiveness) MarshalText

func (x DeviceLiveness) MarshalText() ([]byte, error)

MarshalText marshals the DeviceLiveness to text.

func (DeviceLiveness) String

func (x DeviceLiveness) String() string

func (*DeviceLiveness) UnmarshalJSON

func (x *DeviceLiveness) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DeviceLiveness from JSON.

func (*DeviceLiveness) UnmarshalProtoJSON

func (x *DeviceLiveness) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DeviceLiveness from JSON.

func (*DeviceLiveness) UnmarshalText

func (x *DeviceLiveness) UnmarshalText(b []byte) error

UnmarshalText unmarshals the DeviceLiveness from text.

type DevicePlatform

type DevicePlatform struct {

	// Os is the daemon operating system.
	Os string `protobuf:"bytes,1,opt,name=os,proto3" json:"os,omitempty"`
	// Arch is the daemon architecture.
	Arch string `protobuf:"bytes,2,opt,name=arch,proto3" json:"arch,omitempty"`
	// contains filtered or unexported fields
}

DevicePlatform summarizes the daemon runtime platform.

func (*DevicePlatform) CloneMessageVT

func (m *DevicePlatform) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*DevicePlatform) CloneVT

func (m *DevicePlatform) CloneVT() *DevicePlatform

func (*DevicePlatform) EqualMessageVT

func (this *DevicePlatform) EqualMessageVT(thatMsg any) bool

func (*DevicePlatform) EqualVT

func (this *DevicePlatform) EqualVT(that *DevicePlatform) bool

func (*DevicePlatform) GetArch

func (x *DevicePlatform) GetArch() string

func (*DevicePlatform) GetOs

func (x *DevicePlatform) GetOs() string

func (*DevicePlatform) MarshalJSON

func (x *DevicePlatform) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DevicePlatform to JSON.

func (*DevicePlatform) MarshalProtoJSON

func (x *DevicePlatform) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DevicePlatform message to JSON.

func (*DevicePlatform) MarshalProtoText

func (x *DevicePlatform) MarshalProtoText() string

func (*DevicePlatform) MarshalToSizedBufferVT

func (m *DevicePlatform) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DevicePlatform) MarshalToVT

func (m *DevicePlatform) MarshalToVT(dAtA []byte) (int, error)

func (*DevicePlatform) MarshalVT

func (m *DevicePlatform) MarshalVT() (dAtA []byte, err error)

func (*DevicePlatform) ProtoMessage

func (*DevicePlatform) ProtoMessage()

func (*DevicePlatform) Reset

func (x *DevicePlatform) Reset()

func (*DevicePlatform) SizeVT

func (m *DevicePlatform) SizeVT() (n int)

func (*DevicePlatform) String

func (x *DevicePlatform) String() string

func (*DevicePlatform) UnmarshalJSON

func (x *DevicePlatform) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DevicePlatform from JSON.

func (*DevicePlatform) UnmarshalProtoJSON

func (x *DevicePlatform) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DevicePlatform message from JSON.

func (*DevicePlatform) UnmarshalVT

func (m *DevicePlatform) UnmarshalVT(dAtA []byte) error

type DeviceResource

type DeviceResource struct {
	// contains filtered or unexported fields
}

DeviceResource implements the DeviceResourceService SRPC interface.

func NewDeviceResource

func NewDeviceResource(engine world.Engine, ws world.WorldState, objKey string, state *Device) *DeviceResource

NewDeviceResource creates a new DeviceResource.

func (*DeviceResource) AccessCheckoutRoot

AccessCheckoutRoot opens a selected checkout-root filesystem owner as an FSHandle resource. Write access requires explicit capability and approval metadata before Device creates a writer-backed UnixFS cursor.

func (*DeviceResource) GetMux

func (r *DeviceResource) GetMux() srpc.Mux

GetMux returns the srpc mux for this resource.

func (*DeviceResource) ReportDeviceStatus

ReportDeviceStatus rejects browser-visible status writes.

func (*DeviceResource) WatchDeviceState

WatchDeviceState streams Device state changes from world object revisions.

type DeviceSetupState

type DeviceSetupState int32

DeviceSetupState is the Space-visible setup lifecycle for a managed Device.

const (
	// DEVICE_SETUP_STATE_UNKNOWN is unset.
	DeviceSetupState_DEVICE_SETUP_STATE_UNKNOWN DeviceSetupState = 0
	// DEVICE_SETUP_STATE_WAITING_FOR_COMPLETION means a SpaceLink ticket is pending approval.
	DeviceSetupState_DEVICE_SETUP_STATE_WAITING_FOR_COMPLETION DeviceSetupState = 1
	// DEVICE_SETUP_STATE_COMPLETION_IMPORTED means approval was imported locally.
	DeviceSetupState_DEVICE_SETUP_STATE_COMPLETION_IMPORTED DeviceSetupState = 2
	// DEVICE_SETUP_STATE_DEVICE_SESSION_READY means the approved DEVICE session mounted.
	DeviceSetupState_DEVICE_SETUP_STATE_DEVICE_SESSION_READY DeviceSetupState = 3
	// DEVICE_SETUP_STATE_FAILED means setup stopped in a retryable failure state.
	DeviceSetupState_DEVICE_SETUP_STATE_FAILED DeviceSetupState = 4
)

func (DeviceSetupState) Enum

func (DeviceSetupState) MarshalJSON

func (x DeviceSetupState) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DeviceSetupState to JSON.

func (DeviceSetupState) MarshalProtoJSON

func (x DeviceSetupState) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DeviceSetupState to JSON.

func (DeviceSetupState) MarshalProtoText

func (x DeviceSetupState) MarshalProtoText() string

func (DeviceSetupState) MarshalText

func (x DeviceSetupState) MarshalText() ([]byte, error)

MarshalText marshals the DeviceSetupState to text.

func (DeviceSetupState) String

func (x DeviceSetupState) String() string

func (*DeviceSetupState) UnmarshalJSON

func (x *DeviceSetupState) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DeviceSetupState from JSON.

func (*DeviceSetupState) UnmarshalProtoJSON

func (x *DeviceSetupState) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DeviceSetupState from JSON.

func (*DeviceSetupState) UnmarshalText

func (x *DeviceSetupState) UnmarshalText(b []byte) error

UnmarshalText unmarshals the DeviceSetupState from text.

type DeviceStatus

type DeviceStatus struct {

	// Liveness is the last reported durable liveness.
	Liveness DeviceLiveness `protobuf:"varint,1,opt,name=liveness,proto3" json:"liveness,omitempty"`
	// Message is a short operator-visible status.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// Error is the last reported error, if any.
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// ObservedAt is when the daemon observed this status.
	ObservedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=observed_at,json=observedAt,proto3" json:"observedAt,omitempty"`
	// contains filtered or unexported fields
}

DeviceStatus is the durable last status summary authored by the daemon.

func (*DeviceStatus) CloneMessageVT

func (m *DeviceStatus) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*DeviceStatus) CloneVT

func (m *DeviceStatus) CloneVT() *DeviceStatus

func (*DeviceStatus) EqualMessageVT

func (this *DeviceStatus) EqualMessageVT(thatMsg any) bool

func (*DeviceStatus) EqualVT

func (this *DeviceStatus) EqualVT(that *DeviceStatus) bool

func (*DeviceStatus) GetError

func (x *DeviceStatus) GetError() string

func (*DeviceStatus) GetLiveness

func (x *DeviceStatus) GetLiveness() DeviceLiveness

func (*DeviceStatus) GetMessage

func (x *DeviceStatus) GetMessage() string

func (*DeviceStatus) GetObservedAt

func (x *DeviceStatus) GetObservedAt() *timestamppb.Timestamp

func (*DeviceStatus) MarshalJSON

func (x *DeviceStatus) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DeviceStatus to JSON.

func (*DeviceStatus) MarshalProtoJSON

func (x *DeviceStatus) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DeviceStatus message to JSON.

func (*DeviceStatus) MarshalProtoText

func (x *DeviceStatus) MarshalProtoText() string

func (*DeviceStatus) MarshalToSizedBufferVT

func (m *DeviceStatus) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DeviceStatus) MarshalToVT

func (m *DeviceStatus) MarshalToVT(dAtA []byte) (int, error)

func (*DeviceStatus) MarshalVT

func (m *DeviceStatus) MarshalVT() (dAtA []byte, err error)

func (*DeviceStatus) ProtoMessage

func (*DeviceStatus) ProtoMessage()

func (*DeviceStatus) Reset

func (x *DeviceStatus) Reset()

func (*DeviceStatus) SizeVT

func (m *DeviceStatus) SizeVT() (n int)

func (*DeviceStatus) String

func (x *DeviceStatus) String() string

func (*DeviceStatus) UnmarshalJSON

func (x *DeviceStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DeviceStatus from JSON.

func (*DeviceStatus) UnmarshalProtoJSON

func (x *DeviceStatus) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DeviceStatus message from JSON.

func (*DeviceStatus) UnmarshalVT

func (m *DeviceStatus) UnmarshalVT(dAtA []byte) error

type DeviceUpdateState

type DeviceUpdateState int32

DeviceUpdateState is the durable update lifecycle projection for the daemon.

const (
	// DEVICE_UPDATE_STATE_UNKNOWN is unset.
	DeviceUpdateState_DEVICE_UPDATE_STATE_UNKNOWN DeviceUpdateState = 0
	// DEVICE_UPDATE_STATE_IDLE means no update is pending.
	DeviceUpdateState_DEVICE_UPDATE_STATE_IDLE DeviceUpdateState = 1
	// DEVICE_UPDATE_STATE_READY means an update is ready to stage or apply.
	DeviceUpdateState_DEVICE_UPDATE_STATE_READY DeviceUpdateState = 2
	// DEVICE_UPDATE_STATE_STAGING means update assets are being staged.
	DeviceUpdateState_DEVICE_UPDATE_STATE_STAGING DeviceUpdateState = 3
	// DEVICE_UPDATE_STATE_APPLYING means the daemon is applying an update.
	DeviceUpdateState_DEVICE_UPDATE_STATE_APPLYING DeviceUpdateState = 4
	// DEVICE_UPDATE_STATE_UPDATED means the last update completed.
	DeviceUpdateState_DEVICE_UPDATE_STATE_UPDATED DeviceUpdateState = 5
	// DEVICE_UPDATE_STATE_FAILED means the last update attempt failed.
	DeviceUpdateState_DEVICE_UPDATE_STATE_FAILED DeviceUpdateState = 6
)

func (DeviceUpdateState) Enum

func (DeviceUpdateState) MarshalJSON

func (x DeviceUpdateState) MarshalJSON() ([]byte, error)

MarshalJSON marshals the DeviceUpdateState to JSON.

func (DeviceUpdateState) MarshalProtoJSON

func (x DeviceUpdateState) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the DeviceUpdateState to JSON.

func (DeviceUpdateState) MarshalProtoText

func (x DeviceUpdateState) MarshalProtoText() string

func (DeviceUpdateState) MarshalText

func (x DeviceUpdateState) MarshalText() ([]byte, error)

MarshalText marshals the DeviceUpdateState to text.

func (DeviceUpdateState) String

func (x DeviceUpdateState) String() string

func (*DeviceUpdateState) UnmarshalJSON

func (x *DeviceUpdateState) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the DeviceUpdateState from JSON.

func (*DeviceUpdateState) UnmarshalProtoJSON

func (x *DeviceUpdateState) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the DeviceUpdateState from JSON.

func (*DeviceUpdateState) UnmarshalText

func (x *DeviceUpdateState) UnmarshalText(b []byte) error

UnmarshalText unmarshals the DeviceUpdateState from text.

type ReportDeviceStatusRequest

type ReportDeviceStatusRequest struct {

	// PeerId must match the Device peer_id.
	PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peerId,omitempty"`
	// SetupState updates setup state when not UNKNOWN.
	SetupState DeviceSetupState `protobuf:"varint,2,opt,name=setup_state,json=setupState,proto3" json:"setupState,omitempty"`
	// UpdateState updates update state when not UNKNOWN.
	UpdateState DeviceUpdateState `protobuf:"varint,3,opt,name=update_state,json=updateState,proto3" json:"updateState,omitempty"`
	// LastStatus replaces the durable last status when present.
	LastStatus *DeviceStatus `protobuf:"bytes,4,opt,name=last_status,json=lastStatus,proto3" json:"lastStatus,omitempty"`
	// Capabilities replaces capability summaries when replace_capabilities is true.
	Capabilities []*DeviceCapability `protobuf:"bytes,5,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
	// ReplaceCapabilities enables capability replacement.
	ReplaceCapabilities bool `protobuf:"varint,6,opt,name=replace_capabilities,json=replaceCapabilities,proto3" json:"replaceCapabilities,omitempty"`
	// contains filtered or unexported fields
}

ReportDeviceStatusRequest updates daemon-owned Device status fields.

func (*ReportDeviceStatusRequest) CloneMessageVT

func (*ReportDeviceStatusRequest) CloneVT

func (*ReportDeviceStatusRequest) EqualMessageVT

func (this *ReportDeviceStatusRequest) EqualMessageVT(thatMsg any) bool

func (*ReportDeviceStatusRequest) EqualVT

func (*ReportDeviceStatusRequest) GetCapabilities

func (x *ReportDeviceStatusRequest) GetCapabilities() []*DeviceCapability

func (*ReportDeviceStatusRequest) GetLastStatus

func (x *ReportDeviceStatusRequest) GetLastStatus() *DeviceStatus

func (*ReportDeviceStatusRequest) GetPeerId

func (x *ReportDeviceStatusRequest) GetPeerId() string

func (*ReportDeviceStatusRequest) GetReplaceCapabilities

func (x *ReportDeviceStatusRequest) GetReplaceCapabilities() bool

func (*ReportDeviceStatusRequest) GetSetupState

func (x *ReportDeviceStatusRequest) GetSetupState() DeviceSetupState

func (*ReportDeviceStatusRequest) GetUpdateState

func (x *ReportDeviceStatusRequest) GetUpdateState() DeviceUpdateState

func (*ReportDeviceStatusRequest) MarshalJSON

func (x *ReportDeviceStatusRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ReportDeviceStatusRequest to JSON.

func (*ReportDeviceStatusRequest) MarshalProtoJSON

func (x *ReportDeviceStatusRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ReportDeviceStatusRequest message to JSON.

func (*ReportDeviceStatusRequest) MarshalProtoText

func (x *ReportDeviceStatusRequest) MarshalProtoText() string

func (*ReportDeviceStatusRequest) MarshalToSizedBufferVT

func (m *ReportDeviceStatusRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReportDeviceStatusRequest) MarshalToVT

func (m *ReportDeviceStatusRequest) MarshalToVT(dAtA []byte) (int, error)

func (*ReportDeviceStatusRequest) MarshalVT

func (m *ReportDeviceStatusRequest) MarshalVT() (dAtA []byte, err error)

func (*ReportDeviceStatusRequest) ProtoMessage

func (*ReportDeviceStatusRequest) ProtoMessage()

func (*ReportDeviceStatusRequest) Reset

func (x *ReportDeviceStatusRequest) Reset()

func (*ReportDeviceStatusRequest) SizeVT

func (m *ReportDeviceStatusRequest) SizeVT() (n int)

func (*ReportDeviceStatusRequest) String

func (x *ReportDeviceStatusRequest) String() string

func (*ReportDeviceStatusRequest) UnmarshalJSON

func (x *ReportDeviceStatusRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ReportDeviceStatusRequest from JSON.

func (*ReportDeviceStatusRequest) UnmarshalProtoJSON

func (x *ReportDeviceStatusRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ReportDeviceStatusRequest message from JSON.

func (*ReportDeviceStatusRequest) UnmarshalVT

func (m *ReportDeviceStatusRequest) UnmarshalVT(dAtA []byte) error

type ReportDeviceStatusResponse

type ReportDeviceStatusResponse struct {

	// State is the updated Device block state.
	State *Device `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

ReportDeviceStatusResponse contains the updated Device state.

func (*ReportDeviceStatusResponse) CloneMessageVT

func (*ReportDeviceStatusResponse) CloneVT

func (*ReportDeviceStatusResponse) EqualMessageVT

func (this *ReportDeviceStatusResponse) EqualMessageVT(thatMsg any) bool

func (*ReportDeviceStatusResponse) EqualVT

func (*ReportDeviceStatusResponse) GetState

func (x *ReportDeviceStatusResponse) GetState() *Device

func (*ReportDeviceStatusResponse) MarshalJSON

func (x *ReportDeviceStatusResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ReportDeviceStatusResponse to JSON.

func (*ReportDeviceStatusResponse) MarshalProtoJSON

func (x *ReportDeviceStatusResponse) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ReportDeviceStatusResponse message to JSON.

func (*ReportDeviceStatusResponse) MarshalProtoText

func (x *ReportDeviceStatusResponse) MarshalProtoText() string

func (*ReportDeviceStatusResponse) MarshalToSizedBufferVT

func (m *ReportDeviceStatusResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReportDeviceStatusResponse) MarshalToVT

func (m *ReportDeviceStatusResponse) MarshalToVT(dAtA []byte) (int, error)

func (*ReportDeviceStatusResponse) MarshalVT

func (m *ReportDeviceStatusResponse) MarshalVT() (dAtA []byte, err error)

func (*ReportDeviceStatusResponse) ProtoMessage

func (*ReportDeviceStatusResponse) ProtoMessage()

func (*ReportDeviceStatusResponse) Reset

func (x *ReportDeviceStatusResponse) Reset()

func (*ReportDeviceStatusResponse) SizeVT

func (m *ReportDeviceStatusResponse) SizeVT() (n int)

func (*ReportDeviceStatusResponse) String

func (x *ReportDeviceStatusResponse) String() string

func (*ReportDeviceStatusResponse) UnmarshalJSON

func (x *ReportDeviceStatusResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ReportDeviceStatusResponse from JSON.

func (*ReportDeviceStatusResponse) UnmarshalProtoJSON

func (x *ReportDeviceStatusResponse) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ReportDeviceStatusResponse message from JSON.

func (*ReportDeviceStatusResponse) UnmarshalVT

func (m *ReportDeviceStatusResponse) UnmarshalVT(dAtA []byte) error

type SRPCDeviceResourceServiceClient

type SRPCDeviceResourceServiceClient interface {
	// SRPCClient returns the underlying SRPC client.
	SRPCClient() srpc.Client

	WatchDeviceState(ctx context.Context, in *WatchDeviceStateRequest) (SRPCDeviceResourceService_WatchDeviceStateClient, error)

	ReportDeviceStatus(ctx context.Context, in *ReportDeviceStatusRequest) (*ReportDeviceStatusResponse, error)

	AccessCheckoutRoot(ctx context.Context, in *AccessCheckoutRootRequest) (*AccessCheckoutRootResponse, error)
}

func NewSRPCDeviceResourceServiceClient

func NewSRPCDeviceResourceServiceClient(cc srpc.Client) SRPCDeviceResourceServiceClient

func NewSRPCDeviceResourceServiceClientWithServiceID

func NewSRPCDeviceResourceServiceClientWithServiceID(cc srpc.Client, serviceID string) SRPCDeviceResourceServiceClient

type SRPCDeviceResourceServiceHandler

type SRPCDeviceResourceServiceHandler struct {
	// contains filtered or unexported fields
}

func (SRPCDeviceResourceServiceHandler) GetMethodIDs

func (SRPCDeviceResourceServiceHandler) GetMethodIDs() []string

func (*SRPCDeviceResourceServiceHandler) GetServiceID

func (d *SRPCDeviceResourceServiceHandler) GetServiceID() string

func (*SRPCDeviceResourceServiceHandler) InvokeMethod

func (d *SRPCDeviceResourceServiceHandler) InvokeMethod(
	serviceID, methodID string,
	strm srpc.Stream,
) (bool, error)

func (SRPCDeviceResourceServiceHandler) InvokeMethod_AccessCheckoutRoot

func (SRPCDeviceResourceServiceHandler) InvokeMethod_AccessCheckoutRoot(impl SRPCDeviceResourceServiceServer, strm srpc.Stream) error

func (SRPCDeviceResourceServiceHandler) InvokeMethod_ReportDeviceStatus

func (SRPCDeviceResourceServiceHandler) InvokeMethod_ReportDeviceStatus(impl SRPCDeviceResourceServiceServer, strm srpc.Stream) error

func (SRPCDeviceResourceServiceHandler) InvokeMethod_WatchDeviceState

func (SRPCDeviceResourceServiceHandler) InvokeMethod_WatchDeviceState(impl SRPCDeviceResourceServiceServer, strm srpc.Stream) error

type SRPCDeviceResourceService_AccessCheckoutRootStream

type SRPCDeviceResourceService_AccessCheckoutRootStream interface {
	srpc.Stream
}

type SRPCDeviceResourceService_ReportDeviceStatusStream

type SRPCDeviceResourceService_ReportDeviceStatusStream interface {
	srpc.Stream
}

type SRPCDeviceResourceService_WatchDeviceStateClient

type SRPCDeviceResourceService_WatchDeviceStateClient interface {
	srpc.Stream
	Recv() (*WatchDeviceStateResponse, error)
	RecvTo(*WatchDeviceStateResponse) error
}

type SRPCDeviceResourceService_WatchDeviceStateStream

type SRPCDeviceResourceService_WatchDeviceStateStream interface {
	srpc.Stream
	Send(*WatchDeviceStateResponse) error
	SendAndClose(*WatchDeviceStateResponse) error
}

type WatchDeviceStateRequest

type WatchDeviceStateRequest struct {
	// contains filtered or unexported fields
}

WatchDeviceStateRequest is a request to watch Device state.

func (*WatchDeviceStateRequest) CloneMessageVT

func (*WatchDeviceStateRequest) CloneVT

func (*WatchDeviceStateRequest) EqualMessageVT

func (this *WatchDeviceStateRequest) EqualMessageVT(thatMsg any) bool

func (*WatchDeviceStateRequest) EqualVT

func (*WatchDeviceStateRequest) MarshalJSON

func (x *WatchDeviceStateRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals the WatchDeviceStateRequest to JSON.

func (*WatchDeviceStateRequest) MarshalProtoJSON

func (x *WatchDeviceStateRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the WatchDeviceStateRequest message to JSON.

func (*WatchDeviceStateRequest) MarshalProtoText

func (x *WatchDeviceStateRequest) MarshalProtoText() string

func (*WatchDeviceStateRequest) MarshalToSizedBufferVT

func (m *WatchDeviceStateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*WatchDeviceStateRequest) MarshalToVT

func (m *WatchDeviceStateRequest) MarshalToVT(dAtA []byte) (int, error)

func (*WatchDeviceStateRequest) MarshalVT

func (m *WatchDeviceStateRequest) MarshalVT() (dAtA []byte, err error)

func (*WatchDeviceStateRequest) ProtoMessage

func (*WatchDeviceStateRequest) ProtoMessage()

func (*WatchDeviceStateRequest) Reset

func (x *WatchDeviceStateRequest) Reset()

func (*WatchDeviceStateRequest) SizeVT

func (m *WatchDeviceStateRequest) SizeVT() (n int)

func (*WatchDeviceStateRequest) String

func (x *WatchDeviceStateRequest) String() string

func (*WatchDeviceStateRequest) UnmarshalJSON

func (x *WatchDeviceStateRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the WatchDeviceStateRequest from JSON.

func (*WatchDeviceStateRequest) UnmarshalProtoJSON

func (x *WatchDeviceStateRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the WatchDeviceStateRequest message from JSON.

func (*WatchDeviceStateRequest) UnmarshalVT

func (m *WatchDeviceStateRequest) UnmarshalVT(dAtA []byte) error

type WatchDeviceStateResponse

type WatchDeviceStateResponse struct {

	// State is the current Device block state.
	State *Device `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

WatchDeviceStateResponse contains the current Device state.

func (*WatchDeviceStateResponse) CloneMessageVT

func (*WatchDeviceStateResponse) CloneVT

func (*WatchDeviceStateResponse) EqualMessageVT

func (this *WatchDeviceStateResponse) EqualMessageVT(thatMsg any) bool

func (*WatchDeviceStateResponse) EqualVT

func (*WatchDeviceStateResponse) GetState

func (x *WatchDeviceStateResponse) GetState() *Device

func (*WatchDeviceStateResponse) MarshalJSON

func (x *WatchDeviceStateResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals the WatchDeviceStateResponse to JSON.

func (*WatchDeviceStateResponse) MarshalProtoJSON

func (x *WatchDeviceStateResponse) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the WatchDeviceStateResponse message to JSON.

func (*WatchDeviceStateResponse) MarshalProtoText

func (x *WatchDeviceStateResponse) MarshalProtoText() string

func (*WatchDeviceStateResponse) MarshalToSizedBufferVT

func (m *WatchDeviceStateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*WatchDeviceStateResponse) MarshalToVT

func (m *WatchDeviceStateResponse) MarshalToVT(dAtA []byte) (int, error)

func (*WatchDeviceStateResponse) MarshalVT

func (m *WatchDeviceStateResponse) MarshalVT() (dAtA []byte, err error)

func (*WatchDeviceStateResponse) ProtoMessage

func (*WatchDeviceStateResponse) ProtoMessage()

func (*WatchDeviceStateResponse) Reset

func (x *WatchDeviceStateResponse) Reset()

func (*WatchDeviceStateResponse) SizeVT

func (m *WatchDeviceStateResponse) SizeVT() (n int)

func (*WatchDeviceStateResponse) String

func (x *WatchDeviceStateResponse) String() string

func (*WatchDeviceStateResponse) UnmarshalJSON

func (x *WatchDeviceStateResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the WatchDeviceStateResponse from JSON.

func (*WatchDeviceStateResponse) UnmarshalProtoJSON

func (x *WatchDeviceStateResponse) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the WatchDeviceStateResponse message from JSON.

func (*WatchDeviceStateResponse) UnmarshalVT

func (m *WatchDeviceStateResponse) UnmarshalVT(dAtA []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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