Skip to content
This repository was archived by the owner on Aug 2, 2020. It is now read-only.
kunickiajPublic archive

About

Hashicorp Vault client library written in Kotlin

Resources

Stars

15 stars

Watchers

1 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

vault-kotlin

Download Kotlin Build Status License

Hashicorp Vault client library written in Kotlin

Install

Releases

Releases are published to jCenter.

Building From Source

Gradle:

./gradlew install

Basic Usage

val conf = VaultConfiguration("https://vault:8200", "vault token")
val vault = Vault(conf)

vault.logical.write("/secret/hello", listOf("value" to "world"))
val secret = vault.logical.read("/secret")

if (secret.data["value"] == "world") {
  println("It works!")
}

For more examples please take a look at the tests.

Note: This library is still under heavy development and the API is not yet stable. Use at your own risk! Once it has stabilized I'll begin publishing artifacts.

Contributions are welcome.

About

Hashicorp Vault client library written in Kotlin

Resources

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages