provider

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory added in v0.2.1

type Factory struct {
	ProviderType string
	Validator    func(envValue string) bool
	Create       func(ctx context.Context, cfg *common.Config) (Provider, error)
}

type Provider

type Provider interface {
	// LoadSecrets loads secrets from the provider based on the given paths
	LoadSecrets(ctx context.Context, paths []string) ([]Secret, error)
}

Provider is an interface for securely loading secrets based on environment variables.

type Secret

type Secret struct {
	Key   string
	Value string
}

Secret holds Provider-specific secret data.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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