vaultify

package module
v0.0.0-...-1ec13ef Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

Vaultify

High level Vault client service provider library.

Support

  • KV
    • v1 - Data embedded metadata
    • v2 - Data embedded metadata / Vault metadata
  • Cubbyhole
  • Transit
    • Encryption / Decryption

Documentation

Overview

Package vaultify contains Vault High Level Service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuthentication

func CheckAuthentication(ctx context.Context, client *api.Client) ([]string, error)

CheckAuthentication verifies that the connection to vault is setup correctly by retrieving information about the configured token

Types

type ServiceFactory

type ServiceFactory interface {
	KV(mountPath string, opts ...kv.Option) (kv.Service, error)
	Transit(mounthPath, keyName string) (transit.Service, error)
	Cubbyhole(mountPath string) (cubbyhole.Service, error)
}

ServiceFactory defines Vault client cervice contract.

func DefaultClient

func DefaultClient() (ServiceFactory, error)

DefaultClient initialize a Vault client and wrap it in a Service factory.

func FromVaultClient

func FromVaultClient(vaultClient *api.Client) (ServiceFactory, error)

FromVaultClient wraps an existing Vault client as a Service factory.

Directories

Path Synopsis
Package logical is a generated GoMock package.
Package logical is a generated GoMock package.

Jump to

Keyboard shortcuts

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