Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Breiding (0.15 sec)

  1. src/cmd/addr2line/addr2line_test.go

    	for scanner.Scan() {
    		f := strings.Fields(scanner.Text())
    		if len(f) < 3 {
    			continue
    		}
    		syms[f[2]] = f[0]
    	}
    	if err := scanner.Err(); err != nil {
    		t.Fatalf("error reading symbols: %v", err)
    	}
    	return syms
    }
    
    func runAddr2Line(t *testing.T, dbgExePath, addr string) (funcname, path, lineno string) {
    	cmd := testenv.Command(t, addr2linePath(t), dbgExePath)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. internal/logger/reqinfo.go

    	Val interface{}
    }
    
    // ObjectVersion object version key/versionId
    type ObjectVersion struct {
    	ObjectName string
    	VersionID  string `json:"VersionId,omitempty"`
    }
    
    // ReqInfo stores the request info.
    // Reading/writing directly to struct requires appropriate R/W lock.
    type ReqInfo struct {
    	RemoteHost   string           // Client Host/IP
    	Host         string           // Node Host/IP
    	UserAgent    string           // User Agent
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  3. internal/s3select/csv/reader.go

    	if cap(dst) < skip {
    		dst = make([]byte, 0, skip+1024)
    	}
    	dst = dst[:skip]
    	if skip > 0 {
    		n, err := io.ReadFull(r.buf, dst)
    		if err != nil && err != io.ErrUnexpectedEOF {
    			// If an EOF happens after reading some but not all the bytes,
    			// ReadFull returns ErrUnexpectedEOF.
    			return dst[:n], err
    		}
    		dst = dst[:n]
    		if err == io.ErrUnexpectedEOF {
    			return dst, io.EOF
    		}
    	}
    	// Read until next line.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  4. cmd/bitrot.go

    	if algo != HighwayHash256S {
    		h := algo.New()
    		if n, err := io.Copy(h, r); err != nil || n != wantSize {
    			// Premature failure in reading the object, file is corrupt.
    			return errFileCorrupt
    		}
    		if !bytes.Equal(h.Sum(nil), want) {
    			return errFileCorrupt
    		}
    		return nil
    	}
    
    	h := algo.New()
    	hashBuf := make([]byte, h.Size())
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  5. internal/grid/manager.go

    			}
    		}
    		defer conn.Close()
    		if debugPrint {
    			fmt.Printf("grid: Upgraded request: %v\n", req.URL)
    		}
    
    		msg, _, err := wsutil.ReadClientData(conn)
    		if err != nil {
    			writeErr(fmt.Errorf("reading connect: %w", err))
    			w.WriteHeader(http.StatusForbidden)
    			return
    		}
    		if debugPrint {
    			fmt.Printf("%s handler: Got message, length %v\n", m.local, len(msg))
    		}
    
    		var message message
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  6. internal/mountinfo/mountinfo_linux_test.go

    		`
    	var err error
    	dir := t.TempDir()
    
    	mountsPath := filepath.Join(dir, "mounts")
    	if err = os.WriteFile(mountsPath, []byte(successCase), 0o666); err != nil {
    		t.Fatal(err)
    	}
    	// Verifies if reading each line worked properly.
    	{
    		var mounts mountInfos
    		mounts, err = readProcMounts(mountsPath)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if len(mounts) != 3 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  7. cni/pkg/util/pluginutil.go

    	if !ok {
    		err = fmt.Errorf("error reading plugin list from CNI config")
    		return
    	}
    	return
    }
    
    // Given the raw plugin interface, return the plugin asserted as a map[string]interface{}
    func GetPlugin(rawPlugin any) (plugin map[string]any, err error) {
    	plugin, ok := rawPlugin.(map[string]any)
    	if !ok {
    		err = fmt.Errorf("error reading plugin from CNI config plugin list")
    		return
    	}
    	return
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  8. docs/debugging/xattr/main.go

    		if err := setxattr(path, name, value); err != nil {
    			log.Fatalln(fmt.Errorf("setting attribute %s failed with: %v", name, err))
    		}
    	} else {
    		if name == "" {
    			log.Fatalln("you must specify an attribute name for reading")
    		}
    		var names []string
    		if name == "." {
    			attrs, err := listxattr(path)
    			if err != nil {
    				log.Fatalln(fmt.Errorf("listing attributes failed with: %v", err))
    			}
    			names = append(names, attrs...)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 29 23:52:41 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  9. docs/sts/assume-role.go

    		if f, err := os.Open(sessionPolicyFile); err != nil {
    			log.Fatalf("Unable to open session policy file: %v", err)
    		} else {
    			defer f.Close()
    			bs, err := io.ReadAll(f)
    			if err != nil {
    				log.Fatalf("Error reading session policy file: %v", err)
    			}
    			policy = string(bs)
    		}
    		stsOpts.Policy = policy
    	}
    	if expiryDuration != 0 {
    		stsOpts.DurationSeconds = int(expiryDuration.Seconds())
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 16:09:55 GMT 2024
    - 4K bytes
    - Viewed (1)
  10. internal/disk/stat_linux.go

    	stats, err := readStat(statsFile)
    	if err != nil {
    		return IOStats{}, err
    	}
    	if len(stats) < 11 {
    		return IOStats{}, fmt.Errorf("found invalid format while reading %v", statsFile)
    	}
    	// refer https://www.kernel.org/doc/Documentation/block/stat.txt
    	iostats = IOStats{
    		ReadIOs:      stats[0],
    		ReadMerges:   stats[1],
    		ReadSectors:  stats[2],
    		ReadTicks:    stats[3],
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.8K bytes
    - Viewed (0)
Back to top