[][src]Trait safe_core::client::AuthActions

pub trait AuthActions: Client + Clone + 'static {
    fn list_auth_keys_and_version(
        &self
    ) -> Box<CoreFuture<(BTreeMap<PublicKey, AppPermissions>, u64)>> { ... }
fn ins_auth_key(
        &self,
        key: PublicKey,
        permissions: AppPermissions,
        version: u64
    ) -> Box<CoreFuture<()>> { ... }
fn del_auth_key(&self, key: PublicKey, version: u64) -> Box<CoreFuture<()>> { ... }
fn delete_mdata(&self, address: MDataAddress) -> Box<CoreFuture<()>> { ... }
fn delete_adata(&self, address: ADataAddress) -> Box<CoreFuture<()>> { ... } }

This trait implements functions that are supposed to be called only by CoreClient and AuthClient. Applications are not allowed to DELETE MData and get/mutate auth keys, hence AppClient does not implement this trait.

Provided methods

fn list_auth_keys_and_version(
    &self
) -> Box<CoreFuture<(BTreeMap<PublicKey, AppPermissions>, u64)>>

Fetches a list of authorised keys and version.

fn ins_auth_key(
    &self,
    key: PublicKey,
    permissions: AppPermissions,
    version: u64
) -> Box<CoreFuture<()>>

Adds a new authorised key.

fn del_auth_key(&self, key: PublicKey, version: u64) -> Box<CoreFuture<()>>

Removes an authorised key.

fn delete_mdata(&self, address: MDataAddress) -> Box<CoreFuture<()>>

Delete MData from network

fn delete_adata(&self, address: ADataAddress) -> Box<CoreFuture<()>>

Delete AData from network.

Loading content...

Implementors

impl AuthActions for CoreClient[src]

Loading content...