[−][src]Struct vdot::Args
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.
e.g. vdot secret/foo secret/bar
See https://www.vaultproject.io/docs/secrets/kv/index.html for more information.
output: PathBuf
Write to the given file
e.g. vdot --output .env.test secret/foo
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
vault_token: String
Vault token used to authenticate requests
This can also be provided by setting the VAULT_TOKEN environment variable.
e.g. vdot --vault-token $(cat ~/.vault-token) secret/foo
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.
e.g. vdot --vault-address http://127.0.0.1:8200 secret/foo
verbose: u8
Verbose mode
Trait Implementations
impl Debug for Args
[src]
impl StructOpt for Args
[src]
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn from_clap(matches: &ArgMatches) -> Self
[src]
fn from_args() -> Self
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
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]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Auto Trait Implementations
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
impl RefUnwindSafe for Args
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,