Crate diem_vault_client

Source

Modules§

dev

Structs§

BackupInfo
Client
Client provides a client around the restful interface to a Vault servce. Learn more here: https://www.vaultproject.io/api-docs/
KeyBackup
Key backup / restore format Example: { “policy”:{ “name”:“local_owner_key__consensus”, “keys”:{ “1”:{
KeyBackupInfo
KeyBackupPolicy
PathPolicy
Represents the set of capabilities used within a policy.
Policy
This data structure is used to represent both policies read from Vault and written to Vault. Thus the same Policy read, can then be written back after amending. Vault stores the rules or per path policies in an encoded json blob, so that effectively means json within json, hence the unusual semantics below. { rules: json!{ path: { ‘auth/’: { capabilities: [‘create’, ‘read’, ‘update’, ‘delete’, ‘list’, ‘sudo’] }, ‘sys/auth/’: { capabilities: [‘create’, ‘read’, ‘update’, ‘delete’, ‘sudo’] }, } } } Note: Vault claims rules is deprecated and policy should be used instead, but that doesn’t seem to work and makes the reading asymmetrical from the writing.
PolicyPaths
Represents the policy for a given path.
ReadKey
ReadResponse
Provides a simple wrapper for all read APIs.

Enums§

Capability
The various set of capabilities available to a policy within Vault.
Error

Functions§

process_generic_response
Processes a generic response returned by a vault request. This function simply just checks that the response was not an error and calls response.into_string() to clear the ureq stream.
process_policy_list_response
Processes the response returned by a policy list vault request.
process_policy_read_response
Processes the response returned by a policy read vault request.
process_secret_list_response
Processes the response returned by a secret list vault request.
process_secret_read_response
Processes the response returned by a secret read vault request.
process_token_create_response
Processes the response returned by a token create vault request.
process_token_renew_response
Processes the response returned by a token renew vault request.
process_transit_create_response
Processes the response returned by a transit key create vault request.
process_transit_export_response
Processes the response returned by a transit key export vault request.
process_transit_list_response
Processes the response returned by a transit key list vault request.
process_transit_read_response
Processes the response returned by a transit key read vault request.
process_transit_restore_response
Processes the response returned by a transit key restore vault request.
process_transit_sign_response
Processes the response returned by a transit key sign vault request.
process_unsealed_response
Processes the response returned by a seal-status() vault request.