Compare commits
228
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a5762c8f0 | ||
|
|
56a27f63e7 | ||
|
|
5b549d15a5 | ||
|
|
2726eb8a52 | ||
|
|
f47a6b4213 | ||
|
|
048f03ee45 | ||
|
|
8ff60c9d0b | ||
|
|
bc838cc5d4 | ||
|
|
7175316292 | ||
|
|
8fba7e8468 | ||
|
|
a1c4912600 | ||
|
|
c666066b40 | ||
|
|
3890b4a4be | ||
|
|
da390e8f12 | ||
|
|
279d0f8563 | ||
|
|
2f263c7bc2 | ||
|
|
ca128c2d6b | ||
|
|
93e2c23e8e | ||
|
|
42690f3e80 | ||
|
|
74dc3663a5 | ||
|
|
42cdd2c863 | ||
|
|
95ccfc5dc3 | ||
|
|
111dbb33a9 | ||
|
|
bd219cad88 | ||
|
|
3cf1163d05 | ||
|
|
c52f2fc8ca | ||
|
|
214d1279e9 | ||
|
|
c541c52bc2 | ||
|
|
6ee973ec0c | ||
|
|
841ab73af2 | ||
|
|
b3e658cf89 | ||
|
|
3411629a36 | ||
|
|
a3e1406829 | ||
|
|
ab28145600 | ||
|
|
687a70af0a | ||
|
|
6bf16da95d | ||
|
|
74a51d50f3 | ||
|
|
61e02f9674 | ||
|
|
ad57d59738 | ||
|
|
8fb8cb064f | ||
|
|
84fd802952 | ||
|
|
9303cdece7 | ||
|
|
03989e6d56 | ||
|
|
1134e9d85c | ||
|
|
14f7790574 | ||
|
|
1ed5297d22 | ||
|
|
ba7678a452 | ||
|
|
4585b765ef | ||
|
|
792c8cc1b9 | ||
|
|
8a6464798f | ||
|
|
3dc2c196ef | ||
|
|
69a2da889a | ||
|
|
a9afb49bed | ||
|
|
50f63bf436 | ||
|
|
6bfbbc3877 | ||
|
|
22e6155d18 | ||
|
|
65c39de6d0 | ||
|
|
7b4655a2c9 | ||
|
|
a4e7a64cd0 | ||
|
|
4699273919 | ||
|
|
a7d1403f7c | ||
|
|
44233adace | ||
|
|
f2a25910c2 | ||
|
|
a6b75bc9f6 | ||
|
|
71b596e947 | ||
|
|
50eff6da8f | ||
|
|
fde6a4b67a | ||
|
|
15699f02b8 | ||
|
|
a7cb546dc2 | ||
|
|
6c6c6905b8 | ||
|
|
a8b5b0fbbb | ||
|
|
414cdd0b51 | ||
|
|
5e02658873 | ||
|
|
1e34e43c10 | ||
|
|
407238efa5 | ||
|
|
c5d3b74cd4 | ||
|
|
e2e1d1da44 | ||
|
|
3e203fe751 | ||
|
|
aea129b658 | ||
|
|
6f327b6881 | ||
|
|
33f3f0d10b | ||
|
|
174097214f | ||
|
|
a3f037a53e | ||
|
|
388e9f266a | ||
|
|
d96031b7d3 | ||
|
|
e10b626f2f | ||
|
|
94d36b18f8 | ||
|
|
d452c11a0e | ||
|
|
5eff669a57 | ||
|
|
552b87654a | ||
|
|
41ba6cc6e8 | ||
|
|
dd461e60d6 | ||
|
|
f24b3a7bd3 | ||
|
|
049815be8d | ||
|
|
8773aac345 | ||
|
|
91ae5172f6 | ||
|
|
ef1b18aeac | ||
|
|
7ab553e23b | ||
|
|
5f2439cb1f | ||
|
|
3653df5f96 | ||
|
|
a9366caa0c | ||
|
|
c6c6c7f00a | ||
|
|
297089aba6 | ||
|
|
3629babb7e | ||
|
|
d4bff87cdb | ||
|
|
bd719e5271 | ||
|
|
af068a2012 | ||
|
|
920265fa34 | ||
|
|
d296cd9923 | ||
|
|
05bfe745cb | ||
|
|
23d71bc957 | ||
|
|
66ff22835d | ||
|
|
73f87a003c | ||
|
|
c4d3ec7e5b | ||
|
|
83aa8358d6 | ||
|
|
19c20a0943 | ||
|
|
7bb67d7e41 | ||
|
|
ebadf53d58 | ||
|
|
9d86d483d4 | ||
|
|
3fdff38852 | ||
|
|
848461fbdc | ||
|
|
90c3cd5f1f | ||
|
|
5e74b50efb | ||
|
|
a07c44cd6d | ||
|
|
38ff0a49bd | ||
|
|
37b1fa7178 | ||
|
|
89fb341738 | ||
|
|
f6cea4a607 | ||
|
|
bc7bea2443 | ||
|
|
d047160c92 | ||
|
|
897969d1b0 | ||
|
|
e2cd88b262 | ||
|
|
8086a9d969 | ||
|
|
b293a79f91 | ||
|
|
67954f6bae | ||
|
|
2039f61ef0 | ||
|
|
1a33515096 | ||
|
|
643158b67b | ||
|
|
b13b880921 | ||
|
|
d928044073 | ||
|
|
80b5a6bbe7 | ||
|
|
b6e491aeb9 | ||
|
|
94d2befc25 | ||
|
|
21796532e1 | ||
|
|
ed3ae669b6 | ||
|
|
01bbdde09a | ||
|
|
e084e5a722 | ||
|
|
c9df9f5f31 | ||
|
|
f2599dfa76 | ||
|
|
f008d6624a | ||
|
|
e30e6d2af9 | ||
|
|
4aede682bc | ||
|
|
812c01356f | ||
|
|
5291978a42 | ||
|
|
65daa93c1e | ||
|
|
2009114060 | ||
|
|
7825e5ee6d | ||
|
|
701feef965 | ||
|
|
3093499f20 | ||
|
|
ec982c5d91 | ||
|
|
05b696c026 | ||
|
|
c23cfd8aae | ||
|
|
72f057e4b7 | ||
|
|
5a1764931b | ||
|
|
14ad4faa61 | ||
|
|
21653d9d1a | ||
|
|
1e7b548709 | ||
|
|
db1e90a12b | ||
|
|
f19b9fcd46 | ||
|
|
c07f3c6c37 | ||
|
|
4a3b51fd97 | ||
|
|
65cea02b6f | ||
|
|
2ee459a9ac | ||
|
|
908e838284 | ||
|
|
a83d90a1a7 | ||
|
|
e39d43d290 | ||
|
|
d2cff38ab4 | ||
|
|
580a4e0d92 | ||
|
|
454ec52955 | ||
|
|
b0538559c2 | ||
|
|
f18775b1cb | ||
|
|
86b061421e | ||
|
|
e896eee934 | ||
|
|
62f232c82a | ||
|
|
524fff00a3 | ||
|
|
2e63afc8fc | ||
|
|
8ebfb043c3 | ||
|
|
c8f487d804 | ||
|
|
7f57f68725 | ||
|
|
85f5d2bfe4 | ||
|
|
55013c3d0d | ||
|
|
73c99cce9e | ||
|
|
e7ad80e214 | ||
|
|
db32fb46f9 | ||
|
|
208501a688 | ||
|
|
2233394f24 | ||
|
|
1c703763ea | ||
|
|
418e13517d | ||
|
|
5311c46e79 | ||
|
|
ae27e303d8 | ||
|
|
4b86bd0921 | ||
|
|
853161e0b9 | ||
|
|
a268b3dd0c | ||
|
|
ce6e65f8c4 | ||
|
|
0df009eae0 | ||
|
|
30784affc4 | ||
|
|
f4ac6194b0 | ||
|
|
50c0dd983a | ||
|
|
17ce90de2b | ||
|
|
5c3b2991b1 | ||
|
|
378bcd55ab | ||
|
|
861e32eadb | ||
|
|
f7473730e0 | ||
|
|
037201828f | ||
|
|
dfc55c39ef | ||
|
|
16b6f58af6 | ||
|
|
f8e9082eae | ||
|
|
eaff1ee80e | ||
|
|
173bf81633 | ||
|
|
e931597cc7 | ||
|
|
7dc7558684 | ||
|
|
cbfd894243 | ||
|
|
cc1f93eef1 | ||
|
|
b471895598 | ||
|
|
000a542cd9 | ||
|
|
65e0699cb1 | ||
|
|
a9141146fb | ||
|
|
0b88ef8c95 |
No files matched your search
+1
-1
@@ -1,3 +1,3 @@
|
||||
# The test runner source for UI tests
|
||||
WEB_COMMITID=f707e718407c0af592096a4a0b7ecba48d4859da
|
||||
WEB_COMMITID=9eaba7e2b21d44bf58c7c8b47e077d10cc531e84
|
||||
WEB_BRANCH=master
|
||||
+54
-17
@@ -18,7 +18,7 @@ OC_CI_PHP = "owncloudci/php:%s"
|
||||
OC_CI_WAIT_FOR = "owncloudci/wait-for:latest"
|
||||
OC_CS3_API_VALIDATOR = "owncloud/cs3api-validator:0.2.0"
|
||||
OC_LITMUS = "owncloudci/litmus:latest"
|
||||
OC_OC_TEST_MIDDLEWARE = "owncloud/owncloud-test-middleware:1.8.5"
|
||||
OC_OC_TEST_MIDDLEWARE = "owncloud/owncloud-test-middleware:1.8.7"
|
||||
OC_UBUNTU = "owncloud/ubuntu:20.04"
|
||||
PLUGINS_CODACY = "plugins/codacy:1"
|
||||
PLUGINS_DOCKER = "plugins/docker:latest"
|
||||
@@ -73,6 +73,7 @@ config = {
|
||||
"apiReshare",
|
||||
"apiSpacesDavOperation",
|
||||
"apiDepthInfinity",
|
||||
"apiLocks",
|
||||
],
|
||||
"skip": False,
|
||||
},
|
||||
@@ -231,6 +232,7 @@ def main(ctx):
|
||||
|
||||
test_pipelines = \
|
||||
codestyle(ctx) + \
|
||||
checkTestSuitesInExpectedFailures(ctx) + \
|
||||
buildWebCache(ctx) + \
|
||||
getGoBinForTesting(ctx) + \
|
||||
[buildOcisBinaryForTesting(ctx)] + \
|
||||
@@ -634,6 +636,27 @@ def vendorbinCodesniffer(phpVersion):
|
||||
],
|
||||
}]
|
||||
|
||||
def checkTestSuitesInExpectedFailures(ctx):
|
||||
return [{
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
"name": "check-suites-in-expected-failures",
|
||||
"steps": [
|
||||
{
|
||||
"name": "check-suites",
|
||||
"image": OC_CI_ALPINE,
|
||||
"commands": [
|
||||
"%s/tests/acceptance/check-deleted-suites-in-expected-failure.sh" % dirs["base"],
|
||||
],
|
||||
},
|
||||
],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
}]
|
||||
|
||||
def codestyle(ctx):
|
||||
pipelines = []
|
||||
|
||||
@@ -935,7 +958,7 @@ def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = "ocis", ac
|
||||
},
|
||||
"steps": skipIfUnchanged(ctx, "acceptance-tests") +
|
||||
restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin") +
|
||||
ocisServer(storage, accounts_hash_difficulty) +
|
||||
ocisServer(storage, accounts_hash_difficulty, with_wrapper = True) +
|
||||
[
|
||||
{
|
||||
"name": "oC10ApiTests-%s-storage-%s" % (storage, part_number),
|
||||
@@ -953,6 +976,7 @@ def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = "ocis", ac
|
||||
"RUN_PART": part_number,
|
||||
"EXPECTED_FAILURES_FILE": expectedFailuresFile,
|
||||
"UPLOAD_DELETE_WAIT_TIME": "1" if storage == "owncloud" else 0,
|
||||
"OCIS_WRAPPER_URL": "http://ocis-server:5200",
|
||||
},
|
||||
"commands": [
|
||||
"make -C %s test-acceptance-from-core-api" % (dirs["base"]),
|
||||
@@ -1033,6 +1057,15 @@ def uiTestPipeline(ctx, filterTags, runPart = 1, numberOfParts = 1, storage = "o
|
||||
else:
|
||||
pipelineName = "Web-Tests-ocis%s-%s-storage-%s" % (uniqueNameString, storage, runPart)
|
||||
|
||||
extra_server_environment = {
|
||||
"OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD": False,
|
||||
"FRONTEND_PASSWORD_POLICY_MIN_CHARACTERS": 1,
|
||||
"FRONTEND_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS": 0,
|
||||
"FRONTEND_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS": 0,
|
||||
"FRONTEND_PASSWORD_POLICY_MIN_DIGITS": 0,
|
||||
"FRONTEND_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS": 0,
|
||||
}
|
||||
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
@@ -1045,7 +1078,7 @@ def uiTestPipeline(ctx, filterTags, runPart = 1, numberOfParts = 1, storage = "o
|
||||
restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin") +
|
||||
restoreWebCache() +
|
||||
restoreWebPnpmCache() +
|
||||
ocisServer(storage, accounts_hash_difficulty) +
|
||||
ocisServer(storage, accounts_hash_difficulty, extra_server_environment = extra_server_environment) +
|
||||
waitForSeleniumService() +
|
||||
waitForMiddlewareService() +
|
||||
[
|
||||
@@ -1878,6 +1911,8 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on =
|
||||
"FRONTEND_SEARCH_MIN_LENGTH": "2",
|
||||
"OCIS_ASYNC_UPLOADS": True,
|
||||
"OCIS_EVENTS_ENABLE_TLS": False,
|
||||
"MICRO_REGISTRY": "natsjs",
|
||||
"MICRO_REGISTRY_ADDRESS": "127.0.0.1:9233",
|
||||
}
|
||||
|
||||
if deploy_type == "":
|
||||
@@ -2483,20 +2518,20 @@ def litmus(ctx, storage):
|
||||
litmusCommand,
|
||||
],
|
||||
},
|
||||
{
|
||||
"name": "public-share",
|
||||
"image": OC_LITMUS,
|
||||
"environment": {
|
||||
"LITMUS_PASSWORD": "admin",
|
||||
"LITMUS_USERNAME": "admin",
|
||||
"TESTS": "basic copymove http",
|
||||
},
|
||||
"commands": [
|
||||
"source .env",
|
||||
"export LITMUS_URL='https://ocis-server:9200/remote.php/dav/public-files/'$PUBLIC_TOKEN",
|
||||
litmusCommand,
|
||||
],
|
||||
},
|
||||
# {
|
||||
# "name": "public-share",
|
||||
# "image": OC_LITMUS,
|
||||
# "environment": {
|
||||
# "LITMUS_PASSWORD": "admin",
|
||||
# "LITMUS_USERNAME": "admin",
|
||||
# "TESTS": "basic copymove http",
|
||||
# },
|
||||
# "commands": [
|
||||
# "source .env",
|
||||
# "export LITMUS_URL='https://ocis-server:9200/remote.php/dav/public-files/'$PUBLIC_TOKEN",
|
||||
# litmusCommand,
|
||||
# ],
|
||||
# },
|
||||
{
|
||||
"name": "spaces-endpoint",
|
||||
"image": OC_LITMUS,
|
||||
@@ -2586,6 +2621,7 @@ def generateWebPnpmCache(ctx):
|
||||
"image": OC_CI_NODEJS % DEFAULT_NODEJS_VERSION,
|
||||
"commands": [
|
||||
"cd %s" % dirs["web"],
|
||||
'npm install --silent --global --force "$(jq -r ".packageManager" < package.json)"',
|
||||
"pnpm config set store-dir ./.pnpm-store",
|
||||
"retry -t 3 'pnpm install'",
|
||||
],
|
||||
@@ -2677,6 +2713,7 @@ def restoreWebPnpmCache():
|
||||
"cd %s" % dirs["web"],
|
||||
"rm -rf .pnpm-store",
|
||||
"tar -xvf %s" % dirs["webPnpmZip"],
|
||||
'npm install --silent --global --force "$(jq -r ".packageManager" < package.json)"',
|
||||
"pnpm config set store-dir ./.pnpm-store",
|
||||
"retry -t 3 'pnpm install'",
|
||||
],
|
||||
|
||||
@@ -8,13 +8,9 @@ assignees: ''
|
||||
---
|
||||
|
||||
## Describe the bug
|
||||
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
## Steps to reproduce
|
||||
|
||||
Steps to reproduce the behavior:
|
||||
|
||||
1.
|
||||
2.
|
||||
3.
|
||||
@@ -26,7 +22,6 @@ A clear and concise description of what you expected to happen.
|
||||
A clear and concise description of what happened.
|
||||
|
||||
## Setup
|
||||
|
||||
Please describe how you started the server and provide a list of relevant environment variables or configuration files.
|
||||
|
||||
<details>
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
---
|
||||
name: User story
|
||||
about: Suggest an idea the agile way :-)
|
||||
title: ''
|
||||
labels: Type:Story
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
# Description
|
||||
|
||||
## User Stories
|
||||
|
||||
* > As a ..., I want to ... so that ... (please stick to who, what, why)
|
||||
|
||||
## Value
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
## Definition of ready
|
||||
- [ ] Everybody needs to understand the value written in the user story
|
||||
- [ ] Acceptance criteria have to be defined
|
||||
- [ ] All dependencies of the user story need to be identified
|
||||
- [ ] Feature should be seen from an end user perspective
|
||||
- [ ] Story has to be estimated
|
||||
- [ ] Story points need to be less than 20
|
||||
|
||||
## Definition of done
|
||||
- Functional requirements
|
||||
- [ ] Functionality described in the user story works
|
||||
- [ ] Acceptance criteria are fulfilled
|
||||
- Quality
|
||||
- [ ] Code review happened
|
||||
- [ ] CI is green (that includes new and existing automated tests)
|
||||
- [ ] Critical code received unit tests by the developer
|
||||
- Non-functional requirements
|
||||
- [ ] No sonar cloud issues
|
||||
- Configuration changes
|
||||
- [ ] The next branch of the ocis charts is compatible
|
||||
@@ -24,6 +24,7 @@ ocis/cmd/ocis/config/
|
||||
|
||||
# docs
|
||||
/hugo
|
||||
/docs/services/*/_index.md
|
||||
|
||||
# IDEs
|
||||
.idea
|
||||
|
||||
+309
-9
@@ -1,8 +1,230 @@
|
||||
# Table of Contents
|
||||
|
||||
* [Changelog for unreleased](#changelog-for-unreleased-unreleased)
|
||||
* [Changelog for 5.0.0](#changelog-for-500-2023-11-08)
|
||||
* [Changelog for 4.0.0](#changelog-for-400-2023-08-21)
|
||||
* [Changelog for 3.0.0](#changelog-for-300-2023-06-06)
|
||||
* [Changelog for 2.0.0](#changelog-for-200-2022-11-30)
|
||||
* [Changelog for 1.20.0](#changelog-for-1200-2022-04-13)
|
||||
* [Changelog for 1.19.1](#changelog-for-1191-2022-03-29)
|
||||
* [Changelog for 1.19.0](#changelog-for-1190-2022-03-29)
|
||||
* [Changelog for 1.18.0](#changelog-for-1180-2022-03-03)
|
||||
* [Changelog for 1.17.0](#changelog-for-1170-2022-02-16)
|
||||
* [Changelog for 1.16.0](#changelog-for-1160-2021-12-10)
|
||||
* [Changelog for 1.15.0](#changelog-for-1150-2021-11-19)
|
||||
* [Changelog for 1.14.0](#changelog-for-1140-2021-10-27)
|
||||
* [Changelog for 1.13.0](#changelog-for-1130-2021-10-13)
|
||||
* [Changelog for 1.12.0](#changelog-for-1120-2021-09-14)
|
||||
* [Changelog for 1.11.0](#changelog-for-1110-2021-08-24)
|
||||
* [Changelog for 1.10.0](#changelog-for-1100-2021-08-06)
|
||||
* [Changelog for 1.9.0](#changelog-for-190-2021-07-13)
|
||||
* [Changelog for 1.8.0](#changelog-for-180-2021-06-28)
|
||||
* [Changelog for 1.7.0](#changelog-for-170-2021-06-04)
|
||||
* [Changelog for 1.6.0](#changelog-for-160-2021-05-12)
|
||||
* [Changelog for 1.5.0](#changelog-for-150-2021-04-21)
|
||||
* [Changelog for 1.4.0](#changelog-for-140-2021-03-30)
|
||||
* [Changelog for 1.3.0](#changelog-for-130-2021-03-09)
|
||||
* [Changelog for 1.2.0](#changelog-for-120-2021-02-17)
|
||||
* [Changelog for 1.1.0](#changelog-for-110-2021-01-22)
|
||||
* [Changelog for 1.0.0](#changelog-for-100-2020-12-17)
|
||||
|
||||
# Changelog for [unreleased] (UNRELEASED)
|
||||
|
||||
The following sections list the changes for unreleased.
|
||||
|
||||
[unreleased]: https://github.com/owncloud/ocis/compare/v4.0.0...master
|
||||
[unreleased]: https://github.com/owncloud/ocis/compare/v5.0.0...master
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Fix libre-graph status codes: [#7678](https://github.com/owncloud/ocis/issues/7678)
|
||||
* Bugfix - Fix last month search: [#31145](https://github.com/golang/go/issues/31145)
|
||||
* Bugfix - Fix unlock via space API: [#7726](https://github.com/owncloud/ocis/pull/7726)
|
||||
* Bugfix - Fix the tgz mime type: [#7772](https://github.com/owncloud/ocis/pull/7772)
|
||||
* Enhancement - Add search MediaType filter: [#7602](https://github.com/owncloud/ocis/pull/7602)
|
||||
* Enhancement - Allow configuring additional routes: [#7740](https://github.com/owncloud/ocis/pull/7740)
|
||||
* Enhancement - Bump reva: [#7721](https://github.com/owncloud/ocis/pull/7721)
|
||||
* Enhancement - Add Sharing NG endpoints: [#7633](https://github.com/owncloud/ocis/pull/7633)
|
||||
* Enhancement - Add new permissions: [#7700](https://github.com/owncloud/ocis/pull/7700)
|
||||
* Enhancement - Add preferred language to user settings: [#7720](https://github.com/owncloud/ocis/pull/7720)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Fix libre-graph status codes: [#7678](https://github.com/owncloud/ocis/issues/7678)
|
||||
|
||||
Creating group: https://owncloud.dev/libre-graph-api/#/groups/CreateGroup changed:
|
||||
200 -> 201
|
||||
|
||||
Creating users: https://owncloud.dev/libre-graph-api/#/users/CreateUser changed: 200
|
||||
-> 201
|
||||
|
||||
Export GDPR: https://owncloud.dev/libre-graph-api/#/user/ExportPersonalData
|
||||
changed: 201 -> 202
|
||||
|
||||
https://github.com/owncloud/ocis/issues/7678
|
||||
https://github.com/owncloud/ocis/pull/7705
|
||||
|
||||
* Bugfix - Fix last month search: [#31145](https://github.com/golang/go/issues/31145)
|
||||
|
||||
We've fixed the last month search edge case when currently is 31-th.
|
||||
|
||||
Https://github.com/owncloud/ocis/issues/7629
|
||||
https://github.com/owncloud/ocis/pull/7742
|
||||
|
||||
https://github.com/golang/go/issues/31145
|
||||
The
|
||||
issue
|
||||
is
|
||||
related
|
||||
to
|
||||
the
|
||||
build-in
|
||||
package
|
||||
behavior
|
||||
|
||||
* Bugfix - Fix unlock via space API: [#7726](https://github.com/owncloud/ocis/pull/7726)
|
||||
|
||||
We fixed a bug that caused Error 500 when user try to unlock file using fileid The
|
||||
handleSpaceUnlock has been added
|
||||
|
||||
https://github.com/owncloud/ocis/issues/7708
|
||||
https://github.com/owncloud/ocis/pull/7726
|
||||
https://github.com/cs3org/reva/pull/4338
|
||||
|
||||
* Bugfix - Fix the tgz mime type: [#7772](https://github.com/owncloud/ocis/pull/7772)
|
||||
|
||||
We have fixed a bug when the tgz mime type was not "application/gzip"
|
||||
|
||||
https://github.com/owncloud/ocis/issues/7744
|
||||
https://github.com/owncloud/ocis/pull/7772
|
||||
|
||||
* Enhancement - Add search MediaType filter: [#7602](https://github.com/owncloud/ocis/pull/7602)
|
||||
|
||||
Add filter MediaType filter shortcuts to search for specific document types. For example, a
|
||||
search query mediatype:documents will search for files with the following mimetypes:
|
||||
|
||||
Application/msword
|
||||
MimeType:application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
||||
MimeType:application/vnd.oasis.opendocument.text MimeType:text/plain
|
||||
MimeType:text/markdown MimeType:application/rtf
|
||||
MimeType:application/vnd.apple.pages
|
||||
|
||||
Besides the document shorthand, it also contains following:
|
||||
|
||||
* file
|
||||
* folder
|
||||
* document
|
||||
* spreadsheet
|
||||
* presentation
|
||||
* pdf
|
||||
* image
|
||||
* video
|
||||
* audio
|
||||
* archive
|
||||
|
||||
## File
|
||||
|
||||
## Folder
|
||||
|
||||
## Document:
|
||||
|
||||
Application/msword
|
||||
application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
||||
application/vnd.oasis.opendocument.text text/plain text/markdown application/rtf
|
||||
application/vnd.apple.pages
|
||||
|
||||
## Spreadsheet:
|
||||
|
||||
Application/vnd.ms-excel application/vnd.oasis.opendocument.spreadsheet text/csv
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
||||
application/vnd.oasis.opendocument.spreadsheet application/vnd.apple.numbers
|
||||
|
||||
## Presentations:
|
||||
|
||||
Application/vnd.ms-powerpoint
|
||||
application/vnd.openxmlformats-officedocument.presentationml.presentation
|
||||
application/vnd.oasis.opendocument.presentation application/vnd.apple.keynote
|
||||
|
||||
## PDF
|
||||
|
||||
Application/pdf
|
||||
|
||||
## Image:
|
||||
|
||||
Image/*
|
||||
|
||||
## Video:
|
||||
|
||||
Video/*
|
||||
|
||||
## Audio:
|
||||
|
||||
Audio/*
|
||||
|
||||
## Archive (zip ...):
|
||||
|
||||
Application/zip application/x-tar application/x-gzip application/x-7z-compressed
|
||||
application/x-rar-compressed application/x-bzip2 application/x-bzip
|
||||
application/x-tgz
|
||||
|
||||
https://github.com/owncloud/ocis/issues/7432
|
||||
https://github.com/owncloud/ocis/pull/7602
|
||||
|
||||
* Enhancement - Allow configuring additional routes: [#7740](https://github.com/owncloud/ocis/pull/7740)
|
||||
|
||||
Allows adding custom routes to the ocis proxy. This enables customs ocis extensions
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7740
|
||||
|
||||
* Enhancement - Bump reva: [#7721](https://github.com/owncloud/ocis/pull/7721)
|
||||
|
||||
Bumps reva version
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7721
|
||||
https://github.com/owncloud/ocis/pull/7727
|
||||
https://github.com/owncloud/ocis/pull/7752
|
||||
|
||||
* Enhancement - Add Sharing NG endpoints: [#7633](https://github.com/owncloud/ocis/pull/7633)
|
||||
|
||||
We've added new sharing ng endpoints to the graph beta api. The following endpoints are added:
|
||||
|
||||
* /v1beta1/me/drive/sharedByMe
|
||||
* /v1beta1/me/drive/sharedWithMe
|
||||
* /v1beta1/roleManagement/permissions/roleDefinitions
|
||||
* /v1beta1/roleManagement/permissions/roleDefinitions/{roleID}
|
||||
* /v1beta1/drives/{drive-id}/items/{item-id}/createLink (create a sharing link)
|
||||
|
||||
https://github.com/owncloud/ocis/issues/7436
|
||||
https://github.com/owncloud/ocis/issues/6993
|
||||
https://github.com/owncloud/ocis/pull/7633
|
||||
https://github.com/owncloud/ocis/pull/7686
|
||||
https://github.com/owncloud/ocis/pull/7684
|
||||
https://github.com/owncloud/ocis/pull/7683
|
||||
https://github.com/owncloud/ocis/pull/7239
|
||||
https://github.com/owncloud/ocis/pull/7687
|
||||
https://github.com/owncloud/libre-graph-api/pull/112
|
||||
|
||||
* Enhancement - Add new permissions: [#7700](https://github.com/owncloud/ocis/pull/7700)
|
||||
|
||||
Adds new permissions to admin/spaceadmin/user roles - Favorites.List allows / denies the
|
||||
Favorites Listing Request - Favorites.Write is implemented to be enforced on marking/unmark
|
||||
files as favouritesShare - Shares.Write permission denies / allows sharing completely for a
|
||||
user on all share CUD requests. (User, Group)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7700
|
||||
|
||||
* Enhancement - Add preferred language to user settings: [#7720](https://github.com/owncloud/ocis/pull/7720)
|
||||
|
||||
We have added the preferred language to the libre-graph api & added endpoints for that to ocis.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/5455
|
||||
https://github.com/owncloud/ocis/pull/7720
|
||||
https://github.com/owncloud/libre-graph-api/pull/130
|
||||
|
||||
# Changelog for [5.0.0] (2023-11-08)
|
||||
|
||||
The following sections list the changes for 5.0.0.
|
||||
|
||||
[5.0.0]: https://github.com/owncloud/ocis/compare/v4.0.0...v5.0.0
|
||||
|
||||
## Summary
|
||||
|
||||
@@ -28,20 +250,23 @@ The following sections list the changes for unreleased.
|
||||
* Enhancement - Add "Last modified" filter Chip: [#7455](https://github.com/owncloud/ocis/pull/7455)
|
||||
* Enhancement - Add the Banned Passwords List: [#4197](https://github.com/cs3org/reva/pull/4197)
|
||||
* Enhancement - Add the password policies: [#7285](https://github.com/owncloud/ocis/pull/7285)
|
||||
* Enhancement - Bump Reva: [#7611](https://github.com/owncloud/ocis/pull/7611)
|
||||
* Enhancement - Bump reva: [#7629](https://github.com/owncloud/ocis/pull/7629)
|
||||
* Enhancement - Edit wrong named enves: [#7406](https://github.com/owncloud/ocis/pull/7406)
|
||||
* Enhancement - Introduce clientlog service: [#7217](https://github.com/owncloud/ocis/pull/7217)
|
||||
* Enhancement - Set default for Async Uploads to true: [#7416](https://github.com/owncloud/ocis/pull/7416)
|
||||
* Enhancement - The default language added: [#7417](https://github.com/owncloud/ocis/pull/7417)
|
||||
* Enhancement - Config for disabling Web extensions: [#7486](https://github.com/owncloud/ocis/pull/7486)
|
||||
* Enhancement - Add login URL config: [#7317](https://github.com/owncloud/ocis/pull/7317)
|
||||
* Enhancement - Add support for audio files to the thumbnails service: [#7491](https://github.com/owncloud/ocis/pull/7491)
|
||||
* Enhancement - New value `auto` for NOTIFICATIONS_SMTP_AUTHENTICATION: [#7356](https://github.com/owncloud/ocis/issues/7356)
|
||||
* Enhancement - Tika content extraction cleanup for search: [#7553](https://github.com/owncloud/ocis/pull/7553)
|
||||
* Enhancement - SSE for messaging: [#6992](https://github.com/owncloud/ocis/pull/6992)
|
||||
* Enhancement - Store and index metadata: [#7490](https://github.com/owncloud/ocis/pull/7490)
|
||||
* Enhancement - Implement sharing roles: [#7524](https://github.com/owncloud/ocis/pull/7524)
|
||||
* Enhancement - Improve SSE format: [#7325](https://github.com/owncloud/ocis/pull/7325)
|
||||
* Enhancement - Keyword Query Language (KQL) search syntax: [#7212](https://github.com/owncloud/ocis/pull/7212)
|
||||
* Enhancement - Add OCIS_LDAP_BIND_PASSWORD as replacement for LDAP_BIND_PASSWORD: [#7176](https://github.com/owncloud/ocis/issues/7176)
|
||||
* Enhancement - Introduce natsjs registry: [#7272](https://github.com/owncloud/ocis/issues/7272)
|
||||
* Enhancement - Add new permission to delete public link password: [#7538](https://github.com/owncloud/ocis/pull/7538)
|
||||
* Enhancement - The password policies change request: [#7264](https://github.com/cs3org/reva/pull/7264)
|
||||
* Enhancement - Proxy uses service accounts for provisioning: [#7240](https://github.com/owncloud/ocis/pull/7240)
|
||||
@@ -50,7 +275,8 @@ The following sections list the changes for unreleased.
|
||||
* Enhancement - Make sse service scalable: [#7382](https://github.com/owncloud/ocis/pull/7382)
|
||||
* Enhancement - Allow configuring storage registry with envvars: [#7554](https://github.com/owncloud/ocis/pull/7554)
|
||||
* Enhancement - Thumbnail generation with image processors: [#7409](https://github.com/owncloud/ocis/pull/7409)
|
||||
* Enhancement - Update web to v8.0.0: [#7622](https://github.com/owncloud/ocis/pull/7622)
|
||||
* Enhancement - Update web to v8.0.0: [#7773](https://github.com/owncloud/ocis/pull/7773)
|
||||
* Enhancement - Configs for Web embed mode: [#7670](https://github.com/owncloud/ocis/pull/7670)
|
||||
|
||||
## Details
|
||||
|
||||
@@ -214,10 +440,11 @@ The following sections list the changes for unreleased.
|
||||
https://github.com/owncloud/ocis/pull/7194
|
||||
https://github.com/cs3org/reva/pull/4147
|
||||
|
||||
* Enhancement - Bump Reva: [#7611](https://github.com/owncloud/ocis/pull/7611)
|
||||
* Enhancement - Bump reva: [#7629](https://github.com/owncloud/ocis/pull/7629)
|
||||
|
||||
Bumps reva version
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7629
|
||||
https://github.com/owncloud/ocis/pull/7611
|
||||
https://github.com/owncloud/ocis/pull/7540
|
||||
https://github.com/owncloud/ocis/pull/7526
|
||||
@@ -270,6 +497,13 @@ The following sections list the changes for unreleased.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7317
|
||||
|
||||
* Enhancement - Add support for audio files to the thumbnails service: [#7491](https://github.com/owncloud/ocis/pull/7491)
|
||||
|
||||
The thumbnails service can now extract artwork from audio files (mp3, ogg, flac) and render it
|
||||
just like any other image.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7491
|
||||
|
||||
* Enhancement - New value `auto` for NOTIFICATIONS_SMTP_AUTHENTICATION: [#7356](https://github.com/owncloud/ocis/issues/7356)
|
||||
|
||||
This cause the notifications service to automatically pick a suitable authentication method
|
||||
@@ -305,6 +539,13 @@ The following sections list the changes for unreleased.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/6992
|
||||
|
||||
* Enhancement - Store and index metadata: [#7490](https://github.com/owncloud/ocis/pull/7490)
|
||||
|
||||
Audio metadata is now extracted and stored by the search service. It is available for
|
||||
driveItems in a folder listing using the Graph API.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7490
|
||||
|
||||
* Enhancement - Implement sharing roles: [#7524](https://github.com/owncloud/ocis/pull/7524)
|
||||
|
||||
Implement libre graph sharing roles
|
||||
@@ -380,6 +621,13 @@ The following sections list the changes for unreleased.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/7176
|
||||
|
||||
* Enhancement - Introduce natsjs registry: [#7272](https://github.com/owncloud/ocis/issues/7272)
|
||||
|
||||
Introduce a registry based on the natsjs object store
|
||||
|
||||
https://github.com/owncloud/ocis/issues/7272
|
||||
https://github.com/owncloud/ocis/pull/7487
|
||||
|
||||
* Enhancement - Add new permission to delete public link password: [#7538](https://github.com/owncloud/ocis/pull/7538)
|
||||
|
||||
Users with this new permission can now delete passwords on read-only public links. The
|
||||
@@ -460,7 +708,7 @@ The following sections list the changes for unreleased.
|
||||
https://github.com/owncloud/web/issues/7728
|
||||
https://github.com/owncloud/ocis/pull/7409
|
||||
|
||||
* Enhancement - Update web to v8.0.0: [#7622](https://github.com/owncloud/ocis/pull/7622)
|
||||
* Enhancement - Update web to v8.0.0: [#7773](https://github.com/owncloud/ocis/pull/7773)
|
||||
|
||||
Tags: web
|
||||
|
||||
@@ -487,6 +735,8 @@ The following sections list the changes for unreleased.
|
||||
characters in username * Bugfix
|
||||
[owncloud/web#9788](https://github.com/owncloud/web/issues/9788) - Create .space
|
||||
folder if it does not exist * Bugfix
|
||||
[owncloud/web#9799](https://github.com/owncloud/web/issues/9799) - Link resolving
|
||||
into default app * Bugfix
|
||||
[owncloud/web#9832](https://github.com/owncloud/web/pull/9832) - Copy quicklinks for
|
||||
webkit navigator * Bugfix
|
||||
[owncloud/web#9843](https://github.com/owncloud/web/pull/9843) - Fix display path on
|
||||
@@ -497,9 +747,15 @@ The following sections list the changes for unreleased.
|
||||
[owncloud/web#9873](https://github.com/owncloud/web/pull/9873) - Tags are no longer
|
||||
editable for a locked file * Bugfix
|
||||
[owncloud/web#9881](https://github.com/owncloud/web/pull/9881) - Prevent rendering
|
||||
of old/wrong set of resources in search list * Enhancement
|
||||
of old/wrong set of resources in search list * Bugfix
|
||||
[owncloud/web#9913](https://github.com/owncloud/web/pull/9913) - Private link
|
||||
resolving via share jail ID * Bugfix
|
||||
[owncloud/web#9915](https://github.com/owncloud/web/pull/9915) - Keep both folders
|
||||
conflict in same-named folders * Enhancement
|
||||
[owncloud/web#7317](https://github.com/owncloud/ocis/pull/7317) - Make login url
|
||||
configurable * Enhancement
|
||||
[owncloud/web#7497](https://github.com/owncloud/ocis/issues/7497) - Permission
|
||||
checks for shares and favorites * Enhancement
|
||||
[owncloud/web#7600](https://github.com/owncloud/web/issues/7600) - Scroll to newly
|
||||
created folder * Enhancement
|
||||
[owncloud/web#9302](https://github.com/owncloud/web/issues/9302) - Application
|
||||
@@ -568,10 +824,30 @@ The following sections list the changes for unreleased.
|
||||
[owncloud/web#9864](https://github.com/owncloud/web/pull/9864) - Search tags filter
|
||||
chips style aligned * Enhancement
|
||||
[owncloud/web#9884](https://github.com/owncloud/web/pull/9884) - Enable dark theme on
|
||||
importer
|
||||
importer * Enhancement
|
||||
[owncloud/web#9890](https://github.com/owncloud/web/pull/9890) - Create shortcuts *
|
||||
Enhancement [owncloud/web#9905](https://github.com/owncloud/web/pull/9905) - Manage
|
||||
tags in details panel * Enhancement
|
||||
[owncloud/web#9906](https://github.com/owncloud/web/pull/9906) - Reorganize "New"
|
||||
menu * Enhancement [owncloud/web#9911](https://github.com/owncloud/web/pull/9911) -
|
||||
Provide vendor neutral file icons * Enhancement
|
||||
[owncloud/web#9912](https://github.com/owncloud/web/pull/9912) - Add media type
|
||||
filter chip
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7773
|
||||
https://github.com/owncloud/web/releases/tag/v8.0.0-alpha.10
|
||||
|
||||
* Enhancement - Configs for Web embed mode: [#7670](https://github.com/owncloud/ocis/pull/7670)
|
||||
|
||||
New configs for the Web embed mode have been added:
|
||||
|
||||
* `enabled` Defines if embed mode is enabled.
|
||||
* `target` Defines how Web is being integrated when running in embed mode.
|
||||
* `messagesOrigin` Defines a URL under which Web can be integrated via iFrame.
|
||||
|
||||
https://github.com/owncloud/web/issues/9768
|
||||
https://github.com/owncloud/ocis/pull/7670
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7622
|
||||
https://github.com/owncloud/web/releases/tag/v8.0.0
|
||||
# Changelog for [4.0.0] (2023-08-21)
|
||||
|
||||
The following sections list the changes for 4.0.0.
|
||||
@@ -1403,6 +1679,7 @@ The following sections list the changes for 4.0.0.
|
||||
Add a configreva for the new reva disable-chat feature
|
||||
|
||||
https://github.com/owncloud/ocis/pull/6544
|
||||
|
||||
# Changelog for [3.0.0] (2023-06-06)
|
||||
|
||||
The following sections list the changes for 3.0.0.
|
||||
@@ -3120,6 +3397,7 @@ The following sections list the changes for 3.0.0.
|
||||
Hardcode web options instead of using a generic `map[string]interface{}`
|
||||
|
||||
https://github.com/owncloud/ocis/pull/6188
|
||||
|
||||
# Changelog for [2.0.0] (2022-11-30)
|
||||
|
||||
The following sections list the changes for 2.0.0.
|
||||
@@ -5557,6 +5835,7 @@ The following sections list the changes for 2.0.0.
|
||||
list.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/4716
|
||||
|
||||
# Changelog for [1.20.0] (2022-04-13)
|
||||
|
||||
The following sections list the changes for 1.20.0.
|
||||
@@ -5729,6 +6008,7 @@ The following sections list the changes for 1.20.0.
|
||||
Group member remove
|
||||
|
||||
https://github.com/owncloud/ocis/pull/3467
|
||||
|
||||
# Changelog for [1.19.1] (2022-03-29)
|
||||
|
||||
The following sections list the changes for 1.19.1.
|
||||
@@ -5746,6 +6026,7 @@ The following sections list the changes for 1.19.1.
|
||||
URLs for Special items (space image, readme) were broken.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/3419
|
||||
|
||||
# Changelog for [1.19.0] (2022-03-29)
|
||||
|
||||
The following sections list the changes for 1.19.0.
|
||||
@@ -5919,6 +6200,7 @@ The following sections list the changes for 1.19.0.
|
||||
https://github.com/owncloud/ocis/pull/3291
|
||||
https://github.com/owncloud/ocis/pull/3375
|
||||
https://github.com/owncloud/web/releases/tag/v5.3.0
|
||||
|
||||
# Changelog for [1.18.0] (2022-03-03)
|
||||
|
||||
The following sections list the changes for 1.18.0.
|
||||
@@ -6130,6 +6412,7 @@ The following sections list the changes for 1.18.0.
|
||||
https://github.com/owncloud/web/pull/6506
|
||||
https://github.com/owncloud/ocis/pull/3202
|
||||
https://github.com/owncloud/web/releases/tag/v5.2.0
|
||||
|
||||
# Changelog for [1.17.0] (2022-02-16)
|
||||
|
||||
The following sections list the changes for 1.17.0.
|
||||
@@ -6434,6 +6717,7 @@ The following sections list the changes for 1.17.0.
|
||||
https://github.com/owncloud/ocis/pull/3157
|
||||
https://github.com/owncloud/web/releases/tag/v4.8.0
|
||||
https://github.com/owncloud/web/releases/tag/v5.0.0
|
||||
|
||||
# Changelog for [1.16.0] (2021-12-10)
|
||||
|
||||
The following sections list the changes for 1.16.0.
|
||||
@@ -6561,6 +6845,7 @@ The following sections list the changes for 1.16.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2846
|
||||
https://github.com/owncloud/web/releases/tag/v4.6.1
|
||||
|
||||
# Changelog for [1.15.0] (2021-11-19)
|
||||
|
||||
The following sections list the changes for 1.15.0.
|
||||
@@ -6722,6 +7007,7 @@ The following sections list the changes for 1.15.0.
|
||||
https://github.com/owncloud/ocis/pull/2726
|
||||
https://github.com/owncloud/ocis/pull/2790
|
||||
https://github.com/owncloud/ocis/pull/2797
|
||||
|
||||
# Changelog for [1.14.0] (2021-10-27)
|
||||
|
||||
The following sections list the changes for 1.14.0.
|
||||
@@ -6922,6 +7208,7 @@ The following sections list the changes for 1.14.0.
|
||||
https://github.com/owncloud/ocis/pull/2536
|
||||
https://github.com/owncloud/ocis/pull/2650
|
||||
https://github.com/owncloud/ocis/pull/2680
|
||||
|
||||
# Changelog for [1.13.0] (2021-10-13)
|
||||
|
||||
The following sections list the changes for 1.13.0.
|
||||
@@ -7211,6 +7498,7 @@ The following sections list the changes for 1.13.0.
|
||||
https://github.com/owncloud/ocis/pull/2615
|
||||
https://github.com/owncloud/ocis/pull/2566
|
||||
https://github.com/owncloud/ocis/pull/2520
|
||||
|
||||
# Changelog for [1.12.0] (2021-09-14)
|
||||
|
||||
The following sections list the changes for 1.12.0.
|
||||
@@ -7341,6 +7629,7 @@ The following sections list the changes for 1.12.0.
|
||||
* Enhancement [cs3org/reva#2029](https://github.com/cs3org/reva/pull/2029): Tracing agent configuration
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2477
|
||||
|
||||
# Changelog for [1.11.0] (2021-08-24)
|
||||
|
||||
The following sections list the changes for 1.11.0.
|
||||
@@ -7434,6 +7723,7 @@ The following sections list the changes for 1.11.0.
|
||||
* Bugfix cs3org/reva#1993: fix owncloudsql GetMD
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2423
|
||||
|
||||
# Changelog for [1.10.0] (2021-08-06)
|
||||
|
||||
The following sections list the changes for 1.10.0.
|
||||
@@ -7571,6 +7861,7 @@ The following sections list the changes for 1.10.0.
|
||||
extension.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2344
|
||||
|
||||
# Changelog for [1.9.0] (2021-07-13)
|
||||
|
||||
The following sections list the changes for 1.9.0.
|
||||
@@ -7675,6 +7966,7 @@ The following sections list the changes for 1.9.0.
|
||||
* Enh cs3org/reva#1827: Support trashbin sub paths in the recycle API
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2280
|
||||
|
||||
# Changelog for [1.8.0] (2021-06-28)
|
||||
|
||||
The following sections list the changes for 1.8.0.
|
||||
@@ -7761,6 +8053,7 @@ The following sections list the changes for 1.8.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2205
|
||||
https://github.com/owncloud/ocis/pull/2210
|
||||
|
||||
# Changelog for [1.7.0] (2021-06-04)
|
||||
|
||||
The following sections list the changes for 1.7.0.
|
||||
@@ -7827,6 +8120,7 @@ The following sections list the changes for 1.7.0.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2102
|
||||
https://github.com/owncloud/ocis/pull/2104
|
||||
|
||||
# Changelog for [1.6.0] (2021-05-12)
|
||||
|
||||
The following sections list the changes for 1.6.0.
|
||||
@@ -7937,6 +8231,7 @@ The following sections list the changes for 1.6.0.
|
||||
Changed SameSite settings to Strict for Web to prevent warnings in Firefox
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2019
|
||||
|
||||
# Changelog for [1.5.0] (2021-04-21)
|
||||
|
||||
The following sections list the changes for 1.5.0.
|
||||
@@ -8031,6 +8326,7 @@ The following sections list the changes for 1.5.0.
|
||||
* implement checksums in the owncloud storage driver (https://github.com/cs3org/reva/pull/1629)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1872
|
||||
|
||||
# Changelog for [1.4.0] (2021-03-30)
|
||||
|
||||
The following sections list the changes for 1.4.0.
|
||||
@@ -8158,6 +8454,7 @@ The following sections list the changes for 1.4.0.
|
||||
https://github.com/owncloud/ocis/pull/1683
|
||||
https://github.com/cs3org/reva/pull/1405
|
||||
https://github.com/owncloud/ocis/pull/1861
|
||||
|
||||
# Changelog for [1.3.0] (2021-03-09)
|
||||
|
||||
The following sections list the changes for 1.3.0.
|
||||
@@ -8279,6 +8576,7 @@ The following sections list the changes for 1.3.0.
|
||||
be given with `MICRO_REGISTRY_ADDRESS=1.2.3.4,5.6.7.8,9.10.11.12`.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1697
|
||||
|
||||
# Changelog for [1.2.0] (2021-02-17)
|
||||
|
||||
The following sections list the changes for 1.2.0.
|
||||
@@ -8438,6 +8736,7 @@ The following sections list the changes for 1.2.0.
|
||||
https://github.com/cs3org/reva/pull/1416
|
||||
https://github.com/cs3org/reva/pull/1415
|
||||
https://github.com/cs3org/reva/pull/1408
|
||||
|
||||
# Changelog for [1.1.0] (2021-01-22)
|
||||
|
||||
The following sections list the changes for 1.1.0.
|
||||
@@ -8663,6 +8962,7 @@ The following sections list the changes for 1.1.0.
|
||||
https://github.com/owncloud/ocis/pull/1194
|
||||
https://github.com/cs3org/reva/pull/1368
|
||||
https://github.com/cs3org/reva/pull/1388
|
||||
|
||||
# Changelog for [1.0.0] (2020-12-17)
|
||||
|
||||
The following sections list the changes for 1.0.0.
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
Enhancement: Bump Reva
|
||||
|
||||
bumps reva version
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7611
|
||||
https://github.com/owncloud/ocis/pull/7540
|
||||
https://github.com/owncloud/ocis/pull/7526
|
||||
https://github.com/owncloud/ocis/pull/7138
|
||||
https://github.com/owncloud/ocis/pull/6427
|
||||
https://github.com/owncloud/ocis/pull/7178
|
||||
https://github.com/owncloud/ocis/pull/7217
|
||||
https://github.com/owncloud/ocis/pull/7410
|
||||
https://github.com/owncloud/ocis/pull/7476
|
||||
https://github.com/owncloud/ocis/pull/7551
|
||||
https://github.com/owncloud/ocis/pull/7581
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,85 @@
|
||||
Enhancement: Add search MediaType filter
|
||||
|
||||
Add filter MediaType filter shortcuts to search for specific document types.
|
||||
For example, a search query mediatype:documents will search for files with the following mimetypes:
|
||||
|
||||
application/msword
|
||||
MimeType:application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
||||
MimeType:application/vnd.oasis.opendocument.text
|
||||
MimeType:text/plain
|
||||
MimeType:text/markdown
|
||||
MimeType:application/rtf
|
||||
MimeType:application/vnd.apple.pages
|
||||
|
||||
besides the document shorthand, it also contains following:
|
||||
|
||||
* file
|
||||
* folder
|
||||
* document
|
||||
* spreadsheet
|
||||
* presentation
|
||||
* pdf
|
||||
* image
|
||||
* video
|
||||
* audio
|
||||
* archive
|
||||
|
||||
## File
|
||||
|
||||
## Folder
|
||||
|
||||
## Document:
|
||||
|
||||
application/msword
|
||||
application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
||||
application/vnd.oasis.opendocument.text
|
||||
text/plain
|
||||
text/markdown
|
||||
application/rtf
|
||||
application/vnd.apple.pages
|
||||
|
||||
## Spreadsheet:
|
||||
|
||||
application/vnd.ms-excel
|
||||
application/vnd.oasis.opendocument.spreadsheet
|
||||
text/csv
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
||||
application/vnd.oasis.opendocument.spreadsheet
|
||||
application/vnd.apple.numbers
|
||||
|
||||
## Presentations:
|
||||
|
||||
application/vnd.ms-powerpoint
|
||||
application/vnd.openxmlformats-officedocument.presentationml.presentation
|
||||
application/vnd.oasis.opendocument.presentation
|
||||
application/vnd.apple.keynote
|
||||
|
||||
## PDF
|
||||
|
||||
application/pdf
|
||||
|
||||
## Image:
|
||||
|
||||
image/*
|
||||
|
||||
## Video:
|
||||
|
||||
video/*
|
||||
|
||||
## Audio:
|
||||
|
||||
audio/*
|
||||
|
||||
## Archive (zip ...):
|
||||
|
||||
application/zip
|
||||
application/x-tar
|
||||
application/x-gzip
|
||||
application/x-7z-compressed
|
||||
application/x-rar-compressed
|
||||
application/x-bzip2
|
||||
application/x-bzip
|
||||
application/x-tgz
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7602
|
||||
https://github.com/owncloud/ocis/issues/7432
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,5 @@
|
||||
Enhancement: Allow configuring additional routes
|
||||
|
||||
Allows adding custom routes to the ocis proxy. This enables customs ocis extensions
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7740
|
||||
File renamed without changes.
@@ -0,0 +1,7 @@
|
||||
Enhancement: Bump reva
|
||||
|
||||
bumps reva version
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7721
|
||||
https://github.com/owncloud/ocis/pull/7727
|
||||
https://github.com/owncloud/ocis/pull/7752
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+5
@@ -0,0 +1,5 @@
|
||||
Enhancement: Add support for audio files to the thumbnails service
|
||||
|
||||
The thumbnails service can now extract artwork from audio files (mp3, ogg, flac) and render it just like any other image.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7491
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,20 @@
|
||||
Enhancement: Add Sharing NG endpoints
|
||||
|
||||
We've added new sharing ng endpoints to the graph beta api.
|
||||
The following endpoints are added:
|
||||
|
||||
* /v1beta1/me/drive/sharedByMe
|
||||
* /v1beta1/me/drive/sharedWithMe
|
||||
* /v1beta1/roleManagement/permissions/roleDefinitions
|
||||
* /v1beta1/roleManagement/permissions/roleDefinitions/{roleID}
|
||||
* /v1beta1/drives/{drive-id}/items/{item-id}/createLink (create a sharing link)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7633
|
||||
https://github.com/owncloud/ocis/pull/7686
|
||||
https://github.com/owncloud/ocis/pull/7684
|
||||
https://github.com/owncloud/ocis/pull/7683
|
||||
https://github.com/owncloud/ocis/pull/7239
|
||||
https://github.com/owncloud/ocis/pull/7687
|
||||
https://github.com/owncloud/libre-graph-api/pull/112
|
||||
https://github.com/owncloud/ocis/issues/7436
|
||||
https://github.com/owncloud/ocis/issues/6993
|
||||
File renamed without changes.
@@ -0,0 +1,6 @@
|
||||
Enhancement: Store and index metadata
|
||||
|
||||
Audio metadata is now extracted and stored by the search service.
|
||||
It is available for driveItems in a folder listing using the Graph API.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7490
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,15 @@
|
||||
Bugfix: Fix libre-graph status codes
|
||||
|
||||
creating group: https://owncloud.dev/libre-graph-api/#/groups/CreateGroup
|
||||
changed: 200 -> 201
|
||||
|
||||
creating users:
|
||||
https://owncloud.dev/libre-graph-api/#/users/CreateUser
|
||||
changed: 200 -> 201
|
||||
|
||||
export GDPR:
|
||||
https://owncloud.dev/libre-graph-api/#/user/ExportPersonalData
|
||||
changed: 201 -> 202
|
||||
|
||||
https://github.com/owncloud/ocis/issues/7678
|
||||
https://github.com/owncloud/ocis/pull/7705
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,8 @@
|
||||
Bugfix: Fix last month search
|
||||
|
||||
We've fixed the last month search edge case when currently is 31-th.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/7629
|
||||
https://github.com/owncloud/ocis/pull/7742
|
||||
|
||||
The issue is related to the build-in package behavior https://github.com/golang/go/issues/31145
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,8 @@
|
||||
Bugfix: Fix unlock via space API
|
||||
|
||||
We fixed a bug that caused Error 500 when user try to unlock file using fileid
|
||||
The handleSpaceUnlock has been added
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7726
|
||||
https://github.com/owncloud/ocis/issues/7708
|
||||
https://github.com/cs3org/reva/pull/4338
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: Fix the tgz mime type
|
||||
|
||||
We have fixed a bug when the tgz mime type was not "application/gzip"
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7772
|
||||
https://github.com/owncloud/ocis/issues/7744
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,6 @@
|
||||
Enhancement: Introduce natsjs registry
|
||||
|
||||
Introduce a registry based on the natsjs object store
|
||||
|
||||
https://github.com/owncloud/ocis/issues/7272
|
||||
https://github.com/owncloud/ocis/pull/7487
|
||||
@@ -0,0 +1,8 @@
|
||||
Enhancement: Add new permissions
|
||||
|
||||
Adds new permissions to admin/spaceadmin/user roles
|
||||
- Favorites.List allows / denies the Favorites Listing Request
|
||||
- Favorites.Write is implemented to be enforced on marking/unmark files as favouritesShare
|
||||
- Shares.Write permission denies / allows sharing completely for a user on all share CUD requests. (User, Group)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7700
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,7 @@
|
||||
Enhancement: Add preferred language to user settings
|
||||
|
||||
We have added the preferred language to the libre-graph api & added endpoints for that to ocis.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7720
|
||||
https://github.com/owncloud/ocis/issues/5455
|
||||
https://github.com/owncloud/libre-graph-api/pull/130
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+12
-2
@@ -16,13 +16,17 @@ We updated ownCloud Web to v8.0.0. Please refer to the changelog (linked) for de
|
||||
* Bugfix [owncloud/web#9670](https://github.com/owncloud/web/pull/9670) - Tiles view accessibility
|
||||
* Bugfix [owncloud/web#9694](https://github.com/owncloud/web/issues/9694) - Special characters in username
|
||||
* Bugfix [owncloud/web#9788](https://github.com/owncloud/web/issues/9788) - Create .space folder if it does not exist
|
||||
* Bugfix [owncloud/web#9799](https://github.com/owncloud/web/issues/9799) - Link resolving into default app
|
||||
* Bugfix [owncloud/web#9832](https://github.com/owncloud/web/pull/9832) - Copy quicklinks for webkit navigator
|
||||
* Bugfix [owncloud/web#9843](https://github.com/owncloud/web/pull/9843) - Fix display path on resources
|
||||
* Bugfix [owncloud/web#9844](https://github.com/owncloud/web/pull/9844) - Upload space image
|
||||
* Bugfix [owncloud/web#9861](https://github.com/owncloud/web/pull/9861) - Duplicated file search request
|
||||
* Bugfix [owncloud/web#9873](https://github.com/owncloud/web/pull/9873) - Tags are no longer editable for a locked file
|
||||
* Bugfix [owncloud/web#9881](https://github.com/owncloud/web/pull/9881) - Prevent rendering of old/wrong set of resources in search list
|
||||
* Bugfix [owncloud/web#9913](https://github.com/owncloud/web/pull/9913) - Private link resolving via share jail ID
|
||||
* Bugfix [owncloud/web#9915](https://github.com/owncloud/web/pull/9915) - Keep both folders conflict in same-named folders
|
||||
* Enhancement [owncloud/web#7317](https://github.com/owncloud/ocis/pull/7317) - Make login url configurable
|
||||
* Enhancement [owncloud/web#7497](https://github.com/owncloud/ocis/issues/7497) - Permission checks for shares and favorites
|
||||
* Enhancement [owncloud/web#7600](https://github.com/owncloud/web/issues/7600) - Scroll to newly created folder
|
||||
* Enhancement [owncloud/web#9302](https://github.com/owncloud/web/issues/9302) - Application unification
|
||||
* Enhancement [owncloud/web#9423](https://github.com/owncloud/web/pull/9423) - Show local loading spinner in sharing button
|
||||
@@ -59,6 +63,12 @@ We updated ownCloud Web to v8.0.0. Please refer to the changelog (linked) for de
|
||||
* Enhancement [owncloud/web#9863](https://github.com/owncloud/web/pull/9863) - Location picker in embed mode
|
||||
* Enhancement [owncloud/web#9864](https://github.com/owncloud/web/pull/9864) - Search tags filter chips style aligned
|
||||
* Enhancement [owncloud/web#9884](https://github.com/owncloud/web/pull/9884) - Enable dark theme on importer
|
||||
* Enhancement [owncloud/web#9890](https://github.com/owncloud/web/pull/9890) - Create shortcuts
|
||||
* Enhancement [owncloud/web#9905](https://github.com/owncloud/web/pull/9905) - Manage tags in details panel
|
||||
* Enhancement [owncloud/web#9906](https://github.com/owncloud/web/pull/9906) - Reorganize "New" menu
|
||||
* Enhancement [owncloud/web#9911](https://github.com/owncloud/web/pull/9911) - Provide vendor neutral file icons
|
||||
* Enhancement [owncloud/web#9912](https://github.com/owncloud/web/pull/9912) - Add media type filter chip
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7622
|
||||
https://github.com/owncloud/web/releases/tag/v8.0.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7773
|
||||
https://github.com/owncloud/web/releases/tag/v8.0.0-alpha.10
|
||||
@@ -0,0 +1,10 @@
|
||||
Enhancement: Configs for Web embed mode
|
||||
|
||||
New configs for the Web embed mode have been added:
|
||||
|
||||
* `enabled` Defines if embed mode is enabled.
|
||||
* `target` Defines how Web is being integrated when running in embed mode.
|
||||
* `messagesOrigin` Defines a URL under which Web can be integrated via iFrame.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7670
|
||||
https://github.com/owncloud/web/issues/9768
|
||||
@@ -1,6 +1,11 @@
|
||||
# Table of Contents
|
||||
|
||||
{{ range . -}}
|
||||
* [Changelog for {{ .Version }}](#changelog-for-{{ .Version | replace "." ""}}-{{ .Date | lower -}})
|
||||
{{ end -}}
|
||||
{{ $allVersions := . }}
|
||||
{{- range $index, $changes := . }}{{ with $changes -}}
|
||||
{{ if gt (len $allVersions) 1 -}}
|
||||
{{ if gt (len $allVersions) 1 }}
|
||||
# Changelog for [{{ .Version }}] ({{ .Date }})
|
||||
|
||||
The following sections list the changes for {{ .Version}}.
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Disable DEPTH infinity in PROPFIND
|
||||
|
||||
We fixed the Disabled DEPTH infinity in PROPFIND for:
|
||||
Personal /remote.php/dav/files/admin
|
||||
Public link share /remote.php/dav/public-files/<token>
|
||||
Trashbin /remote.php/dav/spaces/trash-bin/<personal-space-id>
|
||||
|
||||
https://github.com/owncloud/ocis/pull/7746
|
||||
https://github.com/cs3org/reva/pull/4278
|
||||
https://github.com/owncloud/ocis/issues/7359
|
||||
@@ -0,0 +1,142 @@
|
||||
---
|
||||
title: Authorization
|
||||
weight: 40
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/
|
||||
geekdocFilePath: authorization.md
|
||||
---
|
||||
|
||||
In its default configuration, Infinite Scale supports three authentication methods as outlined on the [OIDC official site](https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.3):
|
||||
1. Authorization Code Flow
|
||||
2. Implicit Flow
|
||||
3. Hybrid Flow
|
||||
|
||||
For detailed information on Infinite Scale's support for OpenID Connect (OIDC), please consult the [OIDC section](../../ocis/identity-provider/oidc.md).
|
||||
To authenticate a client app using OIDC, both `client_id` and `client_secret` are essential. Infinite Scale does not offer dynamic registration. The required data for the default [ownCloud clients](https://doc.owncloud.com/server/next/admin_manual/configuration/user/oidc/oidc.html#client-ids-secrets-and-redirect-uris) can be found in the link and are availble for the following apps:
|
||||
- Desktop
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
While selecting an ownCloud client for authentication, take note of specific limitations such as the `Redirect URI`:
|
||||
|
||||
| Source | Redirect URI |
|
||||
|------|--------|
|
||||
|Android|oc://android.owncloud.com|
|
||||
|iOS|oc://ios.owncloud.com|
|
||||
|Desktop|http://127.0.0.1 <br> http://localhost |
|
||||
|
||||
In this example, the desktop app's `client_id` and `client_secret` are being used.
|
||||
|
||||
```bash
|
||||
client_id=xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69
|
||||
client_secret=UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh
|
||||
```
|
||||
|
||||
## Authorization Code Flow
|
||||
|
||||
1. Requesting authorization
|
||||
|
||||
To initiate the OIDC Code Flow, you can use tools like curl and a web browser.
|
||||
The user should be directed to a URL to authenticate and give their consent (bypassing consent is against the standard):
|
||||
|
||||
```plaintext
|
||||
https://ocis.test/signin/v1/identifier/_/authorize?client_id=client_id&scope=openid+profile+email+offline_access&response_type=code&redirect_uri=http://path-to-redirect-uri
|
||||
```
|
||||
|
||||
After a successful authentication, the browser will redirect to a URL that looks like this:
|
||||
|
||||
```plaintext
|
||||
http://path-to-redirect-uri?code=mfWsjEL0mc8gx0ftF9LFkGb__uFykaBw&scope=openid%20profile%20email%20offline_access&session_state=32b08dd...&state=
|
||||
```
|
||||
|
||||
For the next step extract the code from the URL.
|
||||
|
||||
In the above example,
|
||||
the code is `mfWsjEL0mc8gx0ftF9LFkGb__uFykaBw`
|
||||
|
||||
2. Requesting an access token
|
||||
|
||||
The next step in the OIDC Code Flow involves an HTTP POST request
|
||||
to the token endpoint of the **Infinite Scale Identity Server**.
|
||||
|
||||
```bash
|
||||
curl -vk -X POST https://ocis.test/konnect/v1/token \
|
||||
-d "grant_type=authorization_code" \
|
||||
-d "code=3a3PTcO-WWXfN3l1mDN4u7G5PzWFxatU" \
|
||||
-d "redirect_uri=http:path-to-redirect-uri" \
|
||||
-d "client_id=client_id" \
|
||||
-d "client_secret=client_secret"
|
||||
```
|
||||
|
||||
Response looks like this:
|
||||
```json
|
||||
{
|
||||
"access_token": "eyJhbGciOid...",
|
||||
"token_type": "Bearer",
|
||||
"id_token": "eyJhbGciOi...",
|
||||
"refresh_token": "eyJhbGciOiJ...",
|
||||
"expires_in": 300
|
||||
}
|
||||
```
|
||||
|
||||
3. Refreshing an access token
|
||||
|
||||
If the access token has expired, you can get a new one using the refresh token.
|
||||
```bash
|
||||
curl -vk -X POST https://ocis.test/konnect/v1/token \
|
||||
-d "grant_type=refresh_token" \
|
||||
-d "refresh_token=eyJhbGciOiJ..." \
|
||||
-d "redirect_uri=http://path-to-redirect-uri" \
|
||||
-d "client_id=client_id" \
|
||||
-d "client_secret=client_secret"
|
||||
```
|
||||
|
||||
Response looks like this:
|
||||
```json
|
||||
{
|
||||
"access_token": "eyJhbGciOi...",
|
||||
"token_type": "Bearer",
|
||||
"expires_in": 300
|
||||
}
|
||||
```
|
||||
|
||||
## Implicit Code Flow
|
||||
|
||||
When using the implicit flow, tokens are provided in a URI fragment of the redirect URL.
|
||||
Valid values for the `response_type` request parameter are:
|
||||
|
||||
- token
|
||||
- id_token token
|
||||
|
||||
{{< hint type=warning title="Important Warning" >}}
|
||||
If you are using the implicit flow, `nonce` parameter is required in the initial `/authorize` request.
|
||||
`nonce=pL3UkpAQPZ8bTMGYOmxHY/dQABin8yrqipZ7iN0PY18=`
|
||||
|
||||
bash command to generate cryptographically random value
|
||||
```bash
|
||||
openssl rand -base64 32
|
||||
```
|
||||
{{< /hint >}}
|
||||
|
||||
The user should be directed to a URL to authenticate and give their consent (bypassing consent is against the standard):
|
||||
```bash
|
||||
https://ocis.test/signin/v1/identifier/_/authorize?client_id=client_id&scope=openid+profile+email+offline_access&response_type=id_token+token&redirect_uri=http://path-to-redirect-uri&nonce=pL3UkpAQPZ8bTMGYOmxHY/dQABin8yrqipZ7iN0PY18=
|
||||
```
|
||||
|
||||
After a successful authentication, the browser will redirect to a URL that looks like this:
|
||||
```bash
|
||||
http://path-to-redirect-uri#access_token=eyJhbGciOiJQUzI...&expires_in=300&id_token=eyJhbGciOiJ...&scope=email%20openid%20profile&session_state=c8a1019f5e054d...&state=&token_type=Bearer
|
||||
```
|
||||
|
||||
For the next step, extract the access_token from the URL.
|
||||
```bash
|
||||
access_token = 'eyJhbGciOiJQ...'
|
||||
```
|
||||
|
||||
## Hybrid Flow
|
||||
The Hybrid Flow in OpenID Connect melds features from both the Implicit and Authorization Code flows. It allows clients to directly retrieve certain tokens from the Authorization Endpoint, yet also offers the option to acquire additional tokens from the Token Endpoint.
|
||||
|
||||
The Authorization Server redirects back to the client with appropriate parameters in the response, based on the value of the response_type request parameter:
|
||||
- code token
|
||||
- code id_token
|
||||
- code id_token token
|
||||
@@ -0,0 +1,193 @@
|
||||
---
|
||||
title: "Resumable Upload"
|
||||
date: 2023-10-10T00:00:00+00:00
|
||||
weight: 21
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http
|
||||
geekdocFilePath: tus_upload.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
Infinite Scale supports the tus resumable-upload protocol, which is a robust, modular, and open protocol designed to resume large file uploads reliably over HTTP.
|
||||
In situations where file uploads might be interrupted due to network issues, browser crashes, or other unforeseen interruptions,
|
||||
tus ensures that uploads can be resumed from the point of failure without losing data.
|
||||
This documentation shows some basic examples, refer [tus official site](https://tus.io/protocols/resumable-upload) for more details.
|
||||
|
||||
## Upload in Chunks
|
||||
|
||||
### Create an Upload URL
|
||||
|
||||
The client must send a POST request against a known upload creation URL to request a new upload resource.
|
||||
The filename has to be provided in base64-encoded format.
|
||||
|
||||
Example:
|
||||
```shell
|
||||
# base64 encoded filename 'tustest.txt' is 'dHVzdGVzdC50eHQ='
|
||||
echo -n 'tustest.txt' | base64
|
||||
```
|
||||
|
||||
{{< tabs "create-upload-url" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -ks -XPOST https://ocis.test/remote.php/dav/spaces/8d72036d-14a5-490f-889e-414064156402$196ac304-7b88-44ce-a4db-c4becef0d2e0 \
|
||||
-H "Authorization: Bearer eyJhbGciOiJQUzI..."\
|
||||
-H "Tus-Resumable: 1.0.0" \
|
||||
-H "Upload-Length: 10" \
|
||||
-H "Upload-Metadata: filename dHVzdGVzdC50eHQ="
|
||||
```
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 201 Created" >}}
|
||||
```
|
||||
< HTTP/1.1 201 Created
|
||||
< Access-Control-Allow-Headers: Tus-Resumable, Upload-Length, Upload-Metadata, If-Match
|
||||
< Access-Control-Allow-Origin: *
|
||||
< Access-Control-Expose-Headers: Tus-Resumable, Upload-Offset, Location
|
||||
< Content-Length: 0
|
||||
< Content-Security-Policy: default-src 'none';
|
||||
< Date: Mon, 16 Oct 2023 08:49:39 GMT
|
||||
< Location: https://ocis.test/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJyZXZhIiwiZXhwIjoxNjk3NTMyNTc5LCJpYXQiOjE2OTc0NDYxNzksInRhcmdldCI6Imh0dHA6Ly9sb2NhbGhvc3Q6OTE1OC9kYXRhL3R1cy8zYTU3ZWZlMS04MzE0LTQ4MGEtOWY5Ny04N2Q1YzBjYTJhMTgifQ.FbrlY7mdOfsbFgMrP8OtcHlCEq72a2ZVnPD2iBo9MfM
|
||||
< Tus-Extension: creation,creation-with-upload,checksum,expiration
|
||||
< Tus-Resumable: 1.0.0
|
||||
< Vary: Origin
|
||||
< X-Content-Type-Options: nosniff
|
||||
< X-Download-Options: noopen
|
||||
< X-Frame-Options: SAMEORIGIN
|
||||
< X-Permitted-Cross-Domain-Policies: none
|
||||
< X-Request-Id: xxxxxxxxxxxxxxxxxxxxxx
|
||||
< X-Robots-Tag: none
|
||||
< X-Xss-Protection: 1; mode=block
|
||||
<
|
||||
* Connection #0 to host localhost left intact
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
The server will return a temporary upload URL in the location header of the response:
|
||||
```
|
||||
< Location: https://ocis.test/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJyZXZhIiwiZXhwIjoxNjk3NTMyNTc5LCJpYXQiOjE2OTc0NDYxNzksInRhcmdldCI6Imh0dHA6Ly9sb2NhbGhvc3Q6OTE1OC9kYXRhL3R1cy8zYTU3ZWZlMS04MzE0LTQ4MGEtOWY5Ny04N2Q1YzBjYTJhMTgifQ.FbrlY7mdOfsbFgMrP8OtcHlCEq72a2ZVnPD2iBo9MfM
|
||||
```
|
||||
|
||||
### Upload the First Chunk
|
||||
|
||||
Once a temporary upload URL has been created, a client can send a PATCH request to upload a file. The file content should be sent in the body of the request:
|
||||
{{< tabs "upload-the-first-chunk" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -ks -XPATCH https://temporary-upload-url \
|
||||
-H "Authorization: Bearer eyJhbGciOiJQUzI..." \
|
||||
-H "Tus-Resumable: 1.0.0" \
|
||||
-H "Upload-Offset: 0" \
|
||||
-H "Content-Type: application/offset+octet-stream" -d "01234"
|
||||
```
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 204 No Content" >}}
|
||||
```
|
||||
< HTTP/1.1 204 No Content
|
||||
< Date: Tue, 17 Oct 2023 04:10:52 GMT
|
||||
< Oc-Fileid: 8d72036d-14a5-490f-889e-414064156402$73bb5450-816b-4cae-90aa-1f96adc95bd4!84e319e4-de1d-4dd8-bbd0-e51d933cdbcd
|
||||
< Tus-Resumable: 1.0.0
|
||||
< Upload-Expires: 1697602157
|
||||
< Upload-Offset: 5
|
||||
< Vary: Origin
|
||||
< X-Content-Type-Options: nosniff
|
||||
< X-Request-Id: xxxxxxxxxxxxxxxxxxxxxx
|
||||
<
|
||||
* Connection #0 to host localhost left intact
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
### Upload Further Chunks
|
||||
|
||||
After the first chunk is uploaded, the second chunk can be uploaded by pointing `Upload-Offset` to exact position that was returned in the first response.
|
||||
Upload process will not be marked as complete until the total uploaded content size matches the `Upload-Length` specified during the creation of the temporary URL.
|
||||
|
||||
{{< tabs "upload-the-second-chunk" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -ks -XPATCH https://temporary-upload-url \
|
||||
-H "Authorization: Bearer eyJhbGciOiJQUzI..." \
|
||||
-H "Tus-Resumable: 1.0.0" \
|
||||
-H "Upload-Offset: 5" \
|
||||
-H "Content-Type: application/offset+octet-stream" -d "56789"
|
||||
```
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 204 No Content" >}}
|
||||
```
|
||||
< HTTP/1.1 204 No Content
|
||||
< Date: Tue, 17 Oct 2023 04:11:00 GMT
|
||||
< Oc-Fileid: 8d72036d-14a5-490f-889e-414064156402$73bb5450-816b-4cae-90aa-1f96adc95bd4!84e319e4-de1d-4dd8-bbd0-e51d933cdbcd
|
||||
< Tus-Resumable: 1.0.0
|
||||
< Upload-Expires: 1697602157
|
||||
< Upload-Offset: 10
|
||||
< Vary: Origin
|
||||
< X-Content-Type-Options: nosniff
|
||||
< X-Request-Id: xxxxxxxxxxxxxxxxxxxxxx
|
||||
<
|
||||
* Connection #0 to host localhost left intact
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
{{< hint type=warning title="Important Warning" >}}
|
||||
`Upload-Offset` header indicates the byte position in the target file where the server should start writing the upload content.
|
||||
It ensures data integrity and order during the upload process.
|
||||
{{< /hint >}}
|
||||
|
||||
## Creation with Upload
|
||||
|
||||
{{< tabs "creation-with-upload" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -ks -XPOST https://ocis.test/remote.php/dav/spaces/{space-id} \
|
||||
-H "Authorization: Bearer eyJhbGciOiJQUzI..." \
|
||||
-H "Tus-Resumable: 1.0.0" \
|
||||
-H "Upload-Length: 14" \
|
||||
-H "Content-Type: application/offset+octet-stream" \
|
||||
-H "Upload-Metadata: filename dGVzdC50eHQ=" \
|
||||
-H "Tus-Extension: creation-with-upload" \
|
||||
-d "upload content"
|
||||
```
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 201 Created" >}}
|
||||
```shell
|
||||
< HTTP/1.1 201 Created
|
||||
< Access-Control-Allow-Headers: Tus-Resumable, Upload-Length, Upload-Metadata, If-Match
|
||||
< Access-Control-Allow-Origin: *
|
||||
< Access-Control-Expose-Headers: Tus-Resumable, Upload-Offset, Location
|
||||
< Content-Length: 0
|
||||
< Content-Security-Policy: default-src 'none';
|
||||
< Content-Type: text/plain
|
||||
< Date: Mon, 16 Oct 2023 04:18:25 GMT
|
||||
< Etag: "372c96743f68bc40e789124d30567371"
|
||||
< Last-Modified: Mon, 16 Oct 2023 04:18:25 +0000
|
||||
< Location: https://ocis.test/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJyZXZhIiwiZXhwIjoxNjk3NTE2MzA1LCJpYXQiOjE2OTc0Mjk5MDUsInRhcmdldCI6Imh0dHA6Ly9sb2NhbGhvc3Q6OTE1OC9kYXRhL3R1cy82NjlhODBlZi1hN2VjLTQwYTAtOGNmOS05MTgwNTVhYzlkZjAifQ.yq-ofJYnJ9FLML7Z_jki1FJQ7Ulbt9O_cmLe6V411A4
|
||||
< Oc-Etag: "372c96743f68bc40e789124d30567371"
|
||||
< Oc-Fileid: 44d3e1e0-6c01-4b94-9145-9d0068239fcd$446bdad4-4b27-41f1-afce-0881f202a214!d7c292a6-c395-4e92-bf07-2c1663aec8dd
|
||||
< Oc-Perm: RDNVWZP
|
||||
< Tus-Extension: creation,creation-with-upload,checksum,expiration
|
||||
< Tus-Resumable: 1.0.0
|
||||
< Upload-Expires: 1697516305
|
||||
< Upload-Offset: 14
|
||||
< Vary: Origin
|
||||
< X-Content-Type-Options: nosniff
|
||||
< X-Download-Options: noopen
|
||||
< X-Frame-Options: SAMEORIGIN
|
||||
* TLSv1.2 (IN), TLS header, Supplemental data (23):
|
||||
{ [5 bytes data]
|
||||
< X-Permitted-Cross-Domain-Policies: none
|
||||
< X-Request-Id: xxxxxxxxxxxxxxxxxxxxxx
|
||||
< X-Robots-Tag: none
|
||||
< X-Xss-Protection: 1; mode=block
|
||||
<
|
||||
* Connection #0 to host localhost left intact
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
{{< hint type=warning title="Important Warning" >}}
|
||||
`Upload-Length` header should contain the exact byte as upload content.
|
||||
{{< /hint >}}
|
||||
@@ -0,0 +1,532 @@
|
||||
---
|
||||
title: "WebDAV"
|
||||
date: 2023-07-02T00:00:00+00:00
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/webdav
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
**Web** **D**istributed **A**uthoring and **V**ersioning (WebDAV) consists of a set of methods, headers, and content-types extending HTTP/1.1 for the management of resources and -properties, creation and management of resource collections, URL namespace manipulation, and resource locking (collision avoidance). WebDAV is one of the central APIs that ownCloud uses for handling file resources, metadata and locks.
|
||||
|
||||
|
||||
{{< hint type=info title="RFC" >}}
|
||||
**WebDAV RFCs**
|
||||
|
||||
RFC 2518 was published in February 1999. [RFC 4918](https://datatracker.ietf.org/doc/html/rfc4918), published in June 2008 obsoletes RFC 2518 with minor revisions mostly due to interoperability experience.
|
||||
|
||||
{{< /hint >}}
|
||||
## Calling the WebDAV API
|
||||
|
||||
### Request URI
|
||||
|
||||
```sh
|
||||
{HTTP method} https://ocis.url/{webdav-base}/{resourceID}/{path}
|
||||
```
|
||||
|
||||
The request URI consists of:
|
||||
|
||||
| Component | Description |
|
||||
|---------------|--------------------------------------------------------------------------------------------------------|
|
||||
| {HTTP method} | The HTTP method which is used in the request. |
|
||||
| {webdav-base} | The WebDAV base path component. Possible options are |
|
||||
| | `dav/spaces/` This is the default and optimized endpoint for all WebDAV requests. |
|
||||
| | `remote.php/dav/spaces/`* |
|
||||
| | `remote.php/webdav/`* |
|
||||
| | `webdav/`* |
|
||||
| | `dav/`* |
|
||||
| {resourceID} | This resourceID is used as the WebDAV root element. All children are accessed by their relative paths. |
|
||||
| {path} | The relative path to the WebDAV root. In most of the casese, this is the space root. |
|
||||
|
||||
\* these dav endpoints are implemented for legacy reasons and should not be used. Note: The legacy endpoints **do not take the resourceID as an argument.**
|
||||
|
||||
### HTTP methods
|
||||
|
||||
| Method | Description |
|
||||
|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| PROPFIND | Retrieve properties as XML from a web resource. It is also overloaded to retrieve the collection structure (a.k.a. directory hierarchy) of a remote system. |
|
||||
| PROPPATCH | Process instructions specified in the request body to set and/or remove properties defined on the resource identified by the request uri. |
|
||||
| MKCOL | Create a WebDAV collection (folder) at the location specified by the request uri. |
|
||||
| GET | Retrieve a WebDAV resource. |
|
||||
| HEAD | Retrieve a WebDAV resource without reading the body. |
|
||||
| PUT | A PUT performed on an existing resource replaces the GET response entity of the resource. |
|
||||
| POST | Not part of the WebDAV rfc and has no effect on a WebDAV resource. However, this method is used in the TUS protocol for uploading resources. |
|
||||
| PATCH | Not part of the WebDAV rfc and has no effect on a WebDAV resource. However, this method is used in the TUS protocol for uploading resources. |
|
||||
| COPY | Creates a duplicate of the source resource identified by the Request-URI, in the destination resource identified by the URI in the Destination header. |
|
||||
| MOVE | The MOVE operation on a non-collection resource is the logical equivalent of a copy (COPY), followed by consistency maintenance processing, followed by a delete of the source, where all three actions are performed in a single operation. | |
|
||||
| DELETE | Delete the resource identified by the Request-URI. |
|
||||
| LOCK | A LOCK request to an existing resource will create a lock on the resource identified by the Request-URI, provided the resource is not already locked with a conflicting lock. |
|
||||
| UNLOCK | The UNLOCK method removes the lock identified by the lock token in the Lock-Token request header. The Request-URI must identify a resource within the scope of the lock. |
|
||||
|
||||
The methods `MKCOL`, `GET`, `HEAD`, `LOCK`, `COPY`, `MOVE`, `UNLOCK` and `DELETE` need no request body.
|
||||
|
||||
The methods `PROPFIND`, `PROPPATCH`, `PUT` require a request body, normally in XML format to provide the needed values.
|
||||
|
||||
{{< hint type=tip title="Tooling" >}}
|
||||
**WebDAV is not REST**
|
||||
|
||||
The WebDAV protocol was created before the REST paradigm has become the de-facto standard for API design. WebDAV uses http methods which are not part of REST. Therefore all the tooling around API design and documentation is not usable (like OpenApi 3.0 / Swagger or others).
|
||||
{{< /hint >}}
|
||||
|
||||
### Authentication
|
||||
|
||||
For development purposes the examples in the developer documentation use Basic Auth. It is disabled by default and should only be enabled by setting `PROXY_ENABLE_BASIC_AUTH` in [the proxy](../../../services/proxy/configuration/#environment-variables) for development or test instances.
|
||||
|
||||
To authenticate with a Bearer token or OpenID Connect access token replace the `-u user:password` Basic Auth option of curl with a `-H 'Authorization: Bearer <token>'` header. A `<token>` can be obtained by copying it from a request in the browser, although it will time out within minutes. To automatically refresh the OpenID Connect access token an ssh-agent like solution like [oidc-agent](https://github.com/indigo-dc/oidc-agent) should be used.
|
||||
|
||||
## Listing Properties
|
||||
|
||||
This method is used to list the properties of a resource in xml. This method can also be used to retrieve the listing of a WebDAV collection which means the content of a remote directory.
|
||||
|
||||
{{< tabs "list-properties" >}}
|
||||
{{< tab "Curl" >}}
|
||||
```shell
|
||||
curl -L -X PROPFIND 'https://localhost:9200/dav/spaces/storage-users-1%24some-admin-user-id-0000-000000000000/' \
|
||||
-H 'Depth: 1' \
|
||||
-d '<?xml version="1.0"?>
|
||||
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
|
||||
<d:prop>
|
||||
<oc:permissions />
|
||||
<oc:favorite />
|
||||
<oc:fileid />
|
||||
<oc:owner-id />
|
||||
<oc:owner-display-name />
|
||||
<oc:share-types />
|
||||
<oc:privatelink />
|
||||
<d:getcontentlength />
|
||||
<oc:size />
|
||||
<d:getlastmodified />
|
||||
<d:getetag />
|
||||
<d:getcontenttype />
|
||||
<d:resourcetype />
|
||||
<oc:downloadURL />
|
||||
</d:prop>
|
||||
</d:propfind>'
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "HTTP" >}}
|
||||
```shell
|
||||
PROPFIND /dav/spaces/storage-users-1%24some-admin-user-id-0000-000000000000/ HTTP/1.1
|
||||
Host: localhost:9200
|
||||
Origin: https://localhost
|
||||
Access-Control-Request-Method: PROPFIND
|
||||
Depth: 1
|
||||
Content-Type: application/xml
|
||||
Authorization: Basic YWRtaW46YWRtaW4=
|
||||
Content-Length: 436
|
||||
|
||||
<?xml version="1.0"?>
|
||||
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
|
||||
<d:prop>
|
||||
<oc:permissions />
|
||||
<oc:favorite />
|
||||
<oc:fileid />
|
||||
<oc:owner-id />
|
||||
<oc:owner-display-name />
|
||||
<oc:share-types />
|
||||
<oc:privatelink />
|
||||
<d:getcontentlength />
|
||||
<oc:size />
|
||||
<d:getlastmodified />
|
||||
<d:getetag />
|
||||
<d:getcontenttype />
|
||||
<d:resourcetype />
|
||||
<oc:downloadURL />
|
||||
</d:prop>
|
||||
</d:propfind>
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
The request consists of a request body and an optional `Depth` Header.
|
||||
|
||||
{{< hint type=tip title="PROPFIND usage" >}}
|
||||
**Metadata and Directory listings**
|
||||
|
||||
Clients can use the `PROPFIND` method to retrieve properties of resources (metadata) and to list the content of a directories.
|
||||
{{< /hint >}}
|
||||
### Response
|
||||
|
||||
{{< tabs "response list properties" >}}
|
||||
{{< tab "207 - Multistatus" >}}
|
||||
|
||||
#### Multi Status Response
|
||||
|
||||
A Multi-Status response conveys information about multiple resources
|
||||
in situations where multiple status codes might be appropriate. The
|
||||
default Multi-Status response body is an application/xml
|
||||
HTTP entity with a `multistatus` root element. Further elements
|
||||
contain `200`, `300`, `400`, and `500` series status codes generated during
|
||||
the method invocation.
|
||||
|
||||
Although `207` is used as the overall response status code, the
|
||||
recipient needs to consult the contents of the multistatus response
|
||||
body for further information about the success or failure of the
|
||||
method execution. The response MAY be used in success, partial
|
||||
success and also in failure situations.
|
||||
|
||||
The `multistatus` root element holds zero or more `response` elements
|
||||
in any order, each with information about an individual resource.
|
||||
|
||||
#### Body
|
||||
|
||||
```xml
|
||||
<d:multistatus xmlns:s="http://sabredav.org/ns" xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
|
||||
<d:response>
|
||||
<d:href>/dav/spaces/storage-users-1$some-admin-user-id-0000-000000000000/</d:href>
|
||||
<d:propstat>
|
||||
<d:prop>
|
||||
<oc:permissions>RDNVCKZP</oc:permissions>
|
||||
<oc:favorite>0</oc:favorite>
|
||||
<oc:fileid>storage-users-1$some-admin-user-id-0000-000000000000!some-admin-user-id-0000-000000000000</oc:fileid>
|
||||
<oc:id>storage-users-1$some-admin-user-id-0000-000000000000!some-admin-user-id-0000-000000000000</oc:id>
|
||||
<oc:owner-id>admin</oc:owner-id>
|
||||
<oc:owner-display-name>Admin</oc:owner-display-name>
|
||||
<oc:privatelink>https://localhost:9200/f/storage-users-1$some-admin-user-id-0000-000000000000%21some-admin-user-id-0000-000000000000</oc:privatelink>
|
||||
<oc:size>10364682</oc:size>
|
||||
<d:getlastmodified>Mon, 04 Sep 2023 20:10:09 GMT</d:getlastmodified>
|
||||
<d:getetag>"c4d3610dfe4fac9b44e1175cfc44b12b"</d:getetag>
|
||||
<d:resourcetype>
|
||||
<d:collection/>
|
||||
</d:resourcetype>
|
||||
</d:prop>
|
||||
<d:status>HTTP/1.1 200 OK</d:status>
|
||||
</d:propstat>
|
||||
<d:propstat>
|
||||
<d:prop>
|
||||
<oc:checksums></oc:checksums>
|
||||
<oc:share-types></oc:share-types>
|
||||
<d:getcontentlength></d:getcontentlength>
|
||||
<d:getcontenttype></d:getcontenttype>
|
||||
</d:prop>
|
||||
<d:status>HTTP/1.1 404 Not Found</d:status>
|
||||
</d:propstat>
|
||||
</d:response>
|
||||
<d:response>
|
||||
<d:href>/dav/spaces/storage-users-1$some-admin-user-id-0000-000000000000/New%20file.txt</d:href>
|
||||
<d:propstat>
|
||||
<d:prop>
|
||||
<oc:permissions>RDNVWZP</oc:permissions>
|
||||
<oc:checksums>
|
||||
<oc:checksum>SHA1:1c68ea370b40c06fcaf7f26c8b1dba9d9caf5dea MD5:2205e48de5f93c784733ffcca841d2b5 ADLER32:058801ab</oc:checksum>
|
||||
</oc:checksums>
|
||||
<oc:favorite>0</oc:favorite>
|
||||
<oc:fileid>storage-users-1$some-admin-user-id-0000-000000000000!90cc3e73-0c6c-4346-9c4d-f529976d4990</oc:fileid>
|
||||
<oc:id>storage-users-1$some-admin-user-id-0000-000000000000!90cc3e73-0c6c-4346-9c4d-f529976d4990</oc:id>
|
||||
<oc:owner-id>admin</oc:owner-id>
|
||||
<oc:owner-display-name>Admin</oc:owner-display-name>
|
||||
<oc:share-types>
|
||||
<oc:share-type>0</oc:share-type>
|
||||
<oc:share-type>1</oc:share-type>
|
||||
<oc:share-type>3</oc:share-type>
|
||||
</oc:share-types>
|
||||
<oc:privatelink>https://localhost:9200/f/storage-users-1$some-admin-user-id-0000-000000000000%2190cc3e73-0c6c-4346-9c4d-f529976d4990</oc:privatelink>
|
||||
<d:getcontentlength>5</d:getcontentlength>
|
||||
<oc:size>5</oc:size>
|
||||
<d:getlastmodified>Mon, 28 Aug 2023 20:45:03 GMT</d:getlastmodified>
|
||||
<d:getetag>"75115347c74701a3be9c635ddebbf5c4"</d:getetag>
|
||||
<d:getcontenttype>text/plain</d:getcontenttype>
|
||||
<d:resourcetype></d:resourcetype>
|
||||
</d:prop>
|
||||
<d:status>HTTP/1.1 200 OK</d:status>
|
||||
</d:propstat>
|
||||
</d:response>
|
||||
<d:response>
|
||||
<d:href>/dav/spaces/storage-users-1$some-admin-user-id-0000-000000000000/NewFolder/</d:href>
|
||||
<d:propstat>
|
||||
<d:prop>
|
||||
<oc:permissions>RDNVCKZP</oc:permissions>
|
||||
<oc:favorite>0</oc:favorite>
|
||||
<oc:fileid>storage-users-1$some-admin-user-id-0000-000000000000!5c73ecd9-d9f4-44f4-b685-ca4cb40aa6b7</oc:fileid>
|
||||
<oc:id>storage-users-1$some-admin-user-id-0000-000000000000!5c73ecd9-d9f4-44f4-b685-ca4cb40aa6b7</oc:id>
|
||||
<oc:owner-id>admin</oc:owner-id>
|
||||
<oc:owner-display-name>Admin</oc:owner-display-name>
|
||||
<oc:privatelink>https://localhost:9200/f/storage-users-1$some-admin-user-id-0000-000000000000%215c73ecd9-d9f4-44f4-b685-ca4cb40aa6b7</oc:privatelink>
|
||||
<oc:size>0</oc:size>
|
||||
<d:getlastmodified>Mon, 28 Aug 2023 20:45:10 GMT</d:getlastmodified>
|
||||
<d:getetag>"e83367534cc595a45d706857fa5f03d8"</d:getetag>
|
||||
<d:resourcetype>
|
||||
<d:collection/>
|
||||
</d:resourcetype>
|
||||
</d:prop>
|
||||
<d:status>HTTP/1.1 200 OK</d:status>
|
||||
</d:propstat>
|
||||
<d:propstat>
|
||||
<d:prop>
|
||||
<oc:checksums></oc:checksums>
|
||||
<oc:share-types></oc:share-types>
|
||||
<d:getcontentlength></d:getcontentlength>
|
||||
<d:getcontenttype></d:getcontenttype>
|
||||
</d:prop>
|
||||
<d:status>HTTP/1.1 404 Not Found</d:status>
|
||||
</d:propstat>
|
||||
</d:response>
|
||||
</d:multistatus>
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "400 - Bad Request" >}}
|
||||
|
||||
#### Body
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
|
||||
<s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
|
||||
<s:message>Invalid Depth header value: 3</s:message>
|
||||
</d:error>
|
||||
```
|
||||
|
||||
This can occur if the request is malformed e.g. due to an invalid xml request body or an invalid depth header value.
|
||||
{{< /tab >}}
|
||||
{{< tab "404 - Not Found" >}}
|
||||
|
||||
#### Body
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
|
||||
<s:exception>Sabre\DAV\Exception\NotFound</s:exception>
|
||||
<s:message>Resource not found</s:message>
|
||||
</d:error>
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
### Request Body
|
||||
|
||||
The `PROPFIND` Request can include an XML request body containing a list of namespaced property names.
|
||||
|
||||
### Namespaces
|
||||
|
||||
When building the body of your DAV request, you will request properties that are available under a specific namespace URI. It is usual to declare prefixes for those namespace in the `d:propfind` element of the body.
|
||||
|
||||
Available namespaces:
|
||||
|
||||
| URI | Prefix |
|
||||
|-------------------------------------------|--------|
|
||||
| DAV: | d |
|
||||
| http://sabredav.org/ns | s |
|
||||
| http://owncloud.org/ns | oc |
|
||||
| http://open-collaboration-services.org/ns | ocs |
|
||||
| http://open-cloud-mesh.org/ns | ocm |
|
||||
|
||||
### Request Example with declared namespaces
|
||||
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
|
||||
</d:propfind>
|
||||
```
|
||||
|
||||
### Supported WebDAV Properties
|
||||
|
||||
| Property | Desription | Example |
|
||||
|-----------------------------|----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `<d:getlastmodified />` | The latest modification time. | `Fri, 30 Dec 2022 14:22:43 GMT` |
|
||||
| `<d:getetag />` | The file's etag. | `"c3a1ee4a0c28edc15b9635c3bf798013"` |
|
||||
| `<d:getcontenttype />` | The mime type of the file. | `image/jpeg` |
|
||||
| `<d:resourcetype />` | Specifies the nature of the resource. | `<d:collection />` for a folder |
|
||||
| `<d:getcontentlength />` | The size if it is a file in bytes. | `5` bytes |
|
||||
| `<d:lockdiscovery />` | Describes the active locks on a resource. | Detailed Example in [Locking]() |
|
||||
| `<oc:id />` | The globally unique ID of the resource. | `storage-1$27475553-7fb7-4689-b4cf-bbb635daff79!27475553-7fb7-4689-b4cf-bbb635daff79` |
|
||||
| `<oc:fileid />` | The globally unique ID of the resource. | `storage-1$27475553-7fb7-4689-b4cf-bbb635daff79!27475553-7fb7-4689-b4cf-bbb635daff79` |
|
||||
| `<oc:downloadURL />` | Direct URL to download a file from. | Not implemented. |
|
||||
| `<oc:permissions />` | The permissions a user has on the resource. | The value is a string containing letters for all available permissions. |
|
||||
| | | `S`: Shared |
|
||||
| | | `M`: Mounted |
|
||||
| | | `D`: Deletable |
|
||||
| | | `NV`: Updateable, Renameable, Moveable |
|
||||
| | | `W`: Updateable (file) |
|
||||
| | | `CK`: Creatable (folders only) |
|
||||
| | | `Z`: Deniable |
|
||||
| | | `P`: Trashbin Purgable |
|
||||
| `<oc:tags />` | List of user specified tags. | `<oc:tag>test</oc:tag>` |
|
||||
| `<oc:favorite /> ` | The favorite state. | `0` for not favourited, `1` for favourited |
|
||||
| `<oc:owner-id />` | The user id of the owner of a resource. Project spaces have no owner. | `einstein` |
|
||||
| `<oc:owner-display-name />` | The display name of the owner of a resource. Project spaces have no owner. | `Albert Einstein` |
|
||||
| `<oc:share-types />` | List of share types. | `0` = User Share |
|
||||
| | | `1` = Group Share |
|
||||
| | | `2` = Public Link |
|
||||
| `<oc:checksums />` | | `<oc:checksum>`<br/>`SHA1:1c68ea370b40c06fcaf7f26c8b1dba9d9caf5dea MD5:2205e48de5f93c784733ffcca841d2b5 ADLER32:058801ab`<br /> `</oc:checksum>` |
|
||||
| | | Due to a bug in the very early development of ownCloud, this value is not an array, but a string separated by whitespaces. |
|
||||
| `<oc:size />` | Similar to `getcontentlength` but it also works for folders. | `10` bytes |
|
||||
|
||||
### Request Headers
|
||||
|
||||
A client executing a `PROPFIND` request MUST submit a Depth Header value. In practice, support for infinite-depth requests MAY be disabled, due to the performance and security concerns associated with this behavior. Servers SHOULD treat a
|
||||
request without a Depth header as if a `Depth: infinity` header was included. Infinite depth requests are disabled by default in ocis.
|
||||
|
||||
| Name | Value |
|
||||
|-------------------------------------------|---------------------------------------------------------------------------------------|
|
||||
| Depth | `0` = Only return the desired resource. |
|
||||
| | `1` = Return the desired resource and all resources one level below in the hierarchy. |
|
||||
| | `infinity` = Return all resources below the root. |
|
||||
|
||||
{{< hint type=caution title="Use the Depth header with caution" >}}
|
||||
**Depth: infinity**
|
||||
|
||||
Using the `Depth: infinity` header value can cause heavy load on the server, depending on the size of the file tree.
|
||||
|
||||
The request can run into a timeout and the server performance could be affected for other users.
|
||||
|
||||
{{< /hint >}}
|
||||
|
||||
## Create a Directory
|
||||
|
||||
Clients create directories (WebDAV collections) by executing a `MKCOL` request at the location specified by the request url.
|
||||
|
||||
{{< tabs "create-folder" >}}
|
||||
{{< tab "Curl" >}}
|
||||
```shell
|
||||
curl -L -X MKCOL 'https://localhost:9200/dav/spaces/storage-users-1%24some-admin-user-id-0000-000000000000/NewFolder/' \
|
||||
-H 'Authorization: Basic YWRtaW46YWRtaW4='
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "HTTP" >}}
|
||||
```shell
|
||||
MKCOL /dav/spaces/storage-users-1%24some-admin-user-id-0000-000000000000/NewFolder/ HTTP/1.1
|
||||
Host: localhost:9200
|
||||
Authorization: Basic YWRtaW46YWRtaW4=
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
### Response
|
||||
|
||||
{{< tabs "response create folder" >}}
|
||||
{{< tab "201 - Created" >}}
|
||||
This indicates that the Resource has been created successfully.
|
||||
|
||||
#### Body
|
||||
|
||||
The response has no body.
|
||||
{{< /tab >}}
|
||||
{{< tab "403 - Forbidden" >}}
|
||||
|
||||
#### Body
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
|
||||
<s:exception>Sabre\DAV\Exception\Forbidden</s:exception>
|
||||
<s:message></s:message>
|
||||
</d:error>
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "405 - Method not allowed" >}}
|
||||
|
||||
#### Body
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
|
||||
<s:exception>Sabre\DAV\Exception\MethodNotAllowed</s:exception>
|
||||
<s:message>The resource you tried to create already exists</s:message>
|
||||
</d:error>
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
## Upload File
|
||||
|
||||
To upload files to the remote server, clients can use the `PUT` method to create or fully replace the content of the remote file.
|
||||
|
||||
### Request Headers
|
||||
|
||||
| Name | Usage |
|
||||
|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `X-OC-Mtime` | Send the last modified <br> time of the file to the server in unixtime format. The server applies this mtime to the resource rather than the actual time. |
|
||||
| `OC-Checksum` | Provide the checksum of the <br> file content to the server. <br> This is used to prevent corrupted data transfers. |
|
||||
| `If-Match` | The If-Match request-header field is used with a method to make it <br> conditional. A client that has one or more entities previously <br> obtained from the resource can verify that one of those entities is <br> current by including a list of their associated entity tags in the <br> If-Match header field. |
|
||||
|
||||
{{< tabs "upload-file" >}}
|
||||
{{< tab "Curl" >}}
|
||||
```shell
|
||||
curl -L -X PUT 'https://localhost:9200/dav/spaces/storage-users-1%24some-admin-user-id-0000-000000000000/test.txt' \
|
||||
-H 'X-OC-Mtime: 1692369418' \
|
||||
-H 'OC-Checksum: SHA1:40bd001563085fc35165329ea1ff5c5ecbdbbeef' \
|
||||
-H 'If-Match: "4436aef907f41f1ac7dfd1ac3d0d455f"' \
|
||||
-H 'Content-Type: text/plain' \
|
||||
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
|
||||
-d '123'
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "HTTP" >}}
|
||||
```shell
|
||||
PUT /dav/spaces/storage-users-1%24some-admin-user-id-0000-000000000000/test.txt HTTP/1.1
|
||||
Host: localhost:9200
|
||||
X-OC-Mtime: 1692369418
|
||||
OC-Checksum: SHA1:40bd001563085fc35165329ea1ff5c5ecbdbbeef
|
||||
If-Match: "4436aef907f41f1ac7dfd1ac3d0d455f"
|
||||
Content-Type: text/plain
|
||||
Authorization: Basic YWRtaW46YWRtaW4=
|
||||
Content-Length: 3
|
||||
|
||||
123
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
### Response
|
||||
|
||||
{{< tabs "response upload file" >}}
|
||||
{{< tab "201 - Created" >}}
|
||||
This indicates that the Resource has been created successfully.
|
||||
|
||||
#### Body
|
||||
|
||||
The response has no body.
|
||||
|
||||
#### Headers
|
||||
|
||||
```yaml
|
||||
Oc-Etag: "4436aef907f41f1ac7dfd1ac3d0d455f"
|
||||
Oc-Fileid: storage-users-1$some-admin-user-id-0000-000000000000!07452b22-0ba9-4539-96e1-3511aff7fd2f
|
||||
Last-Modified: Fri, 18 Aug 2023 14:36:58 +0000
|
||||
X-Oc-Mtime: accepted
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "204 - No Content" >}}
|
||||
This indicates that the Resource has been updated successfully.
|
||||
|
||||
#### Body
|
||||
|
||||
The response has no body.
|
||||
|
||||
#### Headers
|
||||
|
||||
```yaml
|
||||
Oc-Etag: "4436aef907f41f1ac7dfd1ac3d0d455f"
|
||||
Oc-Fileid: storage-users-1$some-admin-user-id-0000-000000000000!07452b22-0ba9-4539-96e1-3511aff7fd2f
|
||||
Last-Modified: Fri, 18 Aug 2023 14:36:58 +0000
|
||||
X-Oc-Mtime: accepted
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "400 - Bad Request" >}}
|
||||
This indicates that the checksum, which was sent by the client, does not match the computed one after all bytes have been received by the server.
|
||||
|
||||
#### Body
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
|
||||
<s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
|
||||
<s:message>The computed checksum does not match the one received from the client.</s:message>
|
||||
</d:error>
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "403 - Forbidden" >}}
|
||||
|
||||
The user cannot create files in that remote location.
|
||||
{{< /tab >}}
|
||||
{{< tab "404 - Not Found" >}}
|
||||
|
||||
The remote target space cannot be found.
|
||||
{{< /tab >}}
|
||||
{{< tab "409 - Conflict" >}}
|
||||
|
||||
This error can occur when the request cannot be executed due to a missing precondition. One example is a PUT into a non-existing remote folder. It can also happen when the client sends the wrong etag in the `If-Match` header.
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Do not edit this file with editors other than diagrams.net -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1651px" height="816px" viewBox="-0.5 -0.5 1651 816" content="<mxfile host="Electron" modified="2023-01-02T15:53:47.179Z" agent="5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/20.7.4 Chrome/106.0.5249.199 Electron/21.3.3 Safari/537.36" etag="3g1Ld0YoR6MTAWI36Y9D" version="20.7.4" type="device"><diagram id="n2S8zIRfchnmVBpZdI-E" name="Seite-1">7V1bc5u6Fv4t5yEz7YMZhLg+Jmmc9vSSNElv56WDMbbZwUCB2M7+9UcSF4MkMHawTWPcTmsLWeC1lj6tm5bO4OV8dR2aweyzP7bdM0kcr87guzNJApoG0X+45TlpUWWQNExDZ5x2WjfcO//aaaOYtj45YzsqdYx9342doNxo+Z5nW3GpzQxDf1nuNvHd8l0Dc2ozDfeW6bKtP5xxPEtadUlbt7+3neksuzNQjeTK3Mw6p78kmpljf1logldn8DL0/Th5N19d2i4mXkaX5HvDiqv5g4W2Fzf5wh0MFkttcf3lx+ev50/xIvgYiIN0lIXpPqU/OH3Y+DmjQOg/eWMbDyKewYvlzInt+8C08NUl4jlqm8VzF30C6C37UNkd7DC2V4Wm9CGvbX9ux+Ez6pJeHQA5pVgqMkr6cbmmvwzTtlmB9pKaNpopz6f52GuyoDcpZbagkrKZSrY3Psfihj5ZrhlFjlUmTJmKUWyGMdufNA8dN/sSImL4/BN/RxB1I2v4RRoMVcsa3q3SYZNPz8VPt3boICLYYda4cuJkRAPA9DMeEAiiBNLP6/Hwh+fCB3q0SnZH/lNopaT58vsRjm+n13cf/1yu/oBfz/oPcwCzyWyGUztu0NEelyYqKz4F8VA40pG1hbZrxs6iPL15EpPe4dZ30G/LpTMHplQ4IaSELvnl6beK05EaCIjUQCI1UEIZZiAkNeZzoVuAO0Q1D0zNJkkX659L27K/WNsfvUmeeD37cp41mpAP2p+Ldz//fJcfoPXh2VE00zvnwJYVQTNw2GmJpOaTOUKLUmk2mq4z9fDUQ3KLhfkCw5ODUP88vTB3xmM8xkVoR86/5oiMhyU+JTcaXLk4U95x50AthtA4mC9d6U1KqwMPH0UBSIpSonlGjxfKtiyXRqW+708mkR1TvN2Wm/xFSOfy7T796IfxzJ/6nulerVspQF33+eT7Qcrlf+w4fk5VCvMp9ssysEZCHYICEg4Q2AJlayhsCOmNEJNPJbUhEL5QCqoAoG1gUin8k7fDJar/i3FmeX/19BGC638+3KgTaz53P11/5apHqosYdzFCb6b4jRkEhOZTJyJkTS6ju+U9OqBRURgNAKtSAYmzaLahUXEJKx9zxhdnuyjUT/UdNDUxb/iVwouyi6bWCCm4xJVY1epaDr5dXqkP0c+flrx6WPy6HjwOQFPV6oWIAikVBBjNEIUdyKAG0g1B1cX1S22ki22LVJDS+SSxHqro/qBllYivJ4uVWBUFpleabOqfJ2x1Xkx8Lx5EZLqcow5AClZE8MSRaT1OyXwbWL7rh8n1cDp6I8losUZPKEqykb5RxLfkW9moa9wbEnAcuggaC8CYPE7WJ4XT8CgP2A36+IHtVdKnCwptHYS/XKHFCpdiSK2osJm1mBtVe9BhudRQj6rCbrGg5SsVtUptWqPa1G+brlp1OlnLi9a2awJtVW9YEugV8BDKq8YsCJmRvMbcHIkwRiM0irgXMUARqOosGKktghEwJLXErZbMa6lsXhuHgiapUjHITZRJiFY62xt30nwBtDqlHdt6yRTnYzkslCLet2G+7I7a+l+F2gMatumYyXb99+R0YCdsDXAnngc77DY+g6pZvxNAawYsI0Ir+FxWHTOH7f7x2TgKmOQOi+3UwDUIgSQAlaudhq4e1WnaFJ64zlWjG/Ckl+FGNWrgZuO3oUStfxXukNZwi/VAXF89nOGnGM78KHa8KXo3diLLRzCAXaXmHGsL3igKum3qGm2BlyioYpY60Cp2Qb28Tu0jdsNn+nE8uWt3K4RqEcGwM0ECm0CsPjKuQ5lCNvj3ItuewkaNoY2KkzeEMomCsl2j7PQ4CjVOhee5tdnByxwZOn7m9RMEocOwB1pz8SG9wjAoiGoF98pjDg5mU+scvnIDg0HoL5yxHfIta1qffxPgnuLSRn1E9PSOZb9lBOTo4UMJGIKWkvoQNjg3BYQ3sygOTHFKIktkRN2xuWDbfSv6K/wfxgHdH9wlBR5lyT9A8HbAid6CtX7RevS2TrC7E72FlPtNbraGcnRUBBtlzypQREGTGy3tLw3agg2uHqZ/qlLvNWh7FOV521lBTQhpk4ugUvQ35npm6tK+RVqFaKKr67SBsudHMdCPBI2EkhlZkbD9oWqaAkSITL2yn0pFC6dqaKoGVVnUoUi5mFpKrFIopVcx6iWf7q+mbNir5HMV4wgvo4jyw4nvC2PfWnGnx8GV47qp21LEiUroTAd/qUOTyhKlgLYV7ZhLG5Vh7rcIK7YUM6OZGeC3T3P33Ir9It8Ij2/9yIkdH/Nv5MexP+cwNvYphct/il3Hsy/z/SC1kNRcC0Mztg4ztDVmFPQynlpGL5+7qGVcqmt/4WKivfbFRNX2tpgggdSwl1eFigFUg5rde1pMVG3LxUQ+wGLCs8aTxQS/GZlh1xeTLFWjjcVEAmJLy4d0qPUCHNWiJFZf2eO73hGwIYlKFAxDKUOaLu3qfd6nD7kWIjdj6X7iY6zIQUOQxSos1SRdMNirbW+YojYmqEo94tH9tTSzZ6+Il7tm15A3cVwbfQdBRoeBLpvp7SAdsqFaQToqyyNzcB0A+AyGjT+I7/eG+H4ZRh7a9UjtuVH1A7oe+QTrNr1o6DhkplpdXkNX6aVQ9FKPLV/Zzcq5V36IMxeWfuAgM3bBsWQPHpKhfLKyfGxBA6zN30nCUVCfFxI4HuGOuhVum1zSgtJbUnk3ZVvsfWdsCnLHSoVgtVhDFspxDhUown6cvXRwUN2wjZYxzw+wW19ioAEjAlfsu7FXv73EB6Slwsy3u6tU5bsQ9pHUxdeyRC5zDpXUtZ+dSdwKLaix2CVHRVGUSg4BoB2yOArPLu9w2ioDKmADBtH9t0pzBRXf3j4eXfHYe8iX5euarDGT2/BmN9CxFh1aQUdZg9LL4DHX7Kj8/cOh5XF3A5VwquneTzbPRVV2yprtkI/yMModnQ6j71wASjIEXTPyl1qO1mqiIciF2gbSXtRH2vWlwg3QTfVHT9mq/sjnLKtA5kA56jJQtrnpSdKg2gpQgoN5NyU2yeO15wGoyvHzAAC78ZtJjb30Xdcc+aHJzXjF1Szo7NgJ4guW2/R7RAAx2jpYtCIb4b7vcXaPm/Q2nwix7ZHgMOIQHmKEP2TzmUmInoSI3YiWyGC8D623+Leju4iebePVk7MhsrIla7jx3OfM/dnwt+PVd45+soVZaHpjl2xloqQYyU+8P8jBj5BUIknTLkL/EQk3qT3yzvM9PAoioks1tSDwSOIFo/gqC7ymCIAV+KzkTUniAa1gtybykFWlHUJzLJrhAvE6IsI7nz95iAEETF7kihyb0Yz0zT7cmjG6n0daJBJNboH0elklkCDSGDh59xqP1usU/ZdQO/rufX0ff7ox7V/vv88u7+KfYdCkHOruxNyPEA8Arbaxfl8ZcOiYQ3frVGQd5ib5EoLFyBnbNG5SwisuHBNrxTMMoUHor57Xso7evSHbxcWpGdtL85ndQ8KCVVNEaQ5qPK6X5aINxhrlOcIpFpyXHyvyldbad2GrPB+o5rfL6w+KP374r62NHrXpgA3Mc8xD13WCqIpGxRUkChLlZeKsMNVKDDmT4ETBf86SSlWF9uTFcBVdUclrM4K1FRDFkEVxSK5QkfLW0vxj0+daYxWLYyyQnRCrahVbTWIn1hFYxqq2nNqxJ8MyuiaqoqiCJDKq2nFZxiZncgpenAzLFKyXFXLYxHKgUOFUZj0Cz9i0EU59u5PhGaQqdynZinZcJnHqbXByCU6GS3gLRo1jxuiK1pF7Bdds46Q/92xLV7TOsE1i2MbZcHMybAP0QiaVp5vELRFwDL5Bhm/glBUQiDgjgyp3HgBkAwkzHY/MQ9aozk9V6nnI8FDHbsLCS+8ED1lrm7ft52R4iBYUaqpRp68YhqBoneMi67XkpT+cDhcptzIERjlYIneCa6zbhJfidzpco/e1yJ3RVlhvSaZ4niSngLbmDF3WckN8vY3ADZ9HrHcEnLIpgMOSJcyjClwqXZlcnM09mVZykozbpILoFF+7wUTWfcI7P+5kmLhh9nWTh6wvhbcN6mR4OKB8KbAcMQWcZIVjcI3jSTnlsIAql81sqrQdmpfKoW02bqFAzhJ30ArNAOFzKdVcRBrUDqnmWA7S+0mNSwNxKZJizb5TxWWtvJ6q9EmaLZU6pO+jbdh/o8Da/i9O4uaiB+s4OOnEGBmhR8mFV0aPjqRbSKzj9ZQVZlkFdUxTFMjLzzwC5LM6Msu19XbINLOvREMqPbNMzjUvfqQ/U2LWjEpyd+Qgd5mqPQHpHf5N9/EMJPrcDXqk9orMc5nNKtM9szcwW6HPAdiZ2cxIe2Y2q4P76V4G0QwCtyq5vZObE2iFjnxOnxm0ANcDyWCYJcgSA9D5ecRtb8+pUz4LHJzFcRCRjSdD8jfZfoKpcUZ23KSLine truncated
|
||||
|
After Width: | Height: | Size: 92 KiB |
@@ -26,6 +26,10 @@ There are three oCIS app driver containers that register Collabora and OnlyOffic
|
||||
|
||||
The last four containers are the WOPI server, Collabora and OnlyOffice.
|
||||
|
||||
## Overview Image
|
||||
|
||||
{{< figure src="/ocis/deployment/ocis_and_wopi_drawio.svg" >}}
|
||||
|
||||
## Server Deployment
|
||||
|
||||
### Requirements
|
||||
|
||||
@@ -10,4 +10,4 @@ geekdocCollapseSection: true
|
||||
|
||||
## Overview
|
||||
|
||||
oCIS provides an internal identity provider which can be configured via the [IDP service](../../services/idp/), or connect to an external identity provider like Keycloak or Microsoft Active Directory.
|
||||
oCIS provides out of the box a minimal OpenID Connect provider via the [IDP service](../../services/idp/) and a minimal LDAP service via the [IDM service](../../services/idm/). Both services are limited in the provided functionality, see the [admin documentation](https://doc.owncloud.com/ocis/next/deployment/services/s-list/idp.html) for details, and can be used for small environments like up to a few hundred users. For enterprise environments, it is highly recommended using enterprise grade external software like KeyCloak plus openLDAP or MS ADFS with Active Directory, which can be configured in the respective service. Entrada ID (formerly Azure AD) is in preparation, but not yet released or documented and might need some small fixes, and for certain functions a LDAP/AD connection.
|
||||
@@ -0,0 +1,106 @@
|
||||
---
|
||||
title: "OIDC"
|
||||
date: 2023-10-10T00:00:00+00:00
|
||||
weight: 21
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/ocis/identity-provider
|
||||
geekdocFilePath: oidc.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
Infinite Scale has implemented OpenID Connect (OIDC) for authentication.
|
||||
OIDC defines a discovery mechanism, called OpenID Connect Discovery,
|
||||
where an OpenID server publishes its metadata at a well-known URL, typically:
|
||||
|
||||
`https://ocis.test/.well-known/openid-configuration`
|
||||
|
||||
This URL returns a JSON listing of the OpenID/OAuth endpoints, supported scopes and claims, public keys used to sign the tokens, and other details.
|
||||
The clients can use this information to construct a request to the OpenID server.
|
||||
The field names and values are defined in the [OpenID Connect Discovery Specification](https://openid.net/specs/openid-connect-discovery-1_0.html).
|
||||
Here is an example of data returned:
|
||||
```json
|
||||
{
|
||||
"issuer": "https://ocis.test",
|
||||
"authorization_endpoint": "https://ocis.test/signin/v1/identifier/_/authorize",
|
||||
"token_endpoint": "https://ocis.test/konnect/v1/token",
|
||||
"userinfo_endpoint": "https://ocis.test/konnect/v1/userinfo",
|
||||
"end_session_endpoint": "https://ocis.test/signin/v1/identifier/_/endsession",
|
||||
"check_session_iframe": "https://ocis.test/konnect/v1/session/check-session.html",
|
||||
"jwks_uri": "https://ocis.test/konnect/v1/jwks.json",
|
||||
"scopes_supported": [
|
||||
"openid",
|
||||
"offline_access",
|
||||
"profile",
|
||||
"email",
|
||||
"LibgreGraph.UUID",
|
||||
"LibreGraph.RawSub"
|
||||
],
|
||||
"response_types_supported": [
|
||||
"id_token token",
|
||||
"id_token",
|
||||
"code id_token",
|
||||
"code id_token token"
|
||||
],
|
||||
"subject_types_supported": [
|
||||
"public"
|
||||
],
|
||||
"id_token_signing_alg_values_supported": [
|
||||
"RS256",
|
||||
"RS384",
|
||||
"RS512",
|
||||
"PS256",
|
||||
"PS384",
|
||||
"PS512"
|
||||
],
|
||||
"userinfo_signing_alg_values_supported": [
|
||||
"RS256",
|
||||
"RS384",
|
||||
"RS512",
|
||||
"PS256",
|
||||
"PS384",
|
||||
"PS512"
|
||||
],
|
||||
"request_object_signing_alg_values_supported": [
|
||||
"ES256",
|
||||
"ES384",
|
||||
"ES512",
|
||||
"RS256",
|
||||
"RS384",
|
||||
"RS512",
|
||||
"PS256",
|
||||
"PS384",
|
||||
"PS512",
|
||||
"none",
|
||||
"EdDSA"
|
||||
],
|
||||
"token_endpoint_auth_methods_supported": [
|
||||
"client_secret_basic",
|
||||
"none"
|
||||
],
|
||||
"token_endpoint_auth_signing_alg_values_supported": [
|
||||
"RS256",
|
||||
"RS384",
|
||||
"RS512",
|
||||
"PS256",
|
||||
"PS384",
|
||||
"PS512"
|
||||
],
|
||||
"claims_parameter_supported": true,
|
||||
"claims_supported": [
|
||||
"iss",
|
||||
"sub",
|
||||
"aud",
|
||||
"exp",
|
||||
"iat",
|
||||
"name",
|
||||
"family_name",
|
||||
"given_name",
|
||||
"email",
|
||||
"email_verified"
|
||||
],
|
||||
"request_parameter_supported": true,
|
||||
"request_uri_parameter_supported": false
|
||||
}
|
||||
```
|
||||
|
||||
Refer to the [Authorization](../../apis/http/authorization.md) section for example usages and details.
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
title: Service Configuration
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/services/ocm
|
||||
geekdocFilePath: configuration.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
## Example YAML Config
|
||||
|
||||
{{< include file="services/_includes/ocm-config-example.yaml" language="yaml" >}}
|
||||
|
||||
{{< include file="services/_includes/ocm.md" >}}
|
||||
@@ -0,0 +1,65 @@
|
||||
---
|
||||
title: Create Share Flow
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 40
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/services/ocm
|
||||
geekdocFilePath: create_share_flow.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
## OCM Create Share Flow
|
||||
|
||||
{{< mermaid class="text-center">}}
|
||||
sequenceDiagram
|
||||
box Instance A
|
||||
participant osp as ocmsharesprovider
|
||||
participant gwa as Gateway A
|
||||
participant httpa as ocs
|
||||
end
|
||||
actor usera as User A
|
||||
box Instance B
|
||||
participant httpb as ocmd
|
||||
participant gwb as Gateway B
|
||||
participant ocmc as OCMCore
|
||||
end
|
||||
|
||||
Note over usera: A shares a resource with B
|
||||
usera->>+httpa: CreateShare
|
||||
httpa->>+gwa: GetInfoByDomain
|
||||
Note left of gwa: GetInfoByDomain<br/>(ocmproviderauthorizer)
|
||||
gwa-->>-httpa: return
|
||||
|
||||
httpa->>+gwa: GetAcceptedUser
|
||||
Note left of gwa: GetAcceptedUser<br/>(ocminvitemanager)
|
||||
gwa-->>-httpa: return
|
||||
|
||||
httpa->>+gwa: CreateOCMShare
|
||||
gwa->>+osp: CreateOCMShare
|
||||
osp->>+gwa: Stat
|
||||
gwa-->>-osp: return
|
||||
|
||||
Note left of osp: store share in repo
|
||||
|
||||
osp->>+httpb: POST /shares
|
||||
httpb->>+gwb: IsProviderAllowed
|
||||
Note right of gwb: IsProviderAllowed<br/>(ocmproviderauthorizer)
|
||||
gwb-->>-httpb: return
|
||||
|
||||
httpb->>+gwb: GetUser
|
||||
Note right of gwb: GetUser<br/>(userprovider)
|
||||
gwb-->>-httpb: return
|
||||
|
||||
httpb->>+gwb: CreateOCMCoreShare
|
||||
gwb->>+ocmc: CreateOCMCoreShare
|
||||
Note right of ocmc: StoreReceivedShare
|
||||
ocmc-->>-gwb: return
|
||||
gwb-->>-httpb: return
|
||||
httpb-->>-osp: return
|
||||
osp-->>-gwa: return
|
||||
gwa-->>-httpa: return
|
||||
httpa->>+gwa: Stat
|
||||
Note left of gwa: Stat<br/>(storageprovider)
|
||||
gwa-->>-httpa: return
|
||||
httpa-->>-usera: return
|
||||
{{< /mermaid >}}
|
||||
@@ -0,0 +1,55 @@
|
||||
---
|
||||
title: Invitation flow
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/services/ocm
|
||||
geekdocFilePath: invitation_flow.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
## OCM Invitation Flow
|
||||
|
||||
{{< mermaid class="text-center">}}
|
||||
sequenceDiagram
|
||||
box Instance A
|
||||
participant ima as InviteManager A
|
||||
participant gwa as Gateway A
|
||||
participant httpa as HTTP Api A (ocm, sm)
|
||||
end
|
||||
actor usera as User A
|
||||
actor userb as User B
|
||||
box Instance B
|
||||
participant httpb as HTTP Api B (ocm, sm)
|
||||
participant gwb as Gateway B
|
||||
participant imb as InviteManager B
|
||||
end
|
||||
|
||||
Note over usera: A creates invitation token
|
||||
usera->>+httpa: POST /generate-invite (sciencemesh)
|
||||
httpa->>+gwa: GenerateInviteToken
|
||||
gwa->>+ima: GenerateInviteToken
|
||||
Note left of ima: store token in repo
|
||||
ima-->>-gwa: return token
|
||||
gwa-->>-httpa: return token
|
||||
httpa-->>-usera: return token
|
||||
|
||||
Note over usera,userb: A passes token to B
|
||||
|
||||
Note over userb: B accepts invitation
|
||||
userb->>+httpb: POST /accept-invite (sciencemesh)
|
||||
httpb->>+gwb: ForwardInvite
|
||||
gwb->>+imb: ForwardInvite
|
||||
imb->>+httpa: POST /invite-accepted (ocm)
|
||||
httpa->>+gwa: AcceptInvite
|
||||
gwa->>+ima: AcceptInvite
|
||||
Note left of ima: get token from repo
|
||||
Note left of ima: add remote user
|
||||
ima-->>-gwa: return
|
||||
gwa-->>-httpa: return remote user
|
||||
httpa->>-imb: return remote user
|
||||
Note right of imb: add remote user
|
||||
imb-->>-gwb: return
|
||||
gwb-->>-httpb: return
|
||||
httpb-->>-userb: return
|
||||
{{< /mermaid >}}
|
||||
@@ -13,11 +13,12 @@ require (
|
||||
github.com/coreos/go-oidc v2.2.1+incompatible
|
||||
github.com/coreos/go-oidc/v3 v3.7.0
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20231023073225-7748710e0781
|
||||
github.com/cs3org/reva/v2 v2.16.1-0.20231027142631-05d1fffaa03e
|
||||
github.com/cs3org/reva/v2 v2.16.1-0.20231121150727-6f872b2efd27
|
||||
github.com/dhowden/tag v0.0.0-20230630033851-978a0926ee25
|
||||
github.com/disintegration/imaging v1.6.2
|
||||
github.com/dutchcoders/go-clamd v0.0.0-20170520113014-b970184f4d9e
|
||||
github.com/egirna/icap-client v0.1.1
|
||||
github.com/gabriel-vasile/mimetype v1.4.2
|
||||
github.com/gabriel-vasile/mimetype v1.4.3
|
||||
github.com/ggwhite/go-masker v1.0.9
|
||||
github.com/go-chi/chi/v5 v5.0.10
|
||||
github.com/go-chi/cors v1.2.1
|
||||
@@ -34,19 +35,21 @@ require (
|
||||
github.com/go-micro/plugins/v4/registry/nats v1.2.2-0.20230723205323-1ada01245674
|
||||
github.com/go-micro/plugins/v4/server/grpc v1.2.0
|
||||
github.com/go-micro/plugins/v4/server/http v1.2.2
|
||||
github.com/go-micro/plugins/v4/store/nats-js v1.2.1-0.20230807070816-bc05fb076ce7
|
||||
github.com/go-micro/plugins/v4/wrapper/breaker/gobreaker v1.2.0
|
||||
github.com/go-micro/plugins/v4/wrapper/monitoring/prometheus v1.2.0
|
||||
github.com/go-micro/plugins/v4/wrapper/trace/opentelemetry v1.2.0
|
||||
github.com/go-ozzo/ozzo-validation/v4 v4.3.0
|
||||
github.com/go-playground/validator/v10 v10.16.0
|
||||
github.com/gofrs/uuid v4.4.0+incompatible
|
||||
github.com/golang-jwt/jwt/v4 v4.5.0
|
||||
github.com/golang/protobuf v1.5.3
|
||||
github.com/google/go-cmp v0.6.0
|
||||
github.com/google/go-tika v0.3.0
|
||||
github.com/google/uuid v1.3.1
|
||||
github.com/gookit/config/v2 v2.2.3
|
||||
github.com/google/uuid v1.4.0
|
||||
github.com/gookit/config/v2 v2.2.4
|
||||
github.com/gorilla/mux v1.8.0
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1
|
||||
github.com/jellydator/ttlcache/v2 v2.11.1
|
||||
github.com/jellydator/ttlcache/v3 v3.1.0
|
||||
github.com/jinzhu/now v1.1.5
|
||||
@@ -57,32 +60,33 @@ require (
|
||||
github.com/mitchellh/mapstructure v1.5.0
|
||||
github.com/mna/pigeon v1.2.1
|
||||
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
|
||||
github.com/nats-io/nats-server/v2 v2.10.2
|
||||
github.com/nats-io/nats-server/v2 v2.10.4
|
||||
github.com/oklog/run v1.1.0
|
||||
github.com/olekukonko/tablewriter v0.0.5
|
||||
github.com/onsi/ginkgo v1.16.5
|
||||
github.com/onsi/ginkgo/v2 v2.13.0
|
||||
github.com/onsi/gomega v1.27.10
|
||||
github.com/onsi/gomega v1.29.0
|
||||
github.com/open-policy-agent/opa v0.51.0
|
||||
github.com/orcaman/concurrent-map v1.0.0
|
||||
github.com/owncloud/libre-graph-api-go v1.0.5-0.20231019070917-17ae03ef40e4
|
||||
github.com/owncloud/libre-graph-api-go v1.0.5-0.20231113143725-09bf34dc9afb
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/pkg/xattr v0.4.9
|
||||
github.com/prometheus/client_golang v1.17.0
|
||||
github.com/r3labs/sse/v2 v2.10.0
|
||||
github.com/riandyrn/otelchi v0.5.1
|
||||
github.com/rogpeppe/go-internal v1.11.0
|
||||
github.com/rs/zerolog v1.30.0
|
||||
github.com/rs/zerolog v1.31.0
|
||||
github.com/shamaton/msgpack/v2 v2.1.1
|
||||
github.com/sirupsen/logrus v1.9.3
|
||||
github.com/spf13/cobra v1.7.0
|
||||
github.com/spf13/cobra v1.8.0
|
||||
github.com/stretchr/testify v1.8.4
|
||||
github.com/thejerf/suture/v4 v4.0.2
|
||||
github.com/tidwall/gjson v1.17.0
|
||||
github.com/tus/tusd v1.13.0
|
||||
github.com/urfave/cli/v2 v2.25.7
|
||||
github.com/xhit/go-simple-mail/v2 v2.16.0
|
||||
go-micro.dev/v4 v4.9.0
|
||||
go.etcd.io/bbolt v1.3.7
|
||||
go.etcd.io/bbolt v1.3.8
|
||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.45.0
|
||||
go.opentelemetry.io/contrib/zpages v0.45.0
|
||||
go.opentelemetry.io/otel v1.19.0
|
||||
@@ -95,10 +99,10 @@ require (
|
||||
golang.org/x/image v0.13.0
|
||||
golang.org/x/net v0.17.0
|
||||
golang.org/x/oauth2 v0.13.0
|
||||
golang.org/x/sync v0.4.0
|
||||
golang.org/x/term v0.13.0
|
||||
golang.org/x/text v0.13.0
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d
|
||||
golang.org/x/sync v0.5.0
|
||||
golang.org/x/term v0.14.0
|
||||
golang.org/x/text v0.14.0
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17
|
||||
google.golang.org/grpc v1.59.0
|
||||
google.golang.org/protobuf v1.31.0
|
||||
gopkg.in/square/go-jose.v2 v2.6.0
|
||||
@@ -159,7 +163,7 @@ require (
|
||||
github.com/containerd/cgroups/v3 v3.0.1 // indirect
|
||||
github.com/coreos/go-semver v0.3.0 // indirect
|
||||
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect
|
||||
github.com/crewjam/httperr v0.2.0 // indirect
|
||||
github.com/crewjam/saml v0.4.14 // indirect
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
@@ -190,11 +194,9 @@ require (
|
||||
github.com/go-logr/logr v1.2.4 // indirect
|
||||
github.com/go-logr/stdr v1.2.2 // indirect
|
||||
github.com/go-micro/plugins/v4/events/natsjs v1.2.2-0.20230807070816-bc05fb076ce7 // indirect
|
||||
github.com/go-micro/plugins/v4/store/nats-js v1.1.0 // indirect
|
||||
github.com/go-micro/plugins/v4/store/redis v1.2.1-0.20230510195111-07cd57e1bc9d // indirect
|
||||
github.com/go-playground/locales v0.13.0 // indirect
|
||||
github.com/go-playground/universal-translator v0.17.0 // indirect
|
||||
github.com/go-playground/validator/v10 v10.4.1 // indirect
|
||||
github.com/go-playground/locales v0.14.1 // indirect
|
||||
github.com/go-playground/universal-translator v0.18.1 // indirect
|
||||
github.com/go-redis/redis/v8 v8.11.5 // indirect
|
||||
github.com/go-resty/resty/v2 v2.7.0 // indirect
|
||||
github.com/go-sql-driver/mysql v1.6.0 // indirect
|
||||
@@ -204,7 +206,7 @@ require (
|
||||
github.com/gobwas/httphead v0.1.0 // indirect
|
||||
github.com/gobwas/pool v0.2.1 // indirect
|
||||
github.com/gobwas/ws v1.0.4 // indirect
|
||||
github.com/goccy/go-yaml v1.11.0 // indirect
|
||||
github.com/goccy/go-yaml v1.11.2 // indirect
|
||||
github.com/godbus/dbus/v5 v5.0.6 // indirect
|
||||
github.com/gofrs/flock v0.8.1 // indirect
|
||||
github.com/gogo/protobuf v1.3.2 // indirect
|
||||
@@ -217,8 +219,8 @@ require (
|
||||
github.com/google/go-querystring v1.1.0 // indirect
|
||||
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
|
||||
github.com/google/renameio/v2 v2.0.0 // indirect
|
||||
github.com/gookit/color v1.5.3 // indirect
|
||||
github.com/gookit/goutil v0.6.10 // indirect
|
||||
github.com/gookit/color v1.5.4 // indirect
|
||||
github.com/gookit/goutil v0.6.14 // indirect
|
||||
github.com/gorilla/handlers v1.5.1 // indirect
|
||||
github.com/gorilla/schema v1.2.0 // indirect
|
||||
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
|
||||
@@ -243,15 +245,15 @@ require (
|
||||
github.com/json-iterator/go v1.1.12 // indirect
|
||||
github.com/juliangruber/go-intersect v1.1.0 // indirect
|
||||
github.com/kevinburke/ssh_config v1.2.0 // indirect
|
||||
github.com/klauspost/compress v1.17.0 // indirect
|
||||
github.com/klauspost/compress v1.17.2 // indirect
|
||||
github.com/klauspost/cpuid/v2 v2.1.0 // indirect
|
||||
github.com/leodido/go-urn v1.2.0 // indirect
|
||||
github.com/leodido/go-urn v1.2.4 // indirect
|
||||
github.com/libregraph/oidc-go v1.0.0 // indirect
|
||||
github.com/longsleep/go-metrics v1.0.0 // indirect
|
||||
github.com/longsleep/rndm v1.2.0 // indirect
|
||||
github.com/mattermost/xml-roundtrip-validator v0.1.0 // indirect
|
||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||
github.com/mattn/go-isatty v0.0.17 // indirect
|
||||
github.com/mattn/go-isatty v0.0.19 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.13 // indirect
|
||||
github.com/mattn/go-sqlite3 v2.0.3+incompatible // indirect
|
||||
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
|
||||
@@ -272,8 +274,8 @@ require (
|
||||
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||
github.com/mschoch/smat v0.2.0 // indirect
|
||||
github.com/nats-io/jwt/v2 v2.5.2 // indirect
|
||||
github.com/nats-io/nats.go v1.30.2 // indirect
|
||||
github.com/nats-io/nkeys v0.4.5 // indirect
|
||||
github.com/nats-io/nats.go v1.31.0 // indirect
|
||||
github.com/nats-io/nkeys v0.4.6 // indirect
|
||||
github.com/nats-io/nuid v1.0.1 // indirect
|
||||
github.com/nxadm/tail v1.4.8 // indirect
|
||||
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 // indirect
|
||||
@@ -304,6 +306,8 @@ require (
|
||||
github.com/stretchr/objx v0.5.0 // indirect
|
||||
github.com/studio-b12/gowebdav v0.0.0-20221015232716-17255f2e7423 // indirect
|
||||
github.com/tchap/go-patricia/v2 v2.3.1 // indirect
|
||||
github.com/tidwall/match v1.1.1 // indirect
|
||||
github.com/tidwall/pretty v1.2.1 // indirect
|
||||
github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208 // indirect
|
||||
github.com/trustelem/zxcvbn v1.0.1 // indirect
|
||||
github.com/wk8/go-ordered-map v1.0.0 // indirect
|
||||
@@ -326,13 +330,13 @@ require (
|
||||
go.uber.org/multierr v1.8.0 // indirect
|
||||
go.uber.org/zap v1.23.0 // indirect
|
||||
golang.org/x/mod v0.13.0 // indirect
|
||||
golang.org/x/sys v0.13.0 // indirect
|
||||
golang.org/x/sys v0.14.0 // indirect
|
||||
golang.org/x/time v0.3.0 // indirect
|
||||
golang.org/x/tools v0.14.0 // indirect
|
||||
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
|
||||
google.golang.org/appengine v1.6.8 // indirect
|
||||
google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
|
||||
google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect
|
||||
gopkg.in/cenkalti/backoff.v1 v1.1.0 // indirect
|
||||
gopkg.in/ini.v1 v1.67.0 // indirect
|
||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
|
||||
@@ -340,3 +344,5 @@ require (
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
sigs.k8s.io/yaml v1.3.0 // indirect
|
||||
)
|
||||
|
||||
replace github.com/go-micro/plugins/v4/store/nats-js => github.com/kobergj/plugins/v4/store/nats-js v1.2.1-0.20231020092801-9463c820c19a
|
||||
@@ -40,7 +40,7 @@ cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMz
|
||||
cloud.google.com/go v0.110.2/go.mod h1:k04UEeEtb6ZBRTv3dZz4CeJC3jKGxyhl0sAiVVquxiw=
|
||||
cloud.google.com/go v0.110.4/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI=
|
||||
cloud.google.com/go v0.110.6/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI=
|
||||
cloud.google.com/go v0.110.7 h1:rJyC7nWRg2jWGZ4wSJ5nY65GTdYJkg0cd/uXb+ACI6o=
|
||||
cloud.google.com/go v0.110.9 h1:e7ITSqGFFk4rbz/JFIqZh3G4VEHguhAL4BQcFlWtU68=
|
||||
cloud.google.com/go/accessapproval v1.4.0/go.mod h1:zybIuC3KpDOvotz59lFe5qxRZx6C75OtwbisN56xYB4=
|
||||
cloud.google.com/go/accessapproval v1.5.0/go.mod h1:HFy3tuiGvMdcd/u+Cu5b9NkO1pEICJ46IR82PoUdplw=
|
||||
cloud.google.com/go/accessapproval v1.6.0/go.mod h1:R0EiYnwV5fsRFiKZkPHr6mwyk2wxUJ30nL4j2pcFY2E=
|
||||
@@ -210,8 +210,8 @@ cloud.google.com/go/compute v1.19.0/go.mod h1:rikpw2y+UMidAe9tISo04EHNOIf42RLYF/
|
||||
cloud.google.com/go/compute v1.19.1/go.mod h1:6ylj3a05WF8leseCdIf77NK0g1ey+nj5IKd5/kvShxE=
|
||||
cloud.google.com/go/compute v1.19.3/go.mod h1:qxvISKp/gYnXkSAD1ppcSOveRAmzxicEv/JlizULFrI=
|
||||
cloud.google.com/go/compute v1.20.1/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM=
|
||||
cloud.google.com/go/compute v1.23.0 h1:tP41Zoavr8ptEqaW6j+LQOnyBBhO7OkOMAGrgLopTwY=
|
||||
cloud.google.com/go/compute v1.23.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM=
|
||||
cloud.google.com/go/compute v1.23.2 h1:nWEMDhgbBkBJjfpVySqU4jgWdc22PLR0o4vEexZHers=
|
||||
cloud.google.com/go/compute/metadata v0.1.0/go.mod h1:Z1VN+bulIf6bt4P/C37K4DyZYZEXYonfTBHHFPO/4UU=
|
||||
cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k=
|
||||
cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM=
|
||||
@@ -1004,8 +1004,8 @@ github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfc
|
||||
github.com/cpu/goacmedns v0.1.1/go.mod h1:MuaouqEhPAHxsbqjgnck5zeghuwBP1dLnPoobeGqugQ=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.3 h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/crewjam/httperr v0.2.0 h1:b2BfXR8U3AlIHwNeFFvZ+BV1LFvKLlzMjzaTnZMybNo=
|
||||
github.com/crewjam/httperr v0.2.0/go.mod h1:Jlz+Sg/XqBQhyMjdDiC+GNNRzZTD7x39Gu3pglZ5oH4=
|
||||
@@ -1013,8 +1013,8 @@ github.com/crewjam/saml v0.4.14 h1:g9FBNx62osKusnFzs3QTN5L9CVA/Egfgm+stJShzw/c=
|
||||
github.com/crewjam/saml v0.4.14/go.mod h1:UVSZCf18jJkk6GpWNVqcyQJMD5HsRugBPf4I1nl2mME=
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20231023073225-7748710e0781 h1:BUdwkIlf8IS2FasrrPg8gGPHQPOrQ18MS1Oew2tmGtY=
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20231023073225-7748710e0781/go.mod h1:UXha4TguuB52H14EMoSsCqDj7k8a/t7g4gVP+bgY5LY=
|
||||
github.com/cs3org/reva/v2 v2.16.1-0.20231027142631-05d1fffaa03e h1:+Hlma3QvqLh6M4iS7Rvvd0HmBu6IQshlByt3T24Z1pI=
|
||||
github.com/cs3org/reva/v2 v2.16.1-0.20231027142631-05d1fffaa03e/go.mod h1:utPCNSrWDdAwz2biLrKvzO6nDH9L7vRVGNzof13r8Kw=
|
||||
github.com/cs3org/reva/v2 v2.16.1-0.20231121150727-6f872b2efd27 h1:eIwU0jW2qIwQHaAbV65ekUnJ5dwQhaIPdoX6tPKfKGA=
|
||||
github.com/cs3org/reva/v2 v2.16.1-0.20231121150727-6f872b2efd27/go.mod h1:utPCNSrWDdAwz2biLrKvzO6nDH9L7vRVGNzof13r8Kw=
|
||||
github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
@@ -1035,6 +1035,8 @@ github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cu
|
||||
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
|
||||
github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48 h1:fRzb/w+pyskVMQ+UbP35JkH8yB7MYb4q/qhBarqZE6g=
|
||||
github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA=
|
||||
github.com/dhowden/tag v0.0.0-20230630033851-978a0926ee25 h1:simG0vMYFvNriGhaaat7QVVkaVkXzvqcohaBoLZl9Hg=
|
||||
github.com/dhowden/tag v0.0.0-20230630033851-978a0926ee25/go.mod h1:Z3Lomva4pyMWYezjMAU5QWRh0p1VvO4199OHlFnyKkM=
|
||||
github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8=
|
||||
github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1ei82L+c=
|
||||
github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4=
|
||||
@@ -1104,8 +1106,8 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo
|
||||
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
||||
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
|
||||
github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw=
|
||||
github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU=
|
||||
github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA=
|
||||
github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0=
|
||||
github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk=
|
||||
github.com/gdexlab/go-render v1.0.1 h1:rxqB3vo5s4n1kF0ySmoNeSPRYkEsyHgln4jFIQY7v0U=
|
||||
github.com/gdexlab/go-render v1.0.1/go.mod h1:wRi5nW2qfjiGj4mPukH4UV0IknS1cHD4VgFTmJX5JzM=
|
||||
github.com/getkin/kin-openapi v0.13.0/go.mod h1:WGRs2ZMM1Q8LR1QBEwUxC6RJEfaBcD0s+pcEVXFuAjw=
|
||||
@@ -1198,8 +1200,6 @@ github.com/go-micro/plugins/v4/server/grpc v1.2.0 h1:lXfM+/0oE/u1g0hVBYsvbP4lYOY
|
||||
github.com/go-micro/plugins/v4/server/grpc v1.2.0/go.mod h1:+Ah9Pf/vMSXxBM3fup/hc3N+zN2as3nIpcRaR4sBjnY=
|
||||
github.com/go-micro/plugins/v4/server/http v1.2.2 h1:UK2/09AU0zV3wHELuR72TZzVU2vTUhbx9qrRGrQSIWg=
|
||||
github.com/go-micro/plugins/v4/server/http v1.2.2/go.mod h1:YuAjaSPxcn3LI8j2FUsqx0Rxunrj4YwDV41Ax76rLl0=
|
||||
github.com/go-micro/plugins/v4/store/nats-js v1.1.0 h1:6Fe1/eLtg8kRyaGvMILp4olYtTDGwYNBXyb1sYfAWGk=
|
||||
github.com/go-micro/plugins/v4/store/nats-js v1.1.0/go.mod h1:jJf7Gm39OafZlT3s3UE2/9NIYj6OlI2fmZ4czSA3gvo=
|
||||
github.com/go-micro/plugins/v4/store/redis v1.2.1-0.20230510195111-07cd57e1bc9d h1:HQoDDVyMfdkrgXNo03ZY4vzhoOXMDZVZ4SnpBDVID6E=
|
||||
github.com/go-micro/plugins/v4/store/redis v1.2.1-0.20230510195111-07cd57e1bc9d/go.mod h1:MbCG0YiyPqETTtm7uHFmxQNCaW1o9hBoYtFwhbVjLUg=
|
||||
github.com/go-micro/plugins/v4/transport/grpc v1.1.0 h1:mXfDYfFQLnVDzjGY3o84oe4prfux9h8txsnA19dKsj8=
|
||||
@@ -1213,14 +1213,13 @@ github.com/go-ozzo/ozzo-validation/v4 v4.3.0 h1:byhDUpfEwjsVQb1vBunvIjh2BHQ9ead5
|
||||
github.com/go-ozzo/ozzo-validation/v4 v4.3.0/go.mod h1:2NKgrcHl3z6cJs+3Oo940FPRiTzuqKbvfrL2RxCj6Ew=
|
||||
github.com/go-pdf/fpdf v0.5.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M=
|
||||
github.com/go-pdf/fpdf v0.6.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M=
|
||||
github.com/go-playground/assert/v2 v2.0.1 h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A=
|
||||
github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
|
||||
github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q=
|
||||
github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8=
|
||||
github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no=
|
||||
github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA=
|
||||
github.com/go-playground/validator/v10 v10.4.1 h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE=
|
||||
github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4=
|
||||
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
|
||||
github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
|
||||
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
|
||||
github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
|
||||
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
|
||||
github.com/go-playground/validator/v10 v10.16.0 h1:x+plE831WK4vaKHO/jpgUGsvLKIqRRkz6M78GuJAfGE=
|
||||
github.com/go-playground/validator/v10 v10.16.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU=
|
||||
github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI=
|
||||
github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo=
|
||||
github.com/go-resty/resty/v2 v2.1.1-0.20191201195748-d7b97669fe48/go.mod h1:dZGr0i9PLlaaTD4H/hoZIDjQ+r6xq8mgbRzHZf7f2J8=
|
||||
@@ -1244,8 +1243,8 @@ github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6Wezm
|
||||
github.com/gobwas/ws v1.0.4 h1:5eXU1CZhpQdq5kXbKb+sECH5Ia5KiO6CYzIzdlVx6Bs=
|
||||
github.com/gobwas/ws v1.0.4/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM=
|
||||
github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
|
||||
github.com/goccy/go-yaml v1.11.0 h1:n7Z+zx8S9f9KgzG6KtQKf+kwqXZlLNR2F6018Dgau54=
|
||||
github.com/goccy/go-yaml v1.11.0/go.mod h1:H+mJrWtjPTJAHvRbV09MCK9xYwODM+wRTVFFTWckfng=
|
||||
github.com/goccy/go-yaml v1.11.2 h1:joq77SxuyIs9zzxEjgyLBugMQ9NEgTWxXfz2wVqwAaQ=
|
||||
github.com/goccy/go-yaml v1.11.2/go.mod h1:wKnAMd44+9JAAnGQpWVEgBzGt3YuTaQ4uXoHvE4m7WU=
|
||||
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||
github.com/godbus/dbus/v5 v5.0.6 h1:mkgN1ofwASrYnJ5W6U/BxG15eXXXjirgZc7CLqkcaro=
|
||||
github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||
@@ -1378,8 +1377,8 @@ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+
|
||||
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4=
|
||||
github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4=
|
||||
github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8=
|
||||
github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8=
|
||||
github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg=
|
||||
@@ -1404,12 +1403,12 @@ github.com/googleapis/gax-go/v2 v2.11.0/go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5i
|
||||
github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU=
|
||||
github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4=
|
||||
github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g=
|
||||
github.com/gookit/color v1.5.3 h1:twfIhZs4QLCtimkP7MOxlF3A0U/5cDPseRT9M/+2SCE=
|
||||
github.com/gookit/color v1.5.3/go.mod h1:NUzwzeehUfl7GIb36pqId+UGmRfQcU/WiiyTTeNjHtE=
|
||||
github.com/gookit/config/v2 v2.2.3 h1:GlnYPduYeY7lRgWQmGld9juy0xpFUo06BUC9Pzyjuew=
|
||||
github.com/gookit/config/v2 v2.2.3/go.mod h1:FhmMu+2wg0UhyOjVGo+DZ1+ov34q4G4aWXzh86boEsY=
|
||||
github.com/gookit/goutil v0.6.10 h1:iq7CXOf+fYLvrVAh3+ZoLgufGfK65TwbzE8NpnPGtyk=
|
||||
github.com/gookit/goutil v0.6.10/go.mod h1:qqrPoX+Pm6YmxqqccgkNLPirTFX7UYMES1SK+fokqQU=
|
||||
github.com/gookit/color v1.5.4 h1:FZmqs7XOyGgCAxmWyPslpiok1k05wmY3SJTytgvYFs0=
|
||||
github.com/gookit/color v1.5.4/go.mod h1:pZJOeOS8DM43rXbp4AZo1n9zCU2qjpcRko0b6/QJi9w=
|
||||
github.com/gookit/config/v2 v2.2.4 h1:uLHNzFzREe5gDBP4Gb1+WOC9LB6vauPvq4eolp32Dcg=
|
||||
github.com/gookit/config/v2 v2.2.4/go.mod h1:k1ofSAuJnW6n1kTriFMSzFDC8ZT20tAPQ+1iGI3QOrU=
|
||||
github.com/gookit/goutil v0.6.14 h1:96elyOG4BvVoDaiT7vx1vHPrVyEtFfYlPPBODR0/FGQ=
|
||||
github.com/gookit/goutil v0.6.14/go.mod h1:YyDBddefmjS+mU2PDPgCcjVzTDM5WgExiDv5ZA/b8I8=
|
||||
github.com/gookit/ini/v2 v2.2.2 h1:3B8abZJrVH1vi/7TU4STuTBxdhiAq1ORSt6NJZCahaI=
|
||||
github.com/gophercloud/gophercloud v0.15.1-0.20210202035223-633d73521055/go.mod h1:wRtmUelyIIv3CSSDI47aUwbs075O6i+LY+pXsKCBsb4=
|
||||
github.com/gophercloud/gophercloud v0.16.0/go.mod h1:wRtmUelyIIv3CSSDI47aUwbs075O6i+LY+pXsKCBsb4=
|
||||
@@ -1434,8 +1433,8 @@ github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t
|
||||
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0/go.mod h1:hgWBS7lorOAVIJEQMi4ZsPv9hVvWI6+ch50m39Pf2Ks=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3/go.mod h1:o//XUCC/F+yRGJoPO/VU0GSB0f8Nhgmxx0VIRUvaC0w=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 h1:RtRsiaGvWxcwd8y3BiRZxsylPT8hLWZ5SPcfI+3IDNk=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0/go.mod h1:TzP6duP4Py2pHLVPPQp42aoYI92+PCrVotyR5e8Vqlk=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 h1:6UKoz5ujsI55KNpsJH3UwCq3T8kKbZwNZBNPuTTje8U=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1/go.mod h1:YvJ2f6MplWDhfxiUC3KpyTy76kYUZA4W3pTv/wdKQ9Y=
|
||||
github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542/go.mod h1:Ow0tF8D4Kplbc8s8sSb3V2oUCygFHVp8gC3Dn6U4MNI=
|
||||
github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q=
|
||||
github.com/hashicorp/consul/api v1.15.2 h1:3Q/pDqvJ7udgt/60QOOW/p/PeKioQN+ncYzzCdN2av0=
|
||||
@@ -1568,13 +1567,15 @@ github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI
|
||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||
github.com/klauspost/asmfmt v1.3.2/go.mod h1:AG8TuvYojzulgDAMCnYn50l/5QV3Bs/tp6j0HLHbNSE=
|
||||
github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU=
|
||||
github.com/klauspost/compress v1.17.0 h1:Rnbp4K9EjcDuVuHtd0dgA4qNuv9yKDYKK1ulpJwgrqM=
|
||||
github.com/klauspost/compress v1.17.0/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE=
|
||||
github.com/klauspost/compress v1.17.2 h1:RlWWUY/Dr4fL8qk9YG7DTZ7PDgME2V4csBXA8L/ixi4=
|
||||
github.com/klauspost/compress v1.17.2/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE=
|
||||
github.com/klauspost/cpuid/v2 v2.0.1/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
|
||||
github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
|
||||
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
|
||||
github.com/klauspost/cpuid/v2 v2.1.0 h1:eyi1Ad2aNJMW95zcSbmGg7Cg6cq3ADwLpMAP96d8rF0=
|
||||
github.com/klauspost/cpuid/v2 v2.1.0/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY=
|
||||
github.com/kobergj/plugins/v4/store/nats-js v1.2.1-0.20231020092801-9463c820c19a h1:W+itvdTLFGLuFh+E5IzW08n2BS02cHK91qnMo7SUxbA=
|
||||
github.com/kobergj/plugins/v4/store/nats-js v1.2.1-0.20231020092801-9463c820c19a/go.mod h1:wt51O2yNmgF/F7E00IYIH0awseRGqtnmjZGn6RjbZSk=
|
||||
github.com/kolo/xmlrpc v0.0.0-20200310150728-e0350524596b/go.mod h1:o03bZfuBwAXHetKXuInt4S7omeXUu62/A845kiycsSQ=
|
||||
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||
@@ -1595,8 +1596,8 @@ github.com/labbsr0x/bindman-dns-webhook v1.0.2/go.mod h1:p6b+VCXIR8NYKpDr8/dg1HK
|
||||
github.com/labbsr0x/goh v1.0.1/go.mod h1:8K2UhVoaWXcCU7Lxoa2omWnC8gyW8px7/lmO61c027w=
|
||||
github.com/labstack/echo/v4 v4.1.11/go.mod h1:i541M3Fj6f76NZtHSj7TXnyM8n2gaodfvfxNnFqi74g=
|
||||
github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k=
|
||||
github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y=
|
||||
github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII=
|
||||
github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q=
|
||||
github.com/leodido/go-urn v1.2.4/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4=
|
||||
github.com/leonelquinteros/gotext v1.5.3-0.20230317130943-71a59c05b2c1 h1:k56sFOOJ0CYuQtGoRSeAMhP1R692+iNH+S1dC/CEz0w=
|
||||
github.com/leonelquinteros/gotext v1.5.3-0.20230317130943-71a59c05b2c1/go.mod h1:AT4NpQrOmyj1L/+hLja6aR0lk81yYYL4ePnj2kp7d6M=
|
||||
github.com/libregraph/idm v0.4.1-0.20230221143410-3503963047a5 h1:brLMXSjWoWhGXs8LpK+Lx+FQCtGLUa51Mq/ggHv9AV0=
|
||||
@@ -1643,8 +1644,9 @@ github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOA
|
||||
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
||||
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
||||
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
||||
github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng=
|
||||
github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
||||
github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA=
|
||||
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
|
||||
github.com/mattn/go-runewidth v0.0.6/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
|
||||
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
|
||||
@@ -1723,12 +1725,12 @@ github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRW
|
||||
github.com/namedotcom/go v0.0.0-20180403034216-08470befbe04/go.mod h1:5sN+Lt1CaY4wsPvgQH/jsuJi4XO2ssZbdsIizr4CVC8=
|
||||
github.com/nats-io/jwt/v2 v2.5.2 h1:DhGH+nKt+wIkDxM6qnVSKjokq5t59AZV5HRcFW0zJwU=
|
||||
github.com/nats-io/jwt/v2 v2.5.2/go.mod h1:24BeQtRwxRV8ruvC4CojXlx/WQ/VjuwlYiH+vu/+ibI=
|
||||
github.com/nats-io/nats-server/v2 v2.10.2 h1:2o/OOyc/dxeMCQtrF1V/9er0SU0A3LKhDlv/+rqreBM=
|
||||
github.com/nats-io/nats-server/v2 v2.10.2/go.mod h1:lzrskZ/4gyMAh+/66cCd+q74c6v7muBypzfWhP/MAaM=
|
||||
github.com/nats-io/nats.go v1.30.2 h1:aloM0TGpPorZKQhbAkdCzYDj+ZmsJDyeo3Gkbr72NuY=
|
||||
github.com/nats-io/nats.go v1.30.2/go.mod h1:dcfhUgmQNN4GJEfIb2f9R7Fow+gzBF4emzDHrVBd5qM=
|
||||
github.com/nats-io/nkeys v0.4.5 h1:Zdz2BUlFm4fJlierwvGK+yl20IAKUm7eV6AAZXEhkPk=
|
||||
github.com/nats-io/nkeys v0.4.5/go.mod h1:XUkxdLPTufzlihbamfzQ7mw/VGx6ObUs+0bN5sNvt64=
|
||||
github.com/nats-io/nats-server/v2 v2.10.4 h1:uB9xcwon3tPXWAdmTJqqqC6cie3yuPWHJjjTBgaPNus=
|
||||
github.com/nats-io/nats-server/v2 v2.10.4/go.mod h1:eWm2JmHP9Lqm2oemB6/XGi0/GwsZwtWf8HIPUsh+9ns=
|
||||
github.com/nats-io/nats.go v1.31.0 h1:/WFBHEc/dOKBF6qf1TZhrdEfTmOZ5JzdJ+Y3m6Y/p7E=
|
||||
github.com/nats-io/nats.go v1.31.0/go.mod h1:di3Bm5MLsoB4Bx61CBTsxuarI36WbhAwOm8QrW39+i8=
|
||||
github.com/nats-io/nkeys v0.4.6 h1:IzVe95ru2CT6ta874rt9saQRkWfe2nFj1NtvYSLqMzY=
|
||||
github.com/nats-io/nkeys v0.4.6/go.mod h1:4DxZNzenSVd1cYQoAa8948QY3QDjrHfcfVADymtkpts=
|
||||
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
|
||||
github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
|
||||
github.com/nbio/st v0.0.0-20140626010706-e9e8d9816f32/go.mod h1:9wM+0iRr9ahx58uYLpLIr5fm8diHn0JbqRycJi6w0Ms=
|
||||
@@ -1757,8 +1759,8 @@ github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xl
|
||||
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
|
||||
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
|
||||
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
|
||||
github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI=
|
||||
github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M=
|
||||
github.com/onsi/gomega v1.29.0 h1:KIA/t2t5UBzoirT4H9tsML45GEbo3ouUnBHsCfD2tVg=
|
||||
github.com/onsi/gomega v1.29.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ=
|
||||
github.com/open-policy-agent/opa v0.51.0 h1:2hS5xhos8HtkN+mgpqMhNJSFtn/1n/h3wh+AeTPJg6Q=
|
||||
github.com/open-policy-agent/opa v0.51.0/go.mod h1:OjmwLfXdeR7skSxrt8Yd3ScXTqPxyJn7GeTRJrcEerU=
|
||||
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 h1:3snG66yBm59tKhhSPQrQ/0bCrv1LQbKt40LnUPiUxdc=
|
||||
@@ -1771,8 +1773,8 @@ github.com/oracle/oci-go-sdk v24.3.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35uk
|
||||
github.com/orcaman/concurrent-map v1.0.0 h1:I/2A2XPCb4IuQWcQhBhSwGfiuybl/J0ev9HDbW65HOY=
|
||||
github.com/orcaman/concurrent-map v1.0.0/go.mod h1:Lu3tH6HLW3feq74c2GC+jIMS/K2CFcDWnWD9XkenwhI=
|
||||
github.com/ovh/go-ovh v1.1.0/go.mod h1:AxitLZ5HBRPyUd+Zl60Ajaag+rNTdVXWIkzfrVuTXWA=
|
||||
github.com/owncloud/libre-graph-api-go v1.0.5-0.20231019070917-17ae03ef40e4 h1:W2X4DGGEuNUeGCKOUK8c2NAC4kva8jq9knuv5ePLUiE=
|
||||
github.com/owncloud/libre-graph-api-go v1.0.5-0.20231019070917-17ae03ef40e4/go.mod h1:v2aAl5IwEI8t+GmcWvBd+bvJMYp9Vf1hekLuRf0UnEs=
|
||||
github.com/owncloud/libre-graph-api-go v1.0.5-0.20231113143725-09bf34dc9afb h1:KFnmkGvHY+6k6IZ9I1w5Ia24VbALYms+Y6W7LrsUbsE=
|
||||
github.com/owncloud/libre-graph-api-go v1.0.5-0.20231113143725-09bf34dc9afb/go.mod h1:v2aAl5IwEI8t+GmcWvBd+bvJMYp9Vf1hekLuRf0UnEs=
|
||||
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c h1:rp5dCmg/yLR3mgFuSOe4oEnDDmGLROTvMragMUXpTQw=
|
||||
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c/go.mod h1:X07ZCGwUbLaax7L0S3Tw4hpejzu63ZrrQiUe6W0hcy0=
|
||||
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
||||
@@ -1890,8 +1892,8 @@ github.com/rs/cors v1.9.0 h1:l9HGsTsHJcvW14Nk7J9KFz8bzeAWXn3CG6bgt7LsrAE=
|
||||
github.com/rs/cors v1.9.0/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
|
||||
github.com/rs/xid v1.5.0 h1:mKX4bl4iPYJtEIxp6CYiUuLQ/8DYMoz0PUdtGgMFRVc=
|
||||
github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
|
||||
github.com/rs/zerolog v1.30.0 h1:SymVODrcRsaRaSInD9yQtKbtWqwsfoPcRff/oRXLj4c=
|
||||
github.com/rs/zerolog v1.30.0/go.mod h1:/tk+P47gFdPXq4QYjvCmT5/Gsug2nagsFWBWhAiSi1w=
|
||||
github.com/rs/zerolog v1.31.0 h1:FcTR3NnLWW+NnTwwhFWiJSZr4ECLpqCm6QsEnyvbV4A=
|
||||
github.com/rs/zerolog v1.31.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss=
|
||||
github.com/russellhaering/goxmldsig v1.4.0 h1:8UcDh/xGyQiyrW+Fq5t8f+l2DLB1+zlhYzkPUJ7Qhys=
|
||||
github.com/russellhaering/goxmldsig v1.4.0/go.mod h1:gM4MDENBQf7M+V824SGfyIUVFWydB7n0KkEubVJl+Tw=
|
||||
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||
@@ -1948,8 +1950,8 @@ github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcD
|
||||
github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
|
||||
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
|
||||
github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI=
|
||||
github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I=
|
||||
github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0=
|
||||
github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0=
|
||||
github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho=
|
||||
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
|
||||
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
|
||||
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
|
||||
@@ -1987,6 +1989,13 @@ github.com/test-go/testify v1.1.4 h1:Tf9lntrKUMHiXQ07qBScBTSA0dhYQlu83hswqelv1iE
|
||||
github.com/thanhpk/randstr v1.0.4 h1:IN78qu/bR+My+gHCvMEXhR/i5oriVHcTB/BJJIRTsNo=
|
||||
github.com/thejerf/suture/v4 v4.0.2 h1:VxIH/J8uYvqJY1+9fxi5GBfGRkRZ/jlSOP6x9HijFQc=
|
||||
github.com/thejerf/suture/v4 v4.0.2/go.mod h1:g0e8vwskm9tI0jRjxrnA6lSr0q6OfPdWJVX7G5bVWRs=
|
||||
github.com/tidwall/gjson v1.17.0 h1:/Jocvlh98kcTfpN2+JzGQWQcqrPQwDrVEMApx/M5ZwM=
|
||||
github.com/tidwall/gjson v1.17.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
|
||||
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
|
||||
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
|
||||
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
|
||||
github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4=
|
||||
github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
|
||||
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
|
||||
github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208 h1:PM5hJF7HVfNWmCjMdEfbuOBNXSVF2cMFGgQTPdKCbwM=
|
||||
github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208/go.mod h1:BzWtXXrXzZUvMacR0oF/fbDDgUPO8L36tDMmRAf14ns=
|
||||
@@ -2040,8 +2049,8 @@ github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaD
|
||||
go-micro.dev/v4 v4.9.0 h1:pd1CpqMT9hA47jSmX8mfdGK865PkMh95Rwj5RdfqPqE=
|
||||
go-micro.dev/v4 v4.9.0/go.mod h1:Ju8HrZ5hQSF+QguZ2QUs9Kbe42MHP1tJa/fpP5g07Cs=
|
||||
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
|
||||
go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ=
|
||||
go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw=
|
||||
go.etcd.io/bbolt v1.3.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA=
|
||||
go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw=
|
||||
go.etcd.io/etcd/api/v3 v3.5.7 h1:sbcmosSVesNrWOJ58ZQFitHMdncusIifYcrBfwrlJSY=
|
||||
go.etcd.io/etcd/api/v3 v3.5.7/go.mod h1:9qew1gCdDDLu+VwmeG+iFpL+QlpHTo7iubavdVDgCAA=
|
||||
go.etcd.io/etcd/client/pkg/v3 v3.5.7 h1:y3kf5Gbp4e4q7egZdn5T7W9TSHUvkClN6u+Rq9mEOmg=
|
||||
@@ -2338,8 +2347,8 @@ golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJ
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
|
||||
golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ=
|
||||
golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
|
||||
golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE=
|
||||
golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/sys v0.0.0-20180622082034-63fc586f45fe/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
@@ -2469,8 +2478,9 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
|
||||
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q=
|
||||
golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
@@ -2485,8 +2495,8 @@ golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
|
||||
golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo=
|
||||
golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o=
|
||||
golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU=
|
||||
golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek=
|
||||
golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U=
|
||||
golang.org/x/term v0.14.0 h1:LGK9IlZ8T9jvdy6cTdfKUCltatMFOehAQo9SRC46UQ8=
|
||||
golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww=
|
||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
@@ -2506,8 +2516,8 @@ golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
||||
golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||
golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||
golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||
golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k=
|
||||
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
|
||||
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
|
||||
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
@@ -2829,8 +2839,8 @@ google.golang.org/genproto v0.0.0-20230629202037-9506855d4529/go.mod h1:xZnkP7mR
|
||||
google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:O9kGHb51iE/nOGvQaDUuadVYqovW56s5emA88lQnj6Y=
|
||||
google.golang.org/genproto v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:0ggbjUrZYpy1q+ANUS30SEoGZ53cdfwtbuG7Ptgy108=
|
||||
google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5/go.mod h1:oH/ZOT02u4kWEp7oYBGYFFkCdKS/uYR9Z7+0/xuuFp8=
|
||||
google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d h1:VBu5YqKPv6XiJ199exd8Br+Aetz+o08F+PLMnwJQHAY=
|
||||
google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d/go.mod h1:yZTlhN0tQnXo3h00fuXNCxJdLdIdnVFVBaRJ5LWBbw4=
|
||||
google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 h1:I6WNifs6pF9tNdSob2W24JtyxIYjzFB9qDlpUC76q+U=
|
||||
google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405/go.mod h1:3WDQMjmJk36UQhjQ89emUzb1mdaHcPeeAh4SCBKznB4=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20230525234020-1aefcd67740a/go.mod h1:ts19tUU+Z0ZShN1y3aPyq2+O3d5FUNNgT6FtOzmrNn8=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20230525234035-dd9d682886f9/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20230526203410-71b5a4ffd15e/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig=
|
||||
@@ -2839,8 +2849,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529/go.
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:mPBs5jNgx2GuQGvFwUvVKqtn6HsUw9nP64BedgvqEsQ=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:rsr7RhLuwsDKL7RmgDDCUc6yaGr1iqceVb5Wv6f6YvQ=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20230803162519-f966b187b2e5/go.mod h1:5DZzOUPCLYL3mNkQ0ms0F3EuUNZ7py1Bqeq6sxzI7/Q=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d h1:DoPTO70H+bcDXcd39vOqb2viZxgqeBeSGtZ55yZU4/Q=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d/go.mod h1:KjSP20unUpOx5kyQUFa7k4OJg0qeJ7DEZflGDu2p6Bk=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 h1:JpwMPBpFN3uKhdaekDpiNlImDdkUAyiJ6ez/uxGaUSo=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:0xJLfVdJqpAPl8tDg1ujOCGzx6LFLttXT5NhllGOXY4=
|
||||
google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:ylj+BE99M198VPbBh6A8d9n3w8fChvyLK3wwBOjXBFA=
|
||||
google.golang.org/genproto/googleapis/bytestream v0.0.0-20230711160842-782d3b101e98/go.mod h1:3QoBVwTHkXbY1oRGzlhwhOykfcATQN43LJ6iT8Wy8kE=
|
||||
google.golang.org/genproto/googleapis/bytestream v0.0.0-20230807174057-1744710a1577/go.mod h1:NjCQG/D8JandXxM57PZbAJL1DCNL6EypA0vPPwfsc7c=
|
||||
@@ -2853,8 +2863,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130/go.
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20230731190214-cbb8c96f2d6d/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20230807174057-1744710a1577/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE=
|
||||
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
package natsjsregistry
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"go-micro.dev/v4/registry"
|
||||
"go-micro.dev/v4/store"
|
||||
)
|
||||
|
||||
type storeOptionsKey struct{}
|
||||
type expiryKey struct{}
|
||||
|
||||
// StoreOptions sets the options for the underlying store
|
||||
func StoreOptions(opts []store.Option) registry.Option {
|
||||
return func(o *registry.Options) {
|
||||
if o.Context == nil {
|
||||
o.Context = context.Background()
|
||||
}
|
||||
o.Context = context.WithValue(o.Context, storeOptionsKey{}, opts)
|
||||
}
|
||||
}
|
||||
|
||||
// ServiceExpiry allows setting an expiry time for service registrations
|
||||
func ServiceExpiry(t time.Duration) registry.Option {
|
||||
return func(o *registry.Options) {
|
||||
if o.Context == nil {
|
||||
o.Context = context.Background()
|
||||
}
|
||||
o.Context = context.WithValue(o.Context, expiryKey{}, t)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
// Package natsjsregistry implements a registry using natsjs object store
|
||||
package natsjsregistry
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"time"
|
||||
|
||||
natsjs "github.com/go-micro/plugins/v4/store/nats-js"
|
||||
"go-micro.dev/v4/registry"
|
||||
"go-micro.dev/v4/store"
|
||||
"go-micro.dev/v4/util/cmd"
|
||||
)
|
||||
|
||||
var _registryName = "natsjs"
|
||||
|
||||
func init() {
|
||||
cmd.DefaultRegistries[_registryName] = NewRegistry
|
||||
}
|
||||
|
||||
// NewRegistry returns a new natsjs registry
|
||||
func NewRegistry(opts ...registry.Option) registry.Registry {
|
||||
options := registry.Options{
|
||||
Context: context.Background(),
|
||||
}
|
||||
for _, o := range opts {
|
||||
o(&options)
|
||||
}
|
||||
exp, _ := options.Context.Value(expiryKey{}).(time.Duration)
|
||||
return &storeregistry{
|
||||
opts: options,
|
||||
store: natsjs.NewStore(storeOptions(options)...),
|
||||
typ: _registryName,
|
||||
expiry: exp,
|
||||
}
|
||||
}
|
||||
|
||||
type storeregistry struct {
|
||||
opts registry.Options
|
||||
store store.Store
|
||||
typ string
|
||||
expiry time.Duration
|
||||
}
|
||||
|
||||
// Init inits the registry
|
||||
func (n *storeregistry) Init(opts ...registry.Option) error {
|
||||
for _, o := range opts {
|
||||
o(&n.opts)
|
||||
}
|
||||
return n.store.Init(storeOptions(n.opts)...)
|
||||
}
|
||||
|
||||
// Options returns the configured options
|
||||
func (n *storeregistry) Options() registry.Options {
|
||||
return n.opts
|
||||
}
|
||||
|
||||
// Register adds a service to the registry
|
||||
func (n *storeregistry) Register(s *registry.Service, _ ...registry.RegisterOption) error {
|
||||
if s == nil {
|
||||
return errors.New("wont store nil service")
|
||||
}
|
||||
b, err := json.Marshal(s)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return n.store.Write(&store.Record{
|
||||
Key: s.Name,
|
||||
Value: b,
|
||||
Expiry: n.expiry,
|
||||
})
|
||||
}
|
||||
|
||||
// Deregister removes a service from the registry
|
||||
func (n *storeregistry) Deregister(s *registry.Service, _ ...registry.DeregisterOption) error {
|
||||
return n.store.Delete(s.Name)
|
||||
}
|
||||
|
||||
// GetService gets a specific service from the registry
|
||||
func (n *storeregistry) GetService(s string, _ ...registry.GetOption) ([]*registry.Service, error) {
|
||||
recs, err := n.store.Read(s)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
svcs := make([]*registry.Service, 0, len(recs))
|
||||
for _, rec := range recs {
|
||||
var s registry.Service
|
||||
if err := json.Unmarshal(rec.Value, &s); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
svcs = append(svcs, &s)
|
||||
}
|
||||
return svcs, nil
|
||||
}
|
||||
|
||||
// ListServices lists all registered services
|
||||
func (n *storeregistry) ListServices(...registry.ListOption) ([]*registry.Service, error) {
|
||||
keys, err := n.store.List()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var svcs []*registry.Service
|
||||
for _, k := range keys {
|
||||
s, err := n.GetService(k)
|
||||
if err != nil {
|
||||
// TODO: continue ?
|
||||
return nil, err
|
||||
}
|
||||
svcs = append(svcs, s...)
|
||||
|
||||
}
|
||||
return svcs, nil
|
||||
}
|
||||
|
||||
// Watch allowes following the changes in the registry if it would be implemented
|
||||
func (n *storeregistry) Watch(...registry.WatchOption) (registry.Watcher, error) {
|
||||
return nil, errors.New("watcher not implemented")
|
||||
}
|
||||
|
||||
// String returns the name of the registry
|
||||
func (n *storeregistry) String() string {
|
||||
return n.typ
|
||||
}
|
||||
|
||||
func storeOptions(opts registry.Options) []store.Option {
|
||||
storeoptions := []store.Option{
|
||||
store.Nodes(opts.Addrs...),
|
||||
store.Database("service-registry"),
|
||||
store.Table("service-registry"),
|
||||
}
|
||||
if so, ok := opts.Context.Value(storeOptionsKey{}).([]store.Option); ok {
|
||||
storeoptions = append(storeoptions, so...)
|
||||
}
|
||||
return storeoptions
|
||||
}
|
||||
@@ -13,6 +13,7 @@ import (
|
||||
mdnsr "github.com/go-micro/plugins/v4/registry/mdns"
|
||||
memr "github.com/go-micro/plugins/v4/registry/memory"
|
||||
natsr "github.com/go-micro/plugins/v4/registry/nats"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/natsjsregistry"
|
||||
mRegistry "go-micro.dev/v4/registry"
|
||||
"go-micro.dev/v4/registry/cache"
|
||||
)
|
||||
@@ -28,6 +29,7 @@ var (
|
||||
reg mRegistry.Registry
|
||||
)
|
||||
|
||||
// Configure configures the registry
|
||||
func Configure(plugin string) {
|
||||
if reg == nil {
|
||||
regPlugin = plugin
|
||||
@@ -66,6 +68,10 @@ func GetRegistry() mRegistry.Registry {
|
||||
)
|
||||
case "memory":
|
||||
reg = memr.NewRegistry()
|
||||
case "natsjs":
|
||||
reg = natsjsregistry.NewRegistry(
|
||||
mRegistry.Addrs(addresses...),
|
||||
)
|
||||
default:
|
||||
reg = mdnsr.NewRegistry()
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ var (
|
||||
// LatestTag is the latest released version plus the dev meta version.
|
||||
// Will be overwritten by the release pipeline
|
||||
// Needs a manual change for every tagged release
|
||||
LatestTag = "5.0.0-alpha.1+dev"
|
||||
LatestTag = "5.0.0-alpha.3+dev"
|
||||
|
||||
// Date indicates the build date.
|
||||
// This has been removed, it looks like you can only replace static strings with recent go versions
|
||||
|
||||
@@ -64,6 +64,8 @@ import (
|
||||
var (
|
||||
// runset keeps track of which services to start supervised.
|
||||
runset map[string]struct{}
|
||||
// time to wait between starting service groups (preliminary, main, delayed)
|
||||
_startDelay = 2 * time.Second
|
||||
)
|
||||
|
||||
type serviceFuncMap map[string]func(*ociscfg.Config) suture.Service
|
||||
@@ -71,6 +73,7 @@ type serviceFuncMap map[string]func(*ociscfg.Config) suture.Service
|
||||
// Service represents a RPC service.
|
||||
type Service struct {
|
||||
Supervisor *suture.Supervisor
|
||||
Preliminary serviceFuncMap
|
||||
ServicesRegistry serviceFuncMap
|
||||
Delayed serviceFuncMap
|
||||
Additional serviceFuncMap
|
||||
@@ -103,6 +106,7 @@ func NewService(options ...Option) (*Service, error) {
|
||||
globalCtx, cancelGlobal := context.WithCancel(context.Background())
|
||||
|
||||
s := &Service{
|
||||
Preliminary: make(serviceFuncMap),
|
||||
ServicesRegistry: make(serviceFuncMap),
|
||||
Delayed: make(serviceFuncMap),
|
||||
Additional: make(serviceFuncMap),
|
||||
@@ -114,6 +118,13 @@ func NewService(options ...Option) (*Service, error) {
|
||||
cfg: opts.Config,
|
||||
}
|
||||
|
||||
// start nats first - it is used as service registry
|
||||
s.Preliminary[opts.Config.Nats.Service.Name] = NewSutureServiceBuilder(func(ctx context.Context, cfg *ociscfg.Config) error {
|
||||
cfg.Nats.Context = ctx
|
||||
cfg.Nats.Commons = cfg.Commons
|
||||
return nats.Execute(cfg.Nats)
|
||||
})
|
||||
|
||||
// populate services
|
||||
reg := func(name string, exec func(context.Context, *ociscfg.Config) error) {
|
||||
s.ServicesRegistry[name] = NewSutureServiceBuilder(exec)
|
||||
@@ -153,11 +164,6 @@ func NewService(options ...Option) (*Service, error) {
|
||||
cfg.EventHistory.Commons = cfg.Commons
|
||||
return eventhistory.Execute(cfg.EventHistory)
|
||||
})
|
||||
reg(opts.Config.Frontend.Service.Name, func(ctx context.Context, cfg *ociscfg.Config) error {
|
||||
cfg.Frontend.Context = ctx
|
||||
cfg.Frontend.Commons = cfg.Commons
|
||||
return frontend.Execute(cfg.Frontend)
|
||||
})
|
||||
reg(opts.Config.Gateway.Service.Name, func(ctx context.Context, cfg *ociscfg.Config) error {
|
||||
cfg.Gateway.Context = ctx
|
||||
cfg.Gateway.Commons = cfg.Commons
|
||||
@@ -183,11 +189,6 @@ func NewService(options ...Option) (*Service, error) {
|
||||
cfg.Invitations.Commons = cfg.Commons
|
||||
return invitations.Execute(cfg.Invitations)
|
||||
})
|
||||
reg(opts.Config.Nats.Service.Name, func(ctx context.Context, cfg *ociscfg.Config) error {
|
||||
cfg.Nats.Context = ctx
|
||||
cfg.Nats.Commons = cfg.Commons
|
||||
return nats.Execute(cfg.Nats)
|
||||
})
|
||||
reg(opts.Config.Notifications.Service.Name, func(ctx context.Context, cfg *ociscfg.Config) error {
|
||||
cfg.Notifications.Context = ctx
|
||||
cfg.Notifications.Commons = cfg.Commons
|
||||
@@ -298,6 +299,11 @@ func NewService(options ...Option) (*Service, error) {
|
||||
dreg := func(name string, exec func(context.Context, *ociscfg.Config) error) {
|
||||
s.Delayed[name] = NewSutureServiceBuilder(exec)
|
||||
}
|
||||
dreg(opts.Config.Frontend.Service.Name, func(ctx context.Context, cfg *ociscfg.Config) error {
|
||||
cfg.Frontend.Context = ctx
|
||||
cfg.Frontend.Commons = cfg.Commons
|
||||
return frontend.Execute(cfg.Frontend)
|
||||
})
|
||||
dreg(opts.Config.IDP.Service.Name, func(ctx context.Context, cfg *ociscfg.Config) error {
|
||||
cfg.IDP.Context = ctx
|
||||
cfg.IDP.Commons = cfg.Commons
|
||||
@@ -394,11 +400,8 @@ func Start(o ...Option) error {
|
||||
// prepare the set of services to run
|
||||
s.generateRunSet(s.cfg)
|
||||
|
||||
// schedule services that we are sure don't have interdependencies.
|
||||
scheduleServiceTokens(s, s.ServicesRegistry)
|
||||
|
||||
// schedule services that are optional
|
||||
scheduleServiceTokens(s, s.Additional)
|
||||
// schedule preliminary services first
|
||||
scheduleServiceTokens(s, s.Preliminary)
|
||||
|
||||
// there are reasons not to do this, but we have race conditions ourselves. Until we resolve them, mind the following disclaimer:
|
||||
// Calling ServeBackground will CORRECTLY start the supervisor running in a new goroutine. It is risky to directly run
|
||||
@@ -410,8 +413,17 @@ func Start(o ...Option) error {
|
||||
// trap will block on halt channel for interruptions.
|
||||
go trap(s, halt)
|
||||
|
||||
// grace period for supervisor to get up
|
||||
time.Sleep(_startDelay)
|
||||
|
||||
// schedule services that we are sure don't have interdependencies.
|
||||
scheduleServiceTokens(s, s.ServicesRegistry)
|
||||
|
||||
// schedule services that are optional
|
||||
scheduleServiceTokens(s, s.Additional)
|
||||
|
||||
// add services with delayed execution.
|
||||
time.Sleep(1 * time.Second)
|
||||
time.Sleep(_startDelay)
|
||||
scheduleServiceTokens(s, s.Delayed)
|
||||
|
||||
return http.Serve(l, nil)
|
||||
@@ -440,6 +452,10 @@ func (s *Service) generateRunSet(cfg *ociscfg.Config) {
|
||||
return
|
||||
}
|
||||
|
||||
for name := range s.Preliminary {
|
||||
runset[name] = struct{}{}
|
||||
}
|
||||
|
||||
for name := range s.ServicesRegistry {
|
||||
runset[name] = struct{}{}
|
||||
}
|
||||
|
||||
@@ -139,6 +139,173 @@ func (x *Reference) GetPath() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type Audio struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Album *string `protobuf:"bytes,1,opt,name=album,proto3,oneof" json:"album,omitempty"`
|
||||
AlbumArtist *string `protobuf:"bytes,2,opt,name=albumArtist,proto3,oneof" json:"albumArtist,omitempty"`
|
||||
Artist *string `protobuf:"bytes,3,opt,name=artist,proto3,oneof" json:"artist,omitempty"`
|
||||
Bitrate *int64 `protobuf:"varint,4,opt,name=bitrate,proto3,oneof" json:"bitrate,omitempty"`
|
||||
Composers *string `protobuf:"bytes,5,opt,name=composers,proto3,oneof" json:"composers,omitempty"`
|
||||
Copyright *string `protobuf:"bytes,6,opt,name=copyright,proto3,oneof" json:"copyright,omitempty"`
|
||||
Disc *int32 `protobuf:"varint,7,opt,name=disc,proto3,oneof" json:"disc,omitempty"`
|
||||
DiscCount *int32 `protobuf:"varint,8,opt,name=discCount,proto3,oneof" json:"discCount,omitempty"`
|
||||
Duration *int64 `protobuf:"varint,9,opt,name=duration,proto3,oneof" json:"duration,omitempty"`
|
||||
Genre *string `protobuf:"bytes,10,opt,name=genre,proto3,oneof" json:"genre,omitempty"`
|
||||
HasDrm *bool `protobuf:"varint,11,opt,name=hasDrm,proto3,oneof" json:"hasDrm,omitempty"`
|
||||
IsVariableBitrate *bool `protobuf:"varint,12,opt,name=isVariableBitrate,proto3,oneof" json:"isVariableBitrate,omitempty"`
|
||||
Title *string `protobuf:"bytes,13,opt,name=title,proto3,oneof" json:"title,omitempty"`
|
||||
Track *int32 `protobuf:"varint,14,opt,name=track,proto3,oneof" json:"track,omitempty"`
|
||||
TrackCount *int32 `protobuf:"varint,15,opt,name=trackCount,proto3,oneof" json:"trackCount,omitempty"`
|
||||
Year *int32 `protobuf:"varint,16,opt,name=year,proto3,oneof" json:"year,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Audio) Reset() {
|
||||
*x = Audio{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_ocis_messages_search_v0_search_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Audio) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Audio) ProtoMessage() {}
|
||||
|
||||
func (x *Audio) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_ocis_messages_search_v0_search_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Audio.ProtoReflect.Descriptor instead.
|
||||
func (*Audio) Descriptor() ([]byte, []int) {
|
||||
return file_ocis_messages_search_v0_search_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *Audio) GetAlbum() string {
|
||||
if x != nil && x.Album != nil {
|
||||
return *x.Album
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Audio) GetAlbumArtist() string {
|
||||
if x != nil && x.AlbumArtist != nil {
|
||||
return *x.AlbumArtist
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Audio) GetArtist() string {
|
||||
if x != nil && x.Artist != nil {
|
||||
return *x.Artist
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Audio) GetBitrate() int64 {
|
||||
if x != nil && x.Bitrate != nil {
|
||||
return *x.Bitrate
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Audio) GetComposers() string {
|
||||
if x != nil && x.Composers != nil {
|
||||
return *x.Composers
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Audio) GetCopyright() string {
|
||||
if x != nil && x.Copyright != nil {
|
||||
return *x.Copyright
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Audio) GetDisc() int32 {
|
||||
if x != nil && x.Disc != nil {
|
||||
return *x.Disc
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Audio) GetDiscCount() int32 {
|
||||
if x != nil && x.DiscCount != nil {
|
||||
return *x.DiscCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Audio) GetDuration() int64 {
|
||||
if x != nil && x.Duration != nil {
|
||||
return *x.Duration
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Audio) GetGenre() string {
|
||||
if x != nil && x.Genre != nil {
|
||||
return *x.Genre
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Audio) GetHasDrm() bool {
|
||||
if x != nil && x.HasDrm != nil {
|
||||
return *x.HasDrm
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *Audio) GetIsVariableBitrate() bool {
|
||||
if x != nil && x.IsVariableBitrate != nil {
|
||||
return *x.IsVariableBitrate
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *Audio) GetTitle() string {
|
||||
if x != nil && x.Title != nil {
|
||||
return *x.Title
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Audio) GetTrack() int32 {
|
||||
if x != nil && x.Track != nil {
|
||||
return *x.Track
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Audio) GetTrackCount() int32 {
|
||||
if x != nil && x.TrackCount != nil {
|
||||
return *x.TrackCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Audio) GetYear() int32 {
|
||||
if x != nil && x.Year != nil {
|
||||
return *x.Year
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type Entity struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -158,12 +325,13 @@ type Entity struct {
|
||||
ParentId *ResourceID `protobuf:"bytes,12,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
|
||||
Tags []string `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty"`
|
||||
Highlights string `protobuf:"bytes,14,opt,name=highlights,proto3" json:"highlights,omitempty"`
|
||||
Audio *Audio `protobuf:"bytes,15,opt,name=audio,proto3" json:"audio,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Entity) Reset() {
|
||||
*x = Entity{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_ocis_messages_search_v0_search_proto_msgTypes[2]
|
||||
mi := &file_ocis_messages_search_v0_search_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -176,7 +344,7 @@ func (x *Entity) String() string {
|
||||
func (*Entity) ProtoMessage() {}
|
||||
|
||||
func (x *Entity) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_ocis_messages_search_v0_search_proto_msgTypes[2]
|
||||
mi := &file_ocis_messages_search_v0_search_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -189,7 +357,7 @@ func (x *Entity) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use Entity.ProtoReflect.Descriptor instead.
|
||||
func (*Entity) Descriptor() ([]byte, []int) {
|
||||
return file_ocis_messages_search_v0_search_proto_rawDescGZIP(), []int{2}
|
||||
return file_ocis_messages_search_v0_search_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *Entity) GetRef() *Reference {
|
||||
@@ -290,6 +458,13 @@ func (x *Entity) GetHighlights() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Entity) GetAudio() *Audio {
|
||||
if x != nil {
|
||||
return x.Audio
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Match struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -304,7 +479,7 @@ type Match struct {
|
||||
func (x *Match) Reset() {
|
||||
*x = Match{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_ocis_messages_search_v0_search_proto_msgTypes[3]
|
||||
mi := &file_ocis_messages_search_v0_search_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -317,7 +492,7 @@ func (x *Match) String() string {
|
||||
func (*Match) ProtoMessage() {}
|
||||
|
||||
func (x *Match) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_ocis_messages_search_v0_search_proto_msgTypes[3]
|
||||
mi := &file_ocis_messages_search_v0_search_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -330,7 +505,7 @@ func (x *Match) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use Match.ProtoReflect.Descriptor instead.
|
||||
func (*Match) Descriptor() ([]byte, []int) {
|
||||
return file_ocis_messages_search_v0_search_proto_rawDescGZIP(), []int{3}
|
||||
return file_ocis_messages_search_v0_search_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *Match) GetEntity() *Entity {
|
||||
@@ -368,50 +543,98 @@ var file_ocis_messages_search_v0_search_proto_rawDesc = []byte{
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2e, 0x76,
|
||||
0x30, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x44, 0x52, 0x0a, 0x72, 0x65,
|
||||
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x82, 0x04, 0x0a,
|
||||
0x06, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x34, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2e, 0x76, 0x30, 0x2e, 0x52,
|
||||
0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x33, 0x0a,
|
||||
0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6f, 0x63, 0x69, 0x73,
|
||||
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68,
|
||||
0x2e, 0x76, 0x30, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x44, 0x52, 0x02,
|
||||
0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x04,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69,
|
||||
0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x48,
|
||||
0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
|
||||
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
|
||||
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x69,
|
||||
0x66, 0x69, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65,
|
||||
0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d,
|
||||
0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
|
||||
0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d,
|
||||
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
|
||||
0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64,
|
||||
0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x65,
|
||||
0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x6f,
|
||||
0x6f, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x68,
|
||||
0x61, 0x72, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x09, 0x70,
|
||||
0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23,
|
||||
0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73,
|
||||
0x65, 0x61, 0x72, 0x63, 0x68, 0x2e, 0x76, 0x30, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
|
||||
0x65, 0x49, 0x44, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67,
|
||||
0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x68, 0x69, 0x67, 0x68, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x73, 0x18,
|
||||
0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x69, 0x67, 0x68, 0x6c, 0x69, 0x67, 0x68, 0x74,
|
||||
0x73, 0x22, 0x56, 0x0a, 0x05, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x37, 0x0a, 0x06, 0x65, 0x6e,
|
||||
0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6f, 0x63, 0x69,
|
||||
0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x61, 0x72, 0x63,
|
||||
0x68, 0x2e, 0x76, 0x30, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x06, 0x65, 0x6e, 0x74,
|
||||
0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x02, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x42, 0x5a, 0x40, 0x67, 0x69, 0x74,
|
||||
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
|
||||
0x2f, 0x6f, 0x63, 0x69, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x67, 0x65,
|
||||
0x6e, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x6f, 0x63, 0x69, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x73, 0x2f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2f, 0x76, 0x30, 0x62, 0x06, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0xcf, 0x05, 0x0a,
|
||||
0x05, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x12, 0x19, 0x0a, 0x05, 0x61, 0x6c, 0x62, 0x75, 0x6d, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x61, 0x6c, 0x62, 0x75, 0x6d, 0x88, 0x01,
|
||||
0x01, 0x12, 0x25, 0x0a, 0x0b, 0x61, 0x6c, 0x62, 0x75, 0x6d, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0b, 0x61, 0x6c, 0x62, 0x75, 0x6d, 0x41,
|
||||
0x72, 0x74, 0x69, 0x73, 0x74, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x61, 0x72, 0x74, 0x69,
|
||||
0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x06, 0x61, 0x72, 0x74, 0x69,
|
||||
0x73, 0x74, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x62, 0x69, 0x74, 0x72, 0x61, 0x74, 0x65,
|
||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x03, 0x52, 0x07, 0x62, 0x69, 0x74, 0x72, 0x61, 0x74,
|
||||
0x65, 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x72,
|
||||
0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f,
|
||||
0x73, 0x65, 0x72, 0x73, 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, 0x09, 0x63, 0x6f, 0x70, 0x79, 0x72,
|
||||
0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x05, 0x52, 0x09, 0x63, 0x6f,
|
||||
0x70, 0x79, 0x72, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x64, 0x69,
|
||||
0x73, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x48, 0x06, 0x52, 0x04, 0x64, 0x69, 0x73, 0x63,
|
||||
0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x63, 0x43, 0x6f, 0x75, 0x6e, 0x74,
|
||||
0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x48, 0x07, 0x52, 0x09, 0x64, 0x69, 0x73, 0x63, 0x43, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x48, 0x08, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61,
|
||||
0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x67, 0x65, 0x6e, 0x72, 0x65,
|
||||
0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x09, 0x52, 0x05, 0x67, 0x65, 0x6e, 0x72, 0x65, 0x88,
|
||||
0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x68, 0x61, 0x73, 0x44, 0x72, 0x6d, 0x18, 0x0b, 0x20, 0x01,
|
||||
0x28, 0x08, 0x48, 0x0a, 0x52, 0x06, 0x68, 0x61, 0x73, 0x44, 0x72, 0x6d, 0x88, 0x01, 0x01, 0x12,
|
||||
0x31, 0x0a, 0x11, 0x69, 0x73, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x69, 0x74,
|
||||
0x72, 0x61, 0x74, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x48, 0x0b, 0x52, 0x11, 0x69, 0x73,
|
||||
0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x69, 0x74, 0x72, 0x61, 0x74, 0x65, 0x88,
|
||||
0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28,
|
||||
0x09, 0x48, 0x0c, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a,
|
||||
0x05, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x48, 0x0d, 0x52, 0x05,
|
||||
0x74, 0x72, 0x61, 0x63, 0x6b, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0a, 0x74, 0x72, 0x61, 0x63,
|
||||
0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x48, 0x0e, 0x52, 0x0a,
|
||||
0x74, 0x72, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a,
|
||||
0x04, 0x79, 0x65, 0x61, 0x72, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x48, 0x0f, 0x52, 0x04, 0x79,
|
||||
0x65, 0x61, 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x61, 0x6c, 0x62, 0x75, 0x6d,
|
||||
0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x61, 0x6c, 0x62, 0x75, 0x6d, 0x41, 0x72, 0x74, 0x69, 0x73, 0x74,
|
||||
0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x5f,
|
||||
0x62, 0x69, 0x74, 0x72, 0x61, 0x74, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x63, 0x6f, 0x6d, 0x70,
|
||||
0x6f, 0x73, 0x65, 0x72, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x72, 0x69,
|
||||
0x67, 0x68, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x42, 0x0c, 0x0a, 0x0a,
|
||||
0x5f, 0x64, 0x69, 0x73, 0x63, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x64,
|
||||
0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x67, 0x65, 0x6e, 0x72,
|
||||
0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x68, 0x61, 0x73, 0x44, 0x72, 0x6d, 0x42, 0x14, 0x0a, 0x12,
|
||||
0x5f, 0x69, 0x73, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x69, 0x74, 0x72, 0x61,
|
||||
0x74, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x42, 0x08, 0x0a, 0x06,
|
||||
0x5f, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x6b,
|
||||
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x22, 0xb8,
|
||||
0x04, 0x0a, 0x06, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x34, 0x0a, 0x03, 0x72, 0x65, 0x66,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65,
|
||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2e, 0x76, 0x30,
|
||||
0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12,
|
||||
0x33, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6f, 0x63,
|
||||
0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x61, 0x72,
|
||||
0x63, 0x68, 0x2e, 0x76, 0x30, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x44,
|
||||
0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67,
|
||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65,
|
||||
0x12, 0x48, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65,
|
||||
0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
|
||||
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
|
||||
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x4d, 0x6f,
|
||||
0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69,
|
||||
0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d,
|
||||
0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69,
|
||||
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x65,
|
||||
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70,
|
||||
0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a,
|
||||
0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
|
||||
0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x73, 0x68, 0x61, 0x72, 0x65,
|
||||
0x52, 0x6f, 0x6f, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
|
||||
0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a,
|
||||
0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x23, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73,
|
||||
0x2e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2e, 0x76, 0x30, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75,
|
||||
0x72, 0x63, 0x65, 0x49, 0x44, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74,
|
||||
0x61, 0x67, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x68, 0x69, 0x67, 0x68, 0x6c, 0x69, 0x67, 0x68, 0x74,
|
||||
0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x69, 0x67, 0x68, 0x6c, 0x69, 0x67,
|
||||
0x68, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x05, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x18, 0x0f, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||
0x65, 0x73, 0x2e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2e, 0x76, 0x30, 0x2e, 0x41, 0x75, 0x64,
|
||||
0x69, 0x6f, 0x52, 0x05, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x22, 0x56, 0x0a, 0x05, 0x4d, 0x61, 0x74,
|
||||
0x63, 0x68, 0x12, 0x37, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6f, 0x63, 0x69, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||
0x65, 0x73, 0x2e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2e, 0x76, 0x30, 0x2e, 0x45, 0x6e, 0x74,
|
||||
0x69, 0x74, 0x79, 0x52, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73,
|
||||
0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72,
|
||||
0x65, 0x42, 0x42, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
||||
0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6f, 0x63, 0x69, 0x73, 0x2f, 0x76, 0x32,
|
||||
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x6f, 0x63,
|
||||
0x69, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x73, 0x65, 0x61, 0x72,
|
||||
0x63, 0x68, 0x2f, 0x76, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -426,26 +649,28 @@ func file_ocis_messages_search_v0_search_proto_rawDescGZIP() []byte {
|
||||
return file_ocis_messages_search_v0_search_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_ocis_messages_search_v0_search_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_ocis_messages_search_v0_search_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||
var file_ocis_messages_search_v0_search_proto_goTypes = []interface{}{
|
||||
(*ResourceID)(nil), // 0: ocis.messages.search.v0.ResourceID
|
||||
(*Reference)(nil), // 1: ocis.messages.search.v0.Reference
|
||||
(*Entity)(nil), // 2: ocis.messages.search.v0.Entity
|
||||
(*Match)(nil), // 3: ocis.messages.search.v0.Match
|
||||
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
|
||||
(*Audio)(nil), // 2: ocis.messages.search.v0.Audio
|
||||
(*Entity)(nil), // 3: ocis.messages.search.v0.Entity
|
||||
(*Match)(nil), // 4: ocis.messages.search.v0.Match
|
||||
(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
|
||||
}
|
||||
var file_ocis_messages_search_v0_search_proto_depIdxs = []int32{
|
||||
0, // 0: ocis.messages.search.v0.Reference.resource_id:type_name -> ocis.messages.search.v0.ResourceID
|
||||
1, // 1: ocis.messages.search.v0.Entity.ref:type_name -> ocis.messages.search.v0.Reference
|
||||
0, // 2: ocis.messages.search.v0.Entity.id:type_name -> ocis.messages.search.v0.ResourceID
|
||||
4, // 3: ocis.messages.search.v0.Entity.last_modified_time:type_name -> google.protobuf.Timestamp
|
||||
5, // 3: ocis.messages.search.v0.Entity.last_modified_time:type_name -> google.protobuf.Timestamp
|
||||
0, // 4: ocis.messages.search.v0.Entity.parent_id:type_name -> ocis.messages.search.v0.ResourceID
|
||||
2, // 5: ocis.messages.search.v0.Match.entity:type_name -> ocis.messages.search.v0.Entity
|
||||
6, // [6:6] is the sub-list for method output_type
|
||||
6, // [6:6] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
6, // [6:6] is the sub-list for extension extendee
|
||||
0, // [0:6] is the sub-list for field type_name
|
||||
2, // 5: ocis.messages.search.v0.Entity.audio:type_name -> ocis.messages.search.v0.Audio
|
||||
3, // 6: ocis.messages.search.v0.Match.entity:type_name -> ocis.messages.search.v0.Entity
|
||||
7, // [7:7] is the sub-list for method output_type
|
||||
7, // [7:7] is the sub-list for method input_type
|
||||
7, // [7:7] is the sub-list for extension type_name
|
||||
7, // [7:7] is the sub-list for extension extendee
|
||||
0, // [0:7] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_ocis_messages_search_v0_search_proto_init() }
|
||||
@@ -479,7 +704,7 @@ func file_ocis_messages_search_v0_search_proto_init() {
|
||||
}
|
||||
}
|
||||
file_ocis_messages_search_v0_search_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Entity); i {
|
||||
switch v := v.(*Audio); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -491,6 +716,18 @@ func file_ocis_messages_search_v0_search_proto_init() {
|
||||
}
|
||||
}
|
||||
file_ocis_messages_search_v0_search_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Entity); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_ocis_messages_search_v0_search_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Match); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -503,13 +740,14 @@ func file_ocis_messages_search_v0_search_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_ocis_messages_search_v0_search_proto_msgTypes[2].OneofWrappers = []interface{}{}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_ocis_messages_search_v0_search_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumMessages: 5,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
||||
@@ -82,6 +82,42 @@ func (m *Reference) UnmarshalJSON(b []byte) error {
|
||||
|
||||
var _ json.Unmarshaler = (*Reference)(nil)
|
||||
|
||||
// AudioJSONMarshaler describes the default jsonpb.Marshaler used by all
|
||||
// instances of Audio. This struct is safe to replace or modify but
|
||||
// should not be done so concurrently.
|
||||
var AudioJSONMarshaler = new(jsonpb.Marshaler)
|
||||
|
||||
// MarshalJSON satisfies the encoding/json Marshaler interface. This method
|
||||
// uses the more correct jsonpb package to correctly marshal the message.
|
||||
func (m *Audio) MarshalJSON() ([]byte, error) {
|
||||
if m == nil {
|
||||
return json.Marshal(nil)
|
||||
}
|
||||
|
||||
buf := &bytes.Buffer{}
|
||||
|
||||
if err := AudioJSONMarshaler.Marshal(buf, m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return buf.Bytes(), nil
|
||||
}
|
||||
|
||||
var _ json.Marshaler = (*Audio)(nil)
|
||||
|
||||
// AudioJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all
|
||||
// instances of Audio. This struct is safe to replace or modify but
|
||||
// should not be done so concurrently.
|
||||
var AudioJSONUnmarshaler = new(jsonpb.Unmarshaler)
|
||||
|
||||
// UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method
|
||||
// uses the more correct jsonpb package to correctly unmarshal the message.
|
||||
func (m *Audio) UnmarshalJSON(b []byte) error {
|
||||
return AudioJSONUnmarshaler.Unmarshal(bytes.NewReader(b), m)
|
||||
}
|
||||
|
||||
var _ json.Unmarshaler = (*Audio)(nil)
|
||||
|
||||
// EntityJSONMarshaler describes the default jsonpb.Marshaler used by all
|
||||
// instances of Entity. This struct is safe to replace or modify but
|
||||
// should not be done so concurrently.
|
||||
|
||||
@@ -157,6 +157,66 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"v0Audio": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"album": {
|
||||
"type": "string"
|
||||
},
|
||||
"albumArtist": {
|
||||
"type": "string"
|
||||
},
|
||||
"artist": {
|
||||
"type": "string"
|
||||
},
|
||||
"bitrate": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"composers": {
|
||||
"type": "string"
|
||||
},
|
||||
"copyright": {
|
||||
"type": "string"
|
||||
},
|
||||
"disc": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"discCount": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"duration": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"genre": {
|
||||
"type": "string"
|
||||
},
|
||||
"hasDrm": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isVariableBitrate": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"track": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"trackCount": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"year": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"v0Entity": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -207,6 +267,9 @@
|
||||
},
|
||||
"highlights": {
|
||||
"type": "string"
|
||||
},
|
||||
"audio": {
|
||||
"$ref": "#/definitions/v0Audio"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -17,6 +17,25 @@ message Reference {
|
||||
string path = 2;
|
||||
}
|
||||
|
||||
message Audio {
|
||||
optional string album = 1;
|
||||
optional string albumArtist = 2;
|
||||
optional string artist = 3;
|
||||
optional int64 bitrate = 4;
|
||||
optional string composers = 5;
|
||||
optional string copyright = 6;
|
||||
optional int32 disc = 7;
|
||||
optional int32 discCount = 8;
|
||||
optional int64 duration = 9;
|
||||
optional string genre = 10;
|
||||
optional bool hasDrm = 11;
|
||||
optional bool isVariableBitrate = 12;
|
||||
optional string title = 13;
|
||||
optional int32 track = 14;
|
||||
optional int32 trackCount = 15;
|
||||
optional int32 year = 16;
|
||||
}
|
||||
|
||||
message Entity {
|
||||
Reference ref = 1;
|
||||
ResourceID id = 2;
|
||||
@@ -32,6 +51,7 @@ message Entity {
|
||||
ResourceID parent_id = 12;
|
||||
repeated string tags = 13;
|
||||
string highlights = 14;
|
||||
Audio audio = 15;
|
||||
}
|
||||
|
||||
message Match {
|
||||
|
||||
@@ -33,10 +33,10 @@ type Events struct {
|
||||
|
||||
// Auditlog holds audit log information
|
||||
type Auditlog struct {
|
||||
LogToConsole bool `yaml:"log_to_console" env:"AUDIT_LOG_TO_CONSOLE" desc:"Logs to Stdout if true. Independent of the log to file option."`
|
||||
LogToFile bool `yaml:"log_to_file" env:"AUDIT_LOG_TO_FILE" desc:"Logs to file if true. Independent of the log to Stdout file option."`
|
||||
FilePath string `yaml:"filepath" env:"AUDIT_FILEPATH" desc:"Filepath to the logfile. Mandatory if LogToFile is true."`
|
||||
Format string `yaml:"format" env:"AUDIT_FORMAT" desc:"Log format. Using json is advised."`
|
||||
LogToConsole bool `yaml:"log_to_console" env:"AUDIT_LOG_TO_CONSOLE" desc:"Logs to stdout if set to 'true'. Independent of the LOG_TO_FILE option."`
|
||||
LogToFile bool `yaml:"log_to_file" env:"AUDIT_LOG_TO_FILE" desc:"Logs to file if set to 'true'. Independent of the LOG_TO_CONSOLE option."`
|
||||
FilePath string `yaml:"filepath" env:"AUDIT_FILEPATH" desc:"Filepath of the logfile. Mandatory if LOG_TO_FILE is set to 'true'."`
|
||||
Format string `yaml:"format" env:"AUDIT_FORMAT" desc:"Log format. Supported values are '' (empty) and 'json'. Using 'json' is advised, '' (empty) renders the 'minimal' format. See the text description for more details."`
|
||||
}
|
||||
|
||||
// Tracing defines the available tracing configuration.
|
||||
|
||||
@@ -75,7 +75,7 @@ type LDAPProvider struct {
|
||||
GroupFilter string `yaml:"group_filter" env:"OCIS_LDAP_GROUP_FILTER;AUTH_BASIC_LDAP_GROUP_FILTER" desc:"LDAP filter to add to the default filters for group searches."`
|
||||
UserObjectClass string `yaml:"user_object_class" env:"OCIS_LDAP_USER_OBJECTCLASS;AUTH_BASIC_LDAP_USER_OBJECTCLASS" desc:"The object class to use for users in the default user search filter ('inetOrgPerson')."`
|
||||
GroupObjectClass string `yaml:"group_object_class" env:"OCIS_LDAP_GROUP_OBJECTCLASS;AUTH_BASIC_LDAP_GROUP_OBJECTCLASS" desc:"The object class to use for groups in the default group search filter ('groupOfNames')."`
|
||||
LoginAttributes []string `yaml:"login_attributes" env:"LDAP_LOGIN_ATTRIBUTES;AUTH_BASIC_LDAP_LOGIN_ATTRIBUTES" desc:"The user object attributes, that can be used for login."`
|
||||
LoginAttributes []string `yaml:"login_attributes" env:"LDAP_LOGIN_ATTRIBUTES;AUTH_BASIC_LDAP_LOGIN_ATTRIBUTES" desc:"A list of user object attributes that can be used for login. See the Environment Variable Types description for more details."`
|
||||
IDP string `yaml:"idp" env:"OCIS_URL;OCIS_OIDC_ISSUER;AUTH_BASIC_IDP_URL" desc:"The identity provider value to set in the userids of the CS3 user objects for users returned by this user provider."`
|
||||
DisableUserMechanism string `yaml:"disable_user_mechanism" env:"OCIS_LDAP_DISABLE_USER_MECHANISM;AUTH_BASIC_DISABLE_USER_MECHANISM" desc:"An option to control the behavior for disabling users. Valid options are 'none', 'attribute' and 'group'. If set to 'group', disabling a user via API will add the user to the configured group for disabled users, if set to 'attribute' this will be done in the ldap user entry, if set to 'none' the disable request is not processed."`
|
||||
LdapDisabledUsersGroupDN string `yaml:"ldap_disabled_users_group_dn" env:"OCIS_LDAP_DISABLED_USERS_GROUP_DN;AUTH_BASIC_DISABLED_USERS_GROUP_DN" desc:"The distinguished name of the group to which added users will be classified as disabled when 'disable_user_mechanism' is set to 'group'."`
|
||||
|
||||
@@ -2,5 +2,6 @@ package service
|
||||
|
||||
// FileReadyEvent is emitted when the postprocessing of a file is finished
|
||||
type FileReadyEvent struct {
|
||||
ItemID string `json:"itemid"`
|
||||
ParentItemID string `json:"parentitemid"`
|
||||
ItemID string `json:"itemid"`
|
||||
}
|
||||
@@ -103,7 +103,8 @@ func (cl *ClientlogService) processEvent(event events.Event) {
|
||||
|
||||
evType = "postprocessing-finished"
|
||||
data = FileReadyEvent{
|
||||
ItemID: storagespace.FormatResourceID(*info.GetId()),
|
||||
ParentItemID: storagespace.FormatResourceID(*info.GetParentId()),
|
||||
ItemID: storagespace.FormatResourceID(*info.GetId()),
|
||||
}
|
||||
|
||||
users, err = utils.GetSpaceMembers(ctx, info.GetSpace().GetId().GetOpaqueId(), gwc, utils.ViewerRole)
|
||||
|
||||
@@ -38,11 +38,11 @@ type GRPCConfig struct {
|
||||
// Store configures the store to use
|
||||
type Store struct {
|
||||
Store string `yaml:"store" env:"OCIS_PERSISTENT_STORE;EVENTHISTORY_STORE" desc:"The type of the store. Supported values are: 'memory', 'ocmem', 'etcd', 'redis', 'redis-sentinel', 'nats-js', 'noop'. See the text description for details."`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_PERSISTENT_STORE_NODES;EVENTHISTORY_STORE_NODES" desc:"A comma separated list of nodes to access the configured store. This has no effect when 'memory' or 'ocmem' stores are configured. Note that the behaviour how nodes are used is dependent on the library of the configured store."`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_PERSISTENT_STORE_NODES;EVENTHISTORY_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' or 'ocmem' stores are configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details."`
|
||||
Database string `yaml:"database" env:"EVENTHISTORY_STORE_DATABASE" desc:"The database name the configured store should use."`
|
||||
Table string `yaml:"table" env:"EVENTHISTORY_STORE_TABLE" desc:"The database table the store should use."`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_PERSISTENT_STORE_TTL;EVENTHISTORY_STORE_TTL" desc:"Time to live for events in the store. The duration can be set as number followed by a unit identifier like s, m or h. Defaults to '336h' (2 weeks)."`
|
||||
Size int `yaml:"size" env:"OCIS_PERSISTENT_STORE_SIZE;EVENTHISTORY_STORE_SIZE" desc:"The maximum quantity of items in the store. Only applies when store type 'ocmem' is configured. Defaults to 512."`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_PERSISTENT_STORE_TTL;EVENTHISTORY_STORE_TTL" desc:"Time to live for events in the store. Defaults to '336h' (2 weeks). See the Environment Variable Types description for more details."`
|
||||
Size int `yaml:"size" env:"OCIS_PERSISTENT_STORE_SIZE;EVENTHISTORY_STORE_SIZE" desc:"The maximum quantity of items in the store. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived and used from the ocmem package though no explicit default was set."`
|
||||
}
|
||||
|
||||
// Events combines the configuration options for the event bus.
|
||||
@@ -50,6 +50,6 @@ type Events struct {
|
||||
Endpoint string `yaml:"endpoint" env:"OCIS_EVENTS_ENDPOINT;EVENTHISTORY_EVENTS_ENDPOINT" desc:"The address of the event system. The event system is the message queuing service. It is used as message broker for the microservice architecture."`
|
||||
Cluster string `yaml:"cluster" env:"OCIS_EVENTS_CLUSTER;EVENTHISTORY_EVENTS_CLUSTER" desc:"The clusterID of the event system. The event system is the message queuing service. It is used as message broker for the microservice architecture. Mandatory when using NATS as event system."`
|
||||
TLSInsecure bool `yaml:"tls_insecure" env:"OCIS_INSECURE;EVENTHISTORY_EVENTS_TLS_INSECURE" desc:"Whether to verify the server TLS certificates."`
|
||||
TLSRootCACertificate string `yaml:"tls_root_ca_certificate" env:"OCIS_EVENTS_TLS_ROOT_CA_CERTIFICATE;EVENTHISTORY_EVENTS_TLS_ROOT_CA_CERTIFICATE" desc:"The root CA certificate used to validate the server's TLS certificate. If provided NOTIFICATIONS_EVENTS_TLS_INSECURE will be seen as false."`
|
||||
TLSRootCACertificate string `yaml:"tls_root_ca_certificate" env:"OCIS_EVENTS_TLS_ROOT_CA_CERTIFICATE;EVENTHISTORY_EVENTS_TLS_ROOT_CA_CERTIFICATE" desc:"The root CA certificate used to validate the server's TLS certificate. Will be seen as empty if NOTIFICATIONS_EVENTS_TLS_INSECURE is provided."`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_EVENTS_ENABLE_TLS;EVENTHISTORY_EVENTS_ENABLE_TLS" desc:"Enable TLS for the connection to the events broker. The events broker is the ocis service which receives and delivers events between the services.."`
|
||||
}
|
||||
@@ -32,7 +32,7 @@ type Config struct {
|
||||
MaxQuota uint64 `yaml:"max_quota" env:"OCIS_SPACES_MAX_QUOTA;FRONTEND_MAX_QUOTA" desc:"Set the global max quota value in bytes. A value of 0 equals unlimited. The value is provided via capabilities."`
|
||||
UploadMaxChunkSize int `yaml:"upload_max_chunk_size" env:"FRONTEND_UPLOAD_MAX_CHUNK_SIZE" desc:"Sets the max chunk sizes in bytes for uploads via the clients."`
|
||||
UploadHTTPMethodOverride string `yaml:"upload_http_method_override" env:"FRONTEND_UPLOAD_HTTP_METHOD_OVERRIDE" desc:"Advise TUS to replace PATCH requests by POST requests."`
|
||||
DefaultUploadProtocol string `yaml:"default_upload_protocol" env:"FRONTEND_DEFAULT_UPLOAD_PROTOCOL" desc:"The default upload protocol to use in the clients (e.g. tus)."`
|
||||
DefaultUploadProtocol string `yaml:"default_upload_protocol" env:"FRONTEND_DEFAULT_UPLOAD_PROTOCOL" desc:"The default upload protocol to use in clients. Currently only 'tus' is avaliable. See the developer API documentation for more details about TUS."`
|
||||
EnableResharing bool `yaml:"enable_resharing" env:"OCIS_ENABLE_RESHARING;FRONTEND_ENABLE_RESHARING" desc:"Changing this value is NOT supported. Enables the support for resharing in the clients."`
|
||||
EnableFederatedSharingIncoming bool `yaml:"enable_federated_sharing_incoming" env:"FRONTEND_ENABLE_FEDERATED_SHARING_INCOMING" desc:"Changing this value is NOT supported. Enables support for incoming federated sharing for clients. The backend behaviour is not changed."`
|
||||
EnableFederatedSharingOutgoing bool `yaml:"enable_federated_sharing_outgoing" env:"FRONTEND_ENABLE_FEDERATED_SHARING_OUTGOING" desc:"Changing this value is NOT supported. Enables support for outgoing federated sharing for clients. The backend behaviour is not changed."`
|
||||
@@ -47,7 +47,7 @@ type Config struct {
|
||||
DataGateway DataGateway `yaml:"data_gateway"`
|
||||
OCS OCS `yaml:"ocs"`
|
||||
Checksums Checksums `yaml:"checksums"`
|
||||
ReadOnlyUserAttributes []string `yaml:"read_only_user_attributes" env:"FRONTEND_READONLY_USER_ATTRIBUTES" desc:"Comma separated list of user attributes to indicate as read-only. Supported values: 'user.onPremisesSamAccountName' (username), 'user.displayName', 'user.mail', 'user.passwordProfile' (password), 'user.appRoleAssignments' (role), 'user.memberOf' (groups), 'user.accountEnabled' (login allowed), 'drive.quota' (quota)."`
|
||||
ReadOnlyUserAttributes []string `yaml:"read_only_user_attributes" env:"FRONTEND_READONLY_USER_ATTRIBUTES" desc:"A list of user attributes to indicate as read-only. Supported values: 'user.onPremisesSamAccountName' (username), 'user.displayName', 'user.mail', 'user.passwordProfile' (password), 'user.appRoleAssignments' (role), 'user.memberOf' (groups), 'user.accountEnabled' (login allowed), 'drive.quota' (quota). See the Environment Variable Types description for more details."`
|
||||
LDAPServerWriteEnabled bool `yaml:"ldap_server_write_enabled" env:"OCIS_LDAP_SERVER_WRITE_ENABLED;FRONTEND_LDAP_SERVER_WRITE_ENABLED" desc:"Allow creating, modifying and deleting LDAP users via the GRAPH API. This can only be set to 'true' when keeping default settings for the LDAP user and group attribute types (the 'OCIS_LDAP_USER_SCHEMA_* and 'OCIS_LDAP_GROUP_SCHEMA_* variables)."`
|
||||
FullTextSearch bool `yaml:"full_text_search" env:"FRONTEND_FULL_TEXT_SEARCH_ENABLED" descr:"Set to true to signal the web client that full-text search is enabled."`
|
||||
|
||||
@@ -92,9 +92,9 @@ type HTTPConfig struct {
|
||||
|
||||
// CORS defines the available cors configuration.
|
||||
type CORS struct {
|
||||
AllowedOrigins []string `yaml:"allow_origins" env:"OCIS_CORS_ALLOW_ORIGINS;FRONTEND_CORS_ALLOW_ORIGINS" desc:"A comma-separated list of allowed CORS origins. See following chapter for more details: *Access-Control-Allow-Origin* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin"`
|
||||
AllowedMethods []string `yaml:"allow_methods" env:"OCIS_CORS_ALLOW_METHODS;FRONTEND_CORS_ALLOW_METHODS" desc:"A comma-separated list of allowed CORS methods. See following chapter for more details: *Access-Control-Request-Method* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method"`
|
||||
AllowedHeaders []string `yaml:"allow_headers" env:"OCIS_CORS_ALLOW_HEADERS;FRONTEND_CORS_ALLOW_HEADERS" desc:"A blank or comma-separated list of allowed CORS headers. See following chapter for more details: *Access-Control-Request-Headers* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers."`
|
||||
AllowedOrigins []string `yaml:"allow_origins" env:"OCIS_CORS_ALLOW_ORIGINS;FRONTEND_CORS_ALLOW_ORIGINS" desc:"A list of allowed CORS origins. See following chapter for more details: *Access-Control-Allow-Origin* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin. See the Environment Variable Types description for more details."`
|
||||
AllowedMethods []string `yaml:"allow_methods" env:"OCIS_CORS_ALLOW_METHODS;FRONTEND_CORS_ALLOW_METHODS" desc:"A list of allowed CORS methods. See following chapter for more details: *Access-Control-Request-Method* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method. See the Environment Variable Types description for more details."`
|
||||
AllowedHeaders []string `yaml:"allow_headers" env:"OCIS_CORS_ALLOW_HEADERS;FRONTEND_CORS_ALLOW_HEADERS" desc:"A list of allowed CORS headers. See following chapter for more details: *Access-Control-Request-Headers* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers. See the Environment Variable Types description for more details."`
|
||||
AllowCredentials bool `yaml:"allow_credentials" env:"OCIS_CORS_ALLOW_CREDENTIALS;FRONTEND_CORS_ALLOW_CREDENTIALS" desc:"Allow credentials for CORS.See following chapter for more details: *Access-Control-Allow-Credentials* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials."`
|
||||
}
|
||||
|
||||
@@ -130,14 +130,15 @@ type OCS struct {
|
||||
HomeNamespace string `yaml:"home_namespace" env:"FRONTEND_OCS_PERSONAL_NAMESPACE" desc:"Homespace namespace identifier."`
|
||||
AdditionalInfoAttribute string `yaml:"additional_info_attribute" env:"FRONTEND_OCS_ADDITIONAL_INFO_ATTRIBUTE" desc:"Additional information attribute for the user like {{.Mail}}."`
|
||||
StatCacheType string `yaml:"stat_cache_type" env:"OCIS_CACHE_STORE;FRONTEND_OCS_STAT_CACHE_STORE" desc:"The type of the cache store. Supported values are: 'memory', 'ocmem', 'etcd', 'redis', 'redis-sentinel', 'nats-js', 'noop'. See the text description for details."`
|
||||
StatCacheNodes []string `yaml:"stat_cache_nodes" env:"OCIS_CACHE_STORE_NODES;FRONTEND_OCS_STAT_CACHE_STORE_NODES" desc:"A comma separated list of nodes to access the configured store. This has no effect when 'memory' or 'ocmem' stores are configured. Note that the behaviour how nodes are used is dependent on the library of the configured store."`
|
||||
StatCacheNodes []string `yaml:"stat_cache_nodes" env:"OCIS_CACHE_STORE_NODES;FRONTEND_OCS_STAT_CACHE_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' or 'ocmem' stores are configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details."`
|
||||
StatCacheDatabase string `yaml:"stat_cache_database" env:"OCIS_CACHE_DATABASE" desc:"The database name the configured store should use."`
|
||||
StatCacheTable string `yaml:"stat_cache_table" env:"FRONTEND_OCS_STAT_CACHE_TABLE" desc:"The database table the store should use."`
|
||||
StatCacheTTL time.Duration `yaml:"stat_cache_ttl" env:"OCIS_CACHE_TTL;FRONTEND_OCS_STAT_CACHE_TTL" desc:"Default time to live for user info in the cache. Only applied when access tokens has no expiration. The duration can be set as number followed by a unit identifier like s, m or h. Defaults to '300s' (300 seconds)."`
|
||||
StatCacheTTL time.Duration `yaml:"stat_cache_ttl" env:"OCIS_CACHE_TTL;FRONTEND_OCS_STAT_CACHE_TTL" desc:"Default time to live for user info in the cache. Only applied when access tokens has no expiration. See the Environment Variable Types description for more details."`
|
||||
StatCacheSize int `yaml:"stat_cache_size" env:"OCIS_CACHE_SIZE;FRONTEND_OCS_STAT_CACHE_SIZE" desc:"Max number of entries to hold in the cache."`
|
||||
CacheWarmupDriver string `yaml:"cache_warmup_driver,omitempty"` // not supported by the oCIS product, therefore not part of docs
|
||||
CacheWarmupDrivers CacheWarmupDrivers `yaml:"cache_warmup_drivers,omitempty"` // not supported by the oCIS product, therefore not part of docs
|
||||
EnableDenials bool `yaml:"enable_denials" env:"FRONTEND_OCS_ENABLE_DENIALS" desc:"EXPERIMENTAL: enable the feature to deny access on folders."`
|
||||
ListOCMShares bool `yaml:"list_ocm_shares" env:"FRONTEND_OCS_LIST_OCM_SHARES" desc:"Include OCM shares when listing shares. See the OCM service documentation for more details."`
|
||||
PublicShareMustHavePassword bool `yaml:"public_sharing_share_must_have_password" env:"OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD;FRONTEND_OCS_PUBLIC_SHARE_MUST_HAVE_PASSWORD" desc:"Set this to true if you want to enforce passwords on all public shares."`
|
||||
WriteablePublicShareMustHavePassword bool `yaml:"public_sharing_writeableshare_must_have_password" env:"OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD;FRONTEND_OCS_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD" desc:"Set this to true if you want to enforce passwords on Uploader, Editor or Contributor shares."`
|
||||
}
|
||||
@@ -156,7 +157,7 @@ type CBOXDriver struct {
|
||||
}
|
||||
|
||||
type Checksums struct {
|
||||
SupportedTypes []string `yaml:"supported_types" env:"FRONTEND_CHECKSUMS_SUPPORTED_TYPES" desc:"Define the checksum types that indicate to clients which hashes the server can use to verify upload integrity. You can provide multiple types separated by blank or comma. Supported types are 'sha1', 'md5' and 'adler32'."`
|
||||
SupportedTypes []string `yaml:"supported_types" env:"FRONTEND_CHECKSUMS_SUPPORTED_TYPES" desc:"A list of checksum types that indicate to clients which hashes the server can use to verify upload integrity. Supported types are 'sha1', 'md5' and 'adler32'. See the Environment Variable Types description for more details."`
|
||||
PreferredUploadType string `yaml:"preferred_upload_type" env:"FRONTEND_CHECKSUMS_PREFERRED_UPLOAD_TYPE" desc:"The supported checksum type for uploads that indicates to clients supporting multiple hash algorithms which one is preferred by the server. Must be one out of the defined list of SUPPORTED_TYPES."`
|
||||
}
|
||||
|
||||
|
||||
@@ -106,13 +106,15 @@ func DefaultConfig() *config.Config {
|
||||
Prefix: "data",
|
||||
},
|
||||
OCS: config.OCS{
|
||||
Prefix: "ocs",
|
||||
SharePrefix: "/Shares",
|
||||
HomeNamespace: "/users/{{.Id.OpaqueId}}",
|
||||
AdditionalInfoAttribute: "{{.Mail}}",
|
||||
StatCacheType: "noop",
|
||||
StatCacheDatabase: "ocis",
|
||||
StatCacheTTL: 300 * time.Second,
|
||||
Prefix: "ocs",
|
||||
SharePrefix: "/Shares",
|
||||
HomeNamespace: "/users/{{.Id.OpaqueId}}",
|
||||
AdditionalInfoAttribute: "{{.Mail}}",
|
||||
StatCacheType: "noop",
|
||||
StatCacheDatabase: "ocis",
|
||||
StatCacheTTL: 300 * time.Second,
|
||||
ListOCMShares: true,
|
||||
PublicShareMustHavePassword: true,
|
||||
},
|
||||
Middleware: config.Middleware{
|
||||
Auth: config.Auth{
|
||||
@@ -126,6 +128,13 @@ func DefaultConfig() *config.Config {
|
||||
Cluster: "ocis-cluster",
|
||||
EnableTLS: false,
|
||||
},
|
||||
PasswordPolicy: config.PasswordPolicy{
|
||||
MinCharacters: 8,
|
||||
MinLowerCaseCharacters: 1,
|
||||
MinUpperCaseCharacters: 1,
|
||||
MinDigits: 1,
|
||||
MinSpecialCharacters: 1,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -169,6 +169,7 @@ func FrontendConfigFromStruct(cfg *config.Config, logger log.Logger) (map[string
|
||||
"additional_info_attribute": cfg.OCS.AdditionalInfoAttribute,
|
||||
"machine_auth_apikey": cfg.MachineAuthAPIKey,
|
||||
"enable_denials": cfg.OCS.EnableDenials,
|
||||
"list_ocm_shares": cfg.OCS.ListOCMShares,
|
||||
"cache_warmup_driver": cfg.OCS.CacheWarmupDriver,
|
||||
"cache_warmup_drivers": map[string]interface{}{
|
||||
"cbox": map[string]interface{}{
|
||||
@@ -301,8 +302,9 @@ func FrontendConfigFromStruct(cfg *config.Config, logger log.Logger) (map[string
|
||||
"size": map[string]interface{}{
|
||||
"enabled": false,
|
||||
},
|
||||
"mimetype": map[string]interface{}{
|
||||
"enabled": true,
|
||||
"mediatype": map[string]interface{}{
|
||||
"keywords": []string{"document", "spreadsheet", "presentation", "pdf", "image", "video", "audio", "folder", "archive"},
|
||||
"enabled": true,
|
||||
},
|
||||
"type": map[string]interface{}{
|
||||
"enabled": true,
|
||||
|
||||
@@ -78,7 +78,7 @@ type GRPCConfig struct {
|
||||
|
||||
type StorageRegistry struct {
|
||||
Driver string `yaml:"driver" env:"GATEWAY_STORAGE_REGISTRY_DRIVER" desc:"The driver name of the storage registry to use."`
|
||||
Rules []string `yaml:"rules" env:"GATEWAY_STORAGE_REGISTRY_RULES" desc:"The rules for the storage registry."`
|
||||
Rules []string `yaml:"rules" env:"GATEWAY_STORAGE_REGISTRY_RULES" desc:"The rules for the storage registry. See the Environment Variable Types description for more details."`
|
||||
JSON string `yaml:"json" env:"GATEWAY_STORAGE_REGISTRY_CONFIG_JSON" desc:"Additional configuration for the storage registry in json format."`
|
||||
StorageUsersMountID string `yaml:"storage_users_mount_id" env:"GATEWAY_STORAGE_USERS_MOUNT_ID" desc:"Mount ID of this storage. Admins can set the ID for the storage in this config option manually which is then used to reference the storage. Any reasonable long string is possible, preferably this would be an UUIDv4 format."`
|
||||
}
|
||||
@@ -86,18 +86,18 @@ type StorageRegistry struct {
|
||||
// Cache holds cache config
|
||||
type Cache struct {
|
||||
StatCacheStore string `yaml:"stat_cache_store" env:"OCIS_CACHE_STORE;GATEWAY_STAT_CACHE_STORE" desc:"The type of the cache store. Supported values are: 'memory', 'ocmem', 'etcd', 'redis', 'redis-sentinel', 'nats-js', 'noop'. See the text description for details."`
|
||||
StatCacheNodes []string `yaml:"stat_cache_nodes" env:"OCIS_CACHE_STORE_NODES;GATEWAY_STAT_CACHE_STORE_NODES" desc:"A comma separated list of nodes to access the configured store. This has no effect when 'memory' or 'ocmem' stores are configured. Note that the behaviour how nodes are used is dependent on the library of the configured store."`
|
||||
StatCacheNodes []string `yaml:"stat_cache_nodes" env:"OCIS_CACHE_STORE_NODES;GATEWAY_STAT_CACHE_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' or 'ocmem' stores are configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details."`
|
||||
StatCacheDatabase string `yaml:"stat_cache_database" env:"OCIS_CACHE_DATABASE" desc:"The database name the configured store should use."`
|
||||
StatCacheTTL time.Duration `yaml:"stat_cache_ttl" env:"OCIS_CACHE_TTL;GATEWAY_STAT_CACHE_TTL" desc:"Default time to live for user info in the cache. Only applied when access tokens has no expiration. The duration can be set as number followed by a unit identifier like s, m or h. Defaults to '300s' (300 seconds)."`
|
||||
StatCacheSize int `yaml:"stat_cache_size" env:"OCIS_CACHE_SIZE;GATEWAY_STAT_CACHE_SIZE" desc:"The maximum quantity of items in the cache. Only applies when store type 'ocmem' is configured. Defaults to 512."`
|
||||
StatCacheTTL time.Duration `yaml:"stat_cache_ttl" env:"OCIS_CACHE_TTL;GATEWAY_STAT_CACHE_TTL" desc:"Default time to live for user info in the cache. Only applied when access tokens has no expiration. See the Environment Variable Types description for more details."`
|
||||
StatCacheSize int `yaml:"stat_cache_size" env:"OCIS_CACHE_SIZE;GATEWAY_STAT_CACHE_SIZE" desc:"The maximum quantity of items in the cache. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not exclicitely set as default."`
|
||||
ProviderCacheStore string `yaml:"provider_cache_store" env:"OCIS_CACHE_STORE;GATEWAY_PROVIDER_CACHE_STORE" desc:"The type of the cache store. Supported values are: 'memory', 'ocmem', 'etcd', 'redis', 'redis-sentinel', 'nats-js', 'noop'. See the text description for details."`
|
||||
ProviderCacheNodes []string `yaml:"provider_cache_nodes" env:"OCIS_CACHE_STORE_NODES;GATEWAY_PROVIDER_CACHE_STORE_NODES" desc:"A comma separated list of nodes to access the configured store. This has no effect when 'memory' or 'ocmem' stores are configured. Note that the behaviour how nodes are used is dependent on the library of the configured store."`
|
||||
ProviderCacheNodes []string `yaml:"provider_cache_nodes" env:"OCIS_CACHE_STORE_NODES;GATEWAY_PROVIDER_CACHE_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' or 'ocmem' stores are configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details."`
|
||||
ProviderCacheDatabase string `yaml:"provider_cache_database" env:"OCIS_CACHE_DATABASE" desc:"The database name the configured store should use."`
|
||||
ProviderCacheTTL time.Duration `yaml:"provider_cache_ttl" env:"OCIS_CACHE_TTL;GATEWAY_PROVIDER_CACHE_TTL" desc:"Default time to live for user info in the cache. Only applied when access tokens has no expiration. The duration can be set as number followed by a unit identifier like s, m or h. Defaults to '300s' (300 seconds)."`
|
||||
ProviderCacheSize int `yaml:"provider_cache_size" env:"OCIS_CACHE_SIZE;GATEWAY_PROVIDER_CACHE_SIZE" desc:"The maximum quantity of items in the cache. Only applies when store type 'ocmem' is configured. Defaults to 512."`
|
||||
ProviderCacheTTL time.Duration `yaml:"provider_cache_ttl" env:"OCIS_CACHE_TTL;GATEWAY_PROVIDER_CACHE_TTL" desc:"Default time to live for user info in the cache. Only applied when access tokens has no expiration. See the Environment Variable Types description for more details."`
|
||||
ProviderCacheSize int `yaml:"provider_cache_size" env:"OCIS_CACHE_SIZE;GATEWAY_PROVIDER_CACHE_SIZE" desc:"The maximum quantity of items in the cache. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not exclicitely set as default."`
|
||||
CreateHomeCacheStore string `yaml:"create_home_cache_store" env:"OCIS_CACHE_STORE;GATEWAY_CREATE_HOME_CACHE_STORE" desc:"The type of the cache store. Supported values are: 'memory', 'ocmem', 'etcd', 'redis', 'redis-sentinel', 'nats-js', 'noop'. See the text description for details."`
|
||||
CreateHomeCacheNodes []string `yaml:"create_home_cache_nodes" env:"OCIS_CACHE_STORE_NODES;GATEWAY_CREATE_HOME_CACHE_STORE_NODES" desc:"A comma separated list of nodes to access the configured store. This has no effect when 'memory' or 'ocmem' stores are configured. Note that the behaviour how nodes are used is dependent on the library of the configured store."`
|
||||
CreateHomeCacheNodes []string `yaml:"create_home_cache_nodes" env:"OCIS_CACHE_STORE_NODES;GATEWAY_CREATE_HOME_CACHE_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' or 'ocmem' stores are configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details."`
|
||||
CreateHomeCacheDatabase string `yaml:"create_home_cache_database" env:"OCIS_CACHE_DATABASE" desc:"The database name the configured store should use."`
|
||||
CreateHomeCacheTTL time.Duration `yaml:"create_home_cache_ttl" env:"OCIS_CACHE_TTL;GATEWAY_CREATE_HOME_CACHE_TTL" desc:"Default time to live for user info in the cache. Only applied when access tokens has no expiration. The duration can be set as number followed by a unit identifier like s, m or h. Defaults to '300s' (300 seconds)."`
|
||||
CreateHomeCacheSize int `yaml:"create_home_cache_size" env:"OCIS_CACHE_SIZE;GATEWAY_CREATE_HOME_CACHE_SIZE" desc:"The maximum quantity of items in the cache. Only applies when store type 'ocmem' is configured. Defaults to 512."`
|
||||
CreateHomeCacheTTL time.Duration `yaml:"create_home_cache_ttl" env:"OCIS_CACHE_TTL;GATEWAY_CREATE_HOME_CACHE_TTL" desc:"Default time to live for user info in the cache. Only applied when access tokens has no expiration. See the Environment Variable Types description for more details."`
|
||||
CreateHomeCacheSize int `yaml:"create_home_cache_size" env:"OCIS_CACHE_SIZE;GATEWAY_CREATE_HOME_CACHE_SIZE" desc:"The maximum quantity of items in the cache. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not exclicitely set as default."`
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
|
||||
|
||||
package mocks
|
||||
|
||||
import (
|
||||
context "context"
|
||||
|
||||
client "go-micro.dev/v4/client"
|
||||
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
|
||||
v0 "github.com/owncloud/ocis/v2/protogen/gen/ocis/services/settings/v0"
|
||||
)
|
||||
|
||||
// ValueService is an autogenerated mock type for the ValueService type
|
||||
type ValueService struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// GetValue provides a mock function with given fields: ctx, in, opts
|
||||
func (_m *ValueService) GetValue(ctx context.Context, in *v0.GetValueRequest, opts ...client.CallOption) (*v0.GetValueResponse, error) {
|
||||
_va := make([]interface{}, len(opts))
|
||||
for _i := range opts {
|
||||
_va[_i] = opts[_i]
|
||||
}
|
||||
var _ca []interface{}
|
||||
_ca = append(_ca, ctx, in)
|
||||
_ca = append(_ca, _va...)
|
||||
ret := _m.Called(_ca...)
|
||||
|
||||
var r0 *v0.GetValueResponse
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context, *v0.GetValueRequest, ...client.CallOption) (*v0.GetValueResponse, error)); ok {
|
||||
return rf(ctx, in, opts...)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(context.Context, *v0.GetValueRequest, ...client.CallOption) *v0.GetValueResponse); ok {
|
||||
r0 = rf(ctx, in, opts...)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*v0.GetValueResponse)
|
||||
}
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(context.Context, *v0.GetValueRequest, ...client.CallOption) error); ok {
|
||||
r1 = rf(ctx, in, opts...)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetValueByUniqueIdentifiers provides a mock function with given fields: ctx, in, opts
|
||||
func (_m *ValueService) GetValueByUniqueIdentifiers(ctx context.Context, in *v0.GetValueByUniqueIdentifiersRequest, opts ...client.CallOption) (*v0.GetValueResponse, error) {
|
||||
_va := make([]interface{}, len(opts))
|
||||
for _i := range opts {
|
||||
_va[_i] = opts[_i]
|
||||
}
|
||||
var _ca []interface{}
|
||||
_ca = append(_ca, ctx, in)
|
||||
_ca = append(_ca, _va...)
|
||||
ret := _m.Called(_ca...)
|
||||
|
||||
var r0 *v0.GetValueResponse
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context, *v0.GetValueByUniqueIdentifiersRequest, ...client.CallOption) (*v0.GetValueResponse, error)); ok {
|
||||
return rf(ctx, in, opts...)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(context.Context, *v0.GetValueByUniqueIdentifiersRequest, ...client.CallOption) *v0.GetValueResponse); ok {
|
||||
r0 = rf(ctx, in, opts...)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*v0.GetValueResponse)
|
||||
}
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(context.Context, *v0.GetValueByUniqueIdentifiersRequest, ...client.CallOption) error); ok {
|
||||
r1 = rf(ctx, in, opts...)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// ListValues provides a mock function with given fields: ctx, in, opts
|
||||
func (_m *ValueService) ListValues(ctx context.Context, in *v0.ListValuesRequest, opts ...client.CallOption) (*v0.ListValuesResponse, error) {
|
||||
_va := make([]interface{}, len(opts))
|
||||
for _i := range opts {
|
||||
_va[_i] = opts[_i]
|
||||
}
|
||||
var _ca []interface{}
|
||||
_ca = append(_ca, ctx, in)
|
||||
_ca = append(_ca, _va...)
|
||||
ret := _m.Called(_ca...)
|
||||
|
||||
var r0 *v0.ListValuesResponse
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context, *v0.ListValuesRequest, ...client.CallOption) (*v0.ListValuesResponse, error)); ok {
|
||||
return rf(ctx, in, opts...)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(context.Context, *v0.ListValuesRequest, ...client.CallOption) *v0.ListValuesResponse); ok {
|
||||
r0 = rf(ctx, in, opts...)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*v0.ListValuesResponse)
|
||||
}
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(context.Context, *v0.ListValuesRequest, ...client.CallOption) error); ok {
|
||||
r1 = rf(ctx, in, opts...)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// SaveValue provides a mock function with given fields: ctx, in, opts
|
||||
func (_m *ValueService) SaveValue(ctx context.Context, in *v0.SaveValueRequest, opts ...client.CallOption) (*v0.SaveValueResponse, error) {
|
||||
_va := make([]interface{}, len(opts))
|
||||
for _i := range opts {
|
||||
_va[_i] = opts[_i]
|
||||
}
|
||||
var _ca []interface{}
|
||||
_ca = append(_ca, ctx, in)
|
||||
_ca = append(_ca, _va...)
|
||||
ret := _m.Called(_ca...)
|
||||
|
||||
var r0 *v0.SaveValueResponse
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context, *v0.SaveValueRequest, ...client.CallOption) (*v0.SaveValueResponse, error)); ok {
|
||||
return rf(ctx, in, opts...)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(context.Context, *v0.SaveValueRequest, ...client.CallOption) *v0.SaveValueResponse); ok {
|
||||
r0 = rf(ctx, in, opts...)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*v0.SaveValueResponse)
|
||||
}
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(context.Context, *v0.SaveValueRequest, ...client.CallOption) error); ok {
|
||||
r1 = rf(ctx, in, opts...)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// NewValueService creates a new instance of ValueService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewValueService(t interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *ValueService {
|
||||
mock := &ValueService{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
@@ -3,5 +3,5 @@ package config
|
||||
// Application defines the available graph application configuration.
|
||||
type Application struct {
|
||||
ID string `yaml:"id" env:"GRAPH_APPLICATION_ID" desc:"The ocis application ID shown in the graph. All app roles are tied to this ID."`
|
||||
DisplayName string `yaml:"displayname" env:"GRAPH_APPLICATION_DISPLAYNAME" desc:"The oCIS application name"`
|
||||
DisplayName string `yaml:"displayname" env:"GRAPH_APPLICATION_DISPLAYNAME" desc:"The ocis application name."`
|
||||
}
|
||||
@@ -5,9 +5,9 @@ import "time"
|
||||
// Cache defines the available configuration for a cache store
|
||||
type Cache struct {
|
||||
Store string `yaml:"store" env:"OCIS_CACHE_STORE;GRAPH_CACHE_STORE" desc:"The type of the cache store. Supported values are: 'memory', 'ocmem', 'etcd', 'redis', 'redis-sentinel', 'nats-js', 'noop'. See the text description for details."`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_CACHE_STORE_NODES;GRAPH_CACHE_STORE_NODES" desc:"A comma separated list of nodes to access the configured store. This has no effect when 'memory' or 'ocmem' stores are configured. Note that the behaviour how nodes are used is dependent on the library of the configured store."`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_CACHE_STORE_NODES;GRAPH_CACHE_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' or 'ocmem' stores are configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details."`
|
||||
Database string `yaml:"database" env:"GRAPH_CACHE_STORE_DATABASE" desc:"The database name the configured store should use."`
|
||||
Table string `yaml:"table" env:"GRAPH_CACHE_STORE_TABLE" desc:"The database table the store should use."`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_CACHE_TTL;GRAPH_CACHE_TTL" desc:"Time to live for cache records in the graph. The duration can be set as number followed by a unit identifier like s, m or h. Defaults to '336h' (2 weeks)."`
|
||||
Size int `yaml:"size" env:"OCIS_CACHE_SIZE;GRAPH_CACHE_SIZE" desc:"The maximum quantity of items in the store. Only applies when store type 'ocmem' is configured. Defaults to 512."`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_CACHE_TTL;GRAPH_CACHE_TTL" desc:"Time to live for cache records in the graph. Defaults to '336h' (2 weeks). See the Environment Variable Types description for more details."`
|
||||
Size int `yaml:"size" env:"OCIS_CACHE_SIZE;GRAPH_CACHE_SIZE" desc:"The maximum quantity of items in the store. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not exclicitely set as default."`
|
||||
}
|
||||
Loaded 100 of 1002 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user