Documentation ¶
Overview ¶
Package framework implements the Mesos scheduler.
Index ¶
- type Config
- type Framework
- type JoinableDriver
- type MockSchedulerDriver
- func (m *MockSchedulerDriver) Abort() (mesos.Status, error)
- func (m *MockSchedulerDriver) DeclineOffer(oid *mesos.OfferID, f *mesos.Filters) (mesos.Status, error)
- func (m *MockSchedulerDriver) Destroy()
- func (m *MockSchedulerDriver) Init() error
- func (m *MockSchedulerDriver) Join() (mesos.Status, error)
- func (m *MockSchedulerDriver) KillTask(tid *mesos.TaskID) (mesos.Status, error)
- func (m *MockSchedulerDriver) LaunchTasks(offerIds []*mesos.OfferID, ti []*mesos.TaskInfo, f *mesos.Filters) (mesos.Status, error)
- func (m *MockSchedulerDriver) ReconcileTasks(statuses []*mesos.TaskStatus) (mesos.Status, error)
- func (m *MockSchedulerDriver) RequestResources(r []*mesos.Request) (mesos.Status, error)
- func (m *MockSchedulerDriver) ReviveOffers() (mesos.Status, error)
- func (m *MockSchedulerDriver) Run() (mesos.Status, error)
- func (m *MockSchedulerDriver) SendFrameworkMessage(eid *mesos.ExecutorID, sid *mesos.SlaveID, s string) (mesos.Status, error)
- func (m *MockSchedulerDriver) Start() (mesos.Status, error)
- func (m *MockSchedulerDriver) Stop(b bool) (mesos.Status, error)
- func (m *MockSchedulerDriver) Upon() <-chan struct{}
- func (m *MockSchedulerDriver) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SchedulerConfig schedcfg.Config ExecutorId *mesos.ExecutorID Client *client.Client StoreFrameworkId frameworkid.StoreFunc FailoverTimeout float64 ReconcileInterval int64 ReconcileCooldown time.Duration LookupNode node.LookupFunc }
type Framework ¶
type JoinableDriver ¶
type JoinableDriver struct { MockSchedulerDriver // contains filtered or unexported fields }
type MockSchedulerDriver ¶
type MockSchedulerDriver struct {
// contains filtered or unexported fields
}
func (*MockSchedulerDriver) DeclineOffer ¶
func (*MockSchedulerDriver) Destroy ¶
func (m *MockSchedulerDriver) Destroy()
func (*MockSchedulerDriver) Init ¶
func (m *MockSchedulerDriver) Init() error
func (*MockSchedulerDriver) LaunchTasks ¶
func (*MockSchedulerDriver) ReconcileTasks ¶
func (m *MockSchedulerDriver) ReconcileTasks(statuses []*mesos.TaskStatus) (mesos.Status, error)
func (*MockSchedulerDriver) RequestResources ¶
func (*MockSchedulerDriver) ReviveOffers ¶
func (m *MockSchedulerDriver) ReviveOffers() (mesos.Status, error)
func (*MockSchedulerDriver) SendFrameworkMessage ¶
func (m *MockSchedulerDriver) SendFrameworkMessage(eid *mesos.ExecutorID, sid *mesos.SlaveID, s string) (mesos.Status, error)
func (*MockSchedulerDriver) Upon ¶
func (m *MockSchedulerDriver) Upon() <-chan struct{}
Upon returns a chan that closes upon the execution of the most recently registered call.
func (*MockSchedulerDriver) Wait ¶
func (m *MockSchedulerDriver) Wait()
Click to show internal directories.
Click to hide internal directories.