tencentlh

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InstancesOut []Instances
)

Functions

func CreateCommand added in v0.3.3

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

func DeleteCommand added in v0.3.3

func DeleteCommand(region string, CommandId string)

func DescribeInvocationResults added in v0.3.3

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

func GetLHRegions

func GetLHRegions() []*lh.RegionInfo

func InvokeCommand added in v0.3.3

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

func LHClient

func LHClient(region string) *lh.Client

func LhExec added in v0.3.3

func LhExec(command string, commandFile string, scriptType string, specifiedInstanceId string, region string, batchCommand bool, userData bool, metaDataSTSToken bool, lhFlushCache bool, lhost string, lport string, timeOut int)

func PrintInstancesList

func PrintInstancesList(region string, running bool, specifiedInstanceId string, lhFlushCache bool)

func PrintInstancesListHistory

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

func PrintInstancesListRealTime

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

func TATClient added in v0.3.3

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, offSet int64) []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