Module model

Module model 

Source
Expand description

§Design Model

Design of the core infrastructure.

Structs§

Env
The base unit of TT, stands for a complete workspace for client.
EnvState
Info about the state of ENV.
Snapshot
Snapshot management.
Vm
Infomations about a VM instance.
VmResource
Info about the resource of VM.
VmState
Info about the state of VM.
VmTemplate
Infomations about the template of VM, or in other word, the base image of VM.

Enums§

NetKind
Kind of network.

Traits§

Network
This trait describes how to manage the network, such as ‘firewall rule’ in the NAT mode.
Storage
This trait describes how to manage the ‘runtime image’.
VmEngine
Common methods for each engine, such as ‘Firecracker’, ‘Qemu’, ‘Docker’ …

Type Aliases§

EnvId
ID alias for ENV.
Id
Use u64 to express an ID, e.g. EnvId, VmId
InnerSockPort
Service ports within the VM.
IpAddr
Inner IP(v4) address of VM.
MacAddr
MAC address of VM.
NetAddr
Use String to express a network address, in the the perspective of the client, see NetAddr.
PubSockPort
Service ports within the host machine.
SockPort
Use u16 to express a socket port.
VmEngineFeat
Use u32 as the uint of supported vm-engine-features.
VmId
ID alias for VM.