Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Sets (2.23 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/object-api-multipart_test.go

    	if err != nil {
    		// Failed to create NewMultipartUpload, abort.
    		t.Fatalf("%s : %s", instanceType, err.Error())
    	}
    
    	z := obj.(*erasureServerPools)
    	er := z.serverPools[0].sets[0]
    
    	erasureDisks := er.getDisks()
    	ridx := rand.Intn(len(erasureDisks))
    
    	z.serverPools[0].erasureDisksMu.Lock()
    	er.getDisks = func() []StorageAPI {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  8. cmd/peer-rest-server.go

    	if err := storageServerRequestValidate(r); err != nil {
    		s.writeErrorResponse(w, err)
    		return false
    	}
    	return true
    }
    
    // GetBandwidth gets the bandwidth for the buckets requested.
    func (s *peerRESTServer) GetBandwidth(params *grid.URLValues) (*bandwidth.BucketBandwidthReport, *grid.RemoteErr) {
    	buckets := params.Values().Get("buckets")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  9. cmd/xl-storage_test.go

    	u := url.URL{Path: path}
    	return newXLStorage(Endpoint{
    		URL:     &u,
    		IsLocal: true,
    		PoolIdx: 0,
    		SetIdx:  0,
    		DiskIdx: diskIdx,
    	}, true)
    }
    
    // creates a temp dir and sets up xlStorage layer.
    // returns xlStorage layer, temp dir path to be used for the purpose of tests.
    func newXLStorageTestSetup(tb testing.TB) (*xlStorageDiskIDCheck, string, error) {
    	diskPath := tb.TempDir()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  10. 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)
Back to top