cloudfactory

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDriverFactory

func RegisterDriverFactory(driverType string, factory DriverFactory)

Types

type CloudDriver

type CloudDriver interface {
	SyncMetadata(ctx context.Context, input *pb.SyncMetadataRequest) error
	DownloadObject()
}

func CreateStorageDriver

func CreateStorageDriver(driverType string, detail *backendpb.BackendDetail) (CloudDriver, error)

type DriverFactory

type DriverFactory interface {
	CreateDriver(detail *backendpb.BackendDetail) (CloudDriver, error)
}

Jump to

Keyboard shortcuts

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