From 017349bdbe171c66974a5835f2f74f76138386ea Mon Sep 17 00:00:00 2001 From: Mason Reed <35282038+emesare@users.noreply.github.com> Date: Sun, 22 Feb 2026 20:40:28 -0800 Subject: [WARP] Allow containers to be constructed programmatically (#7952) --- plugins/warp/src/cache/container.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/warp/src/cache') diff --git a/plugins/warp/src/cache/container.rs b/plugins/warp/src/cache/container.rs index 0b478ed1..99746d9a 100644 --- a/plugins/warp/src/cache/container.rs +++ b/plugins/warp/src/cache/container.rs @@ -35,3 +35,8 @@ pub fn cached_containers() -> Vec>>> { let containers_cache = CONTAINER_CACHE.get_or_init(Default::default); containers_cache.iter().map(|c| c.clone()).collect() } + +pub fn cached_container_by_name(name: &str) -> Option>>> { + let containers_cache = CONTAINER_CACHE.get_or_init(Default::default); + containers_cache.get(name).map(|c| c.clone()) +} -- cgit v1.3.1