postgres

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFromEvent

func GetFromEvent(in watch.Event) *v1.SGBackupInfo

GetFromEvent resolves watch.Event into v1.SGBackupInfo

func New

New returns a new storage provider for VSHNPostgresBackup

Types

type MultiWatcher

type MultiWatcher struct {
	// contains filtered or unexported fields
}

func NewEmptyMultiWatch

func NewEmptyMultiWatch() *MultiWatcher

NewEmptyMultiWatch creates an empty watch

func (*MultiWatcher) AddWatcher

func (m *MultiWatcher) AddWatcher(w watch.Interface)

AddWatcher adds a watch to this MultiWatcher

func (*MultiWatcher) ResultChan

func (m *MultiWatcher) ResultChan() <-chan watch.Event

ResultChan aggregates all channels from all watches of this MultiWatch

func (*MultiWatcher) Stop

func (m *MultiWatcher) Stop()

Stop stops all watches of this MultiWatch

Directories

Path Synopsis
Package mock_postgres is a generated GoMock package.
Package mock_postgres is a generated GoMock package.

Jump to

Keyboard shortcuts

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