binaryninja::repository

Struct RepositoryManager

source
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

source

pub fn default() -> Ref<Self>

source

pub fn new<S: BnStrCompatible>(plugins_path: S) -> Ref<Self>

source

pub fn check_for_updates(&self) -> bool

Check for updates for all managed Repository objects

source

pub fn repositories(&self) -> Array<Repository>

List of Repository objects being managed

source

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 repository
  • repository_path - path to where the repository will be stored on disk locally

Returns true if the repository was successfully added, false otherwise.

source

pub fn repository_by_path<P: BnStrCompatible>( &self, path: P, ) -> Option<Repository>

source

pub fn default_repository(&self) -> Ref<Repository>

Gets the default Repository

Trait Implementations§

source§

impl Debug for RepositoryManager

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl ToOwned for RepositoryManager

source§

type Owned = Ref<RepositoryManager>

The resulting type after obtaining ownership.
source§

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)

Uses borrowed data to replace owned data, usually by cloning. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.