Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 858 for err (0.03 sec)

  1. internal/config/dns/operator_dns.go

    	defer cancel()
    	e, err := c.endpoint(bucket, true)
    	if err != nil {
    		return err
    	}
    	req, err := http.NewRequestWithContext(ctx, http.MethodPost, e, nil)
    	if err != nil {
    		return err
    	}
    	if err = c.addAuthHeader(req); err != nil {
    		return err
    	}
    	resp, err := c.httpClient.Do(req)
    	if err != nil {
    		return err
    	}
    	xhttp.DrainBody(resp.Body)
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  2. cmd/auth-handler_test.go

    	defer cancel()
    
    	objLayer, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    
    	if err = newTestConfig(globalMinioDefaultRegion, objLayer); err != nil {
    		t.Fatalf("unable initialize config file, %s", err)
    	}
    
    	creds, err := auth.CreateCredentials("myuser", "mypassword")
    	if err != nil {
    		t.Fatalf("unable create credential, %s", err)
    	}
    
    	globalActiveCred = creds
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  3. lib/time/mkzip.go

    			CRC32:              crc32.ChecksumIEEE(data),
    		})
    		if err != nil {
    			log.Fatal(err)
    		}
    		if _, err := w.Write(data); err != nil {
    			log.Fatal(err)
    		}
    		seen[name] = true
    		return nil
    	})
    	if err != nil {
    		log.Fatal(err)
    	}
    	if err := zw.Close(); err != nil {
    		log.Fatal(err)
    	}
    	if len(seen) == 0 {
    		log.Fatalf("did not find any files to add")
    	}
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Mon Mar 04 17:32:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/cmd/addr2line/addr2line_test.go

    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("%v: %v\n%s", cmd, err, string(out))
    	}
    	syms := make(map[string]string)
    	scanner := bufio.NewScanner(bytes.NewReader(out))
    	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)
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Fri Sep 06 13:23:48 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. cmd/peer-rest-server.go

    		return
    	}
    
    	u, err := url.Parse(r.Form.Get(peerRESTURL))
    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    
    	sha256Sum, err := hex.DecodeString(r.Form.Get(peerRESTSha256Sum))
    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    	releaseInfo := r.Form.Get(peerRESTReleaseInfo)
    
    	lrTime, err := releaseInfoToReleaseTime(releaseInfo)
    	if err != nil {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  6. buildscripts/heal-manual.go

    	}
    
    	start, _, err := madmClnt.Heal(context.Background(), "healing-rewrite-bucket", "", opts, "", false, false)
    	if err != nil {
    		log.Fatalln(err)
    	}
    	fmt.Println("Healstart sequence ===")
    	enc := json.NewEncoder(os.Stdout)
    	if err = enc.Encode(&start); err != nil {
    		log.Fatalln(err)
    	}
    
    	fmt.Println()
    	for {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Feb 27 09:47:58 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. internal/grid/benchmark_test.go

    					// Send the payload.
    					t := time.Now()
    					st, err := conn.NewStream(ctx, handlerTest, payload)
    					if err != nil {
    						if debugReqs {
    							fmt.Println(err.Error())
    						}
    						b.Fatal(err.Error())
    					}
    					got := 0
    					err = st.Results(func(b []byte) error {
    						got++
    						PutByteBuffer(b)
    						return nil
    					})
    					if err != nil {
    						if debugReqs {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  8. internal/s3select/sql/evaluate.go

    		escapeStr, ok := escapeVal.ToString()
    		if !ok {
    			err := errLikeNonStrArg
    			return nil, errLikeInvalidInputs(err)
    		}
    
    		if len([]rune(escapeStr)) > 1 {
    			err := errLikeInvalidEscape
    			return nil, errLikeInvalidInputs(err)
    		}
    	}
    
    	matchResult, err := evalSQLLike(s, patternStr, escape)
    	if err != nil {
    		return nil, err
    	}
    
    	if e.Not {
    		matchResult = !matchResult
    	}
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12K bytes
    - Viewed (0)
  9. cmd/notification.go

    	}
    	ng.Wait()
    	if ctx.Err() != nil {
    		return false
    	}
    
    	// Local host
    	thisAddr, err := xnet.ParseHost(globalLocalNodeName)
    	if err != nil {
    		bugLogIf(ctx, err)
    		return profilingDataFound
    	}
    
    	data, err := getProfileData()
    	if err != nil {
    		reqInfo := (&logger.ReqInfo{}).AppendTags("peerAddress", thisAddr.String())
    		ctx := logger.SetReqInfo(ctx, reqInfo)
    		bugLogIf(ctx, err)
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  10. internal/bucket/versioning/versioning_test.go

    		}
    		if err != nil {
    			if tc.err == nil {
    				t.Fatalf("Test %d: failed due to %v", i+1, err)
    			}
    		} else {
    			if err := v.Validate(); tc.err != err {
    				t.Fatalf("Test %d: validation failed due to %v", i+1, err)
    			}
    			if len(tc.excludedPrefixes) > 0 {
    				var mismatch bool
    				if len(v.ExcludedPrefixes) != len(tc.excludedPrefixes) {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sun May 08 05:06:44 UTC 2022
    - 8.8K bytes
    - Viewed (0)
Back to top