pub struct CacheManager {
pub root: PathBuf,
}Fields§
§root: PathBufImplementations§
Source§impl CacheManager
impl CacheManager
pub async fn new(root: &Path) -> Result<Self, CacheError>
pub async fn from_env() -> Result<Self, CacheError>
pub async fn init(&self) -> Result<(), CacheError>
pub async fn list_available_capabilities( &self, ) -> Result<Vec<(String, String, String)>, CacheError>
pub fn capabilities_base_dir(&self) -> PathBuf
pub fn capabilities_dir( &self, author: &str, name: &str, version: &str, ) -> PathBuf
pub fn interface_dir(&self, author: &str, name: &str, version: &str) -> PathBuf
pub fn interfaces_base_dir(&self) -> PathBuf
pub async fn capability_interface_spec( &self, author: &str, name: &str, version: &str, ) -> Result<String, CacheError>
pub async fn capability_binary_path( &self, author: &str, name: &str, version: &str, ) -> Result<PathBuf, CacheError>
pub async fn capability_config_spec( &self, author: &str, name: &str, version: &str, ) -> Result<Option<String>, CacheError>
pub async fn get_binary(&self, hash: &str) -> Result<ModuleBinary, CacheError>
pub async fn get_source(&self, hash: &str) -> Result<ModuleSource, CacheError>
pub async fn write_artifacts( &self, artifacts: &Artifacts, ) -> Result<(), CacheError>
pub async fn load_playbook( &self, playbook: Playbook, ) -> Result<LoadedPlaybook, CacheError>
Auto Trait Implementations§
impl Freeze for CacheManager
impl RefUnwindSafe for CacheManager
impl Send for CacheManager
impl Sync for CacheManager
impl Unpin for CacheManager
impl UnsafeUnpin for CacheManager
impl UnwindSafe for CacheManager
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