driverinfomanager

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

View Source
const KEY_COLUMN_NAME = "driver_name"

====================================================================

Variables

This section is empty.

Functions

func UnRegisterCloudDriver

func UnRegisterCloudDriver(driverName string) (bool, error)

Types

type CloudDriverInfo

type CloudDriverInfo struct {
	DriverName        string `gorm:"primaryKey"` // ex) "AWS-Test-Driver-V0.5"
	ProviderName      string // ex) "AWS"
	DriverLibFileName string // ex) "aws-test-driver-v0.5.so"  //Already, you need to insert "*.so" in $CB_SPIDER_ROOT/cloud-driver/libs.
}

func GetCloudDriver

func GetCloudDriver(driverName string) (*CloudDriverInfo, error)

1. check params 2. get DriverInfo from info-store

func ListCloudDriver

func ListCloudDriver() ([]*CloudDriverInfo, error)

func RegisterCloudDriver

func RegisterCloudDriver(driverName string, providerName string, driverLibFileName string) (*CloudDriverInfo, error)

func RegisterCloudDriverInfo

func RegisterCloudDriverInfo(cldInfo CloudDriverInfo) (*CloudDriverInfo, error)

1. check params 2. check driver files 3. insert them into info-store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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