tencentcvm

package
v0.0.0-...-caacdb4 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LinuxSet = []string{"CentOS", "Ubuntu", "Debian", "OpenSUSE", "SUSE", "CoreOS", "FreeBSD", "Kylin", "UnionTech", "TencentOS", "Other Linux"}
)

Functions

func CVMClient

func CVMClient(region string) *cvm.Client

func CVMExec

func CVMExec(command string, commandFile string, scriptType string, specifiedInstanceID string, region string, batchCommand bool, userData bool, metaDataSTSToken bool, cvmFlushCache bool, lhost string, lport string, timeOut int)

func CreateCommand

func CreateCommand(region string, OSType string, command string, scriptType string) string

func DeleteCommand

func DeleteCommand(region string, CommandId string)

func DescribeInvocationResults

func DescribeInvocationResults(region string, CommandId string, InvokeId string, timeOut int) string

func GetCVMRegions

func GetCVMRegions() []*cvm.RegionInfo

func InvokeCommand

func InvokeCommand(region string, OSType string, command string, scriptType string, specifiedInstanceID string) (string, string)

func PrintInstancesList

func PrintInstancesList(region string, running bool, specifiedInstanceID string, cvmFlushCache bool)

func PrintInstancesListHistory

func PrintInstancesListHistory(region string, running bool, specifiedInstanceID string)

func PrintInstancesListRealTime

func PrintInstancesListRealTime(region string, running bool, specifiedInstanceID string)

func TATClient

func TATClient(region string) *tat.Client

Types

type Instances

type Instances struct {
	InstanceId       string
	InstanceName     string
	OSName           string
	OSType           string
	Status           string
	PrivateIpAddress string
	PublicIpAddress  string
	RegionId         string
}

func DescribeInstances

func DescribeInstances(region string, running bool, SpecifiedInstanceID string) []Instances

func ReturnInstancesList

func ReturnInstancesList(region string, running bool, specifiedInstanceID string) []Instances

Jump to

Keyboard shortcuts

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