Skip to content

Commit

Permalink
[storage] Add Crypto middle end volume
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb committed Nov 14, 2022
1 parent b94e8f8 commit 6aba031
Show file tree
Hide file tree
Showing 36 changed files with 15,615 additions and 51 deletions.
187 changes: 187 additions & 0 deletions storage/v1alpha1/autogen.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,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 @@ -1908,12 +1922,168 @@ Front End (host-facing) APIs. Mostly used for Virtio-scsi emulation emulation an
## 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 |
| ----- | ---- | ----- | ----------- |
| 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 |
| ----- | ---- | ----- | ----------- |
| volume_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |






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

### CryptoStatsResponse



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| 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 |
| ----- | ---- | ----- | ----------- |
| volume_id | [opi_api.common.v1.ObjectKey](#opi_api-common-v1-ObjectKey) | | |






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

### GetCryptoRequest



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| volume_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 @@ -1950,6 +2120,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

0 comments on commit 6aba031

Please sign in to comment.