murmur

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Filters = map[string]Filter{

	"jsonpath": jsonpath.Filter,
}
View Source
var ProviderFactories = map[string]ProviderFactory{

	"passthrough": func() (Provider, error) { return passthrough.New() },

	"azkv": func() (Provider, error) { return azkv.New() },

	"gcpsm": func() (Provider, error) { return gcpsm.New() },

	"awssm": func() (Provider, error) { return awssm.New() },

	"scwsm": func() (Provider, error) { return scwsm.New() },
}

ProviderFactories contains a ProviderFactory for each prefix known to murmur.

Functions

func ResolveAll

func ResolveAll(vars map[string]string) (map[string]string, error)

ResolveAll returns a map with the same keys as vars, where all values with known prefixes have been replaced with their values.

func Run

func Run(name string, args ...string) (exitCode int, err error)

Types

type Filter

type Filter func(value, rule string) (string, error)

A Filter transforms a value obtained from a secret store into another value based on the given rule.

type Provider

type Provider interface {
	// Resolve returns the value of the secret with the given ref. Resolve never
	// gets called after Close.
	Resolve(ctx context.Context, ref string) (string, error)

	// Close signals to the provider that it can release any resources it has
	// allocated, like network connections. Close should return once those
	// resources are released.
	Close() error
}

A Provider fetches values from a secret store.

type ProviderFactory

type ProviderFactory func() (Provider, error)

A ProviderFactory returns a new Provider.

Directories

Path Synopsis
filters
providers

Jump to

Keyboard shortcuts

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