Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 88 for oldPath (0.13 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/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)
  3. 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)
  4. 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)
  5. src/syscall/zsyscall_linux_s390x.go

    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
    	var _p0 *byte
    	_p0, err = BytePtrFromString(oldpath)
    	if err != nil {
    		return
    	}
    	var _p1 *byte
    	_p1, err = BytePtrFromString(newpath)
    	if err != nil {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 35.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/imports.go

    	}
    
    	return
    }
    
    // RewriteImport rewrites any import of path oldPath to path newPath.
    func RewriteImport(fset *token.FileSet, f *ast.File, oldPath, newPath string) (rewrote bool) {
    	for _, imp := range f.Imports {
    		if importPath(imp) == oldPath {
    			rewrote = true
    			// record old End, because the default is to compute
    			// it using the length of imp.Path.Value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 21:56:21 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/fix/fix.go

    			f.Imports = f.Imports[:len(f.Imports)-1]
    			break
    		}
    	}
    
    	return
    }
    
    // rewriteImport rewrites any import of path oldPath to path newPath.
    func rewriteImport(f *ast.File, oldPath, newPath string) (rewrote bool) {
    	for _, imp := range f.Imports {
    		if importPath(imp) == oldPath {
    			rewrote = true
    			// record old End, because the default is to compute
    			// it using the length of imp.Path.Value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 14.6K 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/syscall/zsyscall_linux_arm64.go

    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
    	var _p0 *byte
    	_p0, err = BytePtrFromString(oldpath)
    	if err != nil {
    		return
    	}
    	var _p1 *byte
    	_p1, err = BytePtrFromString(newpath)
    	if err != nil {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 37.8K bytes
    - Viewed (0)
Back to top