aliecs

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: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DescribeInstancesOut []Instances
	TimestampType        = util.ReturnTimestampType("alibaba", "ecs")
)

Functions

func CloudAssistantStatus added in v0.5.0

func CloudAssistantStatus(region, SpecifiedInstanceId, OSType string) string

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 ECSClient

func ECSClient(region string) *ecs.Client

func ECSExec

func ECSExec(command string, commandFile string, scriptType string, specifiedInstanceId string, region string, batchCommand bool, userData bool, metaDataSTSToken bool, ecsFlushCache bool, lhost string, lport string, timeOut int, ecsExecAllRegions bool, userDataBackdoor string)

func ECSImageShare added in v0.5.0

func ECSImageShare(aliyunAccount string, region string, specifiedInstanceId string)

func GetECSRegions

func GetECSRegions(fullRegions bool) []ecs.Region

func GetImageShare added in v0.5.0

func GetImageShare()

func ImageDelete added in v0.5.0

func ImageDelete()

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, ecsFlushCache bool, ecsLsAllRegions bool)

func PrintInstancesListHistory

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

func PrintInstancesListRealTime

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

func UserDataBackdoor added in v0.5.0

func UserDataBackdoor(region string, command string, specifiedInstanceId string, timeOut int, scriptType string, OSType string, ecsStatus string)

Types

type Instances

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

func DescribeInstances

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

func ReturnCacheInstanceList added in v0.5.0

func ReturnCacheInstanceList(specifiedInstanceId string, region string, provider string) []Instances

func ReturnInstancesList

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

Jump to

Keyboard shortcuts

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