Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for once (0.13 sec)

  1. cmd/erasure-server-pool.go

    		objects = objects[:maxKeys]
    		loi.IsTruncated = true
    	}
    	for _, obj := range objects {
    		if obj.IsDir && obj.ModTime.IsZero() && delimiter != "" {
    			// Only add each once.
    			// With slash delimiter we only get the directory once.
    			found := false
    			if delimiter != slashSeparator {
    				for _, p := range loi.Prefixes {
    					if found {
    						break
    					}
    					found = p == obj.Name
    				}
    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 took > maxDurationSecondsForLog {
    					// Log if we took a lot of time to load.
    					logger.Info("IAM expired STS purge took %.2fs", took)
    				}
    			}
    
    			// The following actions are performed about once in 4 times that
    			// IAM is refreshed:
    			if r.Intn(4) == 0 {
    				// Poll and remove accounts for those users who were removed
    				// from LDAP/OpenID.
    				if sys.LDAPConfig.Enabled() {
    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/erasure-object.go

    	var totalBytesRead int64
    	erasure, err := NewErasure(ctx, fi.Erasure.DataBlocks, fi.Erasure.ParityBlocks, fi.Erasure.BlockSize)
    	if err != nil {
    		return toObjectErr(err, bucket, object)
    	}
    
    	var healOnce sync.Once
    
    	for ; partIndex <= lastPartIndex; partIndex++ {
    		if length == totalBytesRead {
    			break
    		}
    
    		partNumber := fi.Parts[partIndex].Number
    
    		// Save the current part name and size.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  4. cmd/api-errors.go

    	ErrInvalidPart: {
    		Code:           "InvalidPart",
    		Description:    "One or more of the specified parts could not be found.  The part may not have been uploaded, or the specified entity tag may not match the part's entity tag.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrMissingPart: {
    		Code:           "InvalidRequest",
    		Description:    "You must specify at least one part",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    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)
  5. cmd/sts-handlers_test.go

    	ldap "github.com/minio/pkg/v2/ldap"
    	"golang.org/x/exp/slices"
    )
    
    func runAllIAMSTSTests(suite *TestSuiteIAM, c *check) {
    	suite.SetUpSuite(c)
    	// The STS for root test needs to be the first one after setup.
    	suite.TestSTSForRoot(c)
    	suite.TestSTS(c)
    	suite.TestSTSWithDenyDeleteVersion(c)
    	suite.TestSTSWithTags(c)
    	suite.TestSTSServiceAccountsWithUsername(c)
    	suite.TestSTSWithGroupPolicy(c)
    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)
  6. 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)
  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/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)
  9. cmd/peer-rest-server.go

    	if err = verifyBinary(u, sha256Sum, releaseInfo, getMinioMode(), zr); err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    }
    
    // CommitBinary - overwrites the current binary with the new one.
    func (s *peerRESTServer) CommitBinaryHandler(w http.ResponseWriter, r *http.Request) {
    	if !s.IsValid(w, r) {
    		s.writeErrorResponse(w, errors.New("Invalid request"))
    		return
    	}
    
    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)
  10. cmd/batch-handlers.go

    	writeSuccessNoContent(w)
    }
    
    //msgp:ignore BatchJobPool
    
    // BatchJobPool batch job pool
    type BatchJobPool struct {
    	ctx          context.Context
    	objLayer     ObjectLayer
    	once         sync.Once
    	mu           sync.Mutex
    	jobCh        chan *BatchJobRequest
    	jmu          sync.Mutex // protects jobCancelers
    	jobCancelers map[string]context.CancelFunc
    	workerKillCh chan struct{}
    	workerSize   int
    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