driver

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureDriver

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

AzureDriver holds logic for retrieving secrets from Azure services

func (*AzureDriver) GetSecret

func (azureDriver *AzureDriver) GetSecret(ctx context.Context, secretURL string) (string, error)

GetSecret is a main function of the driver

type Config

type Config map[string]string

Config is a main driver configuration

type Driver

type Driver interface {
	GetSecret(ctx context.Context, secretURL string) (string, error)
}

Driver is an interfce that needs to be implemented by drivers

func New

func New(name string, config *Config, logger hclog.Logger) (Driver, error)

New returns Driver struct by name

Jump to

Keyboard shortcuts

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