[][src]Struct secret_keeper_hashivault::HashivaultOptions

pub struct HashivaultOptions<'s> {
    pub renew_on_start: bool,
    pub initial_uri: &'s str,
}

Options for initializing HashivaultKeeper

Fields

renew_on_start: bool

If the vault token is periodic, the server can auto-renew the token at the time keeper is constructed. It does not auto-renew during runtime, so you must ensure that the token ttl is either unlimited, or at least as long as the expected runtime of the keeper. The token to be renewed is specified either with the "?token=" parameter of initial_uri, or in the environment variable VAULT_TOKEN

initial_uri: &'s str

The URI provided in opts is only currently used for initialization, and, only if renew_on_start is true. If rewnew_on_start is true, the vault server address must be provided either in the initial_uri OR in the environment variable VAULT_ADDR It is ignored for wrap and unwrap calls, in favor of the uri passed to those functions.

Implementations

impl<'o> HashivaultOptions<'o>[src]

pub fn defaults() -> Self[src]

Auto Trait Implementations

impl<'s> RefUnwindSafe for HashivaultOptions<'s>

impl<'s> Send for HashivaultOptions<'s>

impl<'s> Sync for HashivaultOptions<'s>

impl<'s> Unpin for HashivaultOptions<'s>

impl<'s> UnwindSafe for HashivaultOptions<'s>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.