backend

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: BSD-3-Clause Imports: 7 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 the secret backends

type ErrorBackend

type ErrorBackend struct {
	Error error
}

ErrorBackend links an error to its backend

func NewErrorBackend

func NewErrorBackend(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

type GenericConnector added in v1.0.0

type GenericConnector struct {
	Backend Backend
}

GenericConnector encapsulate all known backends

func (*GenericConnector) GetSecretOutputs added in v1.0.0

func (g *GenericConnector) GetSecretOutputs(secrets []string) map[string]secret.Output

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

func (*GenericConnector) InitBackend added in v1.0.0

func (g *GenericConnector) InitBackend(backendType string, backendConfig map[string]interface{})

InitBackend initialize the backend based on their configuration

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