Skip to content

lib-repl 库参考 ​

原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793259349/FIN+5.3.1+lib-repl 中文整理基于 FIN 5.3.1

导读: 复制支持

以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。


目录(导读) ​

  • lib
  • meta
  • funcs
  • views
  • def
  • replicaBackup(projName)
  • replicaBackupCleanup(projName, dateOrAge)
  • replicaBackupDelete(projName, ts)
  • replicaBackups(projName)
    • src

概述(中译) ​

复制支持


API 正文(英文) ​

funcs ​

replicaBackupAsynchronously kick off a new local backup for given replica
replicaBackupCleanupDelete all local replica backups older than the given duration or date
replicaBackupDeleteDelete a local replica backup file by its timestamp
replicaBackupsList the local replica backups on this machine

views ​

replicasFresco UI view


def ​

func:replicaBackup ​

replicaBackup(projName) ​

Asynchronously kick off a new local backup for given replica. Requires admin permission. Return a future to track completion of the backup. The future's result value is subject to change. See Replication.

Examples:

replicaBackup("myProj")

meta ​

admin✓
confirm
deffunc:replicaBackup
disKeyui::backup
isfunc
liblib:repl
namereplicaBackup

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:replicaBackupCleanup ​

replicaBackupCleanup(projName, dateOrAge) ​

Delete all local replica backups older than the given duration or date. Requires admin permission. See Replication.

Examples:

replicaBackupCleanup("myProj", 15day)       // delete all backups older than 15 days
replicaBackupCleanup("myProj", 2017-11-15)  // delete all backups before given date

meta ​

admin✓
deffunc:replicaBackupCleanup
isfunc
liblib:repl
namereplicaBackupCleanup

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:replicaBackupDelete ​

replicaBackupDelete(projName, ts) ​

Delete a local replica backup file by its timestamp. Return true if backup found and deleted or false otherwise. Requires admin permission. See Replication.


meta ​

admin✓
confirm
deffunc:replicaBackupDelete
disKeyui::delete
isfunc
liblib:repl
multi✓
namereplicaBackupDelete
select✓

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:replicaBackups ​

replicaBackups(projName) ​

List the local replica backups on this machine. See Replication.


meta ​

admin✓
deffunc:replicaBackups
isfunc
liblib:repl
namereplicaBackups

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

view:replicas ​

Fresco UI view. See Views


meta ​

appNamehost
defview:replicas
disKeyui::replicas
iconview
isview
liblib:repl
su✓

supertypes ​

featureFeature namespace of definitions formatted as feature:name
viewFresco UI view

src ​

view:   {inherit:"table"}
debug:  {action:"replicaDebug"}
ping:   {action:"replicaPing" noFlash}
sync:   {action:"replicaSync" noFlash}
cancel: {action:"replicaCancel" noFlash}
mode:   {action:"replicaMode"}
config: {action:"replicaConfig"}
data:   {expr:"replicas()"}