Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 37 for AbsPath (0.22 sec)

  1. pkg/test/fakes/imageregistry/Makefile

    # See the License for the specific language governing permissions and
    # limitations under the License.
    
    .PHONY: build build_and_push clean all
    
    MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
    MD_PATH := $(dir $(MKFILE_PATH))
    HUB ?= gcr.io/istio-testing
    IMG := $(HUB)/fake-registry
    BIN_NAME := main
    
    # NOTE: TAG should be updated whenever changes are made in this directory
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 17 16:29:18 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. src/go/internal/srcimporter/srcimporter.go

    	return parser.ParseFile(p.fset, filepath.Join(tmpdir, "_cgo_gotypes.go"), nil, parser.SkipObjectResolution)
    }
    
    // context-controlled file system operations
    
    func (p *Importer) absPath(path string) (string, error) {
    	// TODO(gri) This should be using p.ctxt.AbsPath which doesn't
    	// exist but probably should. See also issue #14282.
    	return filepath.Abs(path)
    }
    
    func (p *Importer) isAbsPath(path string) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 18:54:32 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  3. cmd/importverifier/importverifier.go

    func isPathUnder(base, path string) (bool, error) {
    	absBase, err := filepath.Abs(base)
    	if err != nil {
    		return false, err
    	}
    	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 `../`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:16 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. src/net/http/cgi/host_test.go

    }
    
    func TestCGIBasicGetAbsPath(t *testing.T) {
    	absPath, err := filepath.Abs(os.Args[0])
    	if err != nil {
    		t.Fatal(err)
    	}
    	testenv.MustHaveExec(t)
    	h := &Handler{
    		Path: absPath,
    		Root: "/test.cgi",
    	}
    	expectedMap := map[string]string{
    		"env-REQUEST_URI":     "/test.cgi?foo=bar&a=b",
    		"env-SCRIPT_FILENAME": absPath,
    		"env-SCRIPT_NAME":     "/test.cgi",
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 18:29:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. cmd/update.go

    	// Convert to absolute path
    	absPath, err := filepath.Abs(path)
    	if err != nil {
    		return t, fmt.Errorf("Unable to get absolute path of %s. %w", path, err)
    	}
    
    	// Version is minio non-standard, we will use minio binary's
    	// ModTime as release time.
    	fi, err := Stat(absPath)
    	if err != nil {
    		return t, fmt.Errorf("Unable to get ModTime of %s. %w", absPath, err)
    	}
    
    	// Return the ModTime
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. hack/verify-flags-underscore.py

            l = list(new_excluded_flags)
            l.sort()
            print(("%s" % "\n".join(l)))
            sys.exit(1)
    
    def main():
        rootdir = os.path.dirname(__file__) + "/../"
        rootdir = os.path.abspath(rootdir)
    
        if len(args.filenames) > 0:
            files = args.filenames
        else:
            files = get_all_files(rootdir)
    
        check_underscore_in_flags(rootdir, files)
    
    if __name__ == "__main__":
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:51 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. cmd/kube-scheduler/app/testing/testserver.go

    		select {
    		case err := <-errCh:
    			return false, err
    		default:
    		}
    
    		result := client.CoreV1().RESTClient().Get().AbsPath("/healthz").Do(ctx)
    		status := 0
    		result.StatusCode(&status)
    		if status == 200 {
    			return true, nil
    		}
    		return false, nil
    	})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 10:35:59 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  8. hack/verify-publishing-bot.py

        import yaml
        with open(rules_file) as f:
            data = yaml.safe_load(f)
        return data
    
    
    def main():
        rootdir = os.path.dirname(__file__) + "/../"
        rootdir = os.path.abspath(rootdir)
    
        components = []
        for component in os.listdir(rootdir + '/staging/src/k8s.io/'):
            components.append(component)
        components.sort()
    
        rules_file = "/staging/publishing/rules.yaml"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 16:07:40 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/gccgo.go

    			args = append(args, "-ffile-prefix-map="+b.WorkDir+"=/tmp/go-build")
    		}
    		if fsys.OverlayFile != "" {
    			for _, name := range gofiles {
    				absPath := mkAbs(p.Dir, name)
    				overlayPath, ok := fsys.OverlayPath(absPath)
    				if !ok {
    					continue
    				}
    				toPath := absPath
    				// gccgo only applies the last matching rule, so also handle the case where
    				// BuildTrimpath is true and the path is relative to base.Cwd().
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 02 22:18:34 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. cmd/kube-controller-manager/app/testing/testserver.go

    		select {
    		case <-ctx.Done():
    			return false, ctx.Err()
    		case err := <-errCh:
    			return false, err
    		default:
    		}
    
    		result := client.CoreV1().RESTClient().Get().AbsPath("/healthz").Do(context.TODO())
    		status := 0
    		result.StatusCode(&status)
    		if status == 200 {
    			return true, nil
    		}
    		return false, nil
    	})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 11:28:02 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top