cli

Command-line interface for Radroots
git clone https://radroots.dev/git/cli.git
Log | Files | Refs | README | LICENSE

store.rs (1646B)


      1 use super::{ApprovalPolicy, OperationRole, OperationSpec, RiskLevel};
      2 
      3 pub const STORE_INIT: OperationSpec = operation!(
      4     "store.init",
      5     "radroots store init",
      6     "store",
      7     "store_init",
      8     "StoreInitRequest",
      9     "StoreInitResult",
     10     "Initialize local store.",
     11     Any,
     12     true,
     13     None,
     14     Medium,
     15     false,
     16     true
     17 );
     18 
     19 pub const STORE_STATUS_GET: OperationSpec = operation!(
     20     "store.status.get",
     21     "radroots store status get",
     22     "store",
     23     "store_status_get",
     24     "StoreStatusGetRequest",
     25     "StoreStatusGetResult",
     26     "Read local store status.",
     27     Any,
     28     false,
     29     None,
     30     Low,
     31     false,
     32     false
     33 );
     34 
     35 pub const STORE_EXPORT: OperationSpec = operation!(
     36     "store.export",
     37     "radroots store export",
     38     "store",
     39     "store_export",
     40     "StoreExportRequest",
     41     "StoreExportResult",
     42     "Export local store data according to filters/policy.",
     43     Any,
     44     false,
     45     Conditional,
     46     Medium,
     47     false,
     48     false
     49 );
     50 
     51 pub const STORE_BACKUP_CREATE: OperationSpec = operation!(
     52     "store.backup.create",
     53     "radroots store backup create",
     54     "store",
     55     "store_backup_create",
     56     "StoreBackupCreateRequest",
     57     "StoreBackupCreateResult",
     58     "Create local store backup.",
     59     Any,
     60     true,
     61     None,
     62     Medium,
     63     false,
     64     true
     65 );
     66 
     67 pub const STORE_BACKUP_RESTORE: OperationSpec = operation!(
     68     "store.backup.restore",
     69     "radroots store backup restore sdk-store-backup",
     70     "store",
     71     "store_backup_restore",
     72     "StoreBackupRestoreRequest",
     73     "StoreBackupRestoreResult",
     74     "Restore SDK canonical store backup.",
     75     Any,
     76     true,
     77     Conditional,
     78     High,
     79     false,
     80     true
     81 );