Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 183 for while (0.18 sec)

  1. internal/lsync/lrwmutex.go

    	if !success {
    		panic("Trying to Unlock() while no Lock() is active")
    	}
    }
    
    // RUnlock releases a read lock held on lm.
    //
    // It is a run-time error if lm is not locked on entry to RUnlock.
    func (lm *LRWMutex) RUnlock() {
    	isWriteLock := false
    	success := lm.unlock(isWriteLock)
    	if !success {
    		panic("Trying to RUnlock() while no RLock() is active")
    	}
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.8K bytes
    - Viewed (0)
  2. docs/sts/web-identity.go

    		}
    
    		clnt, err := minio.New(u.Host, opts)
    		if err != nil {
    			log.Println(fmt.Errorf("Error while initializing Minio client, %s", err))
    			http.Error(w, err.Error(), http.StatusBadRequest)
    			return
    		}
    		buckets, err := clnt.ListBuckets(r.Context())
    		if err != nil {
    			log.Println(fmt.Errorf("Error while listing buckets, %s", err))
    			http.Error(w, err.Error(), http.StatusBadRequest)
    			return
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri May 19 09:13:33 GMT 2023
    - 7.8K bytes
    - Viewed (3)
  3. internal/config/lambda/event/targetlist.go

    // any for the associated TargetID
    type TargetIDResult struct {
    	// ID where the remove or send were initiated.
    	ID TargetID
    	// Stores any error while removing a target or while sending an event.
    	Err error
    }
    
    // Remove - closes and removes targets by given target IDs.
    func (list *TargetList) Remove(targetIDSet TargetIDSet) {
    	list.Lock()
    	defer list.Unlock()
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  4. internal/event/targetlist.go

    // any for the associated TargetID
    type TargetIDResult struct {
    	// ID where the remove or send were initiated.
    	ID TargetID
    	// Stores any error while removing a target or while sending an event.
    	Err error
    }
    
    // Remove - closes and removes targets by given target IDs.
    func (list *TargetList) Remove(targetIDSet TargetIDSet) {
    	list.Lock()
    	defer list.Unlock()
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  5. internal/logger/targets.go

    var (
    
    	// systemTargets is the set of enabled loggers.
    	// Must be immutable at all times.
    	// Can be swapped to another while holding swapMu
    	systemTargets  = []Target{}
    	swapSystemMuRW sync.RWMutex
    
    	// auditTargets is the list of enabled audit loggers
    	// Must be immutable at all times.
    	// Can be swapped to another while holding swapMu
    	auditTargets  = []Target{}
    	swapAuditMuRW sync.RWMutex
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 02 22:56:14 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  6. internal/jwt/parser_test.go

    					data.tokenString = standardClaimsToken(claims)
    				}
    				err = ParseWithStandardClaims(data.tokenString, &StandardClaims{}, []byte("HelloSecret"))
    			}
    
    			if data.valid && err != nil {
    				t.Errorf("Error while verifying token: %T:%v", err, err)
    			}
    
    			if !data.valid && err == nil {
    				t.Errorf("Invalid token passed validation")
    			}
    
    			if data.errors != 0 {
    				_, ok := err.(*jwt.ValidationError)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Nov 05 19:20:08 GMT 2021
    - 6K bytes
    - Viewed (0)
  7. internal/http/transports.go

    			transport.TLSClientConfig.GetClientCertificate = c.GetClientCertificate
    		}
    	}
    	return transport, nil
    }
    
    // NewRemoteTargetHTTPTransport returns a new http configuration
    // used while communicating with the remote replication targets.
    func (s ConnSettings) NewRemoteTargetHTTPTransport(insecure bool) func() *http.Transport {
    	tr := s.getDefaultTransport(0)
    
    	tr.TLSHandshakeTimeout = 10 * time.Second
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 30 00:50:37 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  8. docs/throttle/README.md

    Example: Limit a MinIO cluster to accept at max 1600 simultaneous S3 API requests across all nodes of the cluster.
    
    ```sh
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Feb 12 00:51:25 GMT 2022
    - 2.4K bytes
    - Viewed (0)
  9. cmd/api-utils.go

    		return false
    	}
    
    	switch c {
    	case '-', '_', '.', '/', '*':
    		return false
    	}
    	return true
    }
    
    // s3URLEncode is based on Golang's url.QueryEscape() code,
    // while considering some S3 exceptions:
    //   - Avoid encoding '/' and '*'
    //   - Force encoding of '~'
    func s3URLEncode(s string) string {
    	spaceCount, hexCount := 0, 0
    	for i := 0; i < len(s); i++ {
    		c := s[i]
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  10. internal/config/api/help.go

    			Optional:    true,
    			Type:        "csv",
    		},
    		config.HelpKV{
    			Key:         apiRemoteTransportDeadline,
    			Description: `set the deadline for API requests on remote transports while proxying between federated instances e.g. "2h"` + defaultHelpPostfix(apiRemoteTransportDeadline),
    			Optional:    true,
    			Type:        "duration",
    		},
    		config.HelpKV{
    			Key:         apiListQuorum,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 15 01:07:19 GMT 2024
    - 4.7K bytes
    - Viewed (0)
Back to top