proc

package
v0.0.0-...-2bff06c Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigVersion - 설정 구조에 대한 버전
	ConfigVersion = 1
)

Variables

This section is empty.

Functions

func GetConnectInfos

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

GetConnectInfos - 연결정보 통합 제공

func ListConnectInfos

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

ListConnectInfos - 연결정보 목록 통합 제공

func ListMcisVM

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

ListMcisVM - VM 목록

func SaveSshKey

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

SaveSshKey - Keypair 파일로 저장

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 - Credential 정보 구조 정의

type DriverInfo

type DriverInfo struct {
	DriverName        string `yaml:"DriverName" json:"DriverName"`
	DriverLibFileName string `yaml:"DriverLibFileName" json:"DriverLibFileName"`
}

DriverInfo - Driver 정보 구조 정의

type KeyValueInfo

type KeyValueInfo struct {
	Key   string `yaml:"Key" json:"Key"`
	Value string `yaml:"Value" json:"Value"`
}

KeyValueInfo - Key Value 정보 구조 정의

type RegionInfo

type RegionInfo struct {
	RegionName       string         `yaml:"RegionName" json:"RegionName"`
	KeyValueInfoList []KeyValueInfo `yaml:"KeyValueInfoList" json:"KeyValueInfoList"`
}

RegionInfo - Region 정보 구조 정의

type VMListInfo

type VMListInfo struct {
	Id   string   `yaml:"id" json:"id"`
	Name string   `yaml:"name" json:"name"`
	Vm   []string `yaml:"vm" json:"vm"`
}

VMListInfo - VM 목록 구조 정의

Jump to

Keyboard shortcuts

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