package queuer
import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/queuer"
Package queuer implements a Pod Queuer which stores and yields pods waiting being scheduled.
Index ¶
- type Pod
- func NewPod(pod *api.Pod, opt ...PodOpt) *Pod
- func (p *Pod) Breaker() queue.BreakChan
- func (p *Pod) Copy() queue.Copyable
- func (dp *Pod) Deadline() (time.Time, bool)
- func (dp *Pod) GetDelay() time.Duration
- func (p *Pod) GetUID() string
- func (p *Pod) String() string
- type PodOpt
- func Deadline(deadline time.Time) PodOpt
- func Delay(delay time.Duration) PodOpt
- func Notify(notify queue.BreakChan) PodOpt
- type Queuer
Types ¶
type Pod ¶
wrapper for the k8s pod type so that we can define additional methods on a "pod"
func NewPod ¶
func (*Pod) Breaker ¶
func (*Pod) Copy ¶
implements Copyable
func (*Pod) Deadline ¶
implements Deadlined
func (*Pod) GetDelay ¶
func (*Pod) GetUID ¶
implements Unique
func (*Pod) String ¶
type PodOpt ¶
type PodOpt func(*Pod)
functional Pod option
func Deadline ¶
Deadline sets the deadline for a Pod
func Delay ¶
Delay sets the delay for a Pod
func Notify ¶
Notify sets the breakout notification channel for a Pod
type Queuer ¶
type Queuer interface { InstallDebugHandlers(mux *http.ServeMux) UpdatesAvailable() Dequeue(id string) Requeue(pod *Pod) Reoffer(pod *Pod) Yield() *api.Pod Run(done <-chan struct{}) }
func New ¶
Source Files ¶
doc.go pod.go queuer.go
- Version
- v1.4.4
- Published
- Oct 21, 2016
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 1 minute ago –
Tools for package owners.