backend

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package backend aggregates all supported backends and allow fetching secrets from them

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	GetSecretOutput(string) secret.Output
}

Backend represents the common interface for all secret backends

type Backends

type Backends struct {
	Backends map[string]Backend
}

Backends encapsulate all known backends

func NewBackends

func NewBackends(configFile string) Backends

NewBackends returns a new Backends

func (*Backends) GetSecretOutputs

func (b *Backends) GetSecretOutputs(secrets []string) map[string]secret.Output

GetSecretOutputs returns a the value for a list of given secrets of form "<backendID>:<secret key>"

func (*Backends) InitBackend

func (b *Backends) InitBackend(backendID string, config map[string]interface{})

InitBackend initialize all the backends based on their configuration

type ErrorBackend

type ErrorBackend struct {
	BackendID string
	Error     error
}

ErrorBackend links an error to its backend

func NewErrorBackend

func NewErrorBackend(backendID string, e error) *ErrorBackend

NewErrorBackend returns a new ErrorBackend

func (*ErrorBackend) GetSecretOutput

func (b *ErrorBackend) GetSecretOutput(_ string) secret.Output

GetSecretOutput returns a the value for a specific secret

Directories

Path Synopsis
Package akeyless allows to fetch secrets from akeyless service
Package akeyless allows to fetch secrets from akeyless service
Package aws allows to fetch secrets from Aws SSM and Secrets Manager service
Package aws allows to fetch secrets from Aws SSM and Secrets Manager service
Package azure allows to fetch secrets from Azure keyvault service
Package azure allows to fetch secrets from Azure keyvault service
Package file allows to fetch secrets from JSON and YAML files
Package file allows to fetch secrets from JSON and YAML files
Package hashicorp allows to fetch secrets from Hashicorp vault service
Package hashicorp allows to fetch secrets from Hashicorp vault service

Jump to

Keyboard shortcuts

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