ecs

package
v0.1.0-beta.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EcsController

type EcsController struct {
	RegionID string
	Client   *ecs.Client
}

func NewEcsController

func NewEcsController(regionID, accessKeyID, accessKeySecret string) (*EcsController, error)

func (*EcsController) CheckEcsInstanceStatus

func (e *EcsController) CheckEcsInstanceStatus(instanceID string, expectStatus string) (bool, error)

func (*EcsController) CreateNode

func (e *EcsController) CreateNode(instanceType, imageID, vswitchID, userData string) (string, error)

func (*EcsController) DeleteNode

func (e *EcsController) DeleteNode(instanceID string) error

func (*EcsController) GetNodeInfo

func (e *EcsController) GetNodeInfo(instanceID string) (*types.NodeAttribute, error)

func (*EcsController) RebootNode

func (e *EcsController) RebootNode(instanceID string) error

func (*EcsController) StartNode

func (e *EcsController) StartNode(instanceID string) error

func (*EcsController) StopNode

func (e *EcsController) StopNode(instanceID string) error

Jump to

Keyboard shortcuts

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