[][src]Struct vdot::Args

pub struct Args {
    pub paths: Vec<String>,
    pub command: Option<String>,
    pub vault_token: String,
    pub vault_address: Url,
    pub verbose: u8,
}

Fields

paths: Vec<String>

Path to the Vault secrets

If duplicate keys are found when providing more than one path the value from the first path will be saved.

Use something like secret/foo-bar for v1 of the Vault key-value secrets engine, and secret/data/foo-bar for v2.

See https://www.vaultproject.io/docs/secrets/kv/index.html for more information.

command: Option<String>

Command to spawn

This option will spawn the given command with the environment variables downloaded from Vault.

e.g. vdot -c 'npm start' secret/foo secret/bar

vault_token: String

Vault token used to authenticate requests

This can also be provided by setting the VAULT_TOKEN environment variable.

See https://www.vaultproject.io/docs/concepts/auth.html#tokens for more information.

vault_address: Url

Vault server address

This can also be provided by setting the VAULT_ADDR environment variable.

verbose: u8

Verbose mode

Trait Implementations

impl Debug for Args[src]

impl StructOpt for Args[src]

fn from_args() -> Self[src]

Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more

fn from_iter<I>(iter: I) -> Self where
    I: IntoIterator,
    <I as IntoIterator>::Item: Into<OsString>,
    <I as IntoIterator>::Item: Clone
[src]

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
    I: IntoIterator,
    <I as IntoIterator>::Item: Into<OsString>,
    <I as IntoIterator>::Item: Clone
[src]

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

impl Send for Args

impl Sync for Args

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Erased for T