Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Sets (0.18 sec)

  1. cmd/erasure-server-pool.go

    // Return the disks belonging to the poolIdx, and setIdx.
    func (z *erasureServerPools) GetDisks(poolIdx, setIdx int) ([]StorageAPI, error) {
    	if poolIdx < len(z.serverPools) && setIdx < len(z.serverPools[poolIdx].sets) {
    		return z.serverPools[poolIdx].sets[setIdx].getDisks(), nil
    	}
    	return nil, fmt.Errorf("Matching pool %s, set %s not found", humanize.Ordinal(poolIdx+1), humanize.Ordinal(setIdx+1))
    }
    
    // Return the count of disks in each pool
    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)
  2. cmd/iam.go

    	if !sys.Initialized() {
    		return nil, errServerNotInitialized
    	}
    
    	return sys.store.ListPolicyDocs(ctx, bucketName)
    }
    
    // SetPolicy - sets a new named policy.
    func (sys *IAMSys) SetPolicy(ctx context.Context, policyName string, p policy.Policy) (time.Time, error) {
    	if !sys.Initialized() {
    		return time.Time{}, errServerNotInitialized
    	}
    
    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)
  3. cmd/sts-handlers_test.go

    	s.RestartIAMSuite(c)
    }
    
    // SetUpLDAPWithNonNormalizedBaseDN - expects to setup an LDAP test server using
    // the test LDAP container and canned data from
    // https://github.com/minio/minio-ldap-testing
    //
    // Sets up non-normalized base DN configuration for testing.
    func (s *TestSuiteIAM) SetUpLDAPWithNonNormalizedBaseDN(c *check, serverAddr string) {
    	ctx, cancel := context.WithTimeout(context.Background(), testDefaultTimeout)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    		return nil, nil, err
    	}
    
    	// Wait up to 10 seconds for disks to come online.
    	pools := obj.(*erasureServerPools)
    	t := time.Now()
    	for _, pool := range pools.serverPools {
    		for _, sets := range pool.erasureDisks {
    			for _, s := range sets {
    				if !s.IsLocal() {
    					for {
    						if s.IsOnline() {
    							break
    						}
    						time.Sleep(100 * time.Millisecond)
    						if time.Since(t) > 10*time.Second {
    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)
  5. cmd/iam-store.go

    		if err != nil {
    			return err
    		}
    	} else {
    
    		bootstrapTraceMsg("loading policy documents")
    		if err := store.loadPolicyDocs(ctx, newCache.iamPolicyDocsMap); err != nil {
    			return err
    		}
    
    		// Sets default canned policies, if none are set.
    		setDefaultCannedPolicies(newCache.iamPolicyDocsMap)
    
    		if store.getUsersSysType() == MinIOUsersSysType {
    			bootstrapTraceMsg("loading regular users")
    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)
  6. cmd/api-errors.go

    func getAPIError(code APIErrorCode) APIError {
    	if apiErr, ok := errorCodes[code]; ok {
    		return apiErr
    	}
    	return errorCodes.ToAPIErr(ErrInternalError)
    }
    
    // getErrorResponse gets in standard error and resource value and
    // provides a encodable populated response values
    func getAPIErrorResponse(ctx context.Context, err APIError, resource, requestID, hostID string) APIErrorResponse {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  7. cmd/batch-handlers.go

    						continue
    					}
    				}
    			}
    			job.delete(j.ctx, j.objLayer)
    			j.canceler(job.ID, false)
    		case <-j.workerKillCh:
    			return
    		}
    	}
    }
    
    // ResizeWorkers sets replication workers pool to new size
    func (j *BatchJobPool) ResizeWorkers(n int) {
    	if j == nil {
    		return
    	}
    
    	j.mu.Lock()
    	defer j.mu.Unlock()
    
    	for j.workerSize < n {
    		j.workerSize++
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  8. cmd/admin-handlers-users.go

    		Type:      madmin.SRIAMItemPolicy,
    		Name:      policyName,
    		Policy:    iamPolicyBytes,
    		UpdatedAt: updatedAt,
    	}))
    }
    
    // SetPolicyForUserOrGroup - sets a policy on a user or a group.
    //
    // PUT /minio/admin/v3/set-policy?policy=xxx&user-or-group=?[&is-group]
    //
    // Deprecated: This API is replaced by attach/detach policy APIs for specific
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  9. cmd/bucket-handlers.go

    	}))
    
    	// Write success response.
    	writeSuccessResponseHeadersOnly(w)
    }
    
    // GetBucketObjectLockConfigHandler - GET Bucket object lock configuration.
    // ----------
    // Gets the Object Lock configuration for a bucket. The rule specified in
    // the Object Lock configuration will be applied by default to every new
    // object placed in the specified bucket.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
Back to top