state

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upsert

func Upsert(secretToStore entity.SecretStored,
	appendValue bool, workloadId string, cid string,
	j entity.JournalEntry, w http.ResponseWriter,
)

Upsert handles the insertion or update of a secret in the application's state. It supports appending values to existing secrets and logs the completion of the operation. If specified, it also sends an HTTP response indicating success.

Parameters:

  • secretToStore (entity.SecretStored): The secret entity to be inserted or updated.
  • appendValue (bool): A flag indicating whether to append the value to an existing secret (if true) or overwrite the existing secret (if false).
  • workloadId (string): The identifier of the workload associated with the secret operation, used for logging purposes.
  • cid (string): Correlation ID for operation tracing and logging.
  • j (audit.JournalEntry): An audit journal entry for recording the event.
  • w (http.ResponseWriter): The HTTP response writer to send back the operation's outcome.

Types

This section is empty.

Jump to

Keyboard shortcuts

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