Documentation ¶
Index ¶
Constants ¶
View Source
const ( // 1. FetchUpdate OUT_OF_DATE = "out-of-date" READY_TO_UPDATE = "ready-to-update" UP_TO_DATE = "up-to-date" // 2. Install FETCHING = "fetching" DOWNLOADING = "downloading" DECOMPRESS = "decompressing" INSTALLING = "installing" RESTARTING = "restarting" MIGRATION = "migration" OTHER = "other" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type STATUS_MSG ¶
type STATUS_MSG string
type TriggerType ¶
type TriggerType string
const ( HTTP_REQUEST TriggerType = "http-request-trigger" CRON_JOB TriggerType = "cron-job-trigger" INSTALL TriggerType = "install-trigger" )
TODO: 考虑重构这里 这里是设计是因为最早业务是前端不同方式调用下,状态要有不同的变化,所以区分不同的样式然后来做不同的处理。 但是随着 @ETWang1991 的变化,现在不同的调用方式,前端都看不见,考虑删除这里来减少复杂度。
Click to show internal directories.
Click to hide internal directories.