pub struct MvmConfig {
pub lima_cpus: u32,
pub lima_mem_gib: u32,
pub default_cpus: u32,
pub default_memory_mib: u32,
pub log_format: Option<String>,
pub metrics_port: Option<u16>,
pub catalog_url: Option<String>,
}Expand description
Persistent operator configuration stored at ~/.mvm/config.toml.
CLI flags always take precedence over these values. This config is
mvmctl-specific; mvmd maintains its own separate config.
Fields§
§lima_cpus: u32vCPUs allocated to the Lima VM (default: 8)
lima_mem_gib: u32Memory in GiB allocated to the Lima VM (default: 16)
default_cpus: u32Default vCPU count for mvmctl run (default: 2)
default_memory_mib: u32Default memory in MiB for mvmctl run (default: 512)
log_format: Option<String>Log format: “human” or “json”. None means human.
metrics_port: Option<u16>Port for the Prometheus metrics endpoint. None means disabled.
catalog_url: Option<String>URL for remote image catalog. None means use bundled catalog only.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MvmConfig
impl<'de> Deserialize<'de> for MvmConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MvmConfig
impl RefUnwindSafe for MvmConfig
impl Send for MvmConfig
impl Sync for MvmConfig
impl Unpin for MvmConfig
impl UnsafeUnpin for MvmConfig
impl UnwindSafe for MvmConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more