Skip to content

Commit

Permalink
bump Up open-api version to 6.6.0 of rust implementation of cactus-pl…
Browse files Browse the repository at this point in the history
…ugin-keychain-memory-wasm
  • Loading branch information
solo-daemon committed May 12, 2024
1 parent 6d4cf82 commit b0f31fe
Show file tree
Hide file tree
Showing 18 changed files with 699 additions and 368 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
.cargo/config
.gitignore
.openapi-generator-ignore
Cargo.toml
README.md
api/openapi.yaml
docs/DeleteKeychainEntryRequestV1.md
docs/DeleteKeychainEntryResponseV1.md
docs/GetKeychainEntryRequest.md
docs/GetKeychainEntryResponse.md
docs/GetKeychainEntryRequestV1.md
docs/GetKeychainEntryResponseV1.md
docs/HasKeychainEntryRequestV1.md
docs/HasKeychainEntryResponseV1.md
docs/PrometheusExporterMetricsResponse.md
docs/SetKeychainEntryRequest.md
docs/SetKeychainEntryResponse.md
docs/SetKeychainEntryRequestV1.md
docs/SetKeychainEntryResponseV1.md
docs/default_api.md
examples/ca.pem
examples/client/main.rs
examples/server-chain.pem
examples/server-key.pem
examples/server/main.rs
examples/server/server.rs
src/client/mod.rs
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.2.0
6.6.0
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "openapi_client"
version = "0.3.0"
authors = []
description = "Contains/describes the Keychain API types/paths for Hyperledger Cactus."
license = "Unlicense"
version = "2.0.0-alpha.2"
authors = ["OpenAPI Generator team and contributors"]
description = "Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript."
license = "Apache-2.0"
edition = "2018"

[features]
Expand All @@ -18,18 +18,18 @@ conversion = ["frunk", "frunk_derives", "frunk_core", "frunk-enum-core", "frunk-

[target.'cfg(any(target_os = "macos", target_os = "windows", target_os = "ios"))'.dependencies]
native-tls = { version = "0.2", optional = true }
hyper-tls = { version = "0.4", optional = true }
hyper-tls = { version = "0.5", optional = true }

[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dependencies]
hyper-openssl = { version = "0.8", optional = true }
hyper-openssl = { version = "0.9", optional = true }
openssl = {version = "0.10", optional = true }

[dependencies]
# Common
async-trait = "0.1.24"
chrono = { version = "0.4", features = ["serde"] }
futures = "0.3"
swagger = "5.0.2"
swagger = { version = "6.1", features = ["serdejson", "server", "client", "tls", "tcp"] }
log = "0.4.0"
mime = "0.3"

Expand All @@ -39,7 +39,7 @@ serde_json = "1.0"
# Crates included if required by the API definition

# Common between server and client features
hyper = {version = "0.13", optional = true}
hyper = {version = "0.14", features = ["full"], optional = true}
serde_ignored = {version = "0.1.1", optional = true}
url = {version = "2.1", optional = true}

Expand All @@ -60,12 +60,11 @@ frunk-enum-core = { version = "0.2.0", optional = true }
[dev-dependencies]
clap = "2.25"
env_logger = "0.7"
tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"] }
tokio = { version = "1.14", features = ["full"] }
native-tls = "0.2"
tokio-tls = "0.3"

[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies]
tokio-openssl = "0.4"
tokio-openssl = "0.6"
openssl = "0.10"

[[example]]
Expand All @@ -75,3 +74,7 @@ required-features = ["client"]
[[example]]
name = "server"
required-features = ["server"]

[[bin]]
name = "test_binary"
path = "./"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Rust API for openapi_client

Contains/describes the Keychain API types/paths for Hyperledger Cactus.
Contains/describes the Hyperledger Cactus Keychain Memory WASM plugin which is designed to help with testing and development and is implemented in Rust instead of Typescript.

## Overview

Expand All @@ -13,8 +13,8 @@ To see how to make this your own, look here:

[README]((https://openapi-generator.tech))

- API version: 0.3.0
- Build date: 2021-10-04T20:30:49.096004-07:00[America/Los_Angeles]
- API version: v2.0.0-alpha.2
- Build date: 2024-05-11T23:27:48.468+05:30[Asia/Kolkata]



Expand Down Expand Up @@ -61,9 +61,6 @@ cargo run --example server
To run a client, follow one of the following simple steps:

```
cargo run --example client DeleteKeychainEntryV1
cargo run --example client GetPrometheusMetricsV1
cargo run --example client HasKeychainEntryV1
```

### HTTPS
Expand Down Expand Up @@ -97,28 +94,26 @@ All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**deleteKeychainEntryV1**](docs/default_api.md#deleteKeychainEntryV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/delete-keychain-entry | Deletes an entry from the keychain stored under the provided key.
[**getKeychainEntryV1**](docs/default_api.md#getKeychainEntryV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/get-keychain-entry | Retrieves the contents of a keychain entry from the backend.
[**getPrometheusMetricsV1**](docs/default_api.md#getPrometheusMetricsV1) | **GET** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/get-prometheus-exporter-metrics | Get the Prometheus Metrics
[**hasKeychainEntryV1**](docs/default_api.md#hasKeychainEntryV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/has-keychain-entry | Retrieves the information regarding a key being present on the keychain or not.
[**setKeychainEntryV1**](docs/default_api.md#setKeychainEntryV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-vault/set-keychain-entry | Sets a value under a key on the keychain backend.
[**deleteKeychainEntryV1**](docs/default_api.md#deleteKeychainEntryV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/delete-keychain-entry | Deletes an entry under a key on the keychain backend.
[**getKeychainEntryV1**](docs/default_api.md#getKeychainEntryV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/get-keychain-entry | Retrieves the contents of a keychain entry from the backend.
[**hasKeychainEntryV1**](docs/default_api.md#hasKeychainEntryV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/has-keychain-entry | Checks that an entry exists under a key on the keychain backend
[**setKeychainEntryV1**](docs/default_api.md#setKeychainEntryV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/set-keychain-entry | Sets a value under a key on the keychain backend.


## Documentation For Models

- [DeleteKeychainEntryRequestV1](docs/DeleteKeychainEntryRequestV1.md)
- [DeleteKeychainEntryResponseV1](docs/DeleteKeychainEntryResponseV1.md)
- [GetKeychainEntryRequest](docs/GetKeychainEntryRequest.md)
- [GetKeychainEntryResponse](docs/GetKeychainEntryResponse.md)
- [GetKeychainEntryRequestV1](docs/GetKeychainEntryRequestV1.md)
- [GetKeychainEntryResponseV1](docs/GetKeychainEntryResponseV1.md)
- [HasKeychainEntryRequestV1](docs/HasKeychainEntryRequestV1.md)
- [HasKeychainEntryResponseV1](docs/HasKeychainEntryResponseV1.md)
- [PrometheusExporterMetricsResponse](docs/PrometheusExporterMetricsResponse.md)
- [SetKeychainEntryRequest](docs/SetKeychainEntryRequest.md)
- [SetKeychainEntryResponse](docs/SetKeychainEntryResponse.md)
- [SetKeychainEntryRequestV1](docs/SetKeychainEntryRequestV1.md)
- [SetKeychainEntryResponseV1](docs/SetKeychainEntryResponseV1.md)


## Documentation For Authorization
Endpoints do not require authorization.
Endpoints do not require authorization.


## Author
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# DeleteKeychainEntryRequestV1

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**key** | **String** | The key for the entry to check the presence of on the keychain. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# DeleteKeychainEntryResponseV1

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**key** | **String** | The key that was deleted from the keychain. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# GetKeychainEntryRequestV1

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**key** | **String** | The key for the entry to get from the keychain. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GetKeychainEntryResponseV1

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**key** | **String** | The key that was used to retrieve the value from the keychain. |
**value** | **String** | The value associated with the requested key on the keychain. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# HasKeychainEntryRequestV1

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**key** | **String** | The key to check for presence in the keychain. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# HasKeychainEntryResponseV1

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**key** | **String** | The key that was used to check the presence of the value in the entry store. |
**checked_at** | **String** | Date and time encoded as JSON when the presence check was performed by the plugin backend. |
**is_present** | **bool** | The boolean true or false indicating the presence or absence of an entry under 'key'. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SetKeychainEntryRequestV1

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**key** | **String** | The key for the entry to set on the keychain. |
**value** | **String** | The value that will be associated with the key on the keychain. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SetKeychainEntryResponseV1

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**key** | **String** | The key that was used to set the value on the keychain. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# default_api

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
**deleteKeychainEntryV1**](default_api.md#deleteKeychainEntryV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/delete-keychain-entry | Deletes an entry under a key on the keychain backend.
**getKeychainEntryV1**](default_api.md#getKeychainEntryV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/get-keychain-entry | Retrieves the contents of a keychain entry from the backend.
**hasKeychainEntryV1**](default_api.md#hasKeychainEntryV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/has-keychain-entry | Checks that an entry exists under a key on the keychain backend
**setKeychainEntryV1**](default_api.md#setKeychainEntryV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory-wasm/set-keychain-entry | Sets a value under a key on the keychain backend.


# **deleteKeychainEntryV1**
> models::DeleteKeychainEntryResponseV1 deleteKeychainEntryV1(delete_keychain_entry_request_v1)
Deletes an entry under a key on the keychain backend.

### Required Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**delete_keychain_entry_request_v1** | [**DeleteKeychainEntryRequestV1**](DeleteKeychainEntryRequestV1.md)| Request body to delete a keychain entry via its key |

### Return type

[**models::DeleteKeychainEntryResponseV1**](DeleteKeychainEntryResponseV1.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **getKeychainEntryV1**
> models::GetKeychainEntryResponseV1 getKeychainEntryV1(get_keychain_entry_request_v1)
Retrieves the contents of a keychain entry from the backend.

### Required Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**get_keychain_entry_request_v1** | [**GetKeychainEntryRequestV1**](GetKeychainEntryRequestV1.md)| Request body to obtain a keychain entry via its key |

### Return type

[**models::GetKeychainEntryResponseV1**](GetKeychainEntryResponseV1.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **hasKeychainEntryV1**
> models::HasKeychainEntryResponseV1 hasKeychainEntryV1(has_keychain_entry_request_v1)
Checks that an entry exists under a key on the keychain backend

### Required Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**has_keychain_entry_request_v1** | [**HasKeychainEntryRequestV1**](HasKeychainEntryRequestV1.md)| Request body for checking a keychain entry via its key |

### Return type

[**models::HasKeychainEntryResponseV1**](HasKeychainEntryResponseV1.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **setKeychainEntryV1**
> models::SetKeychainEntryResponseV1 setKeychainEntryV1(set_keychain_entry_request_v1)
Sets a value under a key on the keychain backend.

### Required Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**set_keychain_entry_request_v1** | [**SetKeychainEntryRequestV1**](SetKeychainEntryRequestV1.md)| Request body to write/update a keychain entry via its key |

### Return type

[**models::SetKeychainEntryResponseV1**](SetKeychainEntryResponseV1.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

Loading

0 comments on commit b0f31fe

Please sign in to comment.