This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-gateway.git
from 14d844f feat(sessions): read the transcripts of six more agents
new ad0af43 feat(monitor): keep agent activity records in the database
new 4c622d8 feat(sync): copy the backups to a folder, a WebDAV share or S3
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
agentmonitor/monitor.go | 12 +-
agentmonitor/record.go | 10 +-
agentmonitor/sink.go | 236 ++------------
cloudsync/detect.go | 147 +++++++++
util/daemon_unix.go => cloudsync/detect_unix.go | 25 +-
cloudsync/detect_windows.go | 49 +++
cloudsync/folder.go | 163 ++++++++++
cloudsync/s3.go | 293 +++++++++++++++++
cloudsync/sigv4.go | 87 +++++
cloudsync/sync.go | 227 +++++++++++++
cloudsync/target.go | 212 +++++++++++++
cloudsync/webdav.go | 356 +++++++++++++++++++++
conf/app.conf | 4 +-
conf/conf.go | 6 +-
controllers/agent.go | 21 +-
controllers/backup.go | 22 +-
controllers/cloud_sync.go | 112 +++++++
controllers/setting.go | 1 -
main.go | 7 +-
object/agent_record.go | 346 ++++++++++++++++++++
object/backup.go | 24 +-
object/cloud_sync.go | 387 +++++++++++++++++++++++
object/ormer.go | 7 +
object/setting.go | 16 +
routers/router.go | 4 +
web/src/backend/BackupBackend.ts | 6 +-
web/src/backend/CloudSyncBackend.ts | 38 +++
web/src/components/settings/backup-panel.tsx | 46 ++-
web/src/components/settings/cloud-sync-panel.tsx | 298 +++++++++++++++++
web/src/locales/en/data.json | 49 ++-
web/src/locales/zh/data.json | 49 ++-
web/src/pages/AgentRecordsPage.tsx | 4 +-
web/src/pages/SettingPage.tsx | 8 +-
web/src/types.ts | 74 ++++-
34 files changed, 3061 insertions(+), 285 deletions(-)
create mode 100644 cloudsync/detect.go
copy util/daemon_unix.go => cloudsync/detect_unix.go (52%)
create mode 100644 cloudsync/detect_windows.go
create mode 100644 cloudsync/folder.go
create mode 100644 cloudsync/s3.go
create mode 100644 cloudsync/sigv4.go
create mode 100644 cloudsync/sync.go
create mode 100644 cloudsync/target.go
create mode 100644 cloudsync/webdav.go
create mode 100644 controllers/cloud_sync.go
create mode 100644 object/agent_record.go
create mode 100644 object/cloud_sync.go
create mode 100644 web/src/backend/CloudSyncBackend.ts
create mode 100644 web/src/components/settings/cloud-sync-panel.tsx
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]