Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,236 for deleteSV (0.16 sec)

  1. src/sync/map_reference_test.go

    	m.mu.Lock()
    	value, loaded = m.dirty[key]
    	if !loaded {
    		m.mu.Unlock()
    		return nil, false
    	}
    	delete(m.dirty, key)
    	m.mu.Unlock()
    	return value, loaded
    }
    
    func (m *RWMutexMap) Delete(key any) {
    	m.mu.Lock()
    	delete(m.dirty, key)
    	m.mu.Unlock()
    }
    
    func (m *RWMutexMap) CompareAndSwap(key, old, new any) (swapped bool) {
    	m.mu.Lock()
    	defer m.mu.Unlock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. pkg/kubelet/status/state/state_mem.go

    func (s *stateMemory) deleteContainer(podUID string, containerName string) {
    	delete(s.podAllocation[podUID], containerName)
    	if len(s.podAllocation[podUID]) == 0 {
    		delete(s.podAllocation, podUID)
    		delete(s.podResizeStatus, podUID)
    	}
    	klog.V(3).InfoS("Deleted pod resource allocation", "podUID", podUID, "containerName", containerName)
    }
    
    func (s *stateMemory) Delete(podUID string, containerName string) error {
    	s.Lock()
    	defer s.Unlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 18:21:21 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. pkg/proxy/ipvs/util/testing/fake_test.go

    	}
    	if len(list) != 3 {
    		t.Errorf("Expect 2 virtual servers, got: %d", len(list))
    	}
    	// Delete a virtual server
    	err = fake.DeleteVirtualServer(vs1)
    	if err != nil {
    		t.Errorf("Fail to delete virtual server: %v, error: %v", vs1, err)
    	}
    	// Check the deleted virtual server no longer exists
    	got, _ := fake.GetVirtualServer(vs1)
    	if got != nil {
    		t.Errorf("Expect nil, got: %v", got)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. pkg/controller/util/selectors/bimultimap.go

    		labeled := m.labeledBySelecting[sObject.selectorKey]
    		labeled.objects[labeledObject.key] = labeledObject
    	}
    }
    
    // Delete removes a labeled object and incoming associations.
    func (m *BiMultimap) Delete(key Key) {
    	m.mux.Lock()
    	defer m.mux.Unlock()
    	m.delete(key)
    }
    
    func (m *BiMultimap) delete(key Key) {
    	if _, ok := m.labeledObjects[key]; !ok {
    		// Does not exist.
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 21:41:32 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  5. samples/tcp-echo/README.md

        hello world
        pod "dummy" deleted
        ```
    
        As you observe, sending _world_ on a TCP connection to the server results in
        the server prepending _hello_ and echoing back with _hello world_.
    
    1. To clean up, execute the following command:
    
        ```console
        $ kubectl delete -f tcp-echo.yaml
        service "tcp-echo" deleted
        deployment.apps "tcp-echo" deleted
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Oct 28 07:41:56 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/autoserviceexportcontroller.go

    	// Only handle add. The controller only acts on parts of the service
    	// that are immutable (e.g. name). When we create ServiceExport, we bind its
    	// lifecycle to the Service so that when the Service is deleted,
    	// k8s automatically deletes the ServiceExport.
    	c.services.AddEventHandler(controllers.EventHandler[controllers.Object]{AddFunc: c.queue.AddObject})
    
    	return c
    }
    
    func (c *autoServiceExportController) Run(stopCh <-chan struct{}) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. pkg/controller/bootstrap/tokencleaner.go

    		if len(secret.UID) > 0 {
    			options.Preconditions = &metav1.Preconditions{UID: &secret.UID}
    		}
    		err := tc.client.CoreV1().Secrets(secret.Namespace).Delete(ctx, secret.Name, options)
    		// NotFound isn't a real error (it's already been deleted)
    		// Conflict isn't a real error (the UID precondition failed)
    		if err != nil && !apierrors.IsConflict(err) && !apierrors.IsNotFound(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. pkg/registry/scheduling/priorityclass/storage/storage.go

    // ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
    func (r *REST) ShortNames() []string {
    	return []string{"pc"}
    }
    
    // Delete ensures that system priority classes are not deleted.
    func (r *REST) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error) {
    	for _, spc := range schedulingapiv1.SystemPriorityClasses() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:13 UTC 2022
    - 3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/InsecureRecursiveDeleteException.java

    import javax.annotation.CheckForNull;
    
    /**
     * Exception indicating that a recursive delete can't be performed because the file system does not
     * have the support necessary to guarantee that it is not vulnerable to race conditions that would
     * allow it to delete files and directories outside of the directory being deleted (i.e., {@link
     * SecureDirectoryStream} is not supported).
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. pkg/test/framework/resource/config/plan.go

    import (
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/framework/resource/config/apply"
    )
    
    // Plan for configuration that can be applied or deleted as an atomic unit.
    // A Plan is initially created by a Factory, but then can continually be
    // appended to before finally calling Apply or Delete.
    type Plan interface {
    	// Factory for appending to this Config.
    	Factory
    
    	// Copy returns a deep copy of this Plan.
    	Copy() Plan
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 27 17:09:00 UTC 2022
    - 1.2K bytes
    - Viewed (0)
Back to top