pub fn build_pool_upgrade_request(submitter_did: &str,
                                  name: &str,
                                  version: &str,
                                  action: &str,
                                  sha256: &str,
                                  upgrade_timeout: Option<u32>,
                                  schedule: Option<&str>,
                                  justification: Option<&str>,
                                  reinstall: bool,
                                  force: bool,
                                  package: Option<&str>) -> Box<dyn Future<Item=String, Error=IndyError>> {
    let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();

    let err = _build_pool_upgrade_request(command_handle, submitter_did, name, version, action, sha256, upgrade_timeout, schedule, justification, reinstall, force, package, cb);

    ResultHandler::str(command_handle, err, receiver)
}
/// Builds a POOL_UPGRADE request. Request to upgrade the Pool (sent by Trustee).
/// It upgrades the specified Nodes (either all nodes in the Pool, or some specific ones).
///
/// # Arguments
/// * `submitter_did` - Identifier (DID) of the transaction author as base58-encoded string.
///                Actual request sender may differ if Endorser is used (look at `append_request_endorser`)
/// * `name` - Human-readable name for the upgrade.
/// * `version` - The version of indy-node package we perform upgrade to.
///          Must be greater than existing one (or equal if reinstall flag is True).
/// * `action` - Either start or cancel.
/// * `sha256` - sha256 hash of the package.
/// * `upgrade_timeout` - (Optional) Limits upgrade time on each Node.
/// * `schedule` - (Optional) Schedule of when to perform upgrade on each node. Map Node DIDs to upgrade time.
/// * `justification` - (Optional) justification string for this particular Upgrade.
/// * `reinstall` - Whether it's allowed to re-install the same version. False by default.
/// * `force` - Whether we should apply transaction (schedule Upgrade) without waiting
///        for consensus of this transaction.
///
/// # Returns
/// Request result as json.
Builds a POOL_UPGRADE request. Request to upgrade the Pool (sent by Trustee).
It upgrades the specified Nodes (either all nodes in the Pool, or some specific ones).
Builds a POOL_UPGRADE request . Request to upgrade the Pool ( sent by Trustee ) . It upgrades the specified Nodes ( either all nodes in the Pool or some specific ones ) .
pub fn build_pool_upgrade_request(submitter_did: &str,
                                  name: &str,
                                  version: &str,
                                  action: &str,
                                  sha256: &str,
                                  upgrade_timeout: Option<u32>,
                                  schedule: Option<&str>,
                                  justification: Option<&str>,
                                  reinstall: bool,
                                  force: bool,
                                  package: Option<&str>) -> Box<dyn Future<Item=String, Error=IndyError>> {
    let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();
    let err = _build_pool_upgrade_request(command_handle, submitter_did, name, version, action, sha256, upgrade_timeout, schedule, justification, reinstall, force, package, cb);
    ResultHandler::str(command_handle, err, receiver)
}
pub fn build_pool_upgrade_request ( submitter_did : & str , name : & str , version : & str , action : & str , sha256 : & str , upgrade_timeout : Option < u32 > , schedule : Option < & str > , justification : Option < & str > , reinstall : bool , force : bool , package : Option < & str > ) -> Box < dyn Future < Item = String , Error = IndyError > > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string ( ) ; let err = _build_pool_upgrade_request ( command_handle , submitter_did , name , version , action , sha256 , upgrade_timeout , schedule , justification , reinstall , force , package , cb ) ; ResultHandler :: str ( command_handle , err , receiver ) }
Builds a POOL_UPGRADE request.
Builds a POOL_UPGRADE request .
submitter_did
&str
name
&str
version
&str
action
&str
sha256
&str
upgrade_timeout
Option<u32>
schedule
Option<&str>
justification
Option<&str>
reinstall
bool
force
bool
package
Option<&str>
Request result as json.
Request result as json .
submitter_did
&str
name
&str
version
&str
action
&str
sha256
&str
upgrade_timeout
Option<u32>
schedule
Option<&str>
justification
Option<&str>
reinstall
bool
force
bool
package
Option<&str>