inmemory

package
v0.40.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client implements an in-memory secret client.

The in-memory client is suitable for testing and development.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, name string) error

Delete deletes the secret data if it is present in the store, otherwise returns an ErrNotFound.

func (*Client) Get

func (c *Client) Get(ctx context.Context, name string) ([]byte, error)

Get returns the secret data if it is found, otherwise returns an ErrNotFound.

func (*Client) Save

func (c *Client) Save(ctx context.Context, name string, value []byte) error

Save saves the secret data.

Jump to

Keyboard shortcuts

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