aws_mg

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

README

aws_mg

aws resource manage tools

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSManager

type AWSManager struct {
	// contains filtered or unexported fields
}

func NewAWSManager added in v0.0.6

func NewAWSManager(ak string, sk string, default_region aws_mg_common.AWSRegion) (*AWSManager, error)

NewAWSManager 初始化工具,仅运行一次。

func (*AWSManager) CreateEC2Instance added in v0.0.6

func (aws_mg *AWSManager) CreateEC2Instance(instance_pre_config *aws_mg_model.AWSInstancePreConfig, end_func func(result_info interface{}, err error))

func (*AWSManager) DeleteInstance added in v0.0.6

func (aws_mg *AWSManager) DeleteInstance(instanceIds []string)

func (*AWSManager) ListInstance added in v0.0.6

func (aws_mg *AWSManager) ListInstance() map[string]*types.Instance

func (*AWSManager) RebootInstance added in v0.0.6

func (aws_mg *AWSManager) RebootInstance(instanceIds []string)

func (*AWSManager) StartInstance added in v0.0.6

func (aws_mg *AWSManager) StartInstance(instanceIds []string)

func (*AWSManager) StopInstance added in v0.0.6

func (aws_mg *AWSManager) StopInstance(instanceIds []string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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