proc

package
v0.0.0-...-3d28840 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigVersion - version of config structs
	ConfigVersion = 1
)

Variables

This section is empty.

Functions

func GetConnectInfos

func GetConnectInfos(cim *sp_api.CIMApi, configName string) (string, error)

GetConnectInfos : Get Connection Info recursively

func ListConnectInfos

func ListConnectInfos(cim *sp_api.CIMApi) (string, error)

ListConnectInfos : List Connection Infos recursively

func ListMcisVM

func ListMcisVM(mcis *tb_api.MCISApi, nameSpaceID string, mcisID string) (string, error)

ListMcisVM

func SaveSshKey

func SaveSshKey(mcir *tb_api.MCIRApi, nameSpaceID string, resourceID string, sshSaveFileName string) (string, error)

SaveSshKey : Write keypair to file

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

Jump to

Keyboard shortcuts

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