commit 207efe3f7b
Merge:58f5c02d304d0e54feAuthor: Martin <github@diemattels.at> Date: Tue Dec 13 14:12:40 2022 +0100 Merge pull request #5164 from dragonchaser/extract-rogue-env-vars Extract rogue env vars
This commit is contained in:
1 parent
b59e352477
commit
ad04e4e2f4
13 files changed
+290
-1121
No files matched your search
@@ -1,82 +0,0 @@
|
||||
---
|
||||
title: "ocis.messages.search.v0"
|
||||
url: /grpc_apis/ocis_messages_search_v0
|
||||
date: 2022-12-13T00:36:26Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/messages/search/v0/search.proto
|
||||
|
||||
### Entity
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| ref | [Reference](#reference) | | |
|
||||
| id | [ResourceID](#resourceid) | | |
|
||||
| name | [string](#string) | | |
|
||||
| etag | [string](#string) | | |
|
||||
| size | [uint64](#uint64) | | |
|
||||
| last_modified_time | [google.protobuf.Timestamp](#googleprotobuftimestamp) | | |
|
||||
| mime_type | [string](#string) | | |
|
||||
| permissions | [string](#string) | | |
|
||||
| type | [uint64](#uint64) | | |
|
||||
| deleted | [bool](#bool) | | |
|
||||
| shareRootName | [string](#string) | | |
|
||||
| parent_id | [ResourceID](#resourceid) | | |
|
||||
|
||||
### Match
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| entity | [Entity](#entity) | | the matched entity |
|
||||
| score | [float](#float) | | the match score |
|
||||
|
||||
### Reference
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| resource_id | [ResourceID](#resourceid) | | |
|
||||
| path | [string](#string) | | |
|
||||
|
||||
### ResourceID
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| storage_id | [string](#string) | | |
|
||||
| opaque_id | [string](#string) | | |
|
||||
| space_id | [string](#string) | | |
|
||||
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,252 +0,0 @@
|
||||
---
|
||||
title: "ocis.messages.settings.v0"
|
||||
url: /grpc_apis/ocis_messages_settings_v0
|
||||
date: 2022-12-13T00:36:26Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/messages/settings/v0/settings.proto
|
||||
|
||||
### Bool
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| default | [bool](#bool) | | |
|
||||
| label | [string](#string) | | |
|
||||
|
||||
### Bundle
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | |
|
||||
| name | [string](#string) | | |
|
||||
| type | [Bundle.Type](#bundletype) | | |
|
||||
| extension | [string](#string) | | |
|
||||
| display_name | [string](#string) | | |
|
||||
| settings | [Setting](#setting) | repeated | |
|
||||
| resource | [Resource](#resource) | | |
|
||||
|
||||
### Identifier
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| extension | [string](#string) | | |
|
||||
| bundle | [string](#string) | | |
|
||||
| setting | [string](#string) | | |
|
||||
|
||||
### Int
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| default | [int64](#int64) | | |
|
||||
| min | [int64](#int64) | | |
|
||||
| max | [int64](#int64) | | |
|
||||
| step | [int64](#int64) | | |
|
||||
| placeholder | [string](#string) | | |
|
||||
|
||||
### ListOption
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| value | [ListOptionValue](#listoptionvalue) | | |
|
||||
| default | [bool](#bool) | | |
|
||||
| display_value | [string](#string) | | |
|
||||
|
||||
### ListOptionValue
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| string_value | [string](#string) | | |
|
||||
| int_value | [int64](#int64) | | |
|
||||
|
||||
### ListValue
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| values | [ListOptionValue](#listoptionvalue) | repeated | |
|
||||
|
||||
### MultiChoiceList
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| options | [ListOption](#listoption) | repeated | |
|
||||
|
||||
### Permission
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| operation | [Permission.Operation](#permissionoperation) | | |
|
||||
| constraint | [Permission.Constraint](#permissionconstraint) | | |
|
||||
|
||||
### Resource
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| type | [Resource.Type](#resourcetype) | | |
|
||||
| id | [string](#string) | | |
|
||||
|
||||
### Setting
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | |
|
||||
| name | [string](#string) | | |
|
||||
| display_name | [string](#string) | | |
|
||||
| description | [string](#string) | | |
|
||||
| int_value | [Int](#int) | | |
|
||||
| string_value | [String](#string) | | |
|
||||
| bool_value | [Bool](#bool) | | |
|
||||
| single_choice_value | [SingleChoiceList](#singlechoicelist) | | |
|
||||
| multi_choice_value | [MultiChoiceList](#multichoicelist) | | |
|
||||
| permission_value | [Permission](#permission) | | |
|
||||
| resource | [Resource](#resource) | | |
|
||||
|
||||
### SingleChoiceList
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| options | [ListOption](#listoption) | repeated | |
|
||||
|
||||
### String
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| default | [string](#string) | | |
|
||||
| required | [bool](#bool) | | |
|
||||
| min_length | [int32](#int32) | | |
|
||||
| max_length | [int32](#int32) | | |
|
||||
| placeholder | [string](#string) | | |
|
||||
|
||||
### UserRoleAssignment
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | id is generated upon saving the assignment |
|
||||
| account_uuid | [string](#string) | | |
|
||||
| role_id | [string](#string) | | the role_id is a bundle_id internally |
|
||||
|
||||
### Value
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | id is the id of the Value. It is generated on saving it. |
|
||||
| bundle_id | [string](#string) | | |
|
||||
| setting_id | [string](#string) | | setting_id is the id of the setting from within its bundle. |
|
||||
| account_uuid | [string](#string) | | |
|
||||
| resource | [Resource](#resource) | | |
|
||||
| bool_value | [bool](#bool) | | |
|
||||
| int_value | [int64](#int64) | | |
|
||||
| string_value | [string](#string) | | |
|
||||
| list_value | [ListValue](#listvalue) | | |
|
||||
|
||||
### ValueWithIdentifier
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| identifier | [Identifier](#identifier) | | |
|
||||
| value | [Value](#value) | | |
|
||||
|
||||
### Bundle.Type
|
||||
|
||||
|
||||
|
||||
| Name | Number | Description |
|
||||
| ---- | ------ | ----------- |
|
||||
| TYPE_UNKNOWN | 0 | |
|
||||
| TYPE_DEFAULT | 1 | |
|
||||
| TYPE_ROLE | 2 | |
|
||||
### Permission.Constraint
|
||||
|
||||
|
||||
|
||||
| Name | Number | Description |
|
||||
| ---- | ------ | ----------- |
|
||||
| CONSTRAINT_UNKNOWN | 0 | |
|
||||
| CONSTRAINT_OWN | 1 | |
|
||||
| CONSTRAINT_SHARED | 2 | |
|
||||
| CONSTRAINT_ALL | 3 | |
|
||||
### Permission.Operation
|
||||
|
||||
|
||||
|
||||
| Name | Number | Description |
|
||||
| ---- | ------ | ----------- |
|
||||
| OPERATION_UNKNOWN | 0 | |
|
||||
| OPERATION_CREATE | 1 | |
|
||||
| OPERATION_READ | 2 | |
|
||||
| OPERATION_UPDATE | 3 | |
|
||||
| OPERATION_DELETE | 4 | |
|
||||
| OPERATION_WRITE | 5 | WRITE is a combination of CREATE and UPDATE |
|
||||
| OPERATION_READWRITE | 6 | READWRITE is a combination of READ and WRITE |
|
||||
### Resource.Type
|
||||
|
||||
|
||||
|
||||
| Name | Number | Description |
|
||||
| ---- | ------ | ----------- |
|
||||
| TYPE_UNKNOWN | 0 | |
|
||||
| TYPE_SYSTEM | 1 | |
|
||||
| TYPE_FILE | 2 | |
|
||||
| TYPE_SHARE | 3 | |
|
||||
| TYPE_SETTING | 4 | |
|
||||
| TYPE_BUNDLE | 5 | |
|
||||
| TYPE_USER | 6 | |
|
||||
| TYPE_GROUP | 7 | |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,120 +0,0 @@
|
||||
---
|
||||
title: "ocis.messages.store.v0"
|
||||
url: /grpc_apis/ocis_messages_store_v0
|
||||
date: 2022-12-13T00:36:26Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/messages/store/v0/store.proto
|
||||
|
||||
### DeleteOptions
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| database | [string](#string) | | |
|
||||
| table | [string](#string) | | |
|
||||
|
||||
### Field
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| type | [string](#string) | | type of value e.g string, int, int64, bool, float64 |
|
||||
| value | [string](#string) | | the actual value |
|
||||
|
||||
### ListOptions
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| database | [string](#string) | | |
|
||||
| table | [string](#string) | | |
|
||||
| prefix | [string](#string) | | |
|
||||
| suffix | [string](#string) | | |
|
||||
| limit | [uint64](#uint64) | | |
|
||||
| offset | [uint64](#uint64) | | |
|
||||
|
||||
### ReadOptions
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| database | [string](#string) | | |
|
||||
| table | [string](#string) | | |
|
||||
| prefix | [bool](#bool) | | |
|
||||
| suffix | [bool](#bool) | | |
|
||||
| limit | [uint64](#uint64) | | |
|
||||
| offset | [uint64](#uint64) | | |
|
||||
| where | [ReadOptions.WhereEntry](#readoptionswhereentry) | repeated | |
|
||||
|
||||
### ReadOptions.WhereEntry
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | |
|
||||
| value | [Field](#field) | | |
|
||||
|
||||
### Record
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | key of the recorda |
|
||||
| value | [bytes](#bytes) | | value in the record |
|
||||
| expiry | [int64](#int64) | | time.Duration (signed int64 nanoseconds) |
|
||||
| metadata | [Record.MetadataEntry](#recordmetadataentry) | repeated | the associated metadata |
|
||||
|
||||
### Record.MetadataEntry
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | |
|
||||
| value | [Field](#field) | | |
|
||||
|
||||
### WriteOptions
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| database | [string](#string) | | |
|
||||
| table | [string](#string) | | |
|
||||
| expiry | [int64](#int64) | | time.Time |
|
||||
| ttl | [int64](#int64) | | time.Duration |
|
||||
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
---
|
||||
title: "ocis.messages.thumbnails.v0"
|
||||
url: /grpc_apis/ocis_messages_thumbnails_v0
|
||||
date: 2022-12-13T00:36:26Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/messages/thumbnails/v0/thumbnails.proto
|
||||
|
||||
### CS3Source
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| path | [string](#string) | | |
|
||||
| authorization | [string](#string) | | |
|
||||
|
||||
### WebdavSource
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| url | [string](#string) | | REQUIRED. |
|
||||
| is_public_link | [bool](#bool) | | REQUIRED. |
|
||||
| webdav_authorization | [string](#string) | | OPTIONAL. |
|
||||
| reva_authorization | [string](#string) | | OPTIONAL. |
|
||||
| public_link_token | [string](#string) | | OPTIONAL. |
|
||||
|
||||
### ThumbnailType
|
||||
|
||||
The file types to which the thumbnail can be encoded to.
|
||||
|
||||
| Name | Number | Description |
|
||||
| ---- | ------ | ----------- |
|
||||
| PNG | 0 | Represents PNG type |
|
||||
| JPG | 1 | Represents JPG type |
|
||||
| GIF | 2 | Represents GIF type |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
---
|
||||
title: "ocis.services.search.v0"
|
||||
url: /grpc_apis/ocis_services_search_v0
|
||||
date: 2022-12-13T00:36:26Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/services/search/v0/search.proto
|
||||
|
||||
### IndexSpaceRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| space_id | [string](#string) | | |
|
||||
| user_id | [string](#string) | | |
|
||||
|
||||
### IndexSpaceResponse
|
||||
|
||||
|
||||
|
||||
|
||||
### SearchIndexRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| page_size | [int32](#int32) | | Optional. The maximum number of entries to return in the response |
|
||||
| page_token | [string](#string) | | Optional. A pagination token returned from a previous call to `Get`<br>that indicates from where search should continue |
|
||||
| query | [string](#string) | | |
|
||||
| ref | [ocis.messages.search.v0.Reference](/grpc_apis/ocis_messages_search_v0/#reference) | | |
|
||||
|
||||
### SearchIndexResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| matches | [ocis.messages.search.v0.Match](/grpc_apis/ocis_messages_search_v0/#match) | repeated | |
|
||||
| next_page_token | [string](#string) | | Token to retrieve the next page of results, or empty if there are no<br>more results in the list |
|
||||
| total_matches | [int32](#int32) | | |
|
||||
|
||||
### SearchRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| page_size | [int32](#int32) | | Optional. The maximum number of entries to return in the response |
|
||||
| page_token | [string](#string) | | Optional. A pagination token returned from a previous call to `Get`<br>that indicates from where search should continue |
|
||||
| query | [string](#string) | | |
|
||||
| ref | [ocis.messages.search.v0.Reference](/grpc_apis/ocis_messages_search_v0/#reference) | | |
|
||||
|
||||
### SearchResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| matches | [ocis.messages.search.v0.Match](/grpc_apis/ocis_messages_search_v0/#match) | repeated | |
|
||||
| next_page_token | [string](#string) | | Token to retrieve the next page of results, or empty if there are no<br>more results in the list |
|
||||
| total_matches | [int32](#int32) | | |
|
||||
|
||||
|
||||
### IndexProvider
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| Search | [SearchIndexRequest](#searchindexrequest) | [SearchIndexResponse](#searchindexresponse) | |
|
||||
|
||||
### SearchProvider
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| Search | [SearchRequest](#searchrequest) | [SearchResponse](#searchresponse) | |
|
||||
| IndexSpace | [IndexSpaceRequest](#indexspacerequest) | [IndexSpaceResponse](#indexspaceresponse) | |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,285 +0,0 @@
|
||||
---
|
||||
title: "ocis.services.settings.v0"
|
||||
url: /grpc_apis/ocis_services_settings_v0
|
||||
date: 2022-12-13T00:36:26Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/services/settings/v0/settings.proto
|
||||
|
||||
### AddSettingToBundleRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle_id | [string](#string) | | |
|
||||
| setting | [ocis.messages.settings.v0.Setting](/grpc_apis/ocis_messages_settings_v0/#setting) | | |
|
||||
|
||||
### AddSettingToBundleResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| setting | [ocis.messages.settings.v0.Setting](/grpc_apis/ocis_messages_settings_v0/#setting) | | |
|
||||
|
||||
### AssignRoleToUserRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| account_uuid | [string](#string) | | |
|
||||
| role_id | [string](#string) | | the role_id is a bundle_id internally |
|
||||
|
||||
### AssignRoleToUserResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| assignment | [ocis.messages.settings.v0.UserRoleAssignment](/grpc_apis/ocis_messages_settings_v0/#userroleassignment) | | |
|
||||
|
||||
### GetBundleRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle_id | [string](#string) | | |
|
||||
|
||||
### GetBundleResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle | [ocis.messages.settings.v0.Bundle](/grpc_apis/ocis_messages_settings_v0/#bundle) | | |
|
||||
|
||||
### GetPermissionByIDRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| permission_id | [string](#string) | | |
|
||||
|
||||
### GetPermissionByIDResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| permission | [ocis.messages.settings.v0.Permission](/grpc_apis/ocis_messages_settings_v0/#permission) | | |
|
||||
|
||||
### GetValueByUniqueIdentifiersRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| account_uuid | [string](#string) | | |
|
||||
| setting_id | [string](#string) | | |
|
||||
|
||||
### GetValueRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | |
|
||||
|
||||
### GetValueResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| value | [ocis.messages.settings.v0.ValueWithIdentifier](/grpc_apis/ocis_messages_settings_v0/#valuewithidentifier) | | |
|
||||
|
||||
### ListBundlesRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle_ids | [string](#string) | repeated | |
|
||||
|
||||
### ListBundlesResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundles | [ocis.messages.settings.v0.Bundle](/grpc_apis/ocis_messages_settings_v0/#bundle) | repeated | |
|
||||
|
||||
### ListPermissionsByResourceRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| resource | [ocis.messages.settings.v0.Resource](/grpc_apis/ocis_messages_settings_v0/#resource) | | |
|
||||
|
||||
### ListPermissionsByResourceResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| permissions | [ocis.messages.settings.v0.Permission](/grpc_apis/ocis_messages_settings_v0/#permission) | repeated | |
|
||||
|
||||
### ListRoleAssignmentsRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| account_uuid | [string](#string) | | |
|
||||
|
||||
### ListRoleAssignmentsResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| assignments | [ocis.messages.settings.v0.UserRoleAssignment](/grpc_apis/ocis_messages_settings_v0/#userroleassignment) | repeated | |
|
||||
|
||||
### ListValuesRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle_id | [string](#string) | | |
|
||||
| account_uuid | [string](#string) | | |
|
||||
|
||||
### ListValuesResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| values | [ocis.messages.settings.v0.ValueWithIdentifier](/grpc_apis/ocis_messages_settings_v0/#valuewithidentifier) | repeated | |
|
||||
|
||||
### RemoveRoleFromUserRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| id | [string](#string) | | |
|
||||
|
||||
### RemoveSettingFromBundleRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle_id | [string](#string) | | |
|
||||
| setting_id | [string](#string) | | |
|
||||
|
||||
### SaveBundleRequest
|
||||
|
||||
---
|
||||
requests and responses for settings bundles
|
||||
---
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle | [ocis.messages.settings.v0.Bundle](/grpc_apis/ocis_messages_settings_v0/#bundle) | | |
|
||||
|
||||
### SaveBundleResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| bundle | [ocis.messages.settings.v0.Bundle](/grpc_apis/ocis_messages_settings_v0/#bundle) | | |
|
||||
|
||||
### SaveValueRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| value | [ocis.messages.settings.v0.Value](/grpc_apis/ocis_messages_settings_v0/#value) | | |
|
||||
|
||||
### SaveValueResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| value | [ocis.messages.settings.v0.ValueWithIdentifier](/grpc_apis/ocis_messages_settings_v0/#valuewithidentifier) | | |
|
||||
|
||||
|
||||
### BundleService
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| SaveBundle | [SaveBundleRequest](#savebundlerequest) | [SaveBundleResponse](#savebundleresponse) | |
|
||||
| GetBundle | [GetBundleRequest](#getbundlerequest) | [GetBundleResponse](#getbundleresponse) | |
|
||||
| ListBundles | [ListBundlesRequest](#listbundlesrequest) | [ListBundlesResponse](#listbundlesresponse) | |
|
||||
| AddSettingToBundle | [AddSettingToBundleRequest](#addsettingtobundlerequest) | [AddSettingToBundleResponse](#addsettingtobundleresponse) | |
|
||||
| RemoveSettingFromBundle | [RemoveSettingFromBundleRequest](#removesettingfrombundlerequest) | [.google.protobuf.Empty](#googleprotobufempty) | |
|
||||
|
||||
### PermissionService
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| ListPermissionsByResource | [ListPermissionsByResourceRequest](#listpermissionsbyresourcerequest) | [ListPermissionsByResourceResponse](#listpermissionsbyresourceresponse) | |
|
||||
| GetPermissionByID | [GetPermissionByIDRequest](#getpermissionbyidrequest) | [GetPermissionByIDResponse](#getpermissionbyidresponse) | |
|
||||
|
||||
### RoleService
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| ListRoles | [ListBundlesRequest](#listbundlesrequest) | [ListBundlesResponse](#listbundlesresponse) | |
|
||||
| ListRoleAssignments | [ListRoleAssignmentsRequest](#listroleassignmentsrequest) | [ListRoleAssignmentsResponse](#listroleassignmentsresponse) | |
|
||||
| AssignRoleToUser | [AssignRoleToUserRequest](#assignroletouserrequest) | [AssignRoleToUserResponse](#assignroletouserresponse) | |
|
||||
| RemoveRoleFromUser | [RemoveRoleFromUserRequest](#removerolefromuserrequest) | [.google.protobuf.Empty](#googleprotobufempty) | |
|
||||
|
||||
### ValueService
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| SaveValue | [SaveValueRequest](#savevaluerequest) | [SaveValueResponse](#savevalueresponse) | |
|
||||
| GetValue | [GetValueRequest](#getvaluerequest) | [GetValueResponse](#getvalueresponse) | |
|
||||
| ListValues | [ListValuesRequest](#listvaluesrequest) | [ListValuesResponse](#listvaluesresponse) | |
|
||||
| GetValueByUniqueIdentifiers | [GetValueByUniqueIdentifiersRequest](#getvaluebyuniqueidentifiersrequest) | [GetValueResponse](#getvalueresponse) | |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,138 +0,0 @@
|
||||
---
|
||||
title: "ocis.services.store.v0"
|
||||
url: /grpc_apis/ocis_services_store_v0
|
||||
date: 2022-12-13T00:36:26Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/services/store/v0/store.proto
|
||||
|
||||
### DatabasesRequest
|
||||
|
||||
|
||||
|
||||
|
||||
### DatabasesResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| databases | [string](#string) | repeated | |
|
||||
|
||||
### DeleteRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | |
|
||||
| options | [ocis.messages.store.v0.DeleteOptions](/grpc_apis/ocis_messages_store_v0/#deleteoptions) | | |
|
||||
|
||||
### DeleteResponse
|
||||
|
||||
|
||||
|
||||
|
||||
### ListRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| options | [ocis.messages.store.v0.ListOptions](/grpc_apis/ocis_messages_store_v0/#listoptions) | | |
|
||||
|
||||
### ListResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| keys | [string](#string) | repeated | |
|
||||
|
||||
### ReadRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| key | [string](#string) | | |
|
||||
| options | [ocis.messages.store.v0.ReadOptions](/grpc_apis/ocis_messages_store_v0/#readoptions) | | |
|
||||
|
||||
### ReadResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| records | [ocis.messages.store.v0.Record](/grpc_apis/ocis_messages_store_v0/#record) | repeated | |
|
||||
|
||||
### TablesRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| database | [string](#string) | | |
|
||||
|
||||
### TablesResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| tables | [string](#string) | repeated | |
|
||||
|
||||
### WriteRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| record | [ocis.messages.store.v0.Record](/grpc_apis/ocis_messages_store_v0/#record) | | |
|
||||
| options | [ocis.messages.store.v0.WriteOptions](/grpc_apis/ocis_messages_store_v0/#writeoptions) | | |
|
||||
|
||||
### WriteResponse
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Store
|
||||
|
||||
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| Read | [ReadRequest](#readrequest) | [ReadResponse](#readresponse) | |
|
||||
| Write | [WriteRequest](#writerequest) | [WriteResponse](#writeresponse) | |
|
||||
| Delete | [DeleteRequest](#deleterequest) | [DeleteResponse](#deleteresponse) | |
|
||||
| List | [ListRequest](#listrequest) | [ListResponse](#listresponse) stream | |
|
||||
| Databases | [DatabasesRequest](#databasesrequest) | [DatabasesResponse](#databasesresponse) | |
|
||||
| Tables | [TablesRequest](#tablesrequest) | [TablesResponse](#tablesresponse) | |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -1,66 +0,0 @@
|
||||
---
|
||||
title: "ocis.services.thumbnails.v0"
|
||||
url: /grpc_apis/ocis_services_thumbnails_v0
|
||||
date: 2022-12-13T00:36:26Z
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
||||
|
||||
## ocis/services/thumbnails/v0/thumbnails.proto
|
||||
|
||||
### GetThumbnailRequest
|
||||
|
||||
A request to retrieve a thumbnail
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| filepath | [string](#string) | | The path to the source image |
|
||||
| thumbnail_type | [ocis.messages.thumbnails.v0.ThumbnailType](/grpc_apis/ocis_messages_thumbnails_v0/#thumbnailtype) | | The type to which the thumbnail should get encoded to. |
|
||||
| width | [int32](#int32) | | The width of the thumbnail |
|
||||
| height | [int32](#int32) | | The height of the thumbnail |
|
||||
| webdav_source | [ocis.messages.thumbnails.v0.WebdavSource](/grpc_apis/ocis_messages_thumbnails_v0/#webdavsource) | | |
|
||||
| cs3_source | [ocis.messages.thumbnails.v0.CS3Source](/grpc_apis/ocis_messages_thumbnails_v0/#cs3source) | | |
|
||||
|
||||
### GetThumbnailResponse
|
||||
|
||||
The service response
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| data_endpoint | [string](#string) | | The endpoint where the thumbnail can be downloaded. |
|
||||
| transfer_token | [string](#string) | | The transfer token to be able to download the thumbnail. |
|
||||
| mimetype | [string](#string) | | The mimetype of the thumbnail |
|
||||
|
||||
|
||||
### ThumbnailService
|
||||
|
||||
A Service for handling thumbnail generation
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| GetThumbnail | [GetThumbnailRequest](#getthumbnailrequest) | [GetThumbnailResponse](#getthumbnailresponse) | Generates the thumbnail and returns it. |
|
||||
|
||||
## Scalar Value Types
|
||||
|
||||
| .proto Type | Notes | C++ | Java |
|
||||
| ----------- | ----- | --- | ---- |
|
||||
| {{< div id="double" content="double" >}} | | double | double |
|
||||
| {{< div id="float" content="float" >}} | | float | float |
|
||||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int |
|
||||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long |
|
||||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int |
|
||||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long |
|
||||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int |
|
||||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long |
|
||||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int |
|
||||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long |
|
||||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int |
|
||||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long |
|
||||
| {{< div id="bool" content="bool" >}} | | bool | boolean |
|
||||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String |
|
||||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString |
|
||||
|
||||
@@ -17,7 +17,8 @@ var targets = map[string]string{
|
||||
"environment-variable-docs-generator.go.tmpl": "output/env/environment-variable-docs-generator.go",
|
||||
}
|
||||
|
||||
func main() {
|
||||
// RenderTemplates does something with templates
|
||||
func RenderTemplates() {
|
||||
fmt.Println("Getting relevant packages")
|
||||
paths, err := filepath.Glob("../../services/*/pkg/config/defaults/defaultconfig.go")
|
||||
if err != nil {
|
||||
@@ -32,14 +33,14 @@ func main() {
|
||||
}
|
||||
|
||||
for template, output := range targets {
|
||||
GenerateIntermediateCode(template, output, paths)
|
||||
RunIntermediateCode(output)
|
||||
generateIntermediateCode(template, output, paths)
|
||||
runIntermediateCode(output)
|
||||
}
|
||||
fmt.Println("Cleaning up")
|
||||
os.RemoveAll("output")
|
||||
}
|
||||
|
||||
func GenerateIntermediateCode(templatePath string, intermediateCodePath string, paths []string) {
|
||||
func generateIntermediateCode(templatePath string, intermediateCodePath string, paths []string) {
|
||||
content, err := os.ReadFile(templatePath)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
@@ -60,7 +61,7 @@ func GenerateIntermediateCode(templatePath string, intermediateCodePath string,
|
||||
}
|
||||
}
|
||||
|
||||
func RunIntermediateCode(intermediateCodePath string) {
|
||||
func runIntermediateCode(intermediateCodePath string) {
|
||||
fmt.Println("Running intermediate go code for " + intermediateCodePath)
|
||||
defaultPath := "~/.ocis"
|
||||
os.Setenv("OCIS_BASE_DATA_PATH", defaultPath)
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
variables:
|
||||
- rawname: CS3_GATEWAY
|
||||
path: services/idp/pkg/backends/cs3/bootstrap/cs3.go:76
|
||||
foundincode: true
|
||||
name: "CS3_GATEWAY"
|
||||
type: ""
|
||||
default_value: ""
|
||||
description: ""
|
||||
do_ignore: true
|
||||
- rawname: CS3_MACHINE_AUTH_API_KEY
|
||||
path: services/idp/pkg/backends/cs3/bootstrap/cs3.go:77
|
||||
foundincode: true
|
||||
name: "CS3_MACHINE_AUTH_API_KEY"
|
||||
type: ""
|
||||
default_value: ""
|
||||
description: ""
|
||||
do_ignore: true
|
||||
- rawname: MICRO_LOG_LEVEL
|
||||
path: ocis-pkg/log/log.go:34
|
||||
foundincode: true
|
||||
name: "MICRO_LOG_LEVEL"
|
||||
type: "string"
|
||||
default_value: "Error"
|
||||
description: "Set the log level for the internal go micro framework. Only change on supervision of ownCloud Support."
|
||||
do_ignore: false
|
||||
- rawname: MICRO_LOG_LEVEL
|
||||
path: ocis-pkg/log/log.go:30
|
||||
foundincode: true
|
||||
name: "MICRO_LOG_LEVEL"
|
||||
type: ""
|
||||
default_value: ""
|
||||
description: ""
|
||||
do_ignore: true
|
||||
- rawname: registryEnv
|
||||
path: ocis-pkg/registry/registry.go:44
|
||||
foundincode: true
|
||||
name: "MICRO_REGISTRY"
|
||||
type: "string"
|
||||
default_value: ""
|
||||
description: "Go micro registry type to use. Supported types are: 'nats', 'kubernetes', 'etcd', 'consul' and 'memory'. Will be selected automatically. Only change on supervision of ownCloud Support."
|
||||
do_ignore: false
|
||||
- rawname: registryAddressEnv
|
||||
path: ocis-pkg/registry/registry.go:42
|
||||
foundincode: true
|
||||
name: "MICRO_REGISTRY_ADDRESS"
|
||||
type: "string"
|
||||
default_value: ""
|
||||
description: "The bind address of the internal go micro framework. Only change on supervision of ownCloud Support."
|
||||
do_ignore: false
|
||||
- rawname: OCIS_BASE_DATA_PATH
|
||||
path: ocis-pkg/config/defaults/paths.go:23
|
||||
foundincode: true
|
||||
name: "OCIS_BASE_DATA_PATH"
|
||||
type: "string"
|
||||
default_value: "'/var/lib/ocis' or '$HOME/.ocis/'"
|
||||
description: "The base directory location used by several services and for user data. Predefined to '/var/lib/ocis' for container images (inside the container) or '$HOME/.ocis/' for binary releases. Can be adapted for services individually."
|
||||
do_ignore: false
|
||||
- rawname: OCIS_CONFIG_DIR
|
||||
path: ocis-pkg/config/defaults/paths.go:56
|
||||
foundincode: true
|
||||
name: "OCIS_CONFIG_DIR"
|
||||
type: "string"
|
||||
default_value: "'/etc/ocis' or '$HOME/.ocis/config'"
|
||||
description: "The default directory location for config files. Predefined to '/etc/ocis' for container images (inside the container) or '$HOME/.ocis/config' for binary releases."
|
||||
do_ignore: false
|
||||
- rawname: parts[0]
|
||||
path: ocis-pkg/config/envdecode/envdecode.go:382
|
||||
foundincode: true
|
||||
name: parts[0]
|
||||
type: ""
|
||||
default_value: ""
|
||||
description: false positive - code that extract envvars for config structs
|
||||
do_ignore: true
|
||||
@@ -0,0 +1,7 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
RenderTemplates()
|
||||
GetRogueEnvs()
|
||||
RenderGlobalVarsTemplate()
|
||||
}
|
||||
@@ -0,0 +1,177 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strings"
|
||||
"text/template"
|
||||
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
||||
const yamlSource = "global_vars.yaml"
|
||||
|
||||
// ConfigVars is the main yaml source
|
||||
type ConfigVars struct {
|
||||
Variables []Variable `yaml:"variables"`
|
||||
}
|
||||
|
||||
// Variable contains all information about one rogue envvar
|
||||
type Variable struct {
|
||||
// These field structs are automatically filled:
|
||||
// RawName can be the name of the envvar or the name of its var
|
||||
RawName string `yaml:"rawname"`
|
||||
// Path to the envvar with linenumber
|
||||
Path string `yaml:"path"`
|
||||
// FoundInCode indicates if the variable is still found in the codebase. TODO: delete immediately?
|
||||
FoundInCode bool `yaml:"foundincode"`
|
||||
// Name is equal to RawName but will not be overwritten in consecutive runs
|
||||
Name string `yaml:"name"`
|
||||
|
||||
// These field structs need manual filling:
|
||||
// Type of the envvar
|
||||
Type string `yaml:"type"`
|
||||
// DefaultValue of the envvar
|
||||
DefaultValue string `yaml:"default_value"`
|
||||
// Description of what this envvar does
|
||||
Description string `yaml:"description"`
|
||||
// Ignore this envvar when creating docs?
|
||||
Ignore bool `yaml:"do_ignore"`
|
||||
|
||||
// For simplicity ignored for now:
|
||||
// DependendServices []Service `yaml:"dependend_services"`
|
||||
}
|
||||
|
||||
// GetRogueEnvs extracts the rogue envs from the code
|
||||
func GetRogueEnvs() {
|
||||
curdir, err := os.Getwd()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
fullYamlPath := filepath.Join(curdir, yamlSource)
|
||||
re := regexp.MustCompile(`os.Getenv\(([^\)]+)\)`)
|
||||
vars := &ConfigVars{}
|
||||
fmt.Printf("Reading existing variable definitions from %s\n", fullYamlPath)
|
||||
yfile, err := ioutil.ReadFile(fullYamlPath)
|
||||
if err == nil {
|
||||
err := yaml.Unmarshal(yfile, &vars)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
if err := os.Chdir("../../"); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
fmt.Println("Gathering variable definitions from source")
|
||||
out, err := exec.Command("bash", "-c", "grep -RHn os.Getenv | grep -v rogueEnv.go |grep \\.go").Output()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
lines := strings.Split(string(out), "\n")
|
||||
|
||||
// find current vars
|
||||
currentVars := make(map[string]Variable)
|
||||
for _, l := range lines {
|
||||
fmt.Printf("Parsing %s\n", l)
|
||||
r := strings.SplitN(l, ":\t", 2)
|
||||
if len(r) != 2 || r[0] == "" || r[1] == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
res := re.FindAllSubmatch([]byte(r[1]), -1)
|
||||
if len(res) != 1 || len(res[0]) < 2 {
|
||||
fmt.Printf("Error envvar not matching pattern: %s", r[1])
|
||||
continue
|
||||
}
|
||||
|
||||
path := r[0]
|
||||
name := strings.Trim(string(res[0][1]), "\"")
|
||||
currentVars[path+name] = Variable{
|
||||
RawName: name,
|
||||
Path: path,
|
||||
FoundInCode: true,
|
||||
Name: name,
|
||||
}
|
||||
}
|
||||
|
||||
// adjust existing vars
|
||||
for i, v := range vars.Variables {
|
||||
_, ok := currentVars[v.Path+v.RawName]
|
||||
if !ok {
|
||||
vars.Variables[i].FoundInCode = false
|
||||
continue
|
||||
}
|
||||
|
||||
vars.Variables[i].FoundInCode = true
|
||||
delete(currentVars, v.Path+v.RawName)
|
||||
}
|
||||
|
||||
// add new envvars
|
||||
for _, v := range currentVars {
|
||||
vars.Variables = append(vars.Variables, v)
|
||||
}
|
||||
|
||||
less := func(i, j int) bool {
|
||||
return vars.Variables[i].Name < vars.Variables[j].Name
|
||||
}
|
||||
|
||||
sort.Slice(vars.Variables, less)
|
||||
|
||||
output, err := yaml.Marshal(vars)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
fmt.Printf("Writing new variable definitions to %s\n", fullYamlPath)
|
||||
err = ioutil.WriteFile(fullYamlPath, output, 0666)
|
||||
if err != nil {
|
||||
log.Fatalf("could not write %s", fullYamlPath)
|
||||
}
|
||||
if err := os.Chdir(curdir); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
// RenderGlobalVarsTemplate renders the global vars template
|
||||
func RenderGlobalVarsTemplate() {
|
||||
curdir, err := os.Getwd()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
fullYamlPath := filepath.Join(curdir, yamlSource)
|
||||
|
||||
content, err := ioutil.ReadFile("../../docs/templates/ADOC_global.tmpl")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
targetFolder := "../../docs/services/_includes/adoc/"
|
||||
|
||||
vars := &ConfigVars{}
|
||||
fmt.Printf("Reading existing variable definitions from %s\n", fullYamlPath)
|
||||
yfile, err := ioutil.ReadFile(fullYamlPath)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
err = yaml.Unmarshal(yfile, &vars)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
targetFile, err := os.Create(filepath.Join(targetFolder, "global_configvars.adoc"))
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to create target file: %s", err)
|
||||
}
|
||||
defer targetFile.Close()
|
||||
|
||||
tpl := template.Must(template.New("").Parse(string(content)))
|
||||
if err = tpl.Execute(targetFile, *vars); err != nil {
|
||||
log.Fatalf("Failed to execute template: %s", err)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// collected through docs/helpers/rougeEnv.go
|
||||
|
||||
[caption=]
|
||||
.Environment variables with global scope not included in a service
|
||||
[width="100%",cols="~,~,~,~",options="header"]
|
||||
|===
|
||||
| Name
|
||||
| Type
|
||||
| Default Value
|
||||
| Description
|
||||
|
||||
{{- range .Variables}}
|
||||
|
||||
{{- if .Ignore }}
|
||||
{{ continue }}
|
||||
{{- end }}
|
||||
|
||||
a| `{{- .Name }}` +
|
||||
a| [subs=-attributes]
|
||||
++{{ .Type }} ++
|
||||
a| [subs=-attributes]
|
||||
++{{.DefaultValue}} ++
|
||||
a| [subs=-attributes]
|
||||
++{{.Description}} ++
|
||||
|
||||
{{- end }}
|
||||
|===
|
||||
Reference in new issue
Block a user