Documentation ¶
Index ¶
- Constants
- func UnRegisterCloudDriver(driverName string) (bool, error)
- type CloudDriverInfo
- func GetCloudDriver(driverName string) (*CloudDriverInfo, error)
- func ListCloudDriver() ([]*CloudDriverInfo, error)
- func ListCloudDriverByProvider(providerName string) ([]*CloudDriverInfo, error)
- func RegisterCloudDriver(driverName string, providerName string, driverLibFileName string) (*CloudDriverInfo, error)
- func RegisterCloudDriverInfo(cldInfo CloudDriverInfo) (*CloudDriverInfo, error)
Constants ¶
View Source
const KEY_COLUMN_NAME = "driver_name"
====================================================================
View Source
const PROVIDER_NAME_COLUMN = "provider_name"
Variables ¶
This section is empty.
Functions ¶
func UnRegisterCloudDriver ¶
Types ¶
type CloudDriverInfo ¶
type CloudDriverInfo struct { DriverName string `json:"DriverName" gorm:"primaryKey" validate:"required" example:"AWS-Test-Driver-V0.5"` // The name of the cloud driver, used as a unique identifier. ProviderName string `json:"ProviderName" validate:"required" example:"AWS"` // The name of the cloud provider (e.g., AWS, Azure, GCP). DriverLibFileName string `json:"DriverLibFileName" validate:"required" example:"aws-test-driver-v0.5.so"` // The filename of the driver library, already present in the cloud-driver/libs directory. }
CloudDriverInfo represents the information of a cloud driver. @Description Information about a specific cloud driver used in the system.
func GetCloudDriver ¶
func GetCloudDriver(driverName string) (*CloudDriverInfo, error)
1. check params 2. get DriverInfo from info-store
func ListCloudDriver ¶
func ListCloudDriver() ([]*CloudDriverInfo, error)
func ListCloudDriverByProvider ¶ added in v0.9.1
func ListCloudDriverByProvider(providerName string) ([]*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
Click to show internal directories.
Click to hide internal directories.