server

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.0.1"

Version defines the version of the server

Variables

This section is empty.

Functions

func NewVaultPool

func NewVaultPool(vaultURL, prefix, store string) s.Pool

NewVaultPool creates a new pool of Vault stores. VaultURL is the URL of the Vault server to connect to. prefix is the string prefix used when storing the secrets in Vault. store the store path used when storing secrets.

func RunServer

func RunServer()

RunServer starts the Vault Backend TCP server

Types

type VaultPool

type VaultPool struct {
	// contains filtered or unexported fields
}

VaultPool is an implementation of Pool that manages Vault stores.

func (*VaultPool) Delete

func (vp *VaultPool) Delete(identifier string)

Delete removes the Vault store associated with the identifier. Invoking delete using a non-existing identifier has no effect.

func (*VaultPool) Get

func (vp *VaultPool) Get(identifier string) (val s.Store, err error)

Get creates or retrieves a Vault store given an identifier.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL