vault

package
v1.40.6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package vault provides a simple interface to the Vault API, allowing the secrets retrieval for running integration tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// DSV SPECIFIC ENV VARIABLES.
	DomainEnv       string `env:"DSV_DOMAIN,notEmpty"`                 // DomainEnv is the tenant domain name (e.g. example.secretsvaultcloud.com).
	ClientIDEnv     string `env:"DSV_CLIENT_ID,notEmpty"`              // ClientIDEnv for client based authentication.
	TenantIDEnv     string `env:"DSV_TENANT_ID,notEmpty"`              // TenantIDEnv is the DSV Tenant name. This is just the `example` of `example.secretsvaultcloud.com`.
	TLDEnv          string `env:"DSV_TLD" envDefault:"com"`            // TLDEnv is the DSV top level domain. Default of `com`.
	ClientSecretEnv string `json:"-" env:"DSV_CLIENT_SECRET,notEmpty"` // ClientSecretEnv is the client secret token for authentication.
}

func ParseDSVConfig

func ParseDSVConfig() (Config, error)

type Vault

type Vault mg.Namespace

Vault is the mage namespace for tasks related to DelineaXPM vault.

Jump to

Keyboard shortcuts

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