dummy

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package dummy implements an example backend that can be used for testing purposes. It acceps a "suffix" as a parameter that will be appended to the key passed to the Get function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackend

func NewBackend() backend.Backend

NewBackend gives you an NewBackend Dummy Backend

Types

type Backend

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

Backend is a fake secrets backend for testing purposes

func (*Backend) Get

func (d *Backend) Get(key string, version string) (string, error)

Get a key and returns a fake secrets key + suffix

func (*Backend) Init

func (d *Backend) Init(parameters map[string]interface{}, credentials []byte) error

Init implements SecretsBackend interface, sets the suffix

Jump to

Keyboard shortcuts

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