This commit is contained in:
2026-02-08 21:47:33 +00:00
commit d8b5e8a6c0
22 changed files with 11080 additions and 0 deletions

24
ts/interfaces/common.ts Normal file
View File

@@ -0,0 +1,24 @@
/**
* State machine states for a MicroVM lifecycle.
*/
export type TVMState = 'created' | 'configuring' | 'running' | 'paused' | 'stopped' | 'error';
/**
* Supported Firecracker architectures.
*/
export type TFirecrackerArch = 'x86_64' | 'aarch64';
/**
* Disk cache types supported by Firecracker.
*/
export type TCacheType = 'Unsafe' | 'Writeback';
/**
* Snapshot types for creating snapshots.
*/
export type TSnapshotType = 'Full' | 'Diff';
/**
* Log levels for Firecracker logger.
*/
export type TLogLevel = 'Error' | 'Warning' | 'Info' | 'Debug';