Documentation
¶
Index ¶
- func PatchResponseToSecret(ctx context.Context, localKube client.Client, logger logging.Logger, ...) error
- func PatchSecretsIntoBody(ctx context.Context, localKube client.Client, body string) (string, error)
- func PatchSecretsIntoHeaders(ctx context.Context, localKube client.Client, headers map[string][]string) (map[string][]string, error)
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.
Click to show internal directories.
Click to hide internal directories.