akeyless

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: 8 Imported by: 0

Documentation

Overview

Package akeyless allows to fetch secrets from akeyless service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAkeylessConfigFromBackendConfig

func NewAkeylessConfigFromBackendConfig(akeylessURL string, sessionConfig SessionBackendConfig) (string, error)

NewAkeylessConfigFromBackendConfig returns a new config for Akeyless

Types

type Backend

type Backend struct {
	BackendID string
	Config    BackendConfig
	Token     string
}

Backend represents backend for Akeyless

func NewAkeylessBackend

func NewAkeylessBackend(backendID string, bc map[string]interface{}) (*Backend, error)

NewAkeylessBackend returns a new Akeyless backend

func (*Backend) GetSecretOutput

func (b *Backend) GetSecretOutput(secretKey string) secret.Output

GetSecretOutput returns a the value for a specific secret

type BackendConfig

type BackendConfig struct {
	AkeylessSession SessionBackendConfig `mapstructure:"akeyless_session"`
	BackendType     string               `mapstructure:"backend_type"`
	AkeylessURL     string               `mapstructure:"akeyless_url"`
}

BackendConfig is the configuration for a akeyless backend

type SessionBackendConfig

type SessionBackendConfig struct {
	AkeylessAccessID  string `mapstructure:"akeyless_access_id"`
	AkeylessAccessKey string `mapstructure:"akeyless_access_key"`
}

SessionBackendConfig is the session configuration for Akeyless

Jump to

Keyboard shortcuts

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