func (rm *ResourceMap) UnsafeGet() map[ResourceID]*rs.ResourceStatus {
	return rm.m
}
Expose Map for readonly purposes. To be used with Rlock() and RUnlock()
package types
import (
	"sync"
	rs "github.com/coreos/ksched/pkg/types/resourcestatus"
	pb "github.com/coreos/ksched/proto"
)
type (
	TaskOutputID uint32
	TaskID       uint64
	EquivClass   uint64
	ResourceID   uint64
	JobID        uint64
)
type ResourceMap struct {
	rwMu sync.RWMutex
	m    map[ResourceID]*rs.ResourceStatus
}
type JobMap struct {
	rwMu sync.RWMutex
	m    map[JobID]*pb.JobDescriptor
}
type TaskMap struct {
	rwMu sync.RWMutex
	m    map[TaskID]*pb.TaskDescriptor
}
func NewResourceMap() *ResourceMap {
	return &ResourceMap{
		m: make(map[ResourceID]*rs.ResourceStatus),
	}
}
func NewJobMap() *JobMap {
	return &JobMap{
		m: make(map[JobID]*pb.JobDescriptor),
	}
}
func NewTaskMap() *TaskMap {
	return &TaskMap{
		m: make(map[TaskID]*pb.TaskDescriptor),
	}
}