-
Notifications
You must be signed in to change notification settings - Fork 33
New ECS powers sdk supported #446
New ECS powers sdk supported #446
Conversation
Pull Request Test Coverage Report for Build 1333
💛 - Coveralls |
openstack/ecs/v1/powers/requests.go
Outdated
| ToPowerOnMap() (map[string]interface{}, error) | ||
| ToPowerOffMap() (map[string]interface{}, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use ToPowerAction(action string) (map[string]interface{}, error) ?
then we can do more actions into one interface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more actions can be supported with ToPowerActionMap (return one interface result).
openstack/ecs/v1/powers/requests.go
Outdated
| return | ||
| } | ||
|
|
||
| func PowerOff(client *golangsdk.ServiceClient, opts PowerOptsBuilder) (r cloudservers.JobResult) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reboot action is missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx, the function is supports power off/on and reboot now.
512157a to
8e4389f
Compare
| ToPowerActionMap(option string) (map[string]interface{}, error) | ||
| } | ||
|
|
||
| func (opts PowerOpts) ToPowerActionMap(option string) (map[string]interface{}, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest to add more comments about the valid vaules of option
7149a03 to
7419d19
Compare
- remove invalid sdk and related functions - new functions of batch power on and off
7419d19 to
e580287
Compare
This reverts commit 6068580.
What this PR does / why we need it:
This sdk supports ECS instance to power on and power off.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
Release note: