VaultConfigBuilder - abedra/libvault GitHub Wiki
This library uses a builder to create the initial configuration for the VaultClient
object. The config provided by the builder should be passed to the VaultClient
constructor. The builder allows the following options:
Option | type | Description | Default |
---|---|---|---|
tls | bool | HTTP or HTTPS | true |
debug | bool | Prints CURL output | false |
verify | bool | Enables SSL Certificate verification | true |
host | string | Vault host | localhost |
port | string | Vault port | 8200 |
ns | string | Namespace | empty |
An full example with all options is as follows:
auto config = VaultConfig::make()
.host("example.com")
.port("8200")
.tls(true)
.verify(true)
.debug(true)
.getConfig();