Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for oldPath (0.31 sec)

  1. cmd/kubeadm/app/phases/upgrade/staticpods_test.go

    		backupManifestDir: backupManifestDir,
    		backupEtcdDir:     backupEtcdDir,
    		MoveFileFunc:      moveFileFunc,
    	}, nil
    }
    
    func (spm *fakeStaticPodPathManager) MoveFile(oldPath, newPath string) error {
    	return spm.MoveFileFunc(oldPath, newPath)
    }
    
    func (spm *fakeStaticPodPathManager) KubernetesDir() string {
    	return spm.kubernetesDir
    }
    
    func (spm *fakeStaticPodPathManager) PatchesDir() string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 32K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/mod/modfile/work.go

    			*d = Use{}
    		}
    	}
    	return nil
    }
    
    func (f *WorkFile) AddReplace(oldPath, oldVers, newPath, newVers string) error {
    	return addReplace(f.Syntax, &f.Replace, oldPath, oldVers, newPath, newVers)
    }
    
    func (f *WorkFile) DropReplace(oldPath, oldVers string) error {
    	for _, r := range f.Replace {
    		if r.Old.Path == oldPath && r.Old.Version == oldVers {
    			r.Syntax.markRemoved()
    			*r = Replace{}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/version_buildvcs_git.txt

    # controlled with -buildvcs. This test focuses on Git. Other tests focus on
    # other VCS tools but may not cover common functionality.
    
    [!git] skip
    [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 vcs.revision
    rm $GOBIN/a$GOEXE
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go

    	} else {
    		*funcref = error_Renameat
    	}
    	return (*funcref)(olddirfd, oldpath, newdirfd, newpath)
    }
    
    func error_Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
    	err = ENOSYS
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func impl_Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
    	var _p0 *byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 88.2K bytes
    - Viewed (0)
  5. src/syscall/syscall_linux.go

    	return readlinkat(_AT_FDCWD, path, buf)
    }
    
    func Rename(oldpath string, newpath string) (err error) {
    	return Renameat(_AT_FDCWD, oldpath, _AT_FDCWD, newpath)
    }
    
    func Rmdir(path string) error {
    	return unlinkat(_AT_FDCWD, path, _AT_REMOVEDIR)
    }
    
    //sys	symlinkat(oldpath string, newdirfd int, newpath string) (err error)
    
    func Symlink(oldpath string, newpath string) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/mod/modfile/rule.go

    		}
    	}
    	return nil
    }
    
    func (f *File) AddReplace(oldPath, oldVers, newPath, newVers string) error {
    	return addReplace(f.Syntax, &f.Replace, oldPath, oldVers, newPath, newVers)
    }
    
    func addReplace(syntax *FileSyntax, replace *[]*Replace, oldPath, oldVers, newPath, newVers string) error {
    	need := true
    	old := module.Version{Path: oldPath, Version: oldVers}
    	new := module.Version{Path: newPath, Version: newVers}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  7. src/internal/syscall/windows/syscall_windows.go

    	MOVEFILE_DELAY_UNTIL_REBOOT    = 0x4
    	MOVEFILE_WRITE_THROUGH         = 0x8
    	MOVEFILE_CREATE_HARDLINK       = 0x10
    	MOVEFILE_FAIL_IF_NOT_TRACKABLE = 0x20
    )
    
    func Rename(oldpath, newpath string) error {
    	from, err := syscall.UTF16PtrFromString(oldpath)
    	if err != nil {
    		return err
    	}
    	to, err := syscall.UTF16PtrFromString(newpath)
    	if err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/phases/upgrade/staticpods.go

    }
    
    // MoveFile should move a file from oldPath to newPath
    func (spm *KubeStaticPodPathManager) MoveFile(oldPath, newPath string) error {
    	return kubeadmutil.MoveFile(oldPath, newPath)
    }
    
    // KubernetesDir should point to the directory Kubernetes owns for storing various configuration files
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 10:07:41 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/workcmd/edit.go

    	}
    	old, new := strings.TrimSpace(before), strings.TrimSpace(after)
    	if strings.HasPrefix(new, ">") {
    		base.Fatalf("go: -replace=%s: separator between old and new is =, not =>", arg)
    	}
    	oldPath, oldVersion, err := parsePathVersionOptional("old", old, false)
    	if err != nil {
    		base.Fatalf("go: -replace=%s: %v", arg, err)
    	}
    	newPath, newVersion, err := parsePathVersionOptional("new", new, true)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    }
    
    func Rename(oldpath string, newpath string) (err error) {
    	return Renameat(AT_FDCWD, oldpath, AT_FDCWD, newpath)
    }
    
    func Rmdir(path string) error {
    	return Unlinkat(AT_FDCWD, path, AT_REMOVEDIR)
    }
    
    //sys	Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
    
    func Symlink(oldpath string, newpath string) (err error) {
    	return Symlinkat(oldpath, AT_FDCWD, newpath)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
Back to top