Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[storage] Add Crypto middle end volume #208

Merged
merged 2 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
187 changes: 187 additions & 0 deletions storage/v1alpha1/autogen.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,23 @@
- [FrontendVirtioScsiService](#opi_api-storage-v1-FrontendVirtioScsiService)

- [middleend.proto](#middleend-proto)
- [CreateCryptoRequest](#opi_api-storage-v1-CreateCryptoRequest)
- [Crypto](#opi_api-storage-v1-Crypto)
- [CryptoStatsRequest](#opi_api-storage-v1-CryptoStatsRequest)
- [CryptoStatsResponse](#opi_api-storage-v1-CryptoStatsResponse)
- [DeleteCryptoRequest](#opi_api-storage-v1-DeleteCryptoRequest)
- [GetCryptoRequest](#opi_api-storage-v1-GetCryptoRequest)
- [ListCryptoRequest](#opi_api-storage-v1-ListCryptoRequest)
- [ListCryptoResponse](#opi_api-storage-v1-ListCryptoResponse)
- [UpdateCryptoRequest](#opi_api-storage-v1-UpdateCryptoRequest)

- [MiddleendService](#opi_api-storage-v1-MiddleendService)

- [opicommon.proto](#opicommon-proto)
- [PciEndpoint](#opi_api-storage-v1-PciEndpoint)

- [CryptoType](#opi_api-storage-v1-CryptoType)

- [object_key.proto](#object_key-proto)
- [ObjectKey](#opi_api-common-v1-ObjectKey)

Expand Down Expand Up @@ -2061,12 +2075,168 @@ Front End (host-facing) APIs. Mostly used for Virtio-scsi emulation and host pre
## middleend.proto



<a name="opi_api-storage-v1-CreateCryptoRequest"></a>

### CreateCryptoRequest



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| volume | [Crypto](#opi_api-storage-v1-Crypto) | | |






<a name="opi_api-storage-v1-Crypto"></a>

### Crypto



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| crypto_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
| volume_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | The back/middle-end volume to back this volume |
| key | [bytes](#bytes) | | Key to be used for encryption |
| cipher | [CryptoType](#opi_api-storage-v1-CryptoType) | | Cipher to use |






<a name="opi_api-storage-v1-CryptoStatsRequest"></a>

### CryptoStatsRequest



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| crypto_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |






<a name="opi_api-storage-v1-CryptoStatsResponse"></a>

### CryptoStatsResponse



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| crypto_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |
| stats | [string](#string) | | |






<a name="opi_api-storage-v1-DeleteCryptoRequest"></a>

### DeleteCryptoRequest



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| crypto_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |






<a name="opi_api-storage-v1-GetCryptoRequest"></a>

### GetCryptoRequest



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| crypto_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |






<a name="opi_api-storage-v1-ListCryptoRequest"></a>

### ListCryptoRequest



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| page_size | [int32](#int32) | | |
| page_token | [string](#string) | | |






<a name="opi_api-storage-v1-ListCryptoResponse"></a>

### ListCryptoResponse



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| volumes | [Crypto](#opi_api-storage-v1-Crypto) | repeated | |
| next_page_token | [string](#string) | | |






<a name="opi_api-storage-v1-UpdateCryptoRequest"></a>

### UpdateCryptoRequest



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| volume | [Crypto](#opi_api-storage-v1-Crypto) | | |












<a name="opi_api-storage-v1-MiddleendService"></a>

### MiddleendService
Middle End (Storage Services) APIs. For example, encryption, compression, raid, QoS, multipath, ...

| Method Name | Request Type | Response Type | Description |
| ----------- | ------------ | ------------- | ------------|
| CreateCrypto | [CreateCryptoRequest](#opi_api-storage-v1-CreateCryptoRequest) | [Crypto](#opi_api-storage-v1-Crypto) | |
| DeleteCrypto | [DeleteCryptoRequest](#opi_api-storage-v1-DeleteCryptoRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |
| UpdateCrypto | [UpdateCryptoRequest](#opi_api-storage-v1-UpdateCryptoRequest) | [Crypto](#opi_api-storage-v1-Crypto) | |
| ListCrypto | [ListCryptoRequest](#opi_api-storage-v1-ListCryptoRequest) | [ListCryptoResponse](#opi_api-storage-v1-ListCryptoResponse) | |
| GetCrypto | [GetCryptoRequest](#opi_api-storage-v1-GetCryptoRequest) | [Crypto](#opi_api-storage-v1-Crypto) | |
| CryptoStats | [CryptoStatsRequest](#opi_api-storage-v1-CryptoStatsRequest) | [CryptoStatsResponse](#opi_api-storage-v1-CryptoStatsResponse) | |




Expand Down Expand Up @@ -2103,6 +2273,23 @@ confusion with storage &#34;devices&#34;.




<a name="opi_api-storage-v1-CryptoType"></a>

### CryptoType
AES encryption type to be used

| Name | Number | Description |
| ---- | ------ | ----------- |
| CRYPTO_TYPE_UNSPECIFIED | 0 | |
| CRYPTO_TYPE_AES_CBC_128 | 1 | |
| CRYPTO_TYPE_AES_CBC_192 | 2 | |
| CRYPTO_TYPE_AES_CBC_256 | 3 | |
| CRYPTO_TYPE_AES_XTS_128 | 4 | |
| CRYPTO_TYPE_AES_XTS_192 | 5 | |
| CRYPTO_TYPE_AES_XTS_256 | 6 | |





Expand Down
Loading