pub struct RepositoryManager { /* private fields */ }
Expand description
Keeps track of all the repositories and keeps the enabled_plugins.json
file coherent with the plugins that are installed/uninstalled enabled/disabled
Implementations§
source§impl RepositoryManager
impl RepositoryManager
pub fn default() -> Ref<Self>
pub fn new<S: BnStrCompatible>(plugins_path: S) -> Ref<Self>
sourcepub fn check_for_updates(&self) -> bool
pub fn check_for_updates(&self) -> bool
Check for updates for all managed Repository
objects
sourcepub fn repositories(&self) -> Array<Repository>
pub fn repositories(&self) -> Array<Repository>
List of Repository
objects being managed
sourcepub fn add_repository<U: BnStrCompatible, P: BnStrCompatible>(
&self,
url: U,
repository_path: P,
) -> bool
pub fn add_repository<U: BnStrCompatible, P: BnStrCompatible>( &self, url: U, repository_path: P, ) -> bool
Adds a new plugin repository for the manager to track.
To remove a repository, restart Binary Ninja (and don’t re-add the repository!). File artifacts will remain on disk under repositories/ file in the User Folder.
Before you can query plugin metadata from a repository, you need to call RepositoryManager::check_for_updates
.
url
- URL to the plugins.json containing the records for this repositoryrepository_path
- path to where the repository will be stored on disk locally
Returns true if the repository was successfully added, false otherwise.
pub fn repository_by_path<P: BnStrCompatible>( &self, path: P, ) -> Option<Repository>
sourcepub fn default_repository(&self) -> Ref<Repository>
pub fn default_repository(&self) -> Ref<Repository>
Gets the default Repository
Trait Implementations§
source§impl Debug for RepositoryManager
impl Debug for RepositoryManager
source§impl ToOwned for RepositoryManager
impl ToOwned for RepositoryManager
source§type Owned = Ref<RepositoryManager>
type Owned = Ref<RepositoryManager>
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
Auto Trait Implementations§
impl Freeze for RepositoryManager
impl RefUnwindSafe for RepositoryManager
impl !Send for RepositoryManager
impl !Sync for RepositoryManager
impl Unpin for RepositoryManager
impl UnwindSafe for RepositoryManager
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