The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::HashiCorp::Vault::Secret::LeasableBase - Perl API for HashiCorp's Vault (Secret)

VERSION

version 0.002

SYNOPSIS

 package WebService::HashiCorp::Vault::Secret::Yours;
 use Moo;
 extends 'WebService::HashiCorp::Vault::Secret::LeasableBase';

 my $obj = WebService::HashiCorp::Vault::Secret::Yours->new(
   path => 'yours',
   %others
 );

DESCRIPTION

This base class is not intented to be used directly

METHODS

auth

 my $auth = $backend->auth();

Returns

The 'auth' field of the Vault servers response.

creds

 my $credentials = $backend->creds($name);

Generates dynamic credentials based upon the named role

Paramaters

$name (string: required) - Specifies the name of the role to create credentials against. This is part of the request URL.

Returns

A hashref containing the credentials

path

 my $obj = WebService::HashiCorp::Vault::Secret::Yours->new(
     path => 'yours'
 );

 my $path = $obj->path();

Provides the path where the Secret service instance is mounted.

It is read-only once the object created.

SEE ALSO

WebService::HashiCorp::Vault

AUTHOR

Dean Hamstead <dean@bytefoundry.com.au>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Dean Hamstad.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.