Documentation ¶
Index ¶
- Variables
- func GetFromEvent(in watch.Event) *v1.SGBackupInfo
- func New() restbuilder.ResourceHandlerProvider
- type KubeSGBackupProvider
- func (k *KubeSGBackupProvider) GetSGBackup(ctx context.Context, name, namespace string) (*v1.SGBackupInfo, error)
- func (k *KubeSGBackupProvider) ListSGBackup(ctx context.Context, namespace string, ...) (*[]v1.SGBackupInfo, error)
- func (k *KubeSGBackupProvider) WatchSGBackup(ctx context.Context, namespace string, ...) (watch.Interface, error)
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 ¶
func New() restbuilder.ResourceHandlerProvider
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.
Click to show internal directories.
Click to hide internal directories.