Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRunJobType ¶
func GetRunJobType(run *model.ResourceRun) (types.RunJobType, error)
GetRunJobType gets the run job type for deployer with its type and status. It makes the following decision.
| Run type | Run status | Job type | | ---------------- | ---------------- | ---------------- | | create | pending | plan | | create | planed | apply | | upgrade | pending | plan | | upgrade | planed | apply | | delete | pending | plan | | delete | planed | destroy | | start | pending | plan | | start | planed | apply | | stop | pending | plan | | stop | planed | destroy | | rollback | pending | plan | | rollback | planed | apply |
Types ¶
Click to show internal directories.
Click to hide internal directories.