Documentation
¶
Overview ¶
Package postgres contains the implementation of the backupengine for PostgreSQL
Index ¶
- type Engine
- func (e *Engine) CreateBackup(w io.Writer) error
- func (e *Engine) GetPodSpec(imagePrefix string) (coreV1.PodSpec, error)
- func (e *Engine) Init(options opts.InitOpts) error
- func (e *Engine) RestoreBackup(r io.ReaderAt, size int64) error
- func (Engine) Unpack(r io.ReaderAt, size int64, destDir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine implements backupengine interface
func (*Engine) CreateBackup ¶
CreateBackup is used to instruct the backup engine to create a backup. The means of doing so depends on the engine itself.
func (*Engine) GetPodSpec ¶
GetPodSpec generates a pod-spec from the given backup specificiation containing required volume mounts from secrets or envFrom definitions (and possible other special cases). The mounted secret will be added by the controller.
func (*Engine) Init ¶
Init is called once per backup engine and allows to execute one-shot initialization tasks like registering new HTTP handlers
func (*Engine) RestoreBackup ¶
RestoreBackup receives an io.ReaderAt with the contents of the backup to be restored and the size of the backup. The means of doing so depends on the engine itself. The contents of the reader will be the same the engine provided during the CreateBackup result