Documentation ¶
Index ¶
- type EventStream
- type Registry
- func (r *Registry) ClaimJob(jobName string, m *machine.Machine, ttl time.Duration) bool
- func (r *Registry) ClaimJobOffer(jobName string, m *machine.Machine, ttl time.Duration) bool
- func (r *Registry) CreateJob(j *job.Job) error
- func (r *Registry) CreateJobOffer(jo *job.JobOffer)
- func (r *Registry) CreatePayload(jp *job.JobPayload) error
- func (r *Registry) DestroyPayload(payloadName string)
- func (r *Registry) GetActiveMachines() []machine.Machine
- func (r *Registry) GetAllJobs() []job.Job
- func (r *Registry) GetAllJobsByMachine(match *machine.Machine) []job.Job
- func (r *Registry) GetAllPayloads() []job.JobPayload
- func (r *Registry) GetJob(jobName string) *job.Job
- func (r *Registry) GetJobState(jobName string) *job.JobState
- func (r *Registry) GetJobTarget(jobName string) *machine.Machine
- func (r *Registry) GetMachineState(bootid string) *machine.Machine
- func (r *Registry) GetPayload(payloadName string) *job.JobPayload
- func (r *Registry) RemoveJobState(jobName string) error
- func (r *Registry) RemoveMachineState(machine *machine.Machine) error
- func (r *Registry) ResolveJobOffer(jobName string)
- func (r *Registry) SaveJobState(jobName string, jobState *job.JobState)
- func (r *Registry) ScheduleJob(jobName string, machName string)
- func (r *Registry) SetMachineState(machine *machine.Machine, ttl time.Duration)
- func (r *Registry) StopJob(jobName string)
- func (r *Registry) SubmitJobBid(jb *job.JobBid)
- func (r *Registry) UnresolvedJobOffers() []job.JobOffer
- func (r *Registry) UnscheduleJob(jobName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventStream ¶
type EventStream struct {
// contains filtered or unexported fields
}
func NewEventStream ¶
func NewEventStream(client *etcd.Client) *EventStream
func (*EventStream) Close ¶
func (self *EventStream) Close()
func (*EventStream) Stream ¶
func (self *EventStream) Stream(eventchan chan *event.Event)
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) ClaimJobOffer ¶
func (*Registry) CreateJobOffer ¶
func (*Registry) CreatePayload ¶
func (r *Registry) CreatePayload(jp *job.JobPayload) error
func (*Registry) DestroyPayload ¶
func (*Registry) GetActiveMachines ¶
Describe all active Machines
func (*Registry) GetAllJobs ¶
List the jobs all Machines are scheduled to run
func (*Registry) GetAllJobsByMachine ¶
func (*Registry) GetAllPayloads ¶
func (r *Registry) GetAllPayloads() []job.JobPayload
func (*Registry) GetJobState ¶
Get the current JobState of the provided Job
func (*Registry) GetMachineState ¶
Get Machine object from etcd
func (*Registry) GetPayload ¶
func (r *Registry) GetPayload(payloadName string) *job.JobPayload
func (*Registry) RemoveJobState ¶
Delete the state from the Registry for the given Job
func (*Registry) RemoveMachineState ¶
Remove Machine object from etcd
func (*Registry) ResolveJobOffer ¶
func (*Registry) SaveJobState ¶
Persist the changes in a provided Machine's Job to etcd with the provided TTL
func (*Registry) ScheduleJob ¶
func (*Registry) SetMachineState ¶
Push Machine object to etcd
func (*Registry) SubmitJobBid ¶
func (*Registry) UnresolvedJobOffers ¶
func (*Registry) UnscheduleJob ¶
Click to show internal directories.
Click to hide internal directories.