Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 274 for set1 (0.14 sec)

  1. cmd/metacache-set_gen.go

    				return
    			}
    		case "pool":
    			z.pool, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "pool")
    				return
    			}
    		case "set":
    			z.set, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "set")
    				return
    			}
    		default:
    			err = dc.Skip()
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	return
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 20:23:12 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool-rebalance.go

    	workerSize, err := env.GetInt(envRebalanceWorkers, len(pool.sets))
    	if err != nil {
    		rebalanceLogIf(ctx, fmt.Errorf("invalid workers value err: %v, defaulting to %d", err, len(pool.sets)))
    		workerSize = len(pool.sets)
    	}
    
    	// Each decom worker needs one List() goroutine/worker
    	// add that many extra workers.
    	workerSize += len(pool.sets)
    
    	wk, err := workers.New(workerSize)
    	if err != nil {
    		return err
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool.go

    		if z.IsSuspended(idx) {
    			continue
    		}
    		errs := make([]error, len(erasureSet.sets))
    		var wg sync.WaitGroup
    		for idx, set := range erasureSet.sets {
    			wg.Add(1)
    			go func(idx int, set *erasureObjects) {
    				defer wg.Done()
    
    				errs[idx] = set.listAndHeal(ctx, bucket, prefix, opts.ScanMode, healEntry)
    			}(idx, set)
    		}
    		wg.Wait()
    		poolErrs = append(poolErrs, errs)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  4. docs/debugging/reorder-disks/main.go

    	var f format
    	err = json.Unmarshal(formatJSON, &f)
    	if err != nil {
    		return format{}, err
    	}
    
    	return f, nil
    }
    
    func getDiskLocation(f format) (string, error) {
    	for i, set := range f.XL.Sets {
    		for j, disk := range set {
    			if disk == f.XL.This {
    				return fmt.Sprintf("%d-%d", i, j), nil
    			}
    		}
    	}
    	return "", errors.New("format.json is corrupted")
    }
    
    func main() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. cmd/signature-v4-utils.go

    		v, ok = r.Header[xhttp.AmzContentSha256]
    	}
    
    	// Skip if no header was set.
    	if !ok {
    		return true
    	}
    
    	// If x-amz-content-sha256 is set and the value is not
    	// 'UNSIGNED-PAYLOAD' we should validate the content sha256.
    	switch v[0] {
    	case unsignedPayload, unsignedPayloadTrailer:
    		return true
    	case emptySHA256:
    		// some broken clients set empty-sha256
    		// with > 0 content-length in the body,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. cmd/iam.go

    // role-arn case (because the role-to-policy mapping is separately stored
    // elsewhere), the AssumeRole case (because the parent user is real and their
    // policy is associated via policy-set API) and the AssumeRoleWithLDAP case
    // (because the policy association is made via policy-set API).
    func (sys *IAMSys) SetTempUser(ctx context.Context, accessKey string, cred auth.Credentials, policyName string) (time.Time, error) {
    	if !sys.Initialized() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  7. cmd/object-handlers.go

    		}
    		return
    	}
    
    	// Set encryption response headers
    	switch kind, _ := crypto.IsEncrypted(objInfo.UserDefined); kind {
    	case crypto.S3:
    		w.Header().Set(xhttp.AmzServerSideEncryption, xhttp.AmzEncryptionAES)
    	case crypto.S3KMS:
    		w.Header().Set(xhttp.AmzServerSideEncryption, xhttp.AmzEncryptionKMS)
    		w.Header().Set(xhttp.AmzServerSideEncryptionKmsID, objInfo.KMSKeyID())
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  8. internal/config/identity/openid/openid.go

    		if p.ClaimName != policy.PolicyName && p.RolePolicy != "" {
    			// In the unlikely event that the user specifies
    			// `policy.PolicyName` as the claim name explicitly and sets
    			// a role policy, this check is thwarted, but we will be using
    			// the role policy anyway.
    			return c, config.Errorf("Role Policy (=`%s`) and Claim Name (=`%s`) cannot both be set", p.RolePolicy, p.ClaimName)
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 16.5K bytes
    - Viewed (0)
  9. docs/metrics/prometheus/README.md

    ```
    
    Here `prometheus.yml` is the name of configuration file. You can now see MinIO metrics in Prometheus dashboard. By default Prometheus dashboard is accessible at `http://localhost:9090`.
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 15:49:30 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  10. cmd/object-multipart-handlers.go

    	if kind, encrypted := crypto.IsEncrypted(mi.UserDefined); encrypted {
    		switch kind {
    		case crypto.S3KMS:
    			w.Header().Set(xhttp.AmzServerSideEncryption, xhttp.AmzEncryptionKMS)
    			w.Header().Set(xhttp.AmzServerSideEncryptionKmsID, mi.KMSKeyID())
    			if kmsCtx, ok := mi.UserDefined[crypto.MetaContext]; ok {
    				w.Header().Set(xhttp.AmzServerSideEncryptionKmsContext, kmsCtx)
    			}
    			if len(etag) >= 32 && strings.Count(etag, "-") != 1 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
Back to top