pluginstore

package
v1.0.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package pluginstore is an internal Porter package that implements the plugins.SecretsPlugin interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSecretsPluginConfig

func NewSecretsPluginConfig() pluggable.PluginTypeConfig

NewSecretsPluginConfig for secret sources.

Types

type Store

type Store struct {
	*config.Config
	// contains filtered or unexported fields
}

Store is a plugin-backed source of secrets. It resolves the appropriate plugin based on Porter's config and implements the plugins.SecretsProtocol interface using the backing plugin.

Connects just-in-time, but you must call Close to release resources.

func NewStore

func NewStore(c *config.Config) *Store

func (*Store) Close

func (s *Store) Close() error

func (*Store) Connect

func (s *Store) Connect() error

func (*Store) Resolve added in v1.0.1

func (s *Store) Resolve(keyName string, keyValue string) (string, error)

Jump to

Keyboard shortcuts

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