objectstore

package
v0.20.4-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(driverName string, d Driver) error

Register registers the objectstore driver

Types

type DefaultDriver

type DefaultDriver struct {
}

DefaultDriver implements defaults for Driver interface

func (*DefaultDriver) String

func (d *DefaultDriver) String() string

func (*DefaultDriver) ValidateBackupsDeletedFromCloud

func (d *DefaultDriver) ValidateBackupsDeletedFromCloud(backupLocation *stork_api.BackupLocation, backupPath string) error

ValidateBackupsDeletedFromCloud checks it given backups are deleted from the cloud

type Driver

type Driver interface {
	// String returns the string name of this driver.
	String() string

	// ValidateBackupsDeletedFromCloud validates if bucket has been deleted from the cloud objectstore
	ValidateBackupsDeletedFromCloud(backupLocation *stork_api.BackupLocation, backupPath string) error
}

Driver defines an external volume driver interface that must be implemented

func Get

func Get() (Driver, error)

Get returns the objecstore drive

Jump to

Keyboard shortcuts

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