Files
yms-daemon/internal/backendupdate/progress.go
T

21 lines
493 B
Go
Raw Normal View History

2026-08-16 01:27:30 +08:00
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"
}