forked from vladimirvivien/gomes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
29 lines (26 loc) · 959 Bytes
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package gomes
const (
MESOS_INTERNAL_PREFIX = "mesos.internal."
MESOS_SCHEDULER_PREFIX = "scheduler"
HTTP_SCHEME = "http"
HTTP_POST_METHOD = "POST"
HTTP_MASTER_PREFIX = "master"
HTTP_LIBPROC_PREFIX = "libprocess/"
HTTP_CONTENT_TYPE = "application/x-protobuf"
)
// calls from sched to master
const (
REGISTER_FRAMEWORK_CALL = "RegisterFrameworkMessage"
UNREGISTER_FRAMEWORK_CALL = "UnregisterFrameworkMessage"
DEACTIVATE_FRAMEWORK_CALL = "DeactivateFrameworkMessage"
)
// Events from Mesos Master
const (
FRAMEWORK_REGISTERED_EVENT = "FrameworkRegisteredMessage"
FRAMEWORK_REREGISTERED_EVENT = "FrameworkReregisteredMessage"
RESOURCE_OFFERS_EVENT = "ResourceOffersMessage"
RESCIND_OFFER_EVENT = "RescindResourceOfferMessage"
STATUS_UPDATE_EVENT = "StatusUpdateMessage"
FRAMEWORK_MESSAGE_EVENT = "ExecutorToFrameworkMessage"
LOST_SLAVE_EVENT = "LostSlaveMessage"
)