postgres

package
v0.17.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 GetGenericPostgresDB(client *k8s.Client, s3 *minio.Client, namespace, name, secret, version string) (*PostgresDB, error)

func GetPostgresDB

func GetPostgresDB(client *k8s.Client, s3 *minio.Client, name string) (*PostgresDB, error)

func (*PostgresDB) Backup

func (db *PostgresDB) Backup() error

func (*PostgresDB) GenerateBackupJob

func (db *PostgresDB) GenerateBackupJob() *k8s.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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL