datapatcher

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PatchResponseToSecret

func PatchResponseToSecret(ctx context.Context, localKube client.Client, logger logging.Logger, data *httpClient.HttpResponse, path, secretKey, secretName, secretNamespace string) error

PatchResponseToSecret patches response data into a Kubernetes secret.

func PatchSecretsIntoBody

func PatchSecretsIntoBody(ctx context.Context, localKube client.Client, body string) (string, error)

PatchSecretsIntoBody patches secrets into the provided string body.

func PatchSecretsIntoHeaders

func PatchSecretsIntoHeaders(ctx context.Context, localKube client.Client, headers map[string][]string) (map[string][]string, error)

PatchSecretsIntoHeaders takes a map of headers and applies security measures to sensitive values within the headers. It creates a copy of the input map to avoid modifying the original map and iterates over the copied map to process each list of headers. It then applies the necessary modifications to each header using patchSecretsToValue function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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