Documentation ¶
Index ¶
- Constants
- type PostgresDB
- func (db *PostgresDB) Backup() error
- func (db *PostgresDB) GenerateBackupJob() *kommons.DeploymentBuilder
- func (db *PostgresDB) ListBackups() ([]string, error)
- func (db *PostgresDB) Restore(backup string) error
- func (db *PostgresDB) ScheduleBackup(schedule string) error
- func (db *PostgresDB) String() string
Constants ¶
View Source
const Namespace = "postgres-operator"
View Source
const OperatorConfig = "default"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresDB ¶
type PostgresDB struct { Name string Namespace string Secret string Superuser string // contains filtered or unexported fields }
nolint: golint
func GetGenericPostgresDB ¶
func GetPostgresDB ¶
func (*PostgresDB) Backup ¶
func (db *PostgresDB) Backup() error
func (*PostgresDB) GenerateBackupJob ¶
func (db *PostgresDB) GenerateBackupJob() *kommons.DeploymentBuilder
func (*PostgresDB) ListBackups ¶
func (db *PostgresDB) ListBackups() ([]string, error)
func (*PostgresDB) Restore ¶
func (db *PostgresDB) Restore(backup string) error
func (*PostgresDB) ScheduleBackup ¶
func (db *PostgresDB) ScheduleBackup(schedule string) error
func (*PostgresDB) String ¶
func (db *PostgresDB) String() string
Click to show internal directories.
Click to hide internal directories.