- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 165 for oldData (0.39 sec)
-
pkg/controller/controller_utils.go
} oldData, err := json.Marshal(node) if err != nil { return fmt.Errorf("failed to marshal the existing node %#v: %v", node, err) } newData, err := json.Marshal(newNode) if err != nil { return fmt.Errorf("failed to marshal the new node %#v: %v", newNode, err) } patchBytes, err := strategicpatch.CreateTwoWayMergePatch(oldData, newData, &v1.Node{}) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 12 15:34:44 UTC 2024 - 47.6K bytes - Viewed (0) -
pkg/registry/rbac/helpers.go
copiedMeta, err := meta.Accessor(copied) if err != nil { return false } oldMeta, err := meta.Accessor(old) if err != nil { return false } copiedMeta.SetOwnerReferences(oldMeta.GetOwnerReferences()) copiedMeta.SetFinalizers(oldMeta.GetFinalizers()) copiedMeta.SetSelfLink(oldMeta.GetSelfLink()) copiedMeta.SetManagedFields(oldMeta.GetManagedFields()) return equalities.DeepEqual(copied, old)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 29 16:29:43 UTC 2020 - 1.5K bytes - Viewed (0) -
src/cmd/go/internal/robustio/robustio_other.go
// license that can be found in the LICENSE file. //go:build !windows && !darwin package robustio import ( "os" ) func rename(oldpath, newpath string) error { return os.Rename(oldpath, newpath) } func readFile(filename string) ([]byte, error) { return os.ReadFile(filename) } func removeAll(path string) error { return os.RemoveAll(path) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 516 bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/initialization/DefaultProjectDescriptorRegistry.java
@Override public void changeDescriptorPath(Path oldPath, Path newPath) { DefaultProjectDescriptor projectDescriptor = removeProject(oldPath.toString()); projectDescriptor.setPath(newPath); addProject(projectDescriptor); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 10:39:11 UTC 2019 - 1.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta.go
if newMeta.GetGeneration() < oldMeta.GetGeneration() { allErrs = append(allErrs, field.Invalid(fldPath.Child("generation"), newMeta.GetGeneration(), "must not be decremented")) } allErrs = append(allErrs, ValidateImmutableField(newMeta.GetName(), oldMeta.GetName(), fldPath.Child("name"))...) allErrs = append(allErrs, ValidateImmutableField(newMeta.GetNamespace(), oldMeta.GetNamespace(), fldPath.Child("namespace"))...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 07 03:12:31 UTC 2022 - 12K bytes - Viewed (0) -
pkg/volume/csi/csi_plugin.go
return ret, nil } ret.Spec = p.constructPVSourceSpec(volData[volDataKey.specVolID], volData[volDataKey.driverName], volData[volDataKey.volHandle]) return ret, nil } // constructVolSourceSpec constructs volume.Spec with CSIVolumeSource func (p *csiPlugin) constructVolSourceSpec(volSpecName, driverName string) *volume.Spec { vol := &api.Volume{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 29.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/version_buildvcs_fossil.txt
cd .. mv fslckout $fslckout env PATH=$WORK${/}fakebin${:}$oldpath chmod 0755 $WORK/fakebin/fossil ! exec fossil help cd a ! go install stderr '^error obtaining VCS status: exit status 1\n\tUse -buildvcs=false to disable VCS stamping.$' rm $GOBIN/a$GOEXE cd .. env PATH=$oldpath rm $fslckout # Revision and commit time are tagged for repositories with commits.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 03 15:33:59 UTC 2022 - 2.4K bytes - Viewed (0) -
src/cmd/go/internal/robustio/robustio.go
// Rename is like os.Rename, but on Windows retries errors that may occur if the // file is concurrently read or overwritten. // // (See golang.org/issue/31247 and golang.org/issue/32188.) func Rename(oldpath, newpath string) error { return rename(oldpath, newpath) } // ReadFile is like os.ReadFile, but on Windows retries errors that may // occur if the file is concurrently replaced. // // (See golang.org/issue/31247 and golang.org/issue/32188.)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 1.9K bytes - Viewed (0) -
src/cmd/go/testdata/script/version_buildvcs_hg.txt
[short] skip env GOBIN=$WORK/gopath/bin env oldpath=$PATH cd repo/a # If there's no local repository, there's no VCS info. go install go version -m $GOBIN/a$GOEXE ! stdout hgrevision rm $GOBIN/a$GOEXE # If there is a repository, but it can't be used for some reason, # there should be an error. It should hint about -buildvcs=false. cd .. mkdir .hg env PATH=$WORK${/}fakebin${:}$oldpath chmod 0755 $WORK/fakebin/hg ! exec hg help
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 30 18:09:02 UTC 2021 - 2.2K bytes - Viewed (0) -
pkg/util/filesystem/defaultfs.go
} return &defaultFile{file}, nil } // Rename via os.Rename func (fs *DefaultFs) Rename(oldpath, newpath string) error { if !strings.HasPrefix(oldpath, fs.root) { oldpath = fs.prefix(oldpath) } if !strings.HasPrefix(newpath, fs.root) { newpath = fs.prefix(newpath) } return os.Rename(oldpath, newpath) } // MkdirAll via os.MkdirAll func (fs *DefaultFs) MkdirAll(path string, perm os.FileMode) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 03 07:38:14 UTC 2023 - 4.7K bytes - Viewed (0)