20 lines
318 B
Go
20 lines
318 B
Go
package globals
|
|
|
|
import (
|
|
schmod "gitlink.org.cn/cloudream/scheduler/common/models"
|
|
)
|
|
|
|
var ExecutorID schmod.ExecutorID
|
|
|
|
func Init(id schmod.ExecutorID) {
|
|
//ExecutorID = schmod.ExecutorID(uuid.NewString())
|
|
ExecutorID = id
|
|
}
|
|
|
|
const (
|
|
UPDATE = "update"
|
|
STOP = "stop"
|
|
RESTART = "restart"
|
|
DESTROY = "destroy"
|
|
)
|