Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 74 for relPath (0.21 sec)

  1. cmd/importverifier/importverifier.go

    	}
    	absPath, err := filepath.Abs(path)
    	if err != nil {
    		return false, err
    	}
    
    	relPath, err := filepath.Rel(absBase, absPath)
    	if err != nil {
    		return false, err
    	}
    
    	// if path is below base, the relative path
    	// from base to path will not start with `../`
    	return !strings.HasPrefix(relPath, ".."), nil
    }
    
    // forbiddenImportsFor determines all of the forbidden
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:16 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. tests/integration/helm/util.go

    	scopes.Framework.Infof("=== succeeded === ")
    }
    
    func SetRevisionTag(ctx framework.TestContext, h *helm.Helm, fileSuffix, revision, revisionTag, relPath, version string) {
    	scopes.Framework.Infof("=== setting revision tag === ")
    	template, err := h.Template(IstiodReleaseName+"-"+revision, filepath.Join(relPath, version, ControlChartsDir, DiscoveryChartsDir)+fileSuffix,
    		IstioNamespace, "templates/revision-tags.yaml", Timeout, "--set",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 19:04:51 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modindex/scan.go

    // encoded representation. It returns ErrNotIndexed if the package can't
    // be indexed.
    func indexPackage(modroot, pkgdir string) []byte {
    	fsys.Trace("indexPackage", pkgdir)
    	p := importRaw(modroot, relPath(pkgdir, modroot))
    	return encodePackageBytes(p)
    }
    
    // rawPackage holds the information from each package that's needed to
    // fill a build.Package once the context is available.
    type rawPackage struct {
    	error string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modindex/read.go

    func (m *Module) Walk(f func(path string)) {
    	defer unprotect(protect(), nil)
    	for i := 0; i < m.n; i++ {
    		f(m.pkgDir(i))
    	}
    }
    
    // relPath returns the path relative to the module's root.
    func relPath(path, modroot string) string {
    	return str.TrimFilePathPrefix(filepath.Clean(path), filepath.Clean(modroot))
    }
    
    var installgorootAll = godebug.New("installgoroot").Value() == "all"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/zip/zip.go

    	err = filepath.Walk(dir, func(filePath string, info os.FileInfo, err error) error {
    		if err != nil {
    			return err
    		}
    		relPath, err := filepath.Rel(dir, filePath)
    		if err != nil {
    			return err
    		}
    		slashPath := filepath.ToSlash(relPath)
    
    		// Skip some subdirectories inside vendor, but maintain bug
    		// golang.org/issue/31562, described in isVendoredPackage.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 31K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/dryrun/dryrun.go

    type FileToPrint struct {
    	RealPath  string
    	PrintPath string
    }
    
    // NewFileToPrint makes a new instance of FileToPrint with the specified arguments
    func NewFileToPrint(realPath, printPath string) FileToPrint {
    	return FileToPrint{
    		RealPath:  realPath,
    		PrintPath: printPath,
    	}
    }
    
    // PrintDryRunFile is a helper method around PrintDryRunFiles
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. cmd/http-tracer.go

    		}
    		if host, port, err := net.SplitHostPort(nodeName); err == nil {
    			if port == "443" || port == "80" {
    				nodeName = host
    			}
    		}
    
    		// Calculate reqPath
    		reqPath := r.URL.RawPath
    		if reqPath == "" {
    			reqPath = r.URL.Path
    		}
    
    		// Calculate function name
    		funcName := tc.FuncName
    		if funcName == "" {
    			funcName = "<unknown>"
    		}
    
    		t := madmin.TraceInfo{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. hack/lib/init.sh

          fi
        fi
      )
    }
    
    # This emulates "realpath" which is not available on MacOS X
    # Test:
    # T=/tmp/$$.$RANDOM
    # mkdir $T
    # touch $T/file
    # mkdir $T/dir
    # ln -s $T/file $T/linkfile
    # ln -s $T/dir $T/linkdir
    # function testone() {
    #   X=$(realpath $1 2>&1)
    #   Y=$(kube::realpath $1 2>&1)
    #   if [ "$X" != "$Y" ]; then
    #     echo realpath $1: expected "$X", got "$Y"
    #   fi
    # }
    # testone /
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:18:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. pkg/apis/core/v1/validation/validation.go

    			if quantity.Cmp(limitQuantity) != 0 && !v1helper.IsOvercommitAllowed(resourceName) {
    				allErrs = append(allErrs, field.Invalid(reqPath, quantity.String(), fmt.Sprintf("must be equal to %s limit of %s", resourceName, limitQuantity.String())))
    			} else if quantity.Cmp(limitQuantity) > 0 {
    				allErrs = append(allErrs, field.Invalid(reqPath, quantity.String(), fmt.Sprintf("must be less than or equal to %s limit of %s", resourceName, limitQuantity.String())))
    			}
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. src/runtime/race/race_darwin_amd64.go

    //go:cgo_import_dynamic pthread_sigmask pthread_sigmask ""
    //go:cgo_import_dynamic pthread_threadid_np pthread_threadid_np ""
    //go:cgo_import_dynamic read read ""
    //go:cgo_import_dynamic readlink readlink ""
    //go:cgo_import_dynamic realpath$DARWIN_EXTSN realpath$DARWIN_EXTSN ""
    //go:cgo_import_dynamic rename rename ""
    //go:cgo_import_dynamic sched_yield sched_yield ""
    //go:cgo_import_dynamic setrlimit setrlimit ""
    //go:cgo_import_dynamic sigaction sigaction ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:29:22 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top