-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Storage backup/restore for hosted TypeAgents (#488)
TypeAgent using the API endpoint will now backup/restore storage writes to cloud storage. Restore happens at startup and blocks API until sync is complete. Backup happens lazily as files change on disk.
- Loading branch information
Showing
29 changed files
with
898 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
442 changes: 442 additions & 0 deletions
442
android/samples/mobile/app/src/main/res/drawable/typeagent_logo.xml
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 4 additions & 3 deletions
7
android/samples/mobile/app/src/main/res/mipmap-anydpi/ic_launcher.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@drawable/ic_launcher_background" /> | ||
<foreground android:drawable="@drawable/ic_launcher_foreground" /> | ||
<monochrome android:drawable="@drawable/ic_launcher_foreground" /> | ||
<!-- <background android:drawable="@drawable/ic_launcher_background" />--> | ||
<!-- <foreground android:drawable="@drawable/ic_launcher_foreground" />--> | ||
<!-- <monochrome android:drawable="@drawable/ic_launcher_foreground" />--> | ||
<foreground android:drawable="@drawable/typeagent_logo" /> | ||
</adaptive-icon> |
7 changes: 4 additions & 3 deletions
7
android/samples/mobile/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@drawable/ic_launcher_background" /> | ||
<foreground android:drawable="@drawable/ic_launcher_foreground" /> | ||
<monochrome android:drawable="@drawable/ic_launcher_foreground" /> | ||
<!-- <background android:drawable="@drawable/ic_launcher_background" />--> | ||
<!-- <foreground android:drawable="@drawable/ic_launcher_foreground" />--> | ||
<!-- <monochrome android:drawable="@drawable/ic_launcher_foreground" />--> | ||
<foreground android:drawable="@drawable/typeagent_logo" /> | ||
</adaptive-icon> |
Binary file modified
BIN
+3.05 KB
(320%)
android/samples/mobile/app/src/main/res/mipmap-hdpi/ic_launcher.webp
Binary file not shown.
Binary file modified
BIN
+1.6 KB
(160%)
android/samples/mobile/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified
BIN
+1.6 KB
(270%)
android/samples/mobile/app/src/main/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Binary file modified
BIN
+850 Bytes
(150%)
android/samples/mobile/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified
BIN
+4.75 KB
(360%)
android/samples/mobile/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
Binary file not shown.
Binary file modified
BIN
+2.78 KB
(170%)
android/samples/mobile/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified
BIN
+8.19 KB
(390%)
android/samples/mobile/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Binary file not shown.
Binary file modified
BIN
+5.23 KB
(190%)
android/samples/mobile/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified
BIN
+11.9 KB
(420%)
android/samples/mobile/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Binary file not shown.
Binary file modified
BIN
+8.07 KB
(210%)
android/samples/mobile/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
logging: | ||
level: log_debug | ||
file-path: "blog.log" | ||
type: base | ||
|
||
components: | ||
- libfuse | ||
- file_cache | ||
- attr_cache | ||
- azstorage | ||
|
||
libfuse: | ||
attribute-expiration-sec: 0 | ||
entry-expiration-sec: 0 | ||
negative-entry-expiration-sec: 0 | ||
ignore-open-flags: true | ||
|
||
file_cache: | ||
path: "/blob-cache" | ||
timeout-sec: 30 | ||
max-size-mb: 2048 | ||
allow-non-empty-temp: true | ||
cleanup-on-start: true | ||
|
||
attr_cache: | ||
timeout-sec: 3600 | ||
|
||
azstorage: | ||
type: block | ||
use-http: false | ||
mode: azcli | ||
container: sessions | ||
tier: hot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"wwwroot": "../shell/out/renderer", | ||
"port": 3000, | ||
"broadcast": true | ||
"broadcast": true, | ||
"blobBackupEnabled": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.