remotesecretstorage

package
v0.0.0-...-8340aad Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteSecretStorage

type RemoteSecretStorage interface {
	secretstorage.TypedSecretStorage[api.RemoteSecret, SecretData]

	// PartialUpdate merges the data already present in the remote secret with the "dataUpdates".
	// New keys will be added, existing keys updated and keys from the "deleteKeys" array will be
	// removed from the data.
	PartialUpdate(ctx context.Context, id *api.RemoteSecret, dataUpdates *SecretData, deleteKeys []string) error
}

RemoteSecretStorage is a specialized secret storage for remote secrets.

func NewJSONSerializingRemoteSecretStorage

func NewJSONSerializingRemoteSecretStorage(secretStorage secretstorage.SecretStorage) RemoteSecretStorage

NewJSONSerializingRemoteSecretStorage is a convenience function to construct a RemoteSecretStorage instance based on the provided SecretStorage and serializing the data to JSON for persistence. The returned object is an instance of DefaultTypedSecretStorage set up to work with RemoteSecret objects as data keys and returning the SecretData instances. NOTE that the provided secret storage MUST BE initialized before this call.

type SecretData

type SecretData = map[string][]byte

Jump to

Keyboard shortcuts

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