Part one of the grand rename: Task -> Pod

This commit is contained in:
Brendan Burns
2014-06-08 21:17:53 -07:00
parent 139be599e9
commit c8d493f532
18 changed files with 125 additions and 125 deletions

View File

@@ -56,7 +56,7 @@ func (r RealTaskControl) createReplica(controllerSpec ReplicationController) {
if labels != nil {
labels["replicationController"] = controllerSpec.ID
}
task := Task{
task := Pod{
JSONBase: JSONBase{
ID: fmt.Sprintf("%x", rand.Int()),
},
@@ -118,8 +118,8 @@ func (rm *ReplicationManager) handleWatchResponse(response *etcd.Response) (*Rep
return nil, nil
}
func (rm *ReplicationManager) filterActiveTasks(tasks []Task) []Task {
var result []Task
func (rm *ReplicationManager) filterActiveTasks(tasks []Pod) []Pod {
var result []Pod
for _, value := range tasks {
if strings.Index(value.CurrentState.Status, "Exit") == -1 {
result = append(result, value)