Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 119 for one (0.12 sec)

  1. internal/config/storageclass/storage-class.go

    		}
    	} else {
    		cfg.RRS.Parity = defaultRRSParity
    		if setDriveCount == 1 {
    			cfg.RRS.Parity = 0
    		}
    	}
    
    	// Validation is done after parsing both the storage classes. This is needed because we need one
    	// storage class value to deduce the correct value of the other storage class.
    	if err = validateParity(cfg.Standard.Parity, cfg.RRS.Parity, setDriveCount); err != nil {
    		return Config{}, err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    }
    
    // nextSuffix - provides a new unique suffix every time the function is called.
    func nextSuffix() string {
    	randmu.Lock()
    	r := randN
    	// Initial seed required, generate one.
    	if r == 0 {
    		r = reseed()
    	}
    	// constants from Numerical Recipes
    	r = r*1664525 + 1013904223
    	randN = r
    	randmu.Unlock()
    	return strconv.Itoa(int(1e9 + r%1e9))[1:]
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  3. cmd/endpoint-ellipses.go

    func GetAllSets(setDriveCount uint64, args ...string) ([][]string, error) {
    	var setArgs [][]string
    	if !ellipses.HasEllipses(args...) {
    		var setIndexes [][]uint64
    		// Check if we have more one args.
    		if len(args) > 1 {
    			var err error
    			setIndexes, err = getSetIndexes(args, []uint64{uint64(len(args))}, setDriveCount, nil)
    			if err != nil {
    				return nil, err
    			}
    		} else {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  4. cmd/xl-storage.go

    		return nil, osErrToFileErr(err)
    	}
    
    	w, err := OpenFile(filePath, mode, 0o666)
    	if err != nil {
    		// File path cannot be verified since one of the parents is a file.
    		switch {
    		case isSysErrIsDir(err):
    			return nil, errIsNotRegular
    		case osIsPermission(err):
    			return nil, errFileAccessDenied
    		case isSysErrNotDir(err):
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  5. cmd/signature-v4-utils_test.go

    	if extractedExpect != expectedExpect {
    		t.Errorf("expect header incorrect value: expected `%s`, got `%s`", expectedExpect, extractedExpect)
    	}
    
    	// case where the headers don't contain the one of the signed header in the signed headers list.
    	signedHeaders = append(signedHeaders, "X-Amz-Credential")
    	// expected to fail with `ErrUnsignedHeaders`.
    	_, errCode = extractSignedHeaders(signedHeaders, r)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  6. cmd/api-response.go

    type ListBucketsResponse struct {
    	XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ListAllMyBucketsResult" json:"-"`
    
    	Owner Owner
    
    	// Container for one or more buckets.
    	Buckets struct {
    		Buckets []Bucket `xml:"Bucket"`
    	} // Buckets are nested
    }
    
    // Upload container for in progress multipart upload
    type Upload struct {
    	Key          string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  7. cmd/iam-store.go

    	// values loaded from disk are not stale. They might be stale if the
    	// cached.updatedAt is more recent than the refresh cycle began.
    	if cache.updatedAt.Before(loadedAt) {
    		// No one has updated anything since the config was loaded,
    		// so we just replace whatever is on the disk into memory.
    		cache.iamGroupPolicyMap = newCache.iamGroupPolicyMap
    		cache.iamGroupsMap = newCache.iamGroupsMap
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  8. cmd/bucket-replication.go

    const (
    	replicateMetadata replicationAction = "metadata"
    	replicateNone     replicationAction = "none"
    	replicateAll      replicationAction = "all"
    )
    
    // matches k1 with all keys, returns 'true' if one of them matches
    func equals(k1 string, keys ...string) bool {
    	for _, k2 := range keys {
    		if strings.EqualFold(k1, k2) {
    			return true
    		}
    	}
    	return false
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  9. cmd/batch-expire.go

    	ri.Complete = ri.ObjectsFailed == 0
    	ri.Failed = ri.ObjectsFailed > 0
    	globalBatchJobsMetrics.save(job.ID, ri)
    
    	// Close the saverQuitCh - this also triggers saving in-memory state
    	// immediately one last time before we exit this method.
    	xioutil.SafeClose(saverQuitCh)
    
    	// Notify expire jobs final status to the configured endpoint
    	buf, _ := json.Marshal(ri)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  10. cmd/common-main.go

    			if !((u.Scheme == "http" || u.Scheme == "https") &&
    				u.Opaque == "" &&
    				!u.ForceQuery && u.RawQuery == "" && u.Fragment == "") {
    				err := fmt.Errorf("URL contains unexpected resources, expected URL to be one of http(s)://console.example.com or as a subpath via API endpoint http(s)://minio.example.com/minio format: %v", u)
    				logger.Fatal(err, "Invalid MINIO_BROWSER_REDIRECT_URL value is environment variable")
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
Back to top