Documentation
¶
Overview ¶
Package s4wave_vm implements the VM block types and world operations.
Index ¶
- Constants
- Variables
- func IsValidV86StateTransition(src, dst VmState) bool
- func LookupCreateV86ImageOp(ctx context.Context, operationTypeID string) (world.Operation, error)
- func LookupCreateVmV86Op(ctx context.Context, operationTypeID string) (world.Operation, error)
- func LookupSetV86ConfigOp(ctx context.Context, operationTypeID string) (world.Operation, error)
- func LookupSetV86ImageMetadataOp(ctx context.Context, operationTypeID string) (world.Operation, error)
- func LookupSetV86StateOp(ctx context.Context, operationTypeID string) (world.Operation, error)
- func NewCreateV86ImageOpBlock() block.Block
- func NewCreateVmV86OpBlock() block.Block
- func NewSetV86ConfigOpBlock() block.Block
- func NewSetV86ImageMetadataOpBlock() block.Block
- func NewSetV86StateOpBlock() block.Block
- type CreateV86ImageOp
- func (o *CreateV86ImageOp) ApplyWorldObjectOp(ctx context.Context, le *logrus.Entry, os world.ObjectState, sender peer.ID) (sysErr bool, err error)
- func (o *CreateV86ImageOp) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (sysErr bool, err error)
- func (m *CreateV86ImageOp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *CreateV86ImageOp) CloneVT() *CreateV86ImageOp
- func (this *CreateV86ImageOp) EqualMessageVT(thatMsg any) bool
- func (this *CreateV86ImageOp) EqualVT(that *CreateV86ImageOp) bool
- func (x *CreateV86ImageOp) GetImage() *V86Image
- func (x *CreateV86ImageOp) GetObjectKey() string
- func (o *CreateV86ImageOp) GetOperationTypeId() string
- func (x *CreateV86ImageOp) GetTimestamp() *timestamppb.Timestamp
- func (o *CreateV86ImageOp) MarshalBlock() ([]byte, error)
- func (x *CreateV86ImageOp) MarshalJSON() ([]byte, error)
- func (x *CreateV86ImageOp) MarshalProtoJSON(s *json.MarshalState)
- func (x *CreateV86ImageOp) MarshalProtoText() string
- func (m *CreateV86ImageOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CreateV86ImageOp) MarshalToVT(dAtA []byte) (int, error)
- func (m *CreateV86ImageOp) MarshalVT() (dAtA []byte, err error)
- func (*CreateV86ImageOp) ProtoMessage()
- func (x *CreateV86ImageOp) Reset()
- func (m *CreateV86ImageOp) SizeVT() (n int)
- func (x *CreateV86ImageOp) String() string
- func (o *CreateV86ImageOp) UnmarshalBlock(data []byte) error
- func (x *CreateV86ImageOp) UnmarshalJSON(b []byte) error
- func (x *CreateV86ImageOp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *CreateV86ImageOp) UnmarshalVT(dAtA []byte) error
- func (o *CreateV86ImageOp) Validate() error
- type CreateVmV86Op
- func (o *CreateVmV86Op) ApplyWorldObjectOp(ctx context.Context, le *logrus.Entry, os world.ObjectState, sender peer.ID) (sysErr bool, err error)
- func (o *CreateVmV86Op) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (sysErr bool, err error)
- func (m *CreateVmV86Op) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *CreateVmV86Op) CloneVT() *CreateVmV86Op
- func (this *CreateVmV86Op) EqualMessageVT(thatMsg any) bool
- func (this *CreateVmV86Op) EqualVT(that *CreateVmV86Op) bool
- func (x *CreateVmV86Op) GetBiosOverrideObjectKey() string
- func (x *CreateVmV86Op) GetConfig() *V86Config
- func (x *CreateVmV86Op) GetImageObjectKey() string
- func (x *CreateVmV86Op) GetKernelOverrideObjectKey() string
- func (x *CreateVmV86Op) GetName() string
- func (x *CreateVmV86Op) GetObjectKey() string
- func (o *CreateVmV86Op) GetOperationTypeId() string
- func (x *CreateVmV86Op) GetRootfsOverrideObjectKey() string
- func (x *CreateVmV86Op) GetTimestamp() *timestamppb.Timestamp
- func (x *CreateVmV86Op) GetWasmOverrideObjectKey() string
- func (o *CreateVmV86Op) MarshalBlock() ([]byte, error)
- func (x *CreateVmV86Op) MarshalJSON() ([]byte, error)
- func (x *CreateVmV86Op) MarshalProtoJSON(s *json.MarshalState)
- func (x *CreateVmV86Op) MarshalProtoText() string
- func (m *CreateVmV86Op) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CreateVmV86Op) MarshalToVT(dAtA []byte) (int, error)
- func (m *CreateVmV86Op) MarshalVT() (dAtA []byte, err error)
- func (*CreateVmV86Op) ProtoMessage()
- func (x *CreateVmV86Op) Reset()
- func (m *CreateVmV86Op) SizeVT() (n int)
- func (x *CreateVmV86Op) String() string
- func (o *CreateVmV86Op) UnmarshalBlock(data []byte) error
- func (x *CreateVmV86Op) UnmarshalJSON(b []byte) error
- func (x *CreateVmV86Op) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *CreateVmV86Op) UnmarshalVT(dAtA []byte) error
- func (o *CreateVmV86Op) Validate() error
- type SetV86ConfigOp
- func (o *SetV86ConfigOp) ApplyWorldObjectOp(ctx context.Context, le *logrus.Entry, os world.ObjectState, sender peer.ID) (sysErr bool, err error)
- func (o *SetV86ConfigOp) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (sysErr bool, err error)
- func (m *SetV86ConfigOp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *SetV86ConfigOp) CloneVT() *SetV86ConfigOp
- func (this *SetV86ConfigOp) EqualMessageVT(thatMsg any) bool
- func (this *SetV86ConfigOp) EqualVT(that *SetV86ConfigOp) bool
- func (x *SetV86ConfigOp) GetConfig() *V86Config
- func (x *SetV86ConfigOp) GetObjectKey() string
- func (o *SetV86ConfigOp) GetOperationTypeId() string
- func (o *SetV86ConfigOp) MarshalBlock() ([]byte, error)
- func (x *SetV86ConfigOp) MarshalJSON() ([]byte, error)
- func (x *SetV86ConfigOp) MarshalProtoJSON(s *json.MarshalState)
- func (x *SetV86ConfigOp) MarshalProtoText() string
- func (m *SetV86ConfigOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SetV86ConfigOp) MarshalToVT(dAtA []byte) (int, error)
- func (m *SetV86ConfigOp) MarshalVT() (dAtA []byte, err error)
- func (*SetV86ConfigOp) ProtoMessage()
- func (x *SetV86ConfigOp) Reset()
- func (m *SetV86ConfigOp) SizeVT() (n int)
- func (x *SetV86ConfigOp) String() string
- func (o *SetV86ConfigOp) UnmarshalBlock(data []byte) error
- func (x *SetV86ConfigOp) UnmarshalJSON(b []byte) error
- func (x *SetV86ConfigOp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *SetV86ConfigOp) UnmarshalVT(dAtA []byte) error
- func (o *SetV86ConfigOp) Validate() error
- type SetV86ImageMetadataOp
- func (o *SetV86ImageMetadataOp) ApplyWorldObjectOp(ctx context.Context, le *logrus.Entry, os world.ObjectState, sender peer.ID) (sysErr bool, err error)
- func (o *SetV86ImageMetadataOp) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (sysErr bool, err error)
- func (m *SetV86ImageMetadataOp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *SetV86ImageMetadataOp) CloneVT() *SetV86ImageMetadataOp
- func (this *SetV86ImageMetadataOp) EqualMessageVT(thatMsg any) bool
- func (this *SetV86ImageMetadataOp) EqualVT(that *SetV86ImageMetadataOp) bool
- func (x *SetV86ImageMetadataOp) GetImage() *V86Image
- func (x *SetV86ImageMetadataOp) GetObjectKey() string
- func (o *SetV86ImageMetadataOp) GetOperationTypeId() string
- func (o *SetV86ImageMetadataOp) MarshalBlock() ([]byte, error)
- func (x *SetV86ImageMetadataOp) MarshalJSON() ([]byte, error)
- func (x *SetV86ImageMetadataOp) MarshalProtoJSON(s *json.MarshalState)
- func (x *SetV86ImageMetadataOp) MarshalProtoText() string
- func (m *SetV86ImageMetadataOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SetV86ImageMetadataOp) MarshalToVT(dAtA []byte) (int, error)
- func (m *SetV86ImageMetadataOp) MarshalVT() (dAtA []byte, err error)
- func (*SetV86ImageMetadataOp) ProtoMessage()
- func (x *SetV86ImageMetadataOp) Reset()
- func (m *SetV86ImageMetadataOp) SizeVT() (n int)
- func (x *SetV86ImageMetadataOp) String() string
- func (o *SetV86ImageMetadataOp) UnmarshalBlock(data []byte) error
- func (x *SetV86ImageMetadataOp) UnmarshalJSON(b []byte) error
- func (x *SetV86ImageMetadataOp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *SetV86ImageMetadataOp) UnmarshalVT(dAtA []byte) error
- func (o *SetV86ImageMetadataOp) Validate() error
- type SetV86StateOp
- func (o *SetV86StateOp) ApplyWorldObjectOp(ctx context.Context, le *logrus.Entry, os world.ObjectState, sender peer.ID) (sysErr bool, err error)
- func (o *SetV86StateOp) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (sysErr bool, err error)
- func (m *SetV86StateOp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *SetV86StateOp) CloneVT() *SetV86StateOp
- func (this *SetV86StateOp) EqualMessageVT(thatMsg any) bool
- func (this *SetV86StateOp) EqualVT(that *SetV86StateOp) bool
- func (x *SetV86StateOp) GetErrorMessage() string
- func (x *SetV86StateOp) GetObjectKey() string
- func (o *SetV86StateOp) GetOperationTypeId() string
- func (x *SetV86StateOp) GetState() VmState
- func (o *SetV86StateOp) MarshalBlock() ([]byte, error)
- func (x *SetV86StateOp) MarshalJSON() ([]byte, error)
- func (x *SetV86StateOp) MarshalProtoJSON(s *json.MarshalState)
- func (x *SetV86StateOp) MarshalProtoText() string
- func (m *SetV86StateOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SetV86StateOp) MarshalToVT(dAtA []byte) (int, error)
- func (m *SetV86StateOp) MarshalVT() (dAtA []byte, err error)
- func (*SetV86StateOp) ProtoMessage()
- func (x *SetV86StateOp) Reset()
- func (m *SetV86StateOp) SizeVT() (n int)
- func (x *SetV86StateOp) String() string
- func (o *SetV86StateOp) UnmarshalBlock(data []byte) error
- func (x *SetV86StateOp) UnmarshalJSON(b []byte) error
- func (x *SetV86StateOp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *SetV86StateOp) UnmarshalVT(dAtA []byte) error
- func (o *SetV86StateOp) Validate() error
- type V86Config
- func (m *V86Config) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *V86Config) CloneVT() *V86Config
- func (this *V86Config) EqualMessageVT(thatMsg any) bool
- func (this *V86Config) EqualVT(that *V86Config) bool
- func (x *V86Config) GetBootArgs() string
- func (x *V86Config) GetMemoryMb() uint32
- func (x *V86Config) GetMounts() []*VmMount
- func (x *V86Config) GetNetworking() bool
- func (x *V86Config) GetRuntimePluginId() string
- func (x *V86Config) GetSerialEnabled() bool
- func (x *V86Config) GetVgaMemoryMb() uint32
- func (x *V86Config) MarshalJSON() ([]byte, error)
- func (x *V86Config) MarshalProtoJSON(s *json.MarshalState)
- func (x *V86Config) MarshalProtoText() string
- func (m *V86Config) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *V86Config) MarshalToVT(dAtA []byte) (int, error)
- func (m *V86Config) MarshalVT() (dAtA []byte, err error)
- func (*V86Config) ProtoMessage()
- func (x *V86Config) Reset()
- func (m *V86Config) SizeVT() (n int)
- func (x *V86Config) String() string
- func (x *V86Config) UnmarshalJSON(b []byte) error
- func (x *V86Config) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *V86Config) UnmarshalVT(dAtA []byte) error
- type V86Image
- func (m *V86Image) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *V86Image) CloneVT() *V86Image
- func (this *V86Image) EqualMessageVT(thatMsg any) bool
- func (this *V86Image) EqualVT(that *V86Image) bool
- func (v *V86Image) GetBlockTypeId() string
- func (x *V86Image) GetCreatedAt() *timestamppb.Timestamp
- func (x *V86Image) GetDescription() string
- func (x *V86Image) GetDistro() string
- func (x *V86Image) GetKernelVersion() string
- func (x *V86Image) GetName() string
- func (x *V86Image) GetPlatform() string
- func (x *V86Image) GetTags() []string
- func (x *V86Image) GetVersion() string
- func (v *V86Image) MarshalBlock() ([]byte, error)
- func (x *V86Image) MarshalJSON() ([]byte, error)
- func (x *V86Image) MarshalProtoJSON(s *json.MarshalState)
- func (x *V86Image) MarshalProtoText() string
- func (m *V86Image) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *V86Image) MarshalToVT(dAtA []byte) (int, error)
- func (m *V86Image) MarshalVT() (dAtA []byte, err error)
- func (*V86Image) ProtoMessage()
- func (x *V86Image) Reset()
- func (m *V86Image) SizeVT() (n int)
- func (x *V86Image) String() string
- func (v *V86Image) UnmarshalBlock(data []byte) error
- func (x *V86Image) UnmarshalJSON(b []byte) error
- func (x *V86Image) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *V86Image) UnmarshalVT(dAtA []byte) error
- func (v *V86Image) Validate() error
- type V86WizardConfig
- func (m *V86WizardConfig) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *V86WizardConfig) CloneVT() *V86WizardConfig
- func (this *V86WizardConfig) EqualMessageVT(thatMsg any) bool
- func (this *V86WizardConfig) EqualVT(that *V86WizardConfig) bool
- func (x *V86WizardConfig) GetCdnId() string
- func (x *V86WizardConfig) GetCdnSourceObjectKey() string
- func (x *V86WizardConfig) GetImageObjectKey() string
- func (x *V86WizardConfig) GetMemoryMb() uint32
- func (x *V86WizardConfig) GetName() string
- func (x *V86WizardConfig) GetNetworking() bool
- func (x *V86WizardConfig) GetSource() V86WizardConfig_Source
- func (x *V86WizardConfig) GetVgaMemoryMb() uint32
- func (x *V86WizardConfig) MarshalJSON() ([]byte, error)
- func (x *V86WizardConfig) MarshalProtoJSON(s *json.MarshalState)
- func (x *V86WizardConfig) MarshalProtoText() string
- func (m *V86WizardConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *V86WizardConfig) MarshalToVT(dAtA []byte) (int, error)
- func (m *V86WizardConfig) MarshalVT() (dAtA []byte, err error)
- func (*V86WizardConfig) ProtoMessage()
- func (x *V86WizardConfig) Reset()
- func (m *V86WizardConfig) SizeVT() (n int)
- func (x *V86WizardConfig) String() string
- func (x *V86WizardConfig) UnmarshalJSON(b []byte) error
- func (x *V86WizardConfig) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *V86WizardConfig) UnmarshalVT(dAtA []byte) error
- type V86WizardConfig_Source
- func (x V86WizardConfig_Source) Enum() *V86WizardConfig_Source
- func (x V86WizardConfig_Source) MarshalJSON() ([]byte, error)
- func (x V86WizardConfig_Source) MarshalProtoJSON(s *json.MarshalState)
- func (x V86WizardConfig_Source) MarshalProtoText() string
- func (x V86WizardConfig_Source) MarshalText() ([]byte, error)
- func (x V86WizardConfig_Source) String() string
- func (x *V86WizardConfig_Source) UnmarshalJSON(b []byte) error
- func (x *V86WizardConfig_Source) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *V86WizardConfig_Source) UnmarshalText(b []byte) error
- type VmMount
- func (m *VmMount) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *VmMount) CloneVT() *VmMount
- func (this *VmMount) EqualMessageVT(thatMsg any) bool
- func (this *VmMount) EqualVT(that *VmMount) bool
- func (x *VmMount) GetObjectKey() string
- func (x *VmMount) GetPath() string
- func (x *VmMount) GetWritable() bool
- func (x *VmMount) MarshalJSON() ([]byte, error)
- func (x *VmMount) MarshalProtoJSON(s *json.MarshalState)
- func (x *VmMount) MarshalProtoText() string
- func (m *VmMount) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *VmMount) MarshalToVT(dAtA []byte) (int, error)
- func (m *VmMount) MarshalVT() (dAtA []byte, err error)
- func (*VmMount) ProtoMessage()
- func (x *VmMount) Reset()
- func (m *VmMount) SizeVT() (n int)
- func (x *VmMount) String() string
- func (x *VmMount) UnmarshalJSON(b []byte) error
- func (x *VmMount) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *VmMount) UnmarshalVT(dAtA []byte) error
- type VmState
- func (x VmState) Enum() *VmState
- func (x VmState) MarshalJSON() ([]byte, error)
- func (x VmState) MarshalProtoJSON(s *json.MarshalState)
- func (x VmState) MarshalProtoText() string
- func (x VmState) MarshalText() ([]byte, error)
- func (x VmState) String() string
- func (x *VmState) UnmarshalJSON(b []byte) error
- func (x *VmState) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *VmState) UnmarshalText(b []byte) error
- type VmV86
- func (m *VmV86) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *VmV86) CloneVT() *VmV86
- func (this *VmV86) EqualMessageVT(thatMsg any) bool
- func (this *VmV86) EqualVT(that *VmV86) bool
- func (v *VmV86) GetBlockTypeId() string
- func (x *VmV86) GetConfig() *V86Config
- func (x *VmV86) GetCreatedAt() *timestamppb.Timestamp
- func (x *VmV86) GetErrorMessage() string
- func (x *VmV86) GetName() string
- func (x *VmV86) GetState() VmState
- func (v *VmV86) MarshalBlock() ([]byte, error)
- func (x *VmV86) MarshalJSON() ([]byte, error)
- func (x *VmV86) MarshalProtoJSON(s *json.MarshalState)
- func (x *VmV86) MarshalProtoText() string
- func (m *VmV86) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *VmV86) MarshalToVT(dAtA []byte) (int, error)
- func (m *VmV86) MarshalVT() (dAtA []byte, err error)
- func (*VmV86) ProtoMessage()
- func (x *VmV86) Reset()
- func (m *VmV86) SizeVT() (n int)
- func (x *VmV86) String() string
- func (v *VmV86) UnmarshalBlock(data []byte) error
- func (x *VmV86) UnmarshalJSON(b []byte) error
- func (x *VmV86) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *VmV86) UnmarshalVT(dAtA []byte) error
- func (v *VmV86) Validate() error
Constants ¶
const V86ImageTypeID = "spacewave/vm/image/v86"
V86ImageTypeID is the type identifier for V86Image objects.
const VmV86TypeID = "spacewave/vm/v86"
VmV86TypeID is the type identifier for VmV86 objects.
Variables ¶
var ( V86WizardConfig_Source_name = map[int32]string{ 0: "SOURCE_UNSPECIFIED", 1: "EXISTING_IN_SPACE", 2: "COPY_FROM_CDN", } V86WizardConfig_Source_value = map[string]int32{ "SOURCE_UNSPECIFIED": 0, "EXISTING_IN_SPACE": 1, "COPY_FROM_CDN": 2, } )
Enum value maps for V86WizardConfig_Source.
var ( VmState_name = map[int32]string{ 0: "VmState_STOPPED", 1: "VmState_STARTING", 2: "VmState_RUNNING", 3: "VmState_STOPPING", 4: "VmState_ERROR", } VmState_value = map[string]int32{ "VmState_STOPPED": 0, "VmState_STARTING": 1, "VmState_RUNNING": 2, "VmState_STOPPING": 3, "VmState_ERROR": 4, } )
Enum value maps for VmState.
var CreateV86ImageOpId = "spacewave/vm/image/v86/create"
CreateV86ImageOpId is the operation id for CreateV86ImageOp.
var CreateVmV86OpId = "spacewave/vm/v86/create"
CreateVmV86OpId is the operation id for CreateVmV86Op.
var PredV86BiosOverride = quad.IRI("v86/bios-override")
PredV86BiosOverride optionally overrides the BIOS UnixFS resolved from the linked V86Image. Takes precedence over the V86Image's v86image/bios/{seabios,vgabios} edges.
var PredV86Image = quad.IRI("v86/image")
PredV86Image is the graph predicate linking a VmV86 to its V86Image. The V86Image supplies the default WASM/BIOS/kernel/rootfs UnixFS edges via its own v86image/* predicates.
var PredV86ImageBiosSeabios = quad.IRI("v86image/bios/seabios")
PredV86ImageBiosSeabios is the graph predicate for the SeaBIOS asset.
var PredV86ImageBiosVgabios = quad.IRI("v86image/bios/vgabios")
PredV86ImageBiosVgabios is the graph predicate for the VGA BIOS asset.
var PredV86ImageKernel = quad.IRI("v86image/kernel")
PredV86ImageKernel is the graph predicate for the kernel image asset.
var PredV86ImageRootfs = quad.IRI("v86image/rootfs")
PredV86ImageRootfs is the graph predicate for the rootfs archive asset.
var PredV86ImageWasm = quad.IRI("v86image/wasm")
PredV86ImageWasm is the graph predicate for the emulator WASM binary.
var PredV86KernelOverride = quad.IRI("v86/kernel-override")
PredV86KernelOverride optionally overrides the kernel UnixFS resolved from the linked V86Image. Takes precedence over the V86Image's v86image/kernel edge.
var PredV86RootfsOverride = quad.IRI("v86/rootfs-override")
PredV86RootfsOverride optionally overrides the rootfs UnixFS resolved from the linked V86Image. Takes precedence over the V86Image's v86image/rootfs edge.
var PredV86WasmOverride = quad.IRI("v86/wasm-override")
PredV86WasmOverride optionally overrides the emulator WASM UnixFS resolved from the linked V86Image. Takes precedence over v86image/wasm.
var SetV86ConfigOpId = "spacewave/vm/v86/set-config"
SetV86ConfigOpId is the operation id for SetV86ConfigOp.
var SetV86ImageMetadataOpId = "spacewave/vm/image/v86/set-metadata"
SetV86ImageMetadataOpId is the operation id for SetV86ImageMetadataOp.
var SetV86StateOpId = "spacewave/vm/v86/set-state"
SetV86StateOpId is the operation id for SetV86StateOp.
Functions ¶
func IsValidV86StateTransition ¶
IsValidV86StateTransition reports whether transitioning a VmV86 from src to dst is permitted by the state machine. Same-state transitions are rejected so that ops observably advance state.
func LookupCreateV86ImageOp ¶ added in v0.51.0
LookupCreateV86ImageOp looks up a CreateV86ImageOp operation type.
func LookupCreateVmV86Op ¶
LookupCreateVmV86Op looks up a CreateVmV86Op operation type.
func LookupSetV86ConfigOp ¶
LookupSetV86ConfigOp looks up a SetV86ConfigOp operation type.
func LookupSetV86ImageMetadataOp ¶ added in v0.51.0
func LookupSetV86ImageMetadataOp(ctx context.Context, operationTypeID string) (world.Operation, error)
LookupSetV86ImageMetadataOp looks up a SetV86ImageMetadataOp operation type.
func LookupSetV86StateOp ¶
LookupSetV86StateOp looks up a SetV86StateOp operation type.
func NewCreateV86ImageOpBlock ¶ added in v0.51.0
NewCreateV86ImageOpBlock constructs a new CreateV86ImageOp block.
func NewCreateVmV86OpBlock ¶
NewCreateVmV86OpBlock constructs a new CreateVmV86Op block.
func NewSetV86ConfigOpBlock ¶
NewSetV86ConfigOpBlock constructs a new SetV86ConfigOp block.
func NewSetV86ImageMetadataOpBlock ¶ added in v0.51.0
NewSetV86ImageMetadataOpBlock constructs a new SetV86ImageMetadataOp block.
func NewSetV86StateOpBlock ¶
NewSetV86StateOpBlock constructs a new SetV86StateOp block.
Types ¶
type CreateV86ImageOp ¶ added in v0.51.0
type CreateV86ImageOp struct {
// ObjectKey is the key to create the V86Image at.
ObjectKey string `protobuf:"bytes,1,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
// Image carries the metadata for the new V86Image. Name / platform / tags
// are required; the remaining fields are optional.
Image *V86Image `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
// Timestamp is the creation timestamp. Stored on the block as CreatedAt.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// contains filtered or unexported fields
}
CreateV86ImageOp creates a new V86Image world object. Metadata is supplied inline; the five UnixFS edges are set separately via SetGraphQuad.
func NewCreateV86ImageOp ¶ added in v0.51.0
func NewCreateV86ImageOp(objKey string, img *V86Image, ts time.Time) *CreateV86ImageOp
NewCreateV86ImageOp constructs a new CreateV86ImageOp.
func (*CreateV86ImageOp) ApplyWorldObjectOp ¶ added in v0.51.0
func (o *CreateV86ImageOp) 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 (*CreateV86ImageOp) ApplyWorldOp ¶ added in v0.51.0
func (o *CreateV86ImageOp) 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 (*CreateV86ImageOp) CloneMessageVT ¶ added in v0.51.0
func (m *CreateV86ImageOp) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*CreateV86ImageOp) CloneVT ¶ added in v0.51.0
func (m *CreateV86ImageOp) CloneVT() *CreateV86ImageOp
func (*CreateV86ImageOp) EqualMessageVT ¶ added in v0.51.0
func (this *CreateV86ImageOp) EqualMessageVT(thatMsg any) bool
func (*CreateV86ImageOp) EqualVT ¶ added in v0.51.0
func (this *CreateV86ImageOp) EqualVT(that *CreateV86ImageOp) bool
func (*CreateV86ImageOp) GetImage ¶ added in v0.51.0
func (x *CreateV86ImageOp) GetImage() *V86Image
func (*CreateV86ImageOp) GetObjectKey ¶ added in v0.51.0
func (x *CreateV86ImageOp) GetObjectKey() string
func (*CreateV86ImageOp) GetOperationTypeId ¶ added in v0.51.0
func (o *CreateV86ImageOp) GetOperationTypeId() string
GetOperationTypeId returns the operation type identifier.
func (*CreateV86ImageOp) GetTimestamp ¶ added in v0.51.0
func (x *CreateV86ImageOp) GetTimestamp() *timestamppb.Timestamp
func (*CreateV86ImageOp) MarshalBlock ¶ added in v0.51.0
func (o *CreateV86ImageOp) MarshalBlock() ([]byte, error)
MarshalBlock marshals the block to binary.
func (*CreateV86ImageOp) MarshalJSON ¶ added in v0.51.0
func (x *CreateV86ImageOp) MarshalJSON() ([]byte, error)
MarshalJSON marshals the CreateV86ImageOp to JSON.
func (*CreateV86ImageOp) MarshalProtoJSON ¶ added in v0.51.0
func (x *CreateV86ImageOp) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the CreateV86ImageOp message to JSON.
func (*CreateV86ImageOp) MarshalProtoText ¶ added in v0.51.0
func (x *CreateV86ImageOp) MarshalProtoText() string
func (*CreateV86ImageOp) MarshalToSizedBufferVT ¶ added in v0.51.0
func (m *CreateV86ImageOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*CreateV86ImageOp) MarshalToVT ¶ added in v0.51.0
func (m *CreateV86ImageOp) MarshalToVT(dAtA []byte) (int, error)
func (*CreateV86ImageOp) MarshalVT ¶ added in v0.51.0
func (m *CreateV86ImageOp) MarshalVT() (dAtA []byte, err error)
func (*CreateV86ImageOp) ProtoMessage ¶ added in v0.51.0
func (*CreateV86ImageOp) ProtoMessage()
func (*CreateV86ImageOp) Reset ¶ added in v0.51.0
func (x *CreateV86ImageOp) Reset()
func (*CreateV86ImageOp) SizeVT ¶ added in v0.51.0
func (m *CreateV86ImageOp) SizeVT() (n int)
func (*CreateV86ImageOp) String ¶ added in v0.51.0
func (x *CreateV86ImageOp) String() string
func (*CreateV86ImageOp) UnmarshalBlock ¶ added in v0.51.0
func (o *CreateV86ImageOp) UnmarshalBlock(data []byte) error
UnmarshalBlock unmarshals the block to the object.
func (*CreateV86ImageOp) UnmarshalJSON ¶ added in v0.51.0
func (x *CreateV86ImageOp) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the CreateV86ImageOp from JSON.
func (*CreateV86ImageOp) UnmarshalProtoJSON ¶ added in v0.51.0
func (x *CreateV86ImageOp) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the CreateV86ImageOp message from JSON.
func (*CreateV86ImageOp) UnmarshalVT ¶ added in v0.51.0
func (m *CreateV86ImageOp) UnmarshalVT(dAtA []byte) error
func (*CreateV86ImageOp) Validate ¶ added in v0.51.0
func (o *CreateV86ImageOp) Validate() error
Validate performs cursory checks on the op.
type CreateVmV86Op ¶
type CreateVmV86Op struct {
// ObjectKey is the key to create the VM at.
ObjectKey string `protobuf:"bytes,1,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
// Name is the display name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Config contains V86-specific configuration.
Config *V86Config `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
// Timestamp is the creation timestamp.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// ImageObjectKey points at a V86Image providing default asset edges. Required.
ImageObjectKey string `protobuf:"bytes,5,opt,name=image_object_key,json=imageObjectKey,proto3" json:"imageObjectKey,omitempty"`
// KernelOverrideObjectKey optionally overrides the kernel resolved from the
// linked V86Image. Points at a UnixFS object.
KernelOverrideObjectKey string `` /* 131-byte string literal not displayed */
// RootfsOverrideObjectKey optionally overrides the rootfs resolved from the
// linked V86Image. Points at a UnixFS object.
RootfsOverrideObjectKey string `` /* 131-byte string literal not displayed */
// BiosOverrideObjectKey optionally overrides the BIOS resolved from the
// linked V86Image. Points at a UnixFS object.
BiosOverrideObjectKey string `protobuf:"bytes,8,opt,name=bios_override_object_key,json=biosOverrideObjectKey,proto3" json:"biosOverrideObjectKey,omitempty"`
// WasmOverrideObjectKey optionally overrides the emulator WASM resolved from
// the linked V86Image. Points at a UnixFS object.
WasmOverrideObjectKey string `protobuf:"bytes,9,opt,name=wasm_override_object_key,json=wasmOverrideObjectKey,proto3" json:"wasmOverrideObjectKey,omitempty"`
// contains filtered or unexported fields
}
CreateVmV86Op creates a new VmV86 world object. The V86Image at =image_object_key= supplies the four UnixFS asset edges (WASM, BIOS, kernel, rootfs). Optional per-asset =*_override_object_key= fields override the corresponding asset at resolve time without rewriting the V86Image.
func NewCreateVmV86Op ¶
func NewCreateVmV86Op(objKey, name, imageObjectKey string, ts time.Time) *CreateVmV86Op
NewCreateVmV86Op constructs a new CreateVmV86Op. imageObjectKey points at the V86Image that supplies default asset edges and is required.
func (*CreateVmV86Op) ApplyWorldObjectOp ¶
func (o *CreateVmV86Op) 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 (*CreateVmV86Op) ApplyWorldOp ¶
func (o *CreateVmV86Op) 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 (*CreateVmV86Op) CloneMessageVT ¶
func (m *CreateVmV86Op) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*CreateVmV86Op) CloneVT ¶
func (m *CreateVmV86Op) CloneVT() *CreateVmV86Op
func (*CreateVmV86Op) EqualMessageVT ¶
func (this *CreateVmV86Op) EqualMessageVT(thatMsg any) bool
func (*CreateVmV86Op) EqualVT ¶
func (this *CreateVmV86Op) EqualVT(that *CreateVmV86Op) bool
func (*CreateVmV86Op) GetBiosOverrideObjectKey ¶
func (x *CreateVmV86Op) GetBiosOverrideObjectKey() string
func (*CreateVmV86Op) GetConfig ¶
func (x *CreateVmV86Op) GetConfig() *V86Config
func (*CreateVmV86Op) GetImageObjectKey ¶
func (x *CreateVmV86Op) GetImageObjectKey() string
func (*CreateVmV86Op) GetKernelOverrideObjectKey ¶
func (x *CreateVmV86Op) GetKernelOverrideObjectKey() string
func (*CreateVmV86Op) GetName ¶
func (x *CreateVmV86Op) GetName() string
func (*CreateVmV86Op) GetObjectKey ¶
func (x *CreateVmV86Op) GetObjectKey() string
func (*CreateVmV86Op) GetOperationTypeId ¶
func (o *CreateVmV86Op) GetOperationTypeId() string
GetOperationTypeId returns the operation type identifier.
func (*CreateVmV86Op) GetRootfsOverrideObjectKey ¶
func (x *CreateVmV86Op) GetRootfsOverrideObjectKey() string
func (*CreateVmV86Op) GetTimestamp ¶
func (x *CreateVmV86Op) GetTimestamp() *timestamppb.Timestamp
func (*CreateVmV86Op) GetWasmOverrideObjectKey ¶
func (x *CreateVmV86Op) GetWasmOverrideObjectKey() string
func (*CreateVmV86Op) MarshalBlock ¶
func (o *CreateVmV86Op) MarshalBlock() ([]byte, error)
MarshalBlock marshals the block to binary.
func (*CreateVmV86Op) MarshalJSON ¶
func (x *CreateVmV86Op) MarshalJSON() ([]byte, error)
MarshalJSON marshals the CreateVmV86Op to JSON.
func (*CreateVmV86Op) MarshalProtoJSON ¶
func (x *CreateVmV86Op) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the CreateVmV86Op message to JSON.
func (*CreateVmV86Op) MarshalProtoText ¶
func (x *CreateVmV86Op) MarshalProtoText() string
func (*CreateVmV86Op) MarshalToSizedBufferVT ¶
func (m *CreateVmV86Op) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*CreateVmV86Op) MarshalToVT ¶
func (m *CreateVmV86Op) MarshalToVT(dAtA []byte) (int, error)
func (*CreateVmV86Op) MarshalVT ¶
func (m *CreateVmV86Op) MarshalVT() (dAtA []byte, err error)
func (*CreateVmV86Op) ProtoMessage ¶
func (*CreateVmV86Op) ProtoMessage()
func (*CreateVmV86Op) Reset ¶
func (x *CreateVmV86Op) Reset()
func (*CreateVmV86Op) SizeVT ¶
func (m *CreateVmV86Op) SizeVT() (n int)
func (*CreateVmV86Op) String ¶
func (x *CreateVmV86Op) String() string
func (*CreateVmV86Op) UnmarshalBlock ¶
func (o *CreateVmV86Op) UnmarshalBlock(data []byte) error
UnmarshalBlock unmarshals the block to the object.
func (*CreateVmV86Op) UnmarshalJSON ¶
func (x *CreateVmV86Op) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the CreateVmV86Op from JSON.
func (*CreateVmV86Op) UnmarshalProtoJSON ¶
func (x *CreateVmV86Op) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the CreateVmV86Op message from JSON.
func (*CreateVmV86Op) UnmarshalVT ¶
func (m *CreateVmV86Op) UnmarshalVT(dAtA []byte) error
func (*CreateVmV86Op) Validate ¶
func (o *CreateVmV86Op) Validate() error
Validate performs cursory checks on the op.
type SetV86ConfigOp ¶
type SetV86ConfigOp struct {
// ObjectKey is the object key of the VmV86 to update.
ObjectKey string `protobuf:"bytes,1,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
// Config is the new configuration to apply. Replaces the stored Config.
Config *V86Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
SetV86ConfigOp mutates the mutable V86Config on an existing VmV86 object. Immutable fields (name, created_at) on the VmV86 block are preserved.
func NewSetV86ConfigOp ¶
func NewSetV86ConfigOp(objKey string, config *V86Config) *SetV86ConfigOp
NewSetV86ConfigOp constructs a new SetV86ConfigOp.
func (*SetV86ConfigOp) ApplyWorldObjectOp ¶
func (o *SetV86ConfigOp) 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 (*SetV86ConfigOp) ApplyWorldOp ¶
func (o *SetV86ConfigOp) 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 (*SetV86ConfigOp) CloneMessageVT ¶
func (m *SetV86ConfigOp) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SetV86ConfigOp) CloneVT ¶
func (m *SetV86ConfigOp) CloneVT() *SetV86ConfigOp
func (*SetV86ConfigOp) EqualMessageVT ¶
func (this *SetV86ConfigOp) EqualMessageVT(thatMsg any) bool
func (*SetV86ConfigOp) EqualVT ¶
func (this *SetV86ConfigOp) EqualVT(that *SetV86ConfigOp) bool
func (*SetV86ConfigOp) GetConfig ¶
func (x *SetV86ConfigOp) GetConfig() *V86Config
func (*SetV86ConfigOp) GetObjectKey ¶
func (x *SetV86ConfigOp) GetObjectKey() string
func (*SetV86ConfigOp) GetOperationTypeId ¶
func (o *SetV86ConfigOp) GetOperationTypeId() string
GetOperationTypeId returns the operation type identifier.
func (*SetV86ConfigOp) MarshalBlock ¶
func (o *SetV86ConfigOp) MarshalBlock() ([]byte, error)
MarshalBlock marshals the block to binary.
func (*SetV86ConfigOp) MarshalJSON ¶
func (x *SetV86ConfigOp) MarshalJSON() ([]byte, error)
MarshalJSON marshals the SetV86ConfigOp to JSON.
func (*SetV86ConfigOp) MarshalProtoJSON ¶
func (x *SetV86ConfigOp) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SetV86ConfigOp message to JSON.
func (*SetV86ConfigOp) MarshalProtoText ¶
func (x *SetV86ConfigOp) MarshalProtoText() string
func (*SetV86ConfigOp) MarshalToSizedBufferVT ¶
func (m *SetV86ConfigOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SetV86ConfigOp) MarshalToVT ¶
func (m *SetV86ConfigOp) MarshalToVT(dAtA []byte) (int, error)
func (*SetV86ConfigOp) MarshalVT ¶
func (m *SetV86ConfigOp) MarshalVT() (dAtA []byte, err error)
func (*SetV86ConfigOp) ProtoMessage ¶
func (*SetV86ConfigOp) ProtoMessage()
func (*SetV86ConfigOp) Reset ¶
func (x *SetV86ConfigOp) Reset()
func (*SetV86ConfigOp) SizeVT ¶
func (m *SetV86ConfigOp) SizeVT() (n int)
func (*SetV86ConfigOp) String ¶
func (x *SetV86ConfigOp) String() string
func (*SetV86ConfigOp) UnmarshalBlock ¶
func (o *SetV86ConfigOp) UnmarshalBlock(data []byte) error
UnmarshalBlock unmarshals the block to the object.
func (*SetV86ConfigOp) UnmarshalJSON ¶
func (x *SetV86ConfigOp) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the SetV86ConfigOp from JSON.
func (*SetV86ConfigOp) UnmarshalProtoJSON ¶
func (x *SetV86ConfigOp) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SetV86ConfigOp message from JSON.
func (*SetV86ConfigOp) UnmarshalVT ¶
func (m *SetV86ConfigOp) UnmarshalVT(dAtA []byte) error
func (*SetV86ConfigOp) Validate ¶
func (o *SetV86ConfigOp) Validate() error
Validate performs cursory checks on the op.
type SetV86ImageMetadataOp ¶ added in v0.51.0
type SetV86ImageMetadataOp struct {
// ObjectKey is the key of the V86Image to update.
ObjectKey string `protobuf:"bytes,1,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
// Image carries the new metadata. CreatedAt is preserved from the stored
// block; any CreatedAt on the supplied V86Image is ignored.
Image *V86Image `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
// contains filtered or unexported fields
}
SetV86ImageMetadataOp replaces the metadata fields on an existing V86Image. The four UnixFS edges are immutable post-create; use graph-quad ops on a fresh V86Image to change asset bindings.
func NewSetV86ImageMetadataOp ¶ added in v0.51.0
func NewSetV86ImageMetadataOp(objKey string, img *V86Image) *SetV86ImageMetadataOp
NewSetV86ImageMetadataOp constructs a new SetV86ImageMetadataOp.
func (*SetV86ImageMetadataOp) ApplyWorldObjectOp ¶ added in v0.51.0
func (o *SetV86ImageMetadataOp) 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 (*SetV86ImageMetadataOp) ApplyWorldOp ¶ added in v0.51.0
func (o *SetV86ImageMetadataOp) 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 (*SetV86ImageMetadataOp) CloneMessageVT ¶ added in v0.51.0
func (m *SetV86ImageMetadataOp) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SetV86ImageMetadataOp) CloneVT ¶ added in v0.51.0
func (m *SetV86ImageMetadataOp) CloneVT() *SetV86ImageMetadataOp
func (*SetV86ImageMetadataOp) EqualMessageVT ¶ added in v0.51.0
func (this *SetV86ImageMetadataOp) EqualMessageVT(thatMsg any) bool
func (*SetV86ImageMetadataOp) EqualVT ¶ added in v0.51.0
func (this *SetV86ImageMetadataOp) EqualVT(that *SetV86ImageMetadataOp) bool
func (*SetV86ImageMetadataOp) GetImage ¶ added in v0.51.0
func (x *SetV86ImageMetadataOp) GetImage() *V86Image
func (*SetV86ImageMetadataOp) GetObjectKey ¶ added in v0.51.0
func (x *SetV86ImageMetadataOp) GetObjectKey() string
func (*SetV86ImageMetadataOp) GetOperationTypeId ¶ added in v0.51.0
func (o *SetV86ImageMetadataOp) GetOperationTypeId() string
GetOperationTypeId returns the operation type identifier.
func (*SetV86ImageMetadataOp) MarshalBlock ¶ added in v0.51.0
func (o *SetV86ImageMetadataOp) MarshalBlock() ([]byte, error)
MarshalBlock marshals the block to binary.
func (*SetV86ImageMetadataOp) MarshalJSON ¶ added in v0.51.0
func (x *SetV86ImageMetadataOp) MarshalJSON() ([]byte, error)
MarshalJSON marshals the SetV86ImageMetadataOp to JSON.
func (*SetV86ImageMetadataOp) MarshalProtoJSON ¶ added in v0.51.0
func (x *SetV86ImageMetadataOp) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SetV86ImageMetadataOp message to JSON.
func (*SetV86ImageMetadataOp) MarshalProtoText ¶ added in v0.51.0
func (x *SetV86ImageMetadataOp) MarshalProtoText() string
func (*SetV86ImageMetadataOp) MarshalToSizedBufferVT ¶ added in v0.51.0
func (m *SetV86ImageMetadataOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SetV86ImageMetadataOp) MarshalToVT ¶ added in v0.51.0
func (m *SetV86ImageMetadataOp) MarshalToVT(dAtA []byte) (int, error)
func (*SetV86ImageMetadataOp) MarshalVT ¶ added in v0.51.0
func (m *SetV86ImageMetadataOp) MarshalVT() (dAtA []byte, err error)
func (*SetV86ImageMetadataOp) ProtoMessage ¶ added in v0.51.0
func (*SetV86ImageMetadataOp) ProtoMessage()
func (*SetV86ImageMetadataOp) Reset ¶ added in v0.51.0
func (x *SetV86ImageMetadataOp) Reset()
func (*SetV86ImageMetadataOp) SizeVT ¶ added in v0.51.0
func (m *SetV86ImageMetadataOp) SizeVT() (n int)
func (*SetV86ImageMetadataOp) String ¶ added in v0.51.0
func (x *SetV86ImageMetadataOp) String() string
func (*SetV86ImageMetadataOp) UnmarshalBlock ¶ added in v0.51.0
func (o *SetV86ImageMetadataOp) UnmarshalBlock(data []byte) error
UnmarshalBlock unmarshals the block to the object.
func (*SetV86ImageMetadataOp) UnmarshalJSON ¶ added in v0.51.0
func (x *SetV86ImageMetadataOp) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the SetV86ImageMetadataOp from JSON.
func (*SetV86ImageMetadataOp) UnmarshalProtoJSON ¶ added in v0.51.0
func (x *SetV86ImageMetadataOp) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SetV86ImageMetadataOp message from JSON.
func (*SetV86ImageMetadataOp) UnmarshalVT ¶ added in v0.51.0
func (m *SetV86ImageMetadataOp) UnmarshalVT(dAtA []byte) error
func (*SetV86ImageMetadataOp) Validate ¶ added in v0.51.0
func (o *SetV86ImageMetadataOp) Validate() error
Validate performs cursory checks on the op.
type SetV86StateOp ¶
type SetV86StateOp struct {
// ObjectKey is the object key of the VmV86 to update.
ObjectKey string `protobuf:"bytes,1,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
// State is the target state to transition to.
State VmState `protobuf:"varint,2,opt,name=state,proto3" json:"state,omitempty"`
// ErrorMessage is an optional diagnostic stored when transitioning to
// VmState_ERROR. Ignored for non-ERROR transitions.
ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"errorMessage,omitempty"`
// contains filtered or unexported fields
}
SetV86StateOp transitions the state of an existing VmV86 object. Valid transitions are enforced by the op's state machine.
func NewSetV86StateOp ¶
func NewSetV86StateOp(objKey string, state VmState, errorMessage string) *SetV86StateOp
NewSetV86StateOp constructs a new SetV86StateOp.
func (*SetV86StateOp) ApplyWorldObjectOp ¶
func (o *SetV86StateOp) 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 (*SetV86StateOp) ApplyWorldOp ¶
func (o *SetV86StateOp) 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 (*SetV86StateOp) CloneMessageVT ¶
func (m *SetV86StateOp) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SetV86StateOp) CloneVT ¶
func (m *SetV86StateOp) CloneVT() *SetV86StateOp
func (*SetV86StateOp) EqualMessageVT ¶
func (this *SetV86StateOp) EqualMessageVT(thatMsg any) bool
func (*SetV86StateOp) EqualVT ¶
func (this *SetV86StateOp) EqualVT(that *SetV86StateOp) bool
func (*SetV86StateOp) GetErrorMessage ¶
func (x *SetV86StateOp) GetErrorMessage() string
func (*SetV86StateOp) GetObjectKey ¶
func (x *SetV86StateOp) GetObjectKey() string
func (*SetV86StateOp) GetOperationTypeId ¶
func (o *SetV86StateOp) GetOperationTypeId() string
GetOperationTypeId returns the operation type identifier.
func (*SetV86StateOp) GetState ¶
func (x *SetV86StateOp) GetState() VmState
func (*SetV86StateOp) MarshalBlock ¶
func (o *SetV86StateOp) MarshalBlock() ([]byte, error)
MarshalBlock marshals the block to binary.
func (*SetV86StateOp) MarshalJSON ¶
func (x *SetV86StateOp) MarshalJSON() ([]byte, error)
MarshalJSON marshals the SetV86StateOp to JSON.
func (*SetV86StateOp) MarshalProtoJSON ¶
func (x *SetV86StateOp) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SetV86StateOp message to JSON.
func (*SetV86StateOp) MarshalProtoText ¶
func (x *SetV86StateOp) MarshalProtoText() string
func (*SetV86StateOp) MarshalToSizedBufferVT ¶
func (m *SetV86StateOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SetV86StateOp) MarshalToVT ¶
func (m *SetV86StateOp) MarshalToVT(dAtA []byte) (int, error)
func (*SetV86StateOp) MarshalVT ¶
func (m *SetV86StateOp) MarshalVT() (dAtA []byte, err error)
func (*SetV86StateOp) ProtoMessage ¶
func (*SetV86StateOp) ProtoMessage()
func (*SetV86StateOp) Reset ¶
func (x *SetV86StateOp) Reset()
func (*SetV86StateOp) SizeVT ¶
func (m *SetV86StateOp) SizeVT() (n int)
func (*SetV86StateOp) String ¶
func (x *SetV86StateOp) String() string
func (*SetV86StateOp) UnmarshalBlock ¶
func (o *SetV86StateOp) UnmarshalBlock(data []byte) error
UnmarshalBlock unmarshals the block to the object.
func (*SetV86StateOp) UnmarshalJSON ¶
func (x *SetV86StateOp) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the SetV86StateOp from JSON.
func (*SetV86StateOp) UnmarshalProtoJSON ¶
func (x *SetV86StateOp) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SetV86StateOp message from JSON.
func (*SetV86StateOp) UnmarshalVT ¶
func (m *SetV86StateOp) UnmarshalVT(dAtA []byte) error
func (*SetV86StateOp) Validate ¶
func (o *SetV86StateOp) Validate() error
Validate performs cursory checks on the op.
type V86Config ¶
type V86Config struct {
// MemoryMb is the memory size in megabytes.
MemoryMb uint32 `protobuf:"varint,1,opt,name=memory_mb,json=memoryMb,proto3" json:"memoryMb,omitempty"`
// VgaMemoryMb is the VGA memory size in megabytes.
VgaMemoryMb uint32 `protobuf:"varint,2,opt,name=vga_memory_mb,json=vgaMemoryMb,proto3" json:"vgaMemoryMb,omitempty"`
// Networking enables network support.
Networking bool `protobuf:"varint,3,opt,name=networking,proto3" json:"networking,omitempty"`
// SerialEnabled enables a serial console on COM1 bridged to the viewer.
SerialEnabled bool `protobuf:"varint,4,opt,name=serial_enabled,json=serialEnabled,proto3" json:"serialEnabled,omitempty"`
// BootArgs is appended to the kernel command line at boot time.
BootArgs string `protobuf:"bytes,5,opt,name=boot_args,json=bootArgs,proto3" json:"bootArgs,omitempty"`
// Mounts lists workspace/home/other v86fs mounts to attach after boot.
Mounts []*VmMount `protobuf:"bytes,6,rep,name=mounts,proto3" json:"mounts,omitempty"`
// RuntimePluginId is the plugin that hosts the instanced V86 runtime.
// Empty defaults to spacewave-app.
RuntimePluginId string `protobuf:"bytes,7,opt,name=runtime_plugin_id,json=runtimePluginId,proto3" json:"runtimePluginId,omitempty"`
// contains filtered or unexported fields
}
V86Config contains configuration for a V86 virtual machine.
func (*V86Config) CloneMessageVT ¶
func (m *V86Config) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*V86Config) EqualMessageVT ¶
func (*V86Config) GetBootArgs ¶
func (*V86Config) GetMemoryMb ¶
func (*V86Config) GetNetworking ¶
func (*V86Config) GetRuntimePluginId ¶ added in v0.51.0
func (*V86Config) GetSerialEnabled ¶
func (*V86Config) GetVgaMemoryMb ¶
func (*V86Config) MarshalJSON ¶
MarshalJSON marshals the V86Config to JSON.
func (*V86Config) MarshalProtoJSON ¶
func (x *V86Config) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the V86Config message to JSON.
func (*V86Config) MarshalProtoText ¶
func (*V86Config) MarshalToSizedBufferVT ¶
func (*V86Config) ProtoMessage ¶
func (*V86Config) ProtoMessage()
func (*V86Config) UnmarshalJSON ¶
UnmarshalJSON unmarshals the V86Config from JSON.
func (*V86Config) UnmarshalProtoJSON ¶
func (x *V86Config) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the V86Config message from JSON.
func (*V86Config) UnmarshalVT ¶
type V86Image ¶ added in v0.51.0
type V86Image struct {
// Name is the human-readable name of the image.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Version identifies this revision of the image.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Platform identifies the target VM platform. Must be "v86".
Platform string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"`
// Distro is the distribution name, e.g. "debian".
Distro string `protobuf:"bytes,4,opt,name=distro,proto3" json:"distro,omitempty"`
// KernelVersion is the kernel version string, e.g. "6.1.0-13-686".
KernelVersion string `protobuf:"bytes,5,opt,name=kernel_version,json=kernelVersion,proto3" json:"kernelVersion,omitempty"`
// Description is a free-form description of the image.
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// Tags is a list of discovery tags, e.g. ["default", "browser"].
Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
// CreatedAt is the creation timestamp.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"createdAt,omitempty"`
// contains filtered or unexported fields
}
V86Image is a curated bundle of v86 assets (WASM emulator, SeaBIOS, VGA BIOS, kernel, rootfs) linked through graph edges. The object itself carries metadata; the five UnixFS targets are attached via v86image/wasm, v86image/bios/seabios, v86image/bios/vgabios, v86image/kernel, v86image/rootfs.
func (*V86Image) CloneMessageVT ¶ added in v0.51.0
func (m *V86Image) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*V86Image) EqualMessageVT ¶ added in v0.51.0
func (*V86Image) GetBlockTypeId ¶ added in v0.51.0
GetBlockTypeId returns the block type identifier.
func (*V86Image) GetCreatedAt ¶ added in v0.51.0
func (x *V86Image) GetCreatedAt() *timestamppb.Timestamp
func (*V86Image) GetDescription ¶ added in v0.51.0
func (*V86Image) GetKernelVersion ¶ added in v0.51.0
func (*V86Image) GetPlatform ¶ added in v0.51.0
func (*V86Image) GetVersion ¶ added in v0.51.0
func (*V86Image) MarshalBlock ¶ added in v0.51.0
MarshalBlock marshals the block to binary.
func (*V86Image) MarshalJSON ¶ added in v0.51.0
MarshalJSON marshals the V86Image to JSON.
func (*V86Image) MarshalProtoJSON ¶ added in v0.51.0
func (x *V86Image) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the V86Image message to JSON.
func (*V86Image) MarshalProtoText ¶ added in v0.51.0
func (*V86Image) MarshalToSizedBufferVT ¶ added in v0.51.0
func (*V86Image) MarshalToVT ¶ added in v0.51.0
func (*V86Image) ProtoMessage ¶ added in v0.51.0
func (*V86Image) ProtoMessage()
func (*V86Image) UnmarshalBlock ¶ added in v0.51.0
UnmarshalBlock unmarshals the block from binary.
func (*V86Image) UnmarshalJSON ¶ added in v0.51.0
UnmarshalJSON unmarshals the V86Image from JSON.
func (*V86Image) UnmarshalProtoJSON ¶ added in v0.51.0
func (x *V86Image) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the V86Image message from JSON.
func (*V86Image) UnmarshalVT ¶ added in v0.51.0
type V86WizardConfig ¶
type V86WizardConfig struct {
// Name is the display name for the final VmV86.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// MemoryMb is the VM memory size in megabytes.
MemoryMb uint32 `protobuf:"varint,2,opt,name=memory_mb,json=memoryMb,proto3" json:"memoryMb,omitempty"`
// VgaMemoryMb is the VGA memory size in megabytes.
VgaMemoryMb uint32 `protobuf:"varint,3,opt,name=vga_memory_mb,json=vgaMemoryMb,proto3" json:"vgaMemoryMb,omitempty"`
// Networking enables network support.
Networking bool `protobuf:"varint,4,opt,name=networking,proto3" json:"networking,omitempty"`
// ImageObjectKey is the target V86Image object key for finalize.
ImageObjectKey string `protobuf:"bytes,5,opt,name=image_object_key,json=imageObjectKey,proto3" json:"imageObjectKey,omitempty"`
// Source selects where the V86Image comes from.
Source V86WizardConfig_Source `protobuf:"varint,6,opt,name=source,proto3" json:"source,omitempty"`
// CdnSourceObjectKey is the CDN V86Image object key for copy-from-CDN mode.
CdnSourceObjectKey string `protobuf:"bytes,7,opt,name=cdn_source_object_key,json=cdnSourceObjectKey,proto3" json:"cdnSourceObjectKey,omitempty"`
// CdnId identifies which CDN to use. Empty means the default CDN.
CdnId string `protobuf:"bytes,8,opt,name=cdn_id,json=cdnId,proto3" json:"cdnId,omitempty"`
// contains filtered or unexported fields
}
V86WizardConfig contains persistent wizard config for v86 VM creation.
func (*V86WizardConfig) CloneMessageVT ¶
func (m *V86WizardConfig) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*V86WizardConfig) CloneVT ¶
func (m *V86WizardConfig) CloneVT() *V86WizardConfig
func (*V86WizardConfig) EqualMessageVT ¶
func (this *V86WizardConfig) EqualMessageVT(thatMsg any) bool
func (*V86WizardConfig) EqualVT ¶
func (this *V86WizardConfig) EqualVT(that *V86WizardConfig) bool
func (*V86WizardConfig) GetCdnId ¶
func (x *V86WizardConfig) GetCdnId() string
func (*V86WizardConfig) GetCdnSourceObjectKey ¶
func (x *V86WizardConfig) GetCdnSourceObjectKey() string
func (*V86WizardConfig) GetImageObjectKey ¶
func (x *V86WizardConfig) GetImageObjectKey() string
func (*V86WizardConfig) GetMemoryMb ¶
func (x *V86WizardConfig) GetMemoryMb() uint32
func (*V86WizardConfig) GetName ¶
func (x *V86WizardConfig) GetName() string
func (*V86WizardConfig) GetNetworking ¶
func (x *V86WizardConfig) GetNetworking() bool
func (*V86WizardConfig) GetSource ¶
func (x *V86WizardConfig) GetSource() V86WizardConfig_Source
func (*V86WizardConfig) GetVgaMemoryMb ¶
func (x *V86WizardConfig) GetVgaMemoryMb() uint32
func (*V86WizardConfig) MarshalJSON ¶
func (x *V86WizardConfig) MarshalJSON() ([]byte, error)
MarshalJSON marshals the V86WizardConfig to JSON.
func (*V86WizardConfig) MarshalProtoJSON ¶
func (x *V86WizardConfig) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the V86WizardConfig message to JSON.
func (*V86WizardConfig) MarshalProtoText ¶
func (x *V86WizardConfig) MarshalProtoText() string
func (*V86WizardConfig) MarshalToSizedBufferVT ¶
func (m *V86WizardConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*V86WizardConfig) MarshalToVT ¶
func (m *V86WizardConfig) MarshalToVT(dAtA []byte) (int, error)
func (*V86WizardConfig) MarshalVT ¶
func (m *V86WizardConfig) MarshalVT() (dAtA []byte, err error)
func (*V86WizardConfig) ProtoMessage ¶
func (*V86WizardConfig) ProtoMessage()
func (*V86WizardConfig) Reset ¶
func (x *V86WizardConfig) Reset()
func (*V86WizardConfig) SizeVT ¶
func (m *V86WizardConfig) SizeVT() (n int)
func (*V86WizardConfig) String ¶
func (x *V86WizardConfig) String() string
func (*V86WizardConfig) UnmarshalJSON ¶
func (x *V86WizardConfig) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the V86WizardConfig from JSON.
func (*V86WizardConfig) UnmarshalProtoJSON ¶
func (x *V86WizardConfig) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the V86WizardConfig message from JSON.
func (*V86WizardConfig) UnmarshalVT ¶
func (m *V86WizardConfig) UnmarshalVT(dAtA []byte) error
type V86WizardConfig_Source ¶
type V86WizardConfig_Source int32
Source identifies how the wizard resolves the V86Image input.
const ( // Source_SOURCE_UNSPECIFIED leaves the image source unset. V86WizardConfig_SOURCE_UNSPECIFIED V86WizardConfig_Source = 0 // Source_EXISTING_IN_SPACE uses an existing V86Image from the Space. V86WizardConfig_EXISTING_IN_SPACE V86WizardConfig_Source = 1 // Source_COPY_FROM_CDN copies a V86Image from a CDN source object. V86WizardConfig_COPY_FROM_CDN V86WizardConfig_Source = 2 )
func (V86WizardConfig_Source) Enum ¶
func (x V86WizardConfig_Source) Enum() *V86WizardConfig_Source
func (V86WizardConfig_Source) MarshalJSON ¶
func (x V86WizardConfig_Source) MarshalJSON() ([]byte, error)
MarshalJSON marshals the V86WizardConfig_Source to JSON.
func (V86WizardConfig_Source) MarshalProtoJSON ¶
func (x V86WizardConfig_Source) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the V86WizardConfig_Source to JSON.
func (V86WizardConfig_Source) MarshalProtoText ¶
func (x V86WizardConfig_Source) MarshalProtoText() string
func (V86WizardConfig_Source) MarshalText ¶
func (x V86WizardConfig_Source) MarshalText() ([]byte, error)
MarshalText marshals the V86WizardConfig_Source to text.
func (V86WizardConfig_Source) String ¶
func (x V86WizardConfig_Source) String() string
func (*V86WizardConfig_Source) UnmarshalJSON ¶
func (x *V86WizardConfig_Source) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the V86WizardConfig_Source from JSON.
func (*V86WizardConfig_Source) UnmarshalProtoJSON ¶
func (x *V86WizardConfig_Source) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the V86WizardConfig_Source from JSON.
func (*V86WizardConfig_Source) UnmarshalText ¶
func (x *V86WizardConfig_Source) UnmarshalText(b []byte) error
UnmarshalText unmarshals the V86WizardConfig_Source from text.
type VmMount ¶
type VmMount struct {
// Path is the guest filesystem path at which the mount is attached.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// ObjectKey is the UnixFS object key providing the mount contents.
ObjectKey string `protobuf:"bytes,2,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
// Writable controls whether the guest can write into the mount.
Writable bool `protobuf:"varint,3,opt,name=writable,proto3" json:"writable,omitempty"`
// contains filtered or unexported fields
}
VmMount is a v86fs mount bound to a UnixFS object in the Space.
func (*VmMount) CloneMessageVT ¶
func (m *VmMount) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*VmMount) EqualMessageVT ¶
func (*VmMount) GetObjectKey ¶
func (*VmMount) GetWritable ¶
func (*VmMount) MarshalJSON ¶
MarshalJSON marshals the VmMount to JSON.
func (*VmMount) MarshalProtoJSON ¶
func (x *VmMount) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the VmMount message to JSON.
func (*VmMount) MarshalProtoText ¶
func (*VmMount) MarshalToSizedBufferVT ¶
func (*VmMount) ProtoMessage ¶
func (*VmMount) ProtoMessage()
func (*VmMount) UnmarshalJSON ¶
UnmarshalJSON unmarshals the VmMount from JSON.
func (*VmMount) UnmarshalProtoJSON ¶
func (x *VmMount) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the VmMount message from JSON.
func (*VmMount) UnmarshalVT ¶
type VmState ¶
type VmState int32
VmState is the state of a virtual machine instance.
const ( // VmState_STOPPED means the VM is not running. VmState_VmState_STOPPED VmState = 0 // VmState_STARTING means the VM is booting up. VmState_VmState_STARTING VmState = 1 // VmState_RUNNING means the VM is running normally. VmState_VmState_RUNNING VmState = 2 // VmState_STOPPING means the VM is shutting down. VmState_VmState_STOPPING VmState = 3 // VmState_ERROR means the VM exited with an error. VmState_VmState_ERROR VmState = 4 )
func (VmState) MarshalJSON ¶
MarshalJSON marshals the VmState to JSON.
func (VmState) MarshalProtoJSON ¶
func (x VmState) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the VmState to JSON.
func (VmState) MarshalProtoText ¶
func (VmState) MarshalText ¶
MarshalText marshals the VmState to text.
func (*VmState) UnmarshalJSON ¶
UnmarshalJSON unmarshals the VmState from JSON.
func (*VmState) UnmarshalProtoJSON ¶
func (x *VmState) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the VmState from JSON.
func (*VmState) UnmarshalText ¶
UnmarshalText unmarshals the VmState from text.
type VmV86 ¶
type VmV86 struct {
// State is the current VM state.
State VmState `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"`
// Name is the human-readable name of this VM instance.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Config contains V86-specific configuration.
Config *V86Config `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
// CreatedAt is the creation timestamp.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"createdAt,omitempty"`
// ErrorMessage is a diagnostic attached when State is VmState_ERROR.
// Cleared on any successful transition away from VmState_ERROR.
ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"errorMessage,omitempty"`
// contains filtered or unexported fields
}
VmV86 represents an x86 virtual machine instance via v86 emulation. Linked to BIOS, kernel, and rootfs images via graph edges.
func (*VmV86) CloneMessageVT ¶
func (m *VmV86) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*VmV86) EqualMessageVT ¶
func (*VmV86) GetBlockTypeId ¶
GetBlockTypeId returns the block type identifier.
func (*VmV86) GetCreatedAt ¶
func (x *VmV86) GetCreatedAt() *timestamppb.Timestamp
func (*VmV86) GetErrorMessage ¶
func (*VmV86) MarshalBlock ¶
MarshalBlock marshals the block to binary.
func (*VmV86) MarshalJSON ¶
MarshalJSON marshals the VmV86 to JSON.
func (*VmV86) MarshalProtoJSON ¶
func (x *VmV86) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the VmV86 message to JSON.
func (*VmV86) MarshalProtoText ¶
func (*VmV86) MarshalToSizedBufferVT ¶
func (*VmV86) ProtoMessage ¶
func (*VmV86) ProtoMessage()
func (*VmV86) UnmarshalBlock ¶
UnmarshalBlock unmarshals the block from binary.
func (*VmV86) UnmarshalJSON ¶
UnmarshalJSON unmarshals the VmV86 from JSON.
func (*VmV86) UnmarshalProtoJSON ¶
func (x *VmV86) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the VmV86 message from JSON.