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