Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareInstances ¶
func CompareInstances(a, b *ServiceInstance) error
func CreateBackpURI ¶ added in v0.3.1
func CreateBackpURI(obj *ServiceInstance, backupName, backupLocation string) (string, string, error)
This function returns the backup URI, the region that was picked to be the backup resource location and error.
func IsNotFoundErr ¶ added in v0.2.0
Types ¶
type BackupInfo ¶ added in v0.3.1
type BackupInfo struct { Backup *filev1beta1.Backup SourceVolumeHandle string }
type Service ¶
type Service interface { CreateInstance(ctx context.Context, obj *ServiceInstance) (*ServiceInstance, error) DeleteInstance(ctx context.Context, obj *ServiceInstance) error GetInstance(ctx context.Context, obj *ServiceInstance) (*ServiceInstance, error) ListInstances(ctx context.Context, obj *ServiceInstance) ([]*ServiceInstance, error) ResizeInstance(ctx context.Context, obj *ServiceInstance) (*ServiceInstance, error) GetBackup(ctx context.Context, backupUri string) (*BackupInfo, error) CreateBackup(ctx context.Context, obj *ServiceInstance, backupId, backupLocation string) (*filev1beta1.Backup, error) DeleteBackup(ctx context.Context, backupId string) error CreateInstanceFromBackupSource(ctx context.Context, obj *ServiceInstance, volumeSourceSnapshotId string) (*ServiceInstance, error) }
func NewFakeBlockingService ¶ added in v0.5.0
func NewFakeService ¶
type ServiceInstance ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.