driver

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSDriver added in v0.4.0

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

AWSDriver holds logic for retrieving secrets from AWS services

func (*AWSDriver) GetSecret added in v0.4.0

func (awsDriver *AWSDriver) GetSecret(ctx context.Context, secretURL string) (string, error)

GetSecret is a main function of the driver

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