Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for newNames (0.17 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/status/naming_controller.go

    	} else {
    		newNames.Plural = requestedNames.Plural
    	}
    	if err := equalToAcceptedOrFresh(requestedNames.Singular, acceptedNames.Singular, allResources); err != nil {
    		namesAcceptedCondition.Status = apiextensionsv1.ConditionFalse
    		namesAcceptedCondition.Reason = "SingularConflict"
    		namesAcceptedCondition.Message = err.Error()
    	} else {
    		newNames.Singular = requestedNames.Singular
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  2. src/syscall/dirent.go

    // appending the names to names. It returns the number of
    // bytes consumed from buf, the number of entries added
    // to names, and the new names slice.
    func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
    	origlen := len(buf)
    	count = 0
    	for max != 0 && len(buf) > 0 {
    		reclen, ok := direntReclen(buf)
    		if !ok || reclen > uint64(len(buf)) {
    			return origlen, count, names
    		}
    		rec := buf[:reclen]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/gateway.go

    			gatewayVirtualServices[gatewayName] = virtualServices
    		}
    
    		for _, virtualService := range virtualServices {
    			virtualServiceHosts := host.NewNames(virtualService.Spec.(*networking.VirtualService).Hosts)
    			serverHosts := host.NamesForNamespace(server.Hosts, virtualService.Namespace)
    
    			// We have two cases here:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 46.4K bytes
    - Viewed (0)
  4. pkg/kube/krt/collection_test.go

    		{
    			Named:         NewNamed(pod),
    			MatchingSizes: 2,
    		},
    		{
    			Named:         NewNamed(dual),
    			MatchingSizes: 2,
    		},
    	})
    
    	pc.Delete(dual.Name, dual.Namespace)
    	tt.WaitUnordered("update/namespace/name", "delete/namespace/name-dual")
    	assert.Equal(t, fetcherSorted(Thingys)(), []PodSizeCount{{
    		Named:         NewNamed(pod),
    		MatchingSizes: 1,
    	}})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. pkg/kube/krt/index_test.go

    	tt.WaitUnordered("add/namespace/name")
    	assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.4"}})
    
    	pod.Status.PodIP = "1.2.3.5"
    	pc.UpdateStatus(pod)
    	tt.WaitUnordered("update/namespace/name")
    	assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{})
    	assert.Equal(t, fetchSorted("1.2.3.5"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.5"}})
    
    	pod2 := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. src/os/file_plan9.go

    	}
    	return nil
    }
    
    func rename(oldname, newname string) error {
    	dirname := oldname[:bytealg.LastIndexByteString(oldname, '/')+1]
    	if stringslite.HasPrefix(newname, dirname) {
    		newname = newname[len(dirname):]
    	} else {
    		return &LinkError{"rename", oldname, newname, ErrInvalid}
    	}
    
    	// If newname still contains slashes after removing the oldname
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:35:30 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. src/os/file_windows.go

    			n--
    		}
    		return syscall.UTF16ToString(b[:n])
    	}
    }
    
    // Link creates newname as a hard link to the oldname file.
    // If there is an error, it will be of type *LinkError.
    func Link(oldname, newname string) error {
    	n, err := syscall.UTF16PtrFromString(fixLongPath(newname))
    	if err != nil {
    		return &LinkError{"link", oldname, newname, err}
    	}
    	o, err := syscall.UTF16PtrFromString(fixLongPath(oldname))
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/telemetry/internal/upload/upload.go

    	fdate = fdate[len(fdate)-len("2006-01-02"):]
    
    	newname := filepath.Join(u.dir.UploadDir(), fdate+".json")
    	if _, err := os.Stat(newname); err == nil {
    		// Another process uploaded but failed to clean up (or hasn't yet cleaned
    		// up). Ensure that cleanup occurs.
    		_ = os.Remove(fname)
    		return false
    	}
    
    	// Lock the upload, to prevent duplicate uploads.
    	{
    		lockname := newname + ".lock"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. src/os/file_unix.go

    				err = pe.Err
    			}
    			return &LinkError{"rename", oldname, newname, err}
    		} else if newname == oldname || !SameFile(fi, ofi) {
    			return &LinkError{"rename", oldname, newname, syscall.EEXIST}
    		}
    	}
    	err = ignoringEINTR(func() error {
    		return syscall.Rename(oldname, newname)
    	})
    	if err != nil {
    		return &LinkError{"rename", oldname, newname, err}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  10. migrator/migrator.go

    func (m Migrator) RenameColumn(value interface{}, oldName, newName string) error {
    	return m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		if stmt.Schema != nil {
    			if field := stmt.Schema.LookUpField(oldName); field != nil {
    				oldName = field.DBName
    			}
    
    			if field := stmt.Schema.LookUpField(newName); field != nil {
    				newName = field.DBName
    			}
    		}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
Back to top