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 ¶
Click to show internal directories.
Click to hide internal directories.