Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
An interface for hydra vault
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayangODC committed Apr 10, 2019
1 parent 60101a1 commit 1f82be9
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
16 changes: 16 additions & 0 deletions hydra-vault/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>hydra-parent</artifactId>
<groupId>com.addthis.hydra</groupId>
<version>5.6.83-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>hydra-vault</artifactId>
<name>Hydra Vault Module</name>


</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.addthis.hydra.vault;

import java.io.IOException;

/**
* Provides the method to get vault object
*/
public interface VaultWrapper {
public void login(String vault_server) throws IOException;
public void put(String path, String key, String secret);
public String get(String path, String key);
}
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<module>hydra-task</module>
<module>hydra-uber</module>
<module>hydra-meshy-http</module>
<module>hydra-vault</module>
</modules>

<profiles>
Expand Down

0 comments on commit 1f82be9

Please sign in to comment.