Module kkcloud_framework::model[][src]

Design Model

Design of the core infrastructure.

Structs

Env

The base unit of KK, stands for a complete workspace for client.

EnvState

Info about the state of ENV.

Snapshot

Snapshot management.

User

User -> [Env ...] -> [[Vm ...], ...]

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.

VmFeature

Supported features of vm-engines.

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 Definitions

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.

UserId

Alias of user name.

VmId

ID alias for VM.