Documentation ¶
Index ¶
- func CreateBackup(request *msgs.CreateBackupRequest, ns, pgouser string) msgs.CreateBackupResponse
- func CreateBackupHandler(w http.ResponseWriter, r *http.Request)
- func DeleteBackup(clusterName, ns string) msgs.DeleteBackupResponse
- func DeleteBackupHandler(w http.ResponseWriter, r *http.Request)
- func Restore(request *msgs.PgbasebackupRestoreRequest, ns string) msgs.PgbasebackupRestoreResponse
- func RestoreHandler(w http.ResponseWriter, r *http.Request)
- func ShowBackup(name, ns string) msgs.ShowBackupResponse
- func ShowBackupHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBackup ¶
func CreateBackup(request *msgs.CreateBackupRequest, ns, pgouser string) msgs.CreateBackupResponse
CreateBackup ...
pgo backup mycluster pgo backup all pgo backup --selector=name=mycluster
func CreateBackupHandler ¶
func CreateBackupHandler(w http.ResponseWriter, r *http.Request)
CreateBackupHandler ... pgo backup all pgo backup --selector=name=mycluster pgo backup mycluster
func DeleteBackup ¶
func DeleteBackup(clusterName, ns string) msgs.DeleteBackupResponse
DeleteBackup ...
func DeleteBackupHandler ¶
func DeleteBackupHandler(w http.ResponseWriter, r *http.Request)
DeleteBackupHandler ... returns a ShowBackupResponse
func Restore ¶
func Restore(request *msgs.PgbasebackupRestoreRequest, ns string) msgs.PgbasebackupRestoreResponse
Restore takes a PgbasebackupRestoreRequest, creates the pgtask's needed to initiate the restore of a cluster using a pg_basebackup backup, and then returns a PgbasebackupRestoreResponse
func RestoreHandler ¶
func RestoreHandler(w http.ResponseWriter, r *http.Request)
RestoreHandler takes a GET request for URL path '/pgbasebackuprestore', calls the required business logic to perform a pg_basebackup restore, and then returns the appropriate response
func ShowBackupHandler ¶
func ShowBackupHandler(w http.ResponseWriter, r *http.Request)
ShowBackupHandler ... returns a ShowBackupResponse
Types ¶
This section is empty.