keyvault

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const PluginInterface = plugins.PluginInterface + ".azure.keyvault"
View Source
const (
	SecretKeyName = "secret"
)

Variables

This section is empty.

Functions

func GetCredentials

func GetCredentials(cfg azureconfig.Config, l hclog.Logger) (autorest.Authorizer, error)

GetCredentials gets an authorizer for Azure

func NewPlugin

func NewPlugin(c *portercontext.Context, cfg azureconfig.Config) plugin.Plugin

Types

type Plugin

type Plugin struct {
	secrets.Store
}

Plugin is the plugin wrapper for accessing secrets from Azure Key Vault.

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store implements the backing store for secrets in azure key vault.

func NewStore

func NewStore(cfg azureconfig.Config, l hclog.Logger) *Store

func (*Store) Connect

func (s *Store) Connect(ctx context.Context) error

func (*Store) Create added in v1.0.1

func (s *Store) Create(ctx context.Context, keyName string, keyValue string, value string) error

Create saves the secret to azure's keyvault using the keyValue as the secret key. It implements the Create method on the secret plugins' interface.

func (*Store) Resolve

func (s *Store) Resolve(ctx context.Context, keyName string, keyValue string) (string, error)

Jump to

Keyboard shortcuts

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