Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 942 for errC (0.03 sec)

  1. internal/config/batch/batch.go

    	if err != nil {
    		return cfg, err
    	}
    	if rduration < 0 {
    		return cfg, config.ErrInvalidBatchReplicationWorkersWait(nil)
    	}
    
    	kduration, err := time.ParseDuration(env.Get(EnvKeyRotationWorkersWait, kvs.GetWithDefault(KeyRotationWorkersWait, DefaultKVS)))
    	if err != nil {
    		return cfg, err
    	}
    	if kduration < 0 {
    		return cfg, config.ErrInvalidBatchKeyRotationWorkersWait(nil)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. cmd/erasure.go

    	return er.setDriveCount - er.defaultParityCount
    }
    
    func diskErrToDriveState(err error) (state string) {
    	switch {
    	case errors.Is(err, errDiskNotFound) || errors.Is(err, context.DeadlineExceeded):
    		state = madmin.DriveStateOffline
    	case errors.Is(err, errCorruptedFormat) || errors.Is(err, errCorruptedBackend):
    		state = madmin.DriveStateCorrupt
    	case errors.Is(err, errUnformattedDisk):
    		state = madmin.DriveStateUnformatted
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  3. cmd/mrf.go

    			mw := msgp.NewWriter(w)
    			n, err := mw.Write(data[:])
    			if err != nil {
    				w.CloseWithError(err)
    				return
    			}
    			if n != len(data) {
    				w.CloseWithError(io.ErrShortWrite)
    				return
    			}
    			for item := range m.opCh {
    				err = item.EncodeMsg(mw)
    				if err != nil {
    					break
    				}
    			}
    			mw.Flush()
    			w.CloseWithError(err)
    		}()
    		return r
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:26:05 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. cmd/postpolicyform_test.go

    		policyBytes, err := base64.StdEncoding.DecodeString(base64.StdEncoding.EncodeToString([]byte(pp.String())))
    		if err != nil {
    			t.Fatal(err)
    		}
    
    		postPolicyForm, err := parsePostPolicyForm(bytes.NewReader(policyBytes))
    		if err != nil {
    			t.Fatal(err)
    		}
    
    		err = checkPostPolicy(formValues, postPolicyForm)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  5. cmd/metacache-entries.go

    			xl, err := best.xlmeta()
    			if err == nil {
    				versions = append(versions, xl.versions)
    			}
    			for _, idx := range toMerge {
    				other := top[idx]
    				if other == nil {
    					continue
    				}
    				xl2, err := other.xlmeta()
    				if err != nil {
    					if err := selectFrom(idx); err != nil {
    						return err
    					}
    					continue
    				}
    				if xl == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  6. internal/config/etcd/etcd.go

    	cfg := Config{}
    	if err := config.CheckValidKeys(config.EtcdSubSys, kvs, DefaultKVS); err != nil {
    		return cfg, err
    	}
    
    	endpoints := env.Get(EnvEtcdEndpoints, kvs.Get(Endpoints))
    	if endpoints == "" {
    		return cfg, nil
    	}
    
    	etcdEndpoints, etcdSecure, err := parseEndpoints(endpoints)
    	if err != nil {
    		return cfg, err
    	}
    
    	cfg.Enabled = true
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 23:17:22 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. internal/hash/reader.go

    				err := ChecksumMismatch{
    					Want: r.contentHash.Encoded,
    					Got:  base64.StdEncoding.EncodeToString(sum),
    				}
    				return n, err
    			}
    		}
    	}
    	if err != nil && err != io.EOF {
    		if v, ok := err.(etag.VerifyError); ok {
    			return n, BadDigest{
    				ExpectedMD5:   v.Expected.String(),
    				CalculatedMD5: v.Computed.String(),
    			}
    		}
    	}
    	return n, err
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. cmd/xl-storage-format-utils_test.go

    			allVersionIDs = append(allVersionIDs, fi.VersionID)
    		}
    	}
    	buf, err := xl.AppendTo(nil)
    	if err != nil {
    		t.Fatalf("Failed to serialize xlmeta %v", err)
    	}
    	fivs, err := getFileInfoVersions(buf, basefi.Volume, basefi.Name, false)
    	if err != nil {
    		t.Fatalf("getFileInfoVersions failed: %v", err)
    	}
    	chkNumVersions := func(fis []FileInfo) bool {
    		for i := 0; i < len(fis)-1; i++ {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. docs/erasure/storage-class/README.md

    ```go
    s3Client, err := minio.New("localhost:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", true)
    if err != nil {
     log.Fatalln(err)
    }
    
    object, err := os.Open("my-testfile")
    if err != nil {
     log.Fatalln(err)
    }
    defer object.Close()
    objectStat, err := object.Stat()
    if err != nil {
     log.Fatalln(err)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. cmd/fmt-gen.go

    	deploymentID := ctxt.String("deployment-id")
    	err := buildServerCtxt(ctxt, &globalServerCtxt)
    	if err != nil {
    		log.Fatalln(err)
    	}
    	handleCommonArgs(globalServerCtxt)
    	pools, _, err := createServerEndpoints(globalMinioAddr, globalServerCtxt.Layout.pools, globalServerCtxt.Layout.legacy)
    	if err != nil {
    		log.Fatalln(err)
    	}
    
    	zipFile, err := os.Create("format.json.zip")
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top