Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 241 for geturl (0.18 sec)

  1. cmd/server_test.go

    // and If-Unmodified-Since headers set are validated.
    // If-Modified-Since - Return the object only if it has been modified since the specified time, else return a 304 (not modified).
    // If-Unmodified-Since - Return the object only if it has not been modified since the specified time, else return a 412 (precondition failed).
    func (s *TestSuiteCommon) TestHeadOnObjectLastModified(c *check) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  2. cmd/bucket-replication-stats.go

    	r.wlock.RLock()
    	defer r.wlock.RUnlock()
    	w := r.workers.get()
    	return ActiveWorkerStat{
    		Curr: w.Curr,
    		Max:  w.Max,
    		Avg:  w.Avg,
    	}
    }
    
    func (r *ReplicationStats) collectWorkerMetrics(ctx context.Context) {
    	if r == nil {
    		return
    	}
    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case <-r.wTimer.C:
    			r.wlock.Lock()
    			r.workers.update()
    			r.wlock.Unlock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  3. cmd/peer-rest-server.go

    		return np, grid.NewRemoteErr(errServerNotInitialized)
    	}
    
    	policyName := mss.Get(peerRESTPolicy)
    	if policyName == "" {
    		return np, grid.NewRemoteErr(errors.New("policyName is missing"))
    	}
    
    	if err := globalIAMSys.LoadPolicy(context.Background(), objAPI, policyName); err != nil {
    		return np, grid.NewRemoteErr(err)
    	}
    
    	return
    }
    
    // LoadPolicyMappingHandler - reloads a policy mapping on the server.
    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)
  4. cmd/bucket-replication.go

    // in front of MinIO.
    func checkRemoteEndpoint(ctx context.Context, epURL *url.URL) error {
    	reqURL := &url.URL{
    		Scheme: epURL.Scheme,
    		Host:   epURL.Host,
    		Path:   healthCheckPathPrefix + healthCheckReadinessPath,
    	}
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodGet, reqURL.String(), nil)
    	if err != nil {
    		return err
    	}
    
    	client := &http.Client{
    		Transport: globalRemoteTargetTransport,
    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)
  5. cmd/api-response.go

    	if s == nil {
    		return nil
    	}
    
    	if len(s.Items) == 0 {
    		return nil
    	}
    
    	if err := e.EncodeToken(start); err != nil {
    		return err
    	}
    
    	for _, item := range s.Items {
    		if err := e.Encode(xmlKeyEntry{
    			XMLName: xxml.Name{Local: item.Key},
    			Value:   item.Value,
    		}); err != nil {
    			return err
    		}
    	}
    
    	return e.EncodeToken(start.End())
    }
    
    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)
  6. cmd/xl-storage.go

    		}
    		if osIsPermission(err) {
    			return errDiskAccessDenied
    		} else if isSysErrIO(err) {
    			return errFaultyDisk
    		}
    		return err
    	}
    
    	// Stat succeeds we return errVolumeExists.
    	return errVolumeExists
    }
    
    // ListVols - list volumes.
    func (s *xlStorage) ListVols(ctx context.Context) (volsInfo []VolInfo, err error) {
    	return listVols(ctx, s.drivePath)
    }
    
    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/storage-rest-client.go

    		return errVolumeNotFound
    	case errVolumeExists.Error():
    		return errVolumeExists
    	case errFileNotFound.Error():
    		return errFileNotFound
    	case errFileVersionNotFound.Error():
    		return errFileVersionNotFound
    	case errFileNameTooLong.Error():
    		return errFileNameTooLong
    	case errFileAccessDenied.Error():
    		return errFileAccessDenied
    	case errPathNotFound.Error():
    		return errPathNotFound
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  8. cmd/encryption-v1.go

    		if err != nil {
    			return nil, err
    		}
    		return objectKey[:], nil
    	case crypto.SSEC:
    		sealedKey, err := crypto.SSEC.ParseMetadata(metadata)
    		if err != nil {
    			return nil, err
    		}
    		var objectKey crypto.ObjectKey
    		if err = objectKey.Unseal(key, sealedKey, crypto.SSEC.String(), bucket, object); err != nil {
    			return nil, err
    		}
    		return objectKey[:], nil
    	default:
    		return nil, errObjectTampered
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  9. cmd/iam-store.go

    				return auth.AccountOn
    			}
    			return auth.AccountOff
    		}(),
    	})
    
    	if err := store.saveUserIdentity(ctx, accessKey, regUser, uinfo); err != nil {
    		return updatedAt, err
    	}
    
    	if err := cache.updateUserWithClaims(accessKey, uinfo); err != nil {
    		return updatedAt, err
    	}
    
    	return uinfo.UpdatedAt, nil
    }
    
    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)
  10. internal/event/target/postgresql.go

    	if err := target.init(); err != nil {
    		return false, err
    	}
    	return target.isActive()
    }
    
    func (target *PostgreSQLTarget) isActive() (bool, error) {
    	if err := target.db.Ping(); err != nil {
    		if IsConnErr(err) {
    			return false, store.ErrNotConnected
    		}
    		return false, err
    	}
    	return true, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
Back to top