Documentation
¶
Index ¶
- Constants
- Variables
- func DeviceCapabilityCanWriteCheckoutRoot(cap *DeviceCapability) bool
- func DeviceCapabilityIsSelectable(cap *DeviceCapability) bool
- func DeviceCapabilityPolicyAllowsWrite(cap *DeviceCapability) bool
- func DeviceCheckoutRootCanRead(checkoutRoot *DeviceCheckoutRootCapability) bool
- func DeviceCheckoutRootCanWrite(checkoutRoot *DeviceCheckoutRootCapability) bool
- func LookupCreateComputersDashboardOp(ctx context.Context, operationTypeID string) (world.Operation, error)
- func NewCreateComputersDashboardOpBlock() block.Block
- func NewDeviceBlock() block.Block
- func NewSRPCDeviceResourceServiceHandler(impl SRPCDeviceResourceServiceServer, serviceID string) srpc.Handler
- func SRPCRegisterDeviceResourceService(mux srpc.Mux, impl SRPCDeviceResourceServiceServer) error
- type AccessCheckoutRootRequest
- func (m *AccessCheckoutRootRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AccessCheckoutRootRequest) CloneVT() *AccessCheckoutRootRequest
- func (this *AccessCheckoutRootRequest) EqualMessageVT(thatMsg any) bool
- func (this *AccessCheckoutRootRequest) EqualVT(that *AccessCheckoutRootRequest) bool
- func (x *AccessCheckoutRootRequest) GetName() string
- func (x *AccessCheckoutRootRequest) GetWrite() bool
- func (x *AccessCheckoutRootRequest) GetWriteApprovalRef() string
- func (x *AccessCheckoutRootRequest) MarshalJSON() ([]byte, error)
- func (x *AccessCheckoutRootRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *AccessCheckoutRootRequest) MarshalProtoText() string
- func (m *AccessCheckoutRootRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AccessCheckoutRootRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *AccessCheckoutRootRequest) MarshalVT() (dAtA []byte, err error)
- func (*AccessCheckoutRootRequest) ProtoMessage()
- func (x *AccessCheckoutRootRequest) Reset()
- func (m *AccessCheckoutRootRequest) SizeVT() (n int)
- func (x *AccessCheckoutRootRequest) String() string
- func (x *AccessCheckoutRootRequest) UnmarshalJSON(b []byte) error
- func (x *AccessCheckoutRootRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AccessCheckoutRootRequest) UnmarshalVT(dAtA []byte) error
- type AccessCheckoutRootResponse
- func (m *AccessCheckoutRootResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AccessCheckoutRootResponse) CloneVT() *AccessCheckoutRootResponse
- func (this *AccessCheckoutRootResponse) EqualMessageVT(thatMsg any) bool
- func (this *AccessCheckoutRootResponse) EqualVT(that *AccessCheckoutRootResponse) bool
- func (x *AccessCheckoutRootResponse) GetCapabilityId() string
- func (x *AccessCheckoutRootResponse) GetCheckoutRoot() *DeviceCheckoutRootCapability
- func (x *AccessCheckoutRootResponse) GetObjectKey() string
- func (x *AccessCheckoutRootResponse) GetResourceId() uint32
- func (x *AccessCheckoutRootResponse) GetTypeId() string
- func (x *AccessCheckoutRootResponse) GetWriteApprovalRef() string
- func (x *AccessCheckoutRootResponse) GetWriteAvailable() bool
- func (x *AccessCheckoutRootResponse) GetWriteEnabled() bool
- func (x *AccessCheckoutRootResponse) MarshalJSON() ([]byte, error)
- func (x *AccessCheckoutRootResponse) MarshalProtoJSON(s *json.MarshalState)
- func (x *AccessCheckoutRootResponse) MarshalProtoText() string
- func (m *AccessCheckoutRootResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AccessCheckoutRootResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *AccessCheckoutRootResponse) MarshalVT() (dAtA []byte, err error)
- func (*AccessCheckoutRootResponse) ProtoMessage()
- func (x *AccessCheckoutRootResponse) Reset()
- func (m *AccessCheckoutRootResponse) SizeVT() (n int)
- func (x *AccessCheckoutRootResponse) String() string
- func (x *AccessCheckoutRootResponse) UnmarshalJSON(b []byte) error
- func (x *AccessCheckoutRootResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AccessCheckoutRootResponse) UnmarshalVT(dAtA []byte) error
- type ComputersDashboard
- func (m *ComputersDashboard) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ComputersDashboard) CloneVT() *ComputersDashboard
- func (this *ComputersDashboard) EqualMessageVT(thatMsg any) bool
- func (this *ComputersDashboard) EqualVT(that *ComputersDashboard) bool
- func (d *ComputersDashboard) GetBlockTypeId() string
- func (x *ComputersDashboard) GetCreatedAt() *timestamppb.Timestamp
- func (x *ComputersDashboard) GetName() string
- func (d *ComputersDashboard) MarshalBlock() ([]byte, error)
- func (x *ComputersDashboard) MarshalJSON() ([]byte, error)
- func (x *ComputersDashboard) MarshalProtoJSON(s *json.MarshalState)
- func (x *ComputersDashboard) MarshalProtoText() string
- func (m *ComputersDashboard) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ComputersDashboard) MarshalToVT(dAtA []byte) (int, error)
- func (m *ComputersDashboard) MarshalVT() (dAtA []byte, err error)
- func (*ComputersDashboard) ProtoMessage()
- func (x *ComputersDashboard) Reset()
- func (m *ComputersDashboard) SizeVT() (n int)
- func (x *ComputersDashboard) String() string
- func (d *ComputersDashboard) UnmarshalBlock(data []byte) error
- func (x *ComputersDashboard) UnmarshalJSON(b []byte) error
- func (x *ComputersDashboard) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ComputersDashboard) UnmarshalVT(dAtA []byte) error
- func (d *ComputersDashboard) Validate() error
- type CreateComputersDashboardOp
- func (o *CreateComputersDashboardOp) ApplyWorldObjectOp(ctx context.Context, le *logrus.Entry, os world.ObjectState, sender peer.ID) (sysErr bool, err error)
- func (o *CreateComputersDashboardOp) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (sysErr bool, err error)
- func (m *CreateComputersDashboardOp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *CreateComputersDashboardOp) CloneVT() *CreateComputersDashboardOp
- func (this *CreateComputersDashboardOp) EqualMessageVT(thatMsg any) bool
- func (this *CreateComputersDashboardOp) EqualVT(that *CreateComputersDashboardOp) bool
- func (x *CreateComputersDashboardOp) GetName() string
- func (x *CreateComputersDashboardOp) GetObjectKey() string
- func (o *CreateComputersDashboardOp) GetOperationTypeId() string
- func (x *CreateComputersDashboardOp) GetTimestamp() *timestamppb.Timestamp
- func (o *CreateComputersDashboardOp) MarshalBlock() ([]byte, error)
- func (x *CreateComputersDashboardOp) MarshalJSON() ([]byte, error)
- func (x *CreateComputersDashboardOp) MarshalProtoJSON(s *json.MarshalState)
- func (x *CreateComputersDashboardOp) MarshalProtoText() string
- func (m *CreateComputersDashboardOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CreateComputersDashboardOp) MarshalToVT(dAtA []byte) (int, error)
- func (m *CreateComputersDashboardOp) MarshalVT() (dAtA []byte, err error)
- func (*CreateComputersDashboardOp) ProtoMessage()
- func (x *CreateComputersDashboardOp) Reset()
- func (m *CreateComputersDashboardOp) SizeVT() (n int)
- func (x *CreateComputersDashboardOp) String() string
- func (o *CreateComputersDashboardOp) UnmarshalBlock(data []byte) error
- func (x *CreateComputersDashboardOp) UnmarshalJSON(b []byte) error
- func (x *CreateComputersDashboardOp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *CreateComputersDashboardOp) UnmarshalVT(dAtA []byte) error
- func (o *CreateComputersDashboardOp) Validate() error
- type Device
- func (m *Device) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Device) CloneVT() *Device
- func (this *Device) EqualMessageVT(thatMsg any) bool
- func (this *Device) EqualVT(that *Device) bool
- func (d *Device) FindCapabilityByKind(kind string) *DeviceCapability
- func (d *Device) FindReadableCheckoutRoot(name string) *DeviceCapability
- func (d *Device) FindSelectableCheckoutRoot(name string) *DeviceCapability
- func (d *Device) FindSelectableForgeWorker() *DeviceCapability
- func (d *Device) FindWritableCheckoutRoot(name string) *DeviceCapability
- func (x *Device) GetCapabilities() []*DeviceCapability
- func (x *Device) GetCreatedAt() *timestamppb.Timestamp
- func (x *Device) GetDaemonVersion() string
- func (x *Device) GetLabel() string
- func (x *Device) GetLastStatus() *DeviceStatus
- func (x *Device) GetPeerId() string
- func (x *Device) GetPlatform() *DevicePlatform
- func (x *Device) GetSetupState() DeviceSetupState
- func (x *Device) GetUpdateState() DeviceUpdateState
- func (x *Device) GetUpdatedAt() *timestamppb.Timestamp
- func (d *Device) HasSelectableCapabilityKind(kind string) bool
- func (d *Device) IsSelectable() bool
- func (d *Device) MarshalBlock() ([]byte, error)
- func (x *Device) MarshalJSON() ([]byte, error)
- func (x *Device) MarshalProtoJSON(s *json.MarshalState)
- func (x *Device) MarshalProtoText() string
- func (m *Device) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Device) MarshalToVT(dAtA []byte) (int, error)
- func (m *Device) MarshalVT() (dAtA []byte, err error)
- func (*Device) ProtoMessage()
- func (x *Device) Reset()
- func (m *Device) SizeVT() (n int)
- func (x *Device) String() string
- func (d *Device) UnmarshalBlock(data []byte) error
- func (x *Device) UnmarshalJSON(b []byte) error
- func (x *Device) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Device) UnmarshalVT(dAtA []byte) error
- func (d *Device) Validate() error
- type DeviceCapability
- func (m *DeviceCapability) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *DeviceCapability) CloneVT() *DeviceCapability
- func (this *DeviceCapability) EqualMessageVT(thatMsg any) bool
- func (this *DeviceCapability) EqualVT(that *DeviceCapability) bool
- func (x *DeviceCapability) GetCheckoutRoot() *DeviceCheckoutRootCapability
- func (x *DeviceCapability) GetDetail() string
- func (x *DeviceCapability) GetId() string
- func (x *DeviceCapability) GetKind() string
- func (x *DeviceCapability) GetLabel() string
- func (x *DeviceCapability) GetLink() *DeviceCapabilityLink
- func (x *DeviceCapability) GetPolicy() *DeviceCapabilityPolicy
- func (x *DeviceCapability) GetState() DeviceCapabilityState
- func (x *DeviceCapability) MarshalJSON() ([]byte, error)
- func (x *DeviceCapability) MarshalProtoJSON(s *json.MarshalState)
- func (x *DeviceCapability) MarshalProtoText() string
- func (m *DeviceCapability) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DeviceCapability) MarshalToVT(dAtA []byte) (int, error)
- func (m *DeviceCapability) MarshalVT() (dAtA []byte, err error)
- func (*DeviceCapability) ProtoMessage()
- func (x *DeviceCapability) Reset()
- func (m *DeviceCapability) SizeVT() (n int)
- func (x *DeviceCapability) String() string
- func (x *DeviceCapability) UnmarshalJSON(b []byte) error
- func (x *DeviceCapability) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *DeviceCapability) UnmarshalVT(dAtA []byte) error
- type DeviceCapabilityGrantState
- func (x DeviceCapabilityGrantState) Enum() *DeviceCapabilityGrantState
- func (x DeviceCapabilityGrantState) MarshalJSON() ([]byte, error)
- func (x DeviceCapabilityGrantState) MarshalProtoJSON(s *json.MarshalState)
- func (x DeviceCapabilityGrantState) MarshalProtoText() string
- func (x DeviceCapabilityGrantState) MarshalText() ([]byte, error)
- func (x DeviceCapabilityGrantState) String() string
- func (x *DeviceCapabilityGrantState) UnmarshalJSON(b []byte) error
- func (x *DeviceCapabilityGrantState) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *DeviceCapabilityGrantState) UnmarshalText(b []byte) error
- type DeviceCapabilityLink
- func (m *DeviceCapabilityLink) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *DeviceCapabilityLink) CloneVT() *DeviceCapabilityLink
- func (this *DeviceCapabilityLink) EqualMessageVT(thatMsg any) bool
- func (this *DeviceCapabilityLink) EqualVT(that *DeviceCapabilityLink) bool
- func (x *DeviceCapabilityLink) GetObjectKey() string
- func (x *DeviceCapabilityLink) GetProtocolId() string
- func (x *DeviceCapabilityLink) GetTypeId() string
- func (x *DeviceCapabilityLink) MarshalJSON() ([]byte, error)
- func (x *DeviceCapabilityLink) MarshalProtoJSON(s *json.MarshalState)
- func (x *DeviceCapabilityLink) MarshalProtoText() string
- func (m *DeviceCapabilityLink) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DeviceCapabilityLink) MarshalToVT(dAtA []byte) (int, error)
- func (m *DeviceCapabilityLink) MarshalVT() (dAtA []byte, err error)
- func (*DeviceCapabilityLink) ProtoMessage()
- func (x *DeviceCapabilityLink) Reset()
- func (m *DeviceCapabilityLink) SizeVT() (n int)
- func (x *DeviceCapabilityLink) String() string
- func (x *DeviceCapabilityLink) UnmarshalJSON(b []byte) error
- func (x *DeviceCapabilityLink) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *DeviceCapabilityLink) UnmarshalVT(dAtA []byte) error
- type DeviceCapabilityLocalState
- func (x DeviceCapabilityLocalState) Enum() *DeviceCapabilityLocalState
- func (x DeviceCapabilityLocalState) MarshalJSON() ([]byte, error)
- func (x DeviceCapabilityLocalState) MarshalProtoJSON(s *json.MarshalState)
- func (x DeviceCapabilityLocalState) MarshalProtoText() string
- func (x DeviceCapabilityLocalState) MarshalText() ([]byte, error)
- func (x DeviceCapabilityLocalState) String() string
- func (x *DeviceCapabilityLocalState) UnmarshalJSON(b []byte) error
- func (x *DeviceCapabilityLocalState) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *DeviceCapabilityLocalState) UnmarshalText(b []byte) error
- type DeviceCapabilityPolicy
- func (m *DeviceCapabilityPolicy) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *DeviceCapabilityPolicy) CloneVT() *DeviceCapabilityPolicy
- func (this *DeviceCapabilityPolicy) EqualMessageVT(thatMsg any) bool
- func (this *DeviceCapabilityPolicy) EqualVT(that *DeviceCapabilityPolicy) bool
- func (x *DeviceCapabilityPolicy) GetGrantPolicyRef() string
- func (x *DeviceCapabilityPolicy) GetGrantState() DeviceCapabilityGrantState
- func (x *DeviceCapabilityPolicy) GetLocalPolicyRef() string
- func (x *DeviceCapabilityPolicy) GetLocalState() DeviceCapabilityLocalState
- func (x *DeviceCapabilityPolicy) MarshalJSON() ([]byte, error)
- func (x *DeviceCapabilityPolicy) MarshalProtoJSON(s *json.MarshalState)
- func (x *DeviceCapabilityPolicy) MarshalProtoText() string
- func (m *DeviceCapabilityPolicy) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DeviceCapabilityPolicy) MarshalToVT(dAtA []byte) (int, error)
- func (m *DeviceCapabilityPolicy) MarshalVT() (dAtA []byte, err error)
- func (*DeviceCapabilityPolicy) ProtoMessage()
- func (x *DeviceCapabilityPolicy) Reset()
- func (m *DeviceCapabilityPolicy) SizeVT() (n int)
- func (x *DeviceCapabilityPolicy) String() string
- func (x *DeviceCapabilityPolicy) UnmarshalJSON(b []byte) error
- func (x *DeviceCapabilityPolicy) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *DeviceCapabilityPolicy) UnmarshalVT(dAtA []byte) error
- type DeviceCapabilityState
- func (x DeviceCapabilityState) Enum() *DeviceCapabilityState
- func (x DeviceCapabilityState) MarshalJSON() ([]byte, error)
- func (x DeviceCapabilityState) MarshalProtoJSON(s *json.MarshalState)
- func (x DeviceCapabilityState) MarshalProtoText() string
- func (x DeviceCapabilityState) MarshalText() ([]byte, error)
- func (x DeviceCapabilityState) String() string
- func (x *DeviceCapabilityState) UnmarshalJSON(b []byte) error
- func (x *DeviceCapabilityState) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *DeviceCapabilityState) UnmarshalText(b []byte) error
- type DeviceCheckoutRootAccess
- func (x DeviceCheckoutRootAccess) Enum() *DeviceCheckoutRootAccess
- func (x DeviceCheckoutRootAccess) MarshalJSON() ([]byte, error)
- func (x DeviceCheckoutRootAccess) MarshalProtoJSON(s *json.MarshalState)
- func (x DeviceCheckoutRootAccess) MarshalProtoText() string
- func (x DeviceCheckoutRootAccess) MarshalText() ([]byte, error)
- func (x DeviceCheckoutRootAccess) String() string
- func (x *DeviceCheckoutRootAccess) UnmarshalJSON(b []byte) error
- func (x *DeviceCheckoutRootAccess) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *DeviceCheckoutRootAccess) UnmarshalText(b []byte) error
- type DeviceCheckoutRootCapability
- func (m *DeviceCheckoutRootCapability) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *DeviceCheckoutRootCapability) CloneVT() *DeviceCheckoutRootCapability
- func (this *DeviceCheckoutRootCapability) EqualMessageVT(thatMsg any) bool
- func (this *DeviceCheckoutRootCapability) EqualVT(that *DeviceCheckoutRootCapability) bool
- func (x *DeviceCheckoutRootCapability) GetAccess() DeviceCheckoutRootAccess
- func (x *DeviceCheckoutRootCapability) GetDisplayPath() string
- func (x *DeviceCheckoutRootCapability) GetName() string
- func (x *DeviceCheckoutRootCapability) GetReadAvailable() bool
- func (x *DeviceCheckoutRootCapability) GetSelectionRef() string
- func (x *DeviceCheckoutRootCapability) GetWriteAvailable() bool
- func (x *DeviceCheckoutRootCapability) MarshalJSON() ([]byte, error)
- func (x *DeviceCheckoutRootCapability) MarshalProtoJSON(s *json.MarshalState)
- func (x *DeviceCheckoutRootCapability) MarshalProtoText() string
- func (m *DeviceCheckoutRootCapability) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DeviceCheckoutRootCapability) MarshalToVT(dAtA []byte) (int, error)
- func (m *DeviceCheckoutRootCapability) MarshalVT() (dAtA []byte, err error)
- func (*DeviceCheckoutRootCapability) ProtoMessage()
- func (x *DeviceCheckoutRootCapability) Reset()
- func (m *DeviceCheckoutRootCapability) SizeVT() (n int)
- func (x *DeviceCheckoutRootCapability) String() string
- func (x *DeviceCheckoutRootCapability) UnmarshalJSON(b []byte) error
- func (x *DeviceCheckoutRootCapability) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *DeviceCheckoutRootCapability) UnmarshalVT(dAtA []byte) error
- type DeviceLiveness
- func (x DeviceLiveness) Enum() *DeviceLiveness
- func (x DeviceLiveness) MarshalJSON() ([]byte, error)
- func (x DeviceLiveness) MarshalProtoJSON(s *json.MarshalState)
- func (x DeviceLiveness) MarshalProtoText() string
- func (x DeviceLiveness) MarshalText() ([]byte, error)
- func (x DeviceLiveness) String() string
- func (x *DeviceLiveness) UnmarshalJSON(b []byte) error
- func (x *DeviceLiveness) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *DeviceLiveness) UnmarshalText(b []byte) error
- type DevicePlatform
- func (m *DevicePlatform) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *DevicePlatform) CloneVT() *DevicePlatform
- func (this *DevicePlatform) EqualMessageVT(thatMsg any) bool
- func (this *DevicePlatform) EqualVT(that *DevicePlatform) bool
- func (x *DevicePlatform) GetArch() string
- func (x *DevicePlatform) GetOs() string
- func (x *DevicePlatform) MarshalJSON() ([]byte, error)
- func (x *DevicePlatform) MarshalProtoJSON(s *json.MarshalState)
- func (x *DevicePlatform) MarshalProtoText() string
- func (m *DevicePlatform) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DevicePlatform) MarshalToVT(dAtA []byte) (int, error)
- func (m *DevicePlatform) MarshalVT() (dAtA []byte, err error)
- func (*DevicePlatform) ProtoMessage()
- func (x *DevicePlatform) Reset()
- func (m *DevicePlatform) SizeVT() (n int)
- func (x *DevicePlatform) String() string
- func (x *DevicePlatform) UnmarshalJSON(b []byte) error
- func (x *DevicePlatform) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *DevicePlatform) UnmarshalVT(dAtA []byte) error
- type DeviceResource
- func (r *DeviceResource) AccessCheckoutRoot(ctx context.Context, req *AccessCheckoutRootRequest) (*AccessCheckoutRootResponse, error)
- func (r *DeviceResource) GetMux() srpc.Mux
- func (r *DeviceResource) ReportDeviceStatus(ctx context.Context, req *ReportDeviceStatusRequest) (*ReportDeviceStatusResponse, error)
- func (r *DeviceResource) WatchDeviceState(_ *WatchDeviceStateRequest, ...) error
- type DeviceSetupState
- func (x DeviceSetupState) Enum() *DeviceSetupState
- func (x DeviceSetupState) MarshalJSON() ([]byte, error)
- func (x DeviceSetupState) MarshalProtoJSON(s *json.MarshalState)
- func (x DeviceSetupState) MarshalProtoText() string
- func (x DeviceSetupState) MarshalText() ([]byte, error)
- func (x DeviceSetupState) String() string
- func (x *DeviceSetupState) UnmarshalJSON(b []byte) error
- func (x *DeviceSetupState) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *DeviceSetupState) UnmarshalText(b []byte) error
- type DeviceStatus
- func (m *DeviceStatus) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *DeviceStatus) CloneVT() *DeviceStatus
- func (this *DeviceStatus) EqualMessageVT(thatMsg any) bool
- func (this *DeviceStatus) EqualVT(that *DeviceStatus) bool
- func (x *DeviceStatus) GetError() string
- func (x *DeviceStatus) GetLiveness() DeviceLiveness
- func (x *DeviceStatus) GetMessage() string
- func (x *DeviceStatus) GetObservedAt() *timestamppb.Timestamp
- func (x *DeviceStatus) MarshalJSON() ([]byte, error)
- func (x *DeviceStatus) MarshalProtoJSON(s *json.MarshalState)
- func (x *DeviceStatus) MarshalProtoText() string
- func (m *DeviceStatus) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DeviceStatus) MarshalToVT(dAtA []byte) (int, error)
- func (m *DeviceStatus) MarshalVT() (dAtA []byte, err error)
- func (*DeviceStatus) ProtoMessage()
- func (x *DeviceStatus) Reset()
- func (m *DeviceStatus) SizeVT() (n int)
- func (x *DeviceStatus) String() string
- func (x *DeviceStatus) UnmarshalJSON(b []byte) error
- func (x *DeviceStatus) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *DeviceStatus) UnmarshalVT(dAtA []byte) error
- type DeviceUpdateState
- func (x DeviceUpdateState) Enum() *DeviceUpdateState
- func (x DeviceUpdateState) MarshalJSON() ([]byte, error)
- func (x DeviceUpdateState) MarshalProtoJSON(s *json.MarshalState)
- func (x DeviceUpdateState) MarshalProtoText() string
- func (x DeviceUpdateState) MarshalText() ([]byte, error)
- func (x DeviceUpdateState) String() string
- func (x *DeviceUpdateState) UnmarshalJSON(b []byte) error
- func (x *DeviceUpdateState) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *DeviceUpdateState) UnmarshalText(b []byte) error
- type ReportDeviceStatusRequest
- func (m *ReportDeviceStatusRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ReportDeviceStatusRequest) CloneVT() *ReportDeviceStatusRequest
- func (this *ReportDeviceStatusRequest) EqualMessageVT(thatMsg any) bool
- func (this *ReportDeviceStatusRequest) EqualVT(that *ReportDeviceStatusRequest) bool
- func (x *ReportDeviceStatusRequest) GetCapabilities() []*DeviceCapability
- func (x *ReportDeviceStatusRequest) GetLastStatus() *DeviceStatus
- func (x *ReportDeviceStatusRequest) GetPeerId() string
- func (x *ReportDeviceStatusRequest) GetReplaceCapabilities() bool
- func (x *ReportDeviceStatusRequest) GetSetupState() DeviceSetupState
- func (x *ReportDeviceStatusRequest) GetUpdateState() DeviceUpdateState
- func (x *ReportDeviceStatusRequest) MarshalJSON() ([]byte, error)
- func (x *ReportDeviceStatusRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *ReportDeviceStatusRequest) MarshalProtoText() string
- func (m *ReportDeviceStatusRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ReportDeviceStatusRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *ReportDeviceStatusRequest) MarshalVT() (dAtA []byte, err error)
- func (*ReportDeviceStatusRequest) ProtoMessage()
- func (x *ReportDeviceStatusRequest) Reset()
- func (m *ReportDeviceStatusRequest) SizeVT() (n int)
- func (x *ReportDeviceStatusRequest) String() string
- func (x *ReportDeviceStatusRequest) UnmarshalJSON(b []byte) error
- func (x *ReportDeviceStatusRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ReportDeviceStatusRequest) UnmarshalVT(dAtA []byte) error
- type ReportDeviceStatusResponse
- func (m *ReportDeviceStatusResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ReportDeviceStatusResponse) CloneVT() *ReportDeviceStatusResponse
- func (this *ReportDeviceStatusResponse) EqualMessageVT(thatMsg any) bool
- func (this *ReportDeviceStatusResponse) EqualVT(that *ReportDeviceStatusResponse) bool
- func (x *ReportDeviceStatusResponse) GetState() *Device
- func (x *ReportDeviceStatusResponse) MarshalJSON() ([]byte, error)
- func (x *ReportDeviceStatusResponse) MarshalProtoJSON(s *json.MarshalState)
- func (x *ReportDeviceStatusResponse) MarshalProtoText() string
- func (m *ReportDeviceStatusResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ReportDeviceStatusResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *ReportDeviceStatusResponse) MarshalVT() (dAtA []byte, err error)
- func (*ReportDeviceStatusResponse) ProtoMessage()
- func (x *ReportDeviceStatusResponse) Reset()
- func (m *ReportDeviceStatusResponse) SizeVT() (n int)
- func (x *ReportDeviceStatusResponse) String() string
- func (x *ReportDeviceStatusResponse) UnmarshalJSON(b []byte) error
- func (x *ReportDeviceStatusResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ReportDeviceStatusResponse) UnmarshalVT(dAtA []byte) error
- type SRPCDeviceResourceServiceClient
- type SRPCDeviceResourceServiceHandler
- func (SRPCDeviceResourceServiceHandler) GetMethodIDs() []string
- func (d *SRPCDeviceResourceServiceHandler) GetServiceID() string
- func (d *SRPCDeviceResourceServiceHandler) InvokeMethod(serviceID, methodID string, strm srpc.Stream) (bool, error)
- func (SRPCDeviceResourceServiceHandler) InvokeMethod_AccessCheckoutRoot(impl SRPCDeviceResourceServiceServer, strm srpc.Stream) error
- func (SRPCDeviceResourceServiceHandler) InvokeMethod_ReportDeviceStatus(impl SRPCDeviceResourceServiceServer, strm srpc.Stream) error
- func (SRPCDeviceResourceServiceHandler) InvokeMethod_WatchDeviceState(impl SRPCDeviceResourceServiceServer, strm srpc.Stream) error
- type SRPCDeviceResourceServiceServer
- type SRPCDeviceResourceService_AccessCheckoutRootStream
- type SRPCDeviceResourceService_ReportDeviceStatusStream
- type SRPCDeviceResourceService_WatchDeviceStateClient
- type SRPCDeviceResourceService_WatchDeviceStateStream
- type WatchDeviceStateRequest
- func (m *WatchDeviceStateRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *WatchDeviceStateRequest) CloneVT() *WatchDeviceStateRequest
- func (this *WatchDeviceStateRequest) EqualMessageVT(thatMsg any) bool
- func (this *WatchDeviceStateRequest) EqualVT(that *WatchDeviceStateRequest) bool
- func (x *WatchDeviceStateRequest) MarshalJSON() ([]byte, error)
- func (x *WatchDeviceStateRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *WatchDeviceStateRequest) MarshalProtoText() string
- func (m *WatchDeviceStateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *WatchDeviceStateRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *WatchDeviceStateRequest) MarshalVT() (dAtA []byte, err error)
- func (*WatchDeviceStateRequest) ProtoMessage()
- func (x *WatchDeviceStateRequest) Reset()
- func (m *WatchDeviceStateRequest) SizeVT() (n int)
- func (x *WatchDeviceStateRequest) String() string
- func (x *WatchDeviceStateRequest) UnmarshalJSON(b []byte) error
- func (x *WatchDeviceStateRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *WatchDeviceStateRequest) UnmarshalVT(dAtA []byte) error
- type WatchDeviceStateResponse
- func (m *WatchDeviceStateResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *WatchDeviceStateResponse) CloneVT() *WatchDeviceStateResponse
- func (this *WatchDeviceStateResponse) EqualMessageVT(thatMsg any) bool
- func (this *WatchDeviceStateResponse) EqualVT(that *WatchDeviceStateResponse) bool
- func (x *WatchDeviceStateResponse) GetState() *Device
- func (x *WatchDeviceStateResponse) MarshalJSON() ([]byte, error)
- func (x *WatchDeviceStateResponse) MarshalProtoJSON(s *json.MarshalState)
- func (x *WatchDeviceStateResponse) MarshalProtoText() string
- func (m *WatchDeviceStateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *WatchDeviceStateResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *WatchDeviceStateResponse) MarshalVT() (dAtA []byte, err error)
- func (*WatchDeviceStateResponse) ProtoMessage()
- func (x *WatchDeviceStateResponse) Reset()
- func (m *WatchDeviceStateResponse) SizeVT() (n int)
- func (x *WatchDeviceStateResponse) String() string
- func (x *WatchDeviceStateResponse) UnmarshalJSON(b []byte) error
- func (x *WatchDeviceStateResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *WatchDeviceStateResponse) UnmarshalVT(dAtA []byte) error
Constants ¶
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" )
const ComputersDashboardTypeID = "spacewave/computers"
ComputersDashboardTypeID is the object type identifier for Computers dashboards.
const DeviceTypeID = "spacewave/device"
DeviceTypeID is the type identifier for Spacewave-managed Device objects.
const SRPCDeviceResourceServiceServiceID = "s4wave.device.DeviceResourceService"
Variables ¶
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.
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.
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.
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.
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.
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.
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.
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 ¶
NewCreateComputersDashboardOpBlock constructs a CreateComputersDashboardOp block.
func NewDeviceBlock ¶
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 (m *AccessCheckoutRootRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*AccessCheckoutRootRequest) CloneVT ¶
func (m *AccessCheckoutRootRequest) CloneVT() *AccessCheckoutRootRequest
func (*AccessCheckoutRootRequest) EqualMessageVT ¶
func (this *AccessCheckoutRootRequest) EqualMessageVT(thatMsg any) bool
func (*AccessCheckoutRootRequest) EqualVT ¶
func (this *AccessCheckoutRootRequest) EqualVT(that *AccessCheckoutRootRequest) bool
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 (m *AccessCheckoutRootResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*AccessCheckoutRootResponse) CloneVT ¶
func (m *AccessCheckoutRootResponse) CloneVT() *AccessCheckoutRootResponse
func (*AccessCheckoutRootResponse) EqualMessageVT ¶
func (this *AccessCheckoutRootResponse) EqualMessageVT(thatMsg any) bool
func (*AccessCheckoutRootResponse) EqualVT ¶
func (this *AccessCheckoutRootResponse) EqualVT(that *AccessCheckoutRootResponse) bool
func (*AccessCheckoutRootResponse) GetCapabilityId ¶
func (x *AccessCheckoutRootResponse) GetCapabilityId() string
func (*AccessCheckoutRootResponse) GetCheckoutRoot ¶
func (x *AccessCheckoutRootResponse) GetCheckoutRoot() *DeviceCheckoutRootCapability
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 (m *CreateComputersDashboardOp) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*CreateComputersDashboardOp) CloneVT ¶
func (m *CreateComputersDashboardOp) CloneVT() *CreateComputersDashboardOp
func (*CreateComputersDashboardOp) EqualMessageVT ¶
func (this *CreateComputersDashboardOp) EqualMessageVT(thatMsg any) bool
func (*CreateComputersDashboardOp) EqualVT ¶
func (this *CreateComputersDashboardOp) EqualVT(that *CreateComputersDashboardOp) bool
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 (x *CreateComputersDashboardOp) GetTimestamp() *timestamppb.Timestamp
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 ¶
UnmarshalDevice unmarshals a Device from a cursor.
func (*Device) CloneMessageVT ¶
func (m *Device) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Device) EqualMessageVT ¶
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 (*Device) GetLastStatus ¶
func (x *Device) GetLastStatus() *DeviceStatus
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 ¶
HasSelectableCapabilityKind reports whether the Device exposes a selectable capability of the requested kind.
func (*Device) IsSelectable ¶
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 ¶
MarshalBlock marshals the Device to bytes.
func (*Device) MarshalJSON ¶
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 (*Device) MarshalToSizedBufferVT ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) UnmarshalBlock ¶
UnmarshalBlock unmarshals the Device from bytes.
func (*Device) UnmarshalJSON ¶
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 ¶
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 (*DeviceCapability) GetLink ¶
func (x *DeviceCapability) GetLink() *DeviceCapabilityLink
func (*DeviceCapability) GetPolicy ¶
func (x *DeviceCapability) GetPolicy() *DeviceCapabilityPolicy
func (*DeviceCapability) GetState ¶
func (x *DeviceCapability) GetState() DeviceCapabilityState
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 (x DeviceCapabilityGrantState) Enum() *DeviceCapabilityGrantState
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 (x DeviceCapabilityGrantState) String() 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 ¶
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 (m *DeviceCapabilityLink) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*DeviceCapabilityLink) CloneVT ¶
func (m *DeviceCapabilityLink) CloneVT() *DeviceCapabilityLink
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 (x DeviceCapabilityLocalState) Enum() *DeviceCapabilityLocalState
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 (x DeviceCapabilityLocalState) String() 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 (m *DeviceCapabilityPolicy) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*DeviceCapabilityPolicy) CloneVT ¶
func (m *DeviceCapabilityPolicy) CloneVT() *DeviceCapabilityPolicy
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 (x *DeviceCapabilityPolicy) GetGrantState() DeviceCapabilityGrantState
func (*DeviceCapabilityPolicy) GetLocalPolicyRef ¶
func (x *DeviceCapabilityPolicy) GetLocalPolicyRef() string
func (*DeviceCapabilityPolicy) GetLocalState ¶
func (x *DeviceCapabilityPolicy) GetLocalState() DeviceCapabilityLocalState
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 (x DeviceCapabilityState) Enum() *DeviceCapabilityState
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 (x DeviceCheckoutRootAccess) Enum() *DeviceCheckoutRootAccess
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 (m *DeviceCheckoutRootCapability) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*DeviceCheckoutRootCapability) CloneVT ¶
func (m *DeviceCheckoutRootCapability) CloneVT() *DeviceCheckoutRootCapability
func (*DeviceCheckoutRootCapability) EqualMessageVT ¶
func (this *DeviceCheckoutRootCapability) EqualMessageVT(thatMsg any) bool
func (*DeviceCheckoutRootCapability) EqualVT ¶
func (this *DeviceCheckoutRootCapability) EqualVT(that *DeviceCheckoutRootCapability) bool
func (*DeviceCheckoutRootCapability) GetAccess ¶
func (x *DeviceCheckoutRootCapability) GetAccess() DeviceCheckoutRootAccess
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 (x *DeviceCheckoutRootCapability) String() 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 ¶
func (r *DeviceResource) AccessCheckoutRoot(ctx context.Context, req *AccessCheckoutRootRequest) (*AccessCheckoutRootResponse, error)
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 ¶
func (r *DeviceResource) ReportDeviceStatus(ctx context.Context, req *ReportDeviceStatusRequest) (*ReportDeviceStatusResponse, error)
ReportDeviceStatus rejects browser-visible status writes.
func (*DeviceResource) WatchDeviceState ¶
func (r *DeviceResource) WatchDeviceState(_ *WatchDeviceStateRequest, strm SRPCDeviceResourceService_WatchDeviceStateStream) error
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 (x DeviceSetupState) Enum() *DeviceSetupState
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 (x DeviceUpdateState) Enum() *DeviceUpdateState
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 (m *ReportDeviceStatusRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ReportDeviceStatusRequest) CloneVT ¶
func (m *ReportDeviceStatusRequest) CloneVT() *ReportDeviceStatusRequest
func (*ReportDeviceStatusRequest) EqualMessageVT ¶
func (this *ReportDeviceStatusRequest) EqualMessageVT(thatMsg any) bool
func (*ReportDeviceStatusRequest) EqualVT ¶
func (this *ReportDeviceStatusRequest) EqualVT(that *ReportDeviceStatusRequest) bool
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 (m *ReportDeviceStatusResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ReportDeviceStatusResponse) CloneVT ¶
func (m *ReportDeviceStatusResponse) CloneVT() *ReportDeviceStatusResponse
func (*ReportDeviceStatusResponse) EqualMessageVT ¶
func (this *ReportDeviceStatusResponse) EqualMessageVT(thatMsg any) bool
func (*ReportDeviceStatusResponse) EqualVT ¶
func (this *ReportDeviceStatusResponse) EqualVT(that *ReportDeviceStatusResponse) bool
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 (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 SRPCDeviceResourceServiceServer ¶
type SRPCDeviceResourceServiceServer interface {
WatchDeviceState(*WatchDeviceStateRequest, SRPCDeviceResourceService_WatchDeviceStateStream) error
ReportDeviceStatus(context.Context, *ReportDeviceStatusRequest) (*ReportDeviceStatusResponse, error)
AccessCheckoutRoot(context.Context, *AccessCheckoutRootRequest) (*AccessCheckoutRootResponse, error)
}
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 (m *WatchDeviceStateRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*WatchDeviceStateRequest) CloneVT ¶
func (m *WatchDeviceStateRequest) CloneVT() *WatchDeviceStateRequest
func (*WatchDeviceStateRequest) EqualMessageVT ¶
func (this *WatchDeviceStateRequest) EqualMessageVT(thatMsg any) bool
func (*WatchDeviceStateRequest) EqualVT ¶
func (this *WatchDeviceStateRequest) EqualVT(that *WatchDeviceStateRequest) bool
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 (m *WatchDeviceStateResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*WatchDeviceStateResponse) CloneVT ¶
func (m *WatchDeviceStateResponse) CloneVT() *WatchDeviceStateResponse
func (*WatchDeviceStateResponse) EqualMessageVT ¶
func (this *WatchDeviceStateResponse) EqualMessageVT(thatMsg any) bool
func (*WatchDeviceStateResponse) EqualVT ¶
func (this *WatchDeviceStateResponse) EqualVT(that *WatchDeviceStateResponse) bool
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