func (alloc *Allocator) cancelOpsFor(ops *[]operation, ident string) bool {
	var found bool
	for i := 0; i < len(*ops); {
		if op := (*ops)[i]; op.ForContainer(ident) {
			found = true
			op.Cancel()
			*ops = append((*ops)[:i], (*ops)[i+1:]...)
		} else {
			i++
		}
	}
	return found
}
// Cancel all operations for a given container id, returns true
// if we found any.
Cancel all operations for a given container id, returns true
if we found any.
// Cancel all operations for a given container id returns true // if we found any .
func (alloc *Allocator) cancelOpsFor(ops *[]operation, ident string) bool {
	var found bool
	for i := 0; i < len(*ops); {
		if op := (*ops)[i]; op.ForContainer(ident) {
			found = true
			op.Cancel()
			*ops = append((*ops)[:i], (*ops)[i+1:]...)
		} else {
			i++
		}
	}
	return found
}
func ( alloc * Allocator ) cancelOpsFor ( ops * [ ] operation , ident string ) bool { var found bool for i := 0 ; i < len ( * ops ) ; { if op := ( * ops ) [ i ] ; op . ForContainer ( ident ) { found = true op . Cancel ( ) * ops = append ( ( * ops ) [ : i ] , ( * ops ) [ i + 1 : ] ... ) } else { i ++ } } return found }
Cancel all operations for a given container id, returns true
if we found any.
Cancel all operations for a given container id returns true if we found any .