Documentation ¶
Index ¶
- Constants
- func GetConnectInfos(cim *sp_api.CIMApi, configName string) (string, error)
- func ListConnectInfos(cim *sp_api.CIMApi) (string, error)
- func ListMcisVM(mcis *tb_api.MCISApi, nameSpaceID string, mcisID string) (string, error)
- func SaveSshKey(mcir *tb_api.MCIRApi, nameSpaceID string, resourceID string, ...) (string, error)
- type ConnectInfo
- type ConnectInfosConfig
- type CredentialInfo
- type DriverInfo
- type KeyValueInfo
- type RegionInfo
- type VMListInfo
Constants ¶
View Source
const (
// ConfigVersion is for version of config structs
ConfigVersion = 1
)
Variables ¶
This section is empty.
Functions ¶
func GetConnectInfos ¶
GetConnectInfos : Get Connection Info recursively
func ListConnectInfos ¶
ListConnectInfos : List Connection Infos recursively
func ListMcisVM ¶
ListMcisVM
Types ¶
type ConnectInfo ¶
type ConnectInfo struct { ConfigName string `yaml:"ConfigName" json:"ConfigName"` ProviderName string `yaml:"ProviderName" json:"ProviderName"` Driver DriverInfo `yaml:"Driver" json:"Driver"` Credential CredentialInfo `yaml:"Credential" json:"Credential"` Region RegionInfo `yaml:"Region" json:"Region"` }
ConnectInfo
type ConnectInfosConfig ¶
type ConnectInfosConfig struct { Version int `yaml:"Version" json:"Version"` ConnectInfoList []ConnectInfo `yaml:"ConnectInfos" json:"ConnectInfos"` }
ConnectInfosConfig
type CredentialInfo ¶
type CredentialInfo struct { CredentialName string `yaml:"CredentialName" json:"CredentialName"` KeyValueInfoList []KeyValueInfo `yaml:"KeyValueInfoList" json:"KeyValueInfoList"` }
CredentialInfo
type DriverInfo ¶
type DriverInfo struct { DriverName string `yaml:"DriverName" json:"DriverName"` DriverLibFileName string `yaml:"DriverLibFileName" json:"DriverLibFileName"` }
DriverInfo
type KeyValueInfo ¶
type KeyValueInfo struct { Key string `yaml:"Key" json:"Key"` Value string `yaml:"Value" json:"Value"` }
KeyValueInfo (Key-Value pair)
type RegionInfo ¶
type RegionInfo struct { RegionName string `yaml:"RegionName" json:"RegionName"` KeyValueInfoList []KeyValueInfo `yaml:"KeyValueInfoList" json:"KeyValueInfoList"` }
RegionInfo
type VMListInfo ¶
type VMListInfo struct { Id string `yaml:"id" json:"id"` Name string `yaml:"name" json:"name"` Vm []string `yaml:"vm" json:"vm"` }
VMListInfo
Click to show internal directories.
Click to hide internal directories.