testutil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeVaultClient added in v0.4.2

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

func NewTestVault

func NewTestVault(t *testing.T) *FakeVaultClient

NewTestVault creates an unsealed in-memory vault and adds a static KV secret with a base64-encoded field `username` of value "postgres" to `kv/storage/postgres/creds`.

func (*FakeVaultClient) Read added in v0.4.2

func (c *FakeVaultClient) Read(path string) (*api.Secret, error)

Jump to

Keyboard shortcuts

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