Documentation ¶
Index ¶
- type EcsController
- func (e *EcsController) CheckEcsInstanceStatus(instanceID string, expectStatus string) (bool, error)
- func (e *EcsController) CreateNode(instanceType, imageID, vswitchID, userData string) (string, error)
- func (e *EcsController) DeleteNode(instanceID string) error
- func (e *EcsController) GetNodeInfo(instanceID string) (*types.NodeAttribute, error)
- func (e *EcsController) RebootNode(instanceID string) error
- func (e *EcsController) StartNode(instanceID string) error
- func (e *EcsController) StopNode(instanceID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EcsController ¶
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
Click to show internal directories.
Click to hide internal directories.