postgres

package
v4.120.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SGbackupGroupVersionResource = schema.GroupVersionResource{
		Group:    "stackgres.io",
		Version:  "v1",
		Resource: "sgbackups",
	}
)

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 KubeSGBackupProvider added in v4.92.0

type KubeSGBackupProvider struct {
	DynamicClient client.NamespaceableResourceInterface
}

func (*KubeSGBackupProvider) GetSGBackup added in v4.92.0

func (k *KubeSGBackupProvider) GetSGBackup(ctx context.Context, name, namespace string) (*v1.SGBackupInfo, error)

GetSGBackup fetches SGBackup resource into unstructured.Unstructured. Relevant data is saved to v1.SGBackupInfo

func (*KubeSGBackupProvider) ListSGBackup added in v4.92.0

func (k *KubeSGBackupProvider) ListSGBackup(ctx context.Context, namespace string, options *metainternalversion.ListOptions) (*[]v1.SGBackupInfo, error)

ListSGBackup fetches SGBackup resources into unstructured.UnstructuredList. Relevant data is saved to v1.SGBackupInfo

func (*KubeSGBackupProvider) WatchSGBackup added in v4.92.0

func (k *KubeSGBackupProvider) WatchSGBackup(ctx context.Context, namespace string, options *metainternalversion.ListOptions) (watch.Interface, error)

WatchSGBackup watches SGBackup resources.

Jump to

Keyboard shortcuts

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