Package com.datapipe.jenkins.vault
Class VaultAccessor
java.lang.Object
com.datapipe.jenkins.vault.VaultAccessor
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionVaultAccessor
(com.bettercloud.vault.VaultConfig config, VaultCredential credential) -
Method Summary
Modifier and TypeMethodDescriptiongeneratePolicies
(String policies, EnvVars envVars) com.bettercloud.vault.VaultConfig
int
int
init()
void
init
(String url, VaultCredential credential) Deprecated.static VaultConfiguration
pullAndMergeConfiguration
(Run<?, ?> build, VaultConfiguration buildConfiguration) com.bettercloud.vault.response.LogicalResponse
static boolean
responseHasErrors
(VaultConfiguration configuration, PrintStream logger, String path, com.bettercloud.vault.response.LogicalResponse response) static VaultCredential
retrieveVaultCredentials
(Run build, VaultConfiguration config) retrieveVaultSecrets
(Run<?, ?> run, PrintStream logger, EnvVars envVars, VaultAccessor vaultAccessor, VaultConfiguration initialConfiguration, List<VaultSecret> vaultSecrets) com.bettercloud.vault.response.VaultResponse
void
setConfig
(com.bettercloud.vault.VaultConfig config) void
setCredential
(VaultCredential credential) void
setMaxRetries
(int maxRetries) void
setPolicies
(List<String> policies) void
setRetryIntervalMilliseconds
(int retryIntervalMilliseconds)
-
Constructor Details
-
VaultAccessor
public VaultAccessor() -
VaultAccessor
-
-
Method Details
-
init
-
getConfig
public com.bettercloud.vault.VaultConfig getConfig() -
setConfig
public void setConfig(com.bettercloud.vault.VaultConfig config) -
getCredential
-
setCredential
-
getPolicies
-
setPolicies
-
getMaxRetries
public int getMaxRetries() -
setMaxRetries
public void setMaxRetries(int maxRetries) -
getRetryIntervalMilliseconds
public int getRetryIntervalMilliseconds() -
setRetryIntervalMilliseconds
public void setRetryIntervalMilliseconds(int retryIntervalMilliseconds) -
init
Deprecated. -
read
-
revoke
-
generatePolicies
-
retrieveVaultSecrets
public static Map<String,String> retrieveVaultSecrets(Run<?, ?> run, PrintStream logger, EnvVars envVars, VaultAccessor vaultAccessor, VaultConfiguration initialConfiguration, List<VaultSecret> vaultSecrets) -
retrieveVaultCredentials
-
responseHasErrors
public static boolean responseHasErrors(VaultConfiguration configuration, PrintStream logger, String path, com.bettercloud.vault.response.LogicalResponse response) -
pullAndMergeConfiguration
public static VaultConfiguration pullAndMergeConfiguration(Run<?, ?> build, VaultConfiguration buildConfiguration)
-