fake

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package fake is a fake Vault KVClient.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVClient

type KVClient struct {
	GetFn    func(path string, secret *kv.Secret) error
	ApplyFn  func(path string, secret *kv.Secret, ao ...kv.ApplyOption) error
	DeleteFn func(path string) error
}

KVClient is a fake KVClient.

func (*KVClient) Apply

func (k *KVClient) Apply(path string, secret *kv.Secret, ao ...kv.ApplyOption) error

Apply creates or updates a secret at a given path.

func (*KVClient) Delete

func (k *KVClient) Delete(path string) error

Delete deletes a secret at a given path.

func (*KVClient) Get

func (k *KVClient) Get(path string, secret *kv.Secret) error

Get fetches a secret at a given path.

Jump to

Keyboard shortcuts

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