You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// SubscribeToChanges registers a callback to be invoked whenever secrets are resolved or refreshed
41
41
SubscribeToChanges(callbackSecretChangeCallback)
42
-
// Refresh schedules a throttled asynchronous secret refresh. Returns true if the
43
-
// secret refresh mechanism is enabled (backend configured and refresh interval set).
44
-
Refresh() bool
45
-
// RefreshNow performs an immediate blocking secret refresh, returning an informative message suitable for user display.
46
-
RefreshNow() (string, error)
47
-
// IsValueFromSecret returns true if the given value was ever resolved from a secret handle.
48
-
IsValueFromSecret(valuestring) bool
42
+
// Refresh will resolve secret handles again, notifying any subscribers of changed values.
43
+
// If updateNow is true, the function performs the refresh immediately and blocks, returning an informative message suitable for user display.
44
+
// If updateNow is false, the function will asynchronously perform a refresh, and may fail to refresh due to throttling. No message is returned, just an empty string.
45
+
Refresh(updateNowbool) (string, error)
49
46
// RemoveOrigin removes a origin from the internal cache of the secret component. This does not remove secrets
50
47
// from the cache but the reference where those secrets are used.
tlmSecretBackendElapsed: telemetry.NewGauge("secret_backend", "elapsed_ms", []string{"command", "exit_code"}, "Elapsed time of secret backend invocation"),
148
143
tlmSecretUnmarshalError: telemetry.NewCounter("secret_backend", "unmarshal_errors_count", []string{}, "Count of errors when unmarshalling the output of the secret binary"),
149
144
tlmSecretResolveError: telemetry.NewCounter("secret_backend", "resolve_errors_count", []string{"error_kind", "handle"}, "Count of errors when resolving a secret"),
// Refresh will resolve secret handles again, notifying any subscribers of changed values.
678
+
// If updateNow is true, the function performs the refresh immediately and blocks, returning an informative message suitable for user display.
679
+
// If updateNow is false, the function will asynchronously perform a refresh, and may fail to refresh due to throttling. No message is returned, just an empty string.
0 commit comments