vault

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter

type Parameter interface {
	// contains filtered or unexported methods
}

Parameter is the interface for service parameters.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

type Service

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

Service returns values from Amazon secrets manager. This service handles URLs with the scheme "asm". A full URL is of the form "asm://id:secret@region/secret". ID and secret can be supplied at creation time if preferred. region can also be supplied at creation time if preferred. If both are supplied URLs are of the form "asm:///secret". Any provision of ID and secret or of region will override the defaults.

func New

func New(ctx context.Context, params ...Parameter) (*Service, error)

New creates a new Amazon Secrets Manager confidant.

func (*Service) Fetch

func (s *Service) Fetch(ctx context.Context, url *url.URL) ([]byte, error)

Fetch fetches a value given its key.

func (*Service) SupportedURLSchemes

func (s *Service) SupportedURLSchemes(ctx context.Context) ([]string, error)

SupportedURLSchemes provides the list of schemes supported by this confidant.

Jump to

Keyboard shortcuts

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