Skip to content

Commit 15ca38c

Browse files
Add charm library code and imported literals (#1)
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
1 parent 7ca44cd commit 15ca38c

File tree

4 files changed

+1806
-0
lines changed

4 files changed

+1806
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Copyright 2025 Canonical Ltd.
2+
# See LICENSE file for licensing details.
3+
"""The configuration constants and objects used by the charms."""
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2025 Canonical Ltd.
2+
# See LICENSE file for licensing details.
3+
"""Literal string for the different charms.
4+
5+
This module should contain the literals used in the charms (paths, enums, etc).
6+
"""
7+
8+
# Users.
9+
BACKUP_USER = "backup"
10+
MONITORING_USER = "monitoring"
11+
REPLICATION_USER = "replication"
12+
REWIND_USER = "rewind"
13+
USER = "operator"
14+
SYSTEM_USERS = [MONITORING_USER, REPLICATION_USER, REWIND_USER, USER]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Copyright 2025 Canonical Ltd.
2+
# See LICENSE file for licensing details.
3+
"""Utils and helpers for PostgreSQL charms."""

0 commit comments

Comments
 (0)