(ctx context.Context)
| 73 | } |
| 74 | |
| 75 | func resolveKeyringBackendInfo(ctx context.Context) (secrets.KeyringBackendInfo, error) { |
| 76 | if runtime, ok := app.FromContext(ctx); ok { |
| 77 | return runtimeKeyringBackendInfo(runtime) |
| 78 | } |
| 79 | return secrets.KeyringBackendInfo{}, errRuntimeRequired |
| 80 | } |
| 81 | |
| 82 | func normalizeEmail(value string) string { |
| 83 | return strings.ToLower(strings.TrimSpace(value)) |