open-nomad/nomad/drainerv2/drain_heap.go

21 lines
470 B
Go
Raw Normal View History

2018-03-02 00:37:19 +00:00
package drainerv2
import (
"time"
"github.com/hashicorp/nomad/nomad/structs"
)
type DrainDeadlineNotifier interface {
NextBatch() <-chan []*structs.Node
Remove(nodeID string)
Watch(nodeID string, deadline time.Time)
}
type deadlineHeap struct {
}
func (d *deadlineHeap) NextBatch() <-chan []structs.Node { return nil }
func (d *deadlineHeap) Remove(nodeID string) {}
func (d *deadlineHeap) Watch(nodeID string, deadline time.Time) {}