Documentation ¶
Index ¶
- type MesosLib
- func (m *MesosLib) AddEvent(eventType mesosproto.Event_Type, event *mesosproto.Event) error
- func (m *MesosLib) FrameworkRegisteredMessage(w http.ResponseWriter, r *http.Request, data []byte) error
- func (m *MesosLib) GetEvent(kind mesosproto.Event_Type) chan *mesosproto.Event
- func (m *MesosLib) KillTask(ID string) error
- func (m *MesosLib) LaunchTask(offer *mesosproto.Offer, resources []*mesosproto.Resource, ...) error
- func (m *MesosLib) Metrics() (*Metrics, error)
- func (m *MesosLib) ReadFile(taskId string, filenames ...string) (map[string]string, error)
- func (m *MesosLib) RegisterFramework() error
- func (m *MesosLib) RequestOffer(cpus, mem, disk float64) (*mesosproto.Offer, []*mesosproto.Resource, error)
- func (m *MesosLib) ResourceOffersMessage(w http.ResponseWriter, r *http.Request, data []byte) error
- func (m *MesosLib) StatusUpdateMessage(w http.ResponseWriter, r *http.Request, data []byte) error
- func (m *MesosLib) UnRegisterFramework() error
- type Metrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MesosLib ¶
func NewMesosLib ¶
func NewMesosLib(master string, log *logrus.Logger, frameworkInfo *mesosproto.FrameworkInfo, ip string) *MesosLib
func (*MesosLib) AddEvent ¶
func (m *MesosLib) AddEvent(eventType mesosproto.Event_Type, event *mesosproto.Event) error
func (*MesosLib) FrameworkRegisteredMessage ¶
func (m *MesosLib) FrameworkRegisteredMessage(w http.ResponseWriter, r *http.Request, data []byte) error
Endpoint called by the master upon registration
func (*MesosLib) GetEvent ¶
func (m *MesosLib) GetEvent(kind mesosproto.Event_Type) chan *mesosproto.Event
func (*MesosLib) LaunchTask ¶
func (m *MesosLib) LaunchTask(offer *mesosproto.Offer, resources []*mesosproto.Resource, command, ID, image string) error
func (*MesosLib) RegisterFramework ¶
func (*MesosLib) RequestOffer ¶
func (m *MesosLib) RequestOffer(cpus, mem, disk float64) (*mesosproto.Offer, []*mesosproto.Resource, error)
func (*MesosLib) ResourceOffersMessage ¶
Endpoint called by the master upon new offers
func (*MesosLib) StatusUpdateMessage ¶
Endpoint called by the master upon status update
func (*MesosLib) UnRegisterFramework ¶
Click to show internal directories.
Click to hide internal directories.