Documentation
¶
Index ¶
Constants ¶
View Source
const ( SLA_ONE_PER_NODE = "one-per-node" SLA_SINGLETON = "singleton" NETWORK_MODE_BRIDGE = "bridge" NETWORK_MODE_HOST = "host" NETWORK_MODE_NONE = "none" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerState ¶
type DockerState struct {
Pid uint `json:"Pid"`
}
type DockerTask ¶
type DockerTask struct { DockerId string `json:"Id"` DockerName string `json:"Name"` DockerState json.RawMessage `json:"State"` }
type Manager ¶
type Manager interface { Start() error GetListenerIP() string GetListenerPortForScheduler() int GetListenerPortForRESTApi() int GetRedisConnectionIPAndPort() string GetTasks() []*Task GetNodes() []*Node GetOpenTaskRequestsNoSla() []*Task ResourceRequirementsWouldMatch(offer *mesosproto.Offer, taskRequest *Task) bool GetOpenTaskRequests() []*Task GetRunningTasks() []*Task SetTaskIntelligence(taskname string, attribute string, value string) GetTaskIntelligence(taskname string, attribute string) string HandleFrameworkRegistered(frameworkId string) HandleResourceOffered(offers []*mesosproto.Offer) HandleStatusMessage(statusMessage *mesosproto.StatusUpdateMessage) HandleRunDockerImage(task *Task) HandleDeleteTask(task *Task) HandleReshuffleTasks() AcceptOffer(offerId *mesosproto.OfferID, slaveId *mesosproto.SlaveID, task *Task) DeclineOffer(offerId *mesosproto.OfferID) }
type Task ¶
type Task struct { ID string `json:"id"` DockerImage string `json:"dockerimage"` Mem uint64 `json:"mem,string"` Cpus float64 `json:"cpus,string"` Sla string `json:"sla"` NodeType string `json:"nodetype"` NodeName string `json:"nodename"` NotMetered bool `json:"notmetered"` Reshuffleable bool `json:"reshuffleable"` Arguments []string `json:"arguments,omitempty"` Volumes []*Volume `json:"volumes,omitempty"` Ports []*Port `json:"ports,omitempty"` NetworkMode string `json:"networkmode"` InternalID string SlaveID string DockerID string DockerName string ProcessID uint CreatedAt int64 TaskInfo *mesosproto.TaskInfo RequestSent bool Running bool }
Click to show internal directories.
Click to hide internal directories.