// GetReplicationControllerListFromChannels returns a list of all Replication Controllers in the cluster
// reading required resource list once from the channels.
GetReplicationControllerListFromChannels returns a list of all Replication Controllers in the cluster
reading required resource list once from the channels.
// GetReplicationControllerListFromChannels returns a list of all Replication Controllers in the cluster // reading required resource list once from the channels .
func GetReplicationControllerListFromChannels(channels *common.ResourceChannels,
	dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) (*ReplicationControllerList, error) {
	rcList := <-channels.ReplicationControllerList.List
	if err := <-channels.ReplicationControllerList.Error; err != nil {
		return nil, err
	}
	podList := <-channels.PodList.List
	if err := <-channels.PodList.Error; err != nil {
		return nil, err
	}
	eventList := <-channels.EventList.List
	if err := <-channels.EventList.Error; err != nil {
		return nil, err
	}
	return CreateReplicationControllerList(rcList.Items, dsQuery, podList.Items, eventList.Items, heapsterClient), nil
}
func GetReplicationControllerListFromChannels ( channels * common . ResourceChannels , dsQuery * dataselect . DataSelectQuery , heapsterClient * heapster . HeapsterClient ) ( * ReplicationControllerList , error ) { rcList := <- channels . ReplicationControllerList . List if err := <- channels . ReplicationControllerList . Error ; err != nil { return nil , err } podList := <- channels . PodList . List if err := <- channels . PodList . Error ; err != nil { return nil , err } eventList := <- channels . EventList . List if err := <- channels . EventList . Error ; err != nil { return nil , err } return CreateReplicationControllerList ( rcList . Items , dsQuery , podList . Items , eventList . Items , heapsterClient ) , nil }
GetReplicationControllerListFromChannels returns a list of all Replication Controllers in the cluster
reading required resource list once from the channels.
GetReplicationControllerListFromChannels returns a list of all Replication Controllers in the cluster reading required resource list once from the channels .