feat: backend native executor implement
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package backendupdate
|
||||
|
||||
import "yms-daemon/internal/transaction"
|
||||
|
||||
// Progress is one live update event sent to the local CLI. It is observational
|
||||
// only: delivery failure must not change the persisted update transaction.
|
||||
type Progress struct {
|
||||
TransactionID string
|
||||
State transaction.State
|
||||
Message string
|
||||
}
|
||||
|
||||
type ProgressReporter func(Progress)
|
||||
|
||||
func operationLabel(inputType string) string {
|
||||
if inputType == inputTypeCurrentRelease {
|
||||
return "restart"
|
||||
}
|
||||
return "update"
|
||||
}
|
||||
Reference in New Issue
Block a user