vmm

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vmm

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

VirtualMachine Management

func New

func New(info *nodeSchema.Info, resultChan chan<- schema.VmmResult, outboxChan chan<- schema.Outbox) *Vmm

func (*Vmm) Apply

func (v *Vmm) Apply(m schema.Meta)

func (*Vmm) BalanceOf

func (v *Vmm) BalanceOf(accid string) (*big.Int, error)

func (*Vmm) Checkpoint

func (v *Vmm) Checkpoint(pid string) (snap schema.Snapshot, err error)

func (*Vmm) Close

func (v *Vmm) Close()

func (*Vmm) GetModuleNames added in v0.1.3

func (v *Vmm) GetModuleNames() (names []string)

func (*Vmm) GetNode

func (v *Vmm) GetNode(accid string) (*registrySchema.Node, error)

func (*Vmm) GetNodes

func (v *Vmm) GetNodes() (map[string]registrySchema.Node, error)

func (*Vmm) GetNodesByProcess

func (v *Vmm) GetNodesByProcess(pid string) ([]registrySchema.Node, error)

func (*Vmm) GetProcesses

func (v *Vmm) GetProcesses(accid string) ([]string, error)

func (*Vmm) GetVm

func (v *Vmm) GetVm(pid string) (vm schema.Vm, env *schema.Env, err error)

func (*Vmm) GetVmCount added in v0.1.3

func (v *Vmm) GetVmCount() int64

func (*Vmm) GetVmPids

func (v *Vmm) GetVmPids() (pids []string)

func (*Vmm) IsExists

func (v *Vmm) IsExists(pid string) (ok bool)

func (*Vmm) IsRecovering

func (v *Vmm) IsRecovering(pid string) bool

func (*Vmm) Kill

func (v *Vmm) Kill(pid string) (err error)

func (*Vmm) KillAll

func (v *Vmm) KillAll()

func (*Vmm) Mount

func (v *Vmm) Mount(moduleFormat string, spawner schema.VmSpawnFunc) error

func (*Vmm) RecoveryLock

func (v *Vmm) RecoveryLock(pid string)

func (*Vmm) RecoveryUnlock

func (v *Vmm) RecoveryUnlock(pid string)

func (*Vmm) RegistryId

func (v *Vmm) RegistryId() string

func (*Vmm) Restore

func (v *Vmm) Restore(snap schema.Snapshot) error

func (*Vmm) Run

func (v *Vmm) Run()

func (*Vmm) Spawn

func (v *Vmm) Spawn(meta schema.Meta, process hySchema.Process, module hySchema.Module) (err error)

func (*Vmm) StakeOf

func (v *Vmm) StakeOf(accid string) (*big.Int, error)

func (*Vmm) TokenId

func (v *Vmm) TokenId() string

Directories

Path Synopsis
core

Jump to

Keyboard shortcuts

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