Documentation
¶
Index ¶
- Constants
- type PostgresDB
- func (db *PostgresDB) Backup() error
- func (db *PostgresDB) GenerateBackupJob() *kommons.DeploymentBuilder
- func (db *PostgresDB) ListBackups(s3Bucket string, limit int, quiet bool) ([]string, error)
- func (db *PostgresDB) Restore(fullBackupPath string) error
- func (db *PostgresDB) ScheduleBackup(schedule string) error
- func (db *PostgresDB) String() string
- type ResticSnapshot
Constants ¶
View Source
const Namespace = "postgres-operator"
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 GetPostgresDB ¶
func GetPostgresDB(client *kommons.Client, name string) (*PostgresDB, error)
func (*PostgresDB) Backup ¶
func (db *PostgresDB) Backup() error
func (*PostgresDB) GenerateBackupJob ¶
func (db *PostgresDB) GenerateBackupJob() *kommons.DeploymentBuilder
func (*PostgresDB) ListBackups ¶
func (*PostgresDB) Restore ¶
func (db *PostgresDB) Restore(fullBackupPath 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.