Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for toDelete (0.27 sec)

  1. pkg/controller/endpointslicemirroring/reconciler_helpers.go

    type slicesByAction struct {
    	toCreate, toUpdate, toDelete []*discovery.EndpointSlice
    }
    
    // append appends slices from another slicesByAction struct.
    func (s *slicesByAction) append(slices slicesByAction) {
    	s.toCreate = append(s.toCreate, slices.toCreate...)
    	s.toUpdate = append(s.toUpdate, slices.toUpdate...)
    	s.toDelete = append(s.toDelete, slices.toDelete...)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. pkg/controller/endpointslicemirroring/reconciler_helpers_test.go

    			},
    			toDelete: []*discovery.EndpointSlice{
    				simpleEndpointSlice("bar1", "10.2.3.4", discovery.AddressTypeIPv4),
    				simpleEndpointSlice("bar2", "10.3.4.5", discovery.AddressTypeIPv4),
    			},
    		},
    		expectedSlices: &slicesByAction{
    			toUpdate: []*discovery.EndpointSlice{simpleEndpointSlice("bar1", "10.1.2.3", discovery.AddressTypeIPv4)},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 06 23:58:47 UTC 2021
    - 7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/decompose.go

    func deleteNamedVals(f *Func, toDelete []namedVal) {
    	// Arrange to delete from larger indices to smaller, to ensure swap-with-end deletion does not invalidate pending indices.
    	sort.Slice(toDelete, func(i, j int) bool {
    		if toDelete[i].locIndex != toDelete[j].locIndex {
    			return toDelete[i].locIndex > toDelete[j].locIndex
    		}
    		return toDelete[i].valIndex > toDelete[j].valIndex
    
    	})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:22:15 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  4. pkg/controller/endpointslicemirroring/reconciler.go

    		})
    	}
    
    	// If there are unique sets of ports that are no longer desired, mark
    	// the corresponding endpoint slices for deletion.
    	for portKey, existingSlices := range existingSlicesByKey {
    		if _, ok := d.endpointsByKey[portKey]; !ok {
    			for _, existingSlice := range existingSlices {
    				slices.toDelete = append(slices.toDelete, existingSlice)
    			}
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  5. src/go/printer/gobuild.go

    		}
    	}
    	block = append(block, '\n')
    
    	// Build sorted list of lines to delete from remainder of output.
    	toDelete := append(p.goBuild, p.plusBuild...)
    	slices.Sort(toDelete)
    
    	// Collect output after insertion point, with lines deleted, into after.
    	var after []byte
    	start := insert
    	for _, end := range toDelete {
    		if end < start {
    			continue
    		}
    		after = appendLines(after, p.output[start:end])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java

            write(model, tgt);
        }
    
        private void deferDeleteFile(Path generatedFile) {
            toDelete.add(generatedFile.toAbsolutePath());
        }
    
        @PreDestroy
        private void doDeleteFiles() {
            for (Path file : toDelete) {
                try {
                    Files.delete(file);
                } catch (IOException e) {
                    // ignore, we did our best...
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Jan 10 12:55:54 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

            if (warnAboutCleanup) {
                System.out.println("[WARNING] TestFileManager from: " + callerInfo.getClassName() + " not cleaned up!");
            }
        }
    
        public void markForDeletion(File toDelete) {
            filesToDelete.add(toDelete);
            warnAboutCleanup = true;
        }
    
        public synchronized File createTempDir() {
            try {
                Thread.sleep(20);
            } catch (InterruptedException e) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. pilot/pkg/status/distribution/reporter.go

    			// remove from inProgressResources
    			// TODO: cleanup completedResources
    			toDelete = append(toDelete, item)
    		} else {
    			r.inProgressResources[item.ToModelKey()].completedIterations = total
    		}
    	}
    	for _, resource := range toDelete {
    		delete(r.inProgressResources, resource.ToModelKey())
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 30 17:25:17 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go

    	var nonDelete, toDelete []interface{}
    	for _, v := range l {
    		m, ok := v.(map[string]interface{})
    		if !ok {
    			return nil, nil, mergepatch.ErrBadArgType(m, v)
    		}
    
    		directive, foundDirective := m[directiveMarker]
    		if foundDirective && directive == deleteDirective {
    			toDelete = append(toDelete, v)
    		} else {
    			nonDelete = append(nonDelete, v)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 23:34:23 UTC 2023
    - 75.5K bytes
    - Viewed (0)
  10. pkg/adsc/adsc.go

    	t := time.NewTimer(to)
    	want := sets.New[string](updates...)
    	got := make([]string, 0, len(updates))
    	for {
    		select {
    		case toDelete := <-a.Updates:
    			if toDelete == "" {
    				return got, fmt.Errorf("closed")
    			}
    			want.Delete(toDelete)
    			got = append(got, toDelete)
    			if want.Len() == 0 {
    				return got, nil
    			}
    		case <-t.C:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 05 22:18:49 UTC 2024
    - 35K bytes
    - Viewed (0)
Back to top