(ctx context.Context, arg database.GetUserSecretByUserIDAndNameParams)
| 891 | } |
| 892 | |
| 893 | func (db *dbCrypt) GetUserSecretByUserIDAndName(ctx context.Context, arg database.GetUserSecretByUserIDAndNameParams) (database.UserSecret, error) { |
| 894 | secret, err := db.Store.GetUserSecretByUserIDAndName(ctx, arg) |
| 895 | if err != nil { |
| 896 | return database.UserSecret{}, err |
| 897 | } |
| 898 | if err := db.decryptField(&secret.Value, secret.ValueKeyID); err != nil { |
| 899 | return database.UserSecret{}, err |
| 900 | } |
| 901 | return secret, nil |
| 902 | } |
| 903 | |
| 904 | func (db *dbCrypt) ListUserSecretsWithValues(ctx context.Context, userID uuid.UUID) ([]database.UserSecret, error) { |
| 905 | secrets, err := db.Store.ListUserSecretsWithValues(ctx, userID) |
nothing calls this directly
no test coverage detected