Documentation ¶
Index ¶
- func UnRegisterCloudDriver(driverName string) (bool, error)
- type CloudDriverInfo
- func GetCloudDriver(driverName string) (*CloudDriverInfo, error)
- func ListCloudDriver() ([]*CloudDriverInfo, error)
- func RegisterCloudDriver(driverName string, providerName string, driverLibFileName string) (*CloudDriverInfo, error)
- func RegisterCloudDriverInfo(cldInfo CloudDriverInfo) (*CloudDriverInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnRegisterCloudDriver ¶
Types ¶
type CloudDriverInfo ¶
type CloudDriverInfo struct { DriverName string // 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 cb-store
func ListCloudDriver ¶
func ListCloudDriver() ([]*CloudDriverInfo, error)
func RegisterCloudDriver ¶
func RegisterCloudDriver(driverName string, providerName string, driverLibFileName string) (*CloudDriverInfo, error)
1. check params 2. check driver files 3. insert them into cb-store You should copy the driver library into ~/libs before.
func RegisterCloudDriverInfo ¶
func RegisterCloudDriverInfo(cldInfo CloudDriverInfo) (*CloudDriverInfo, error)
Click to show internal directories.
Click to hide internal directories.