Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 180 for whale (0.15 sec)

  1. cmd/streaming-signature-v4.go

    //   - http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html
    //
    // returns signature, error otherwise if the signature mismatches or any other
    // error while parsing and validating.
    func calculateSeedSignature(r *http.Request, trailers bool) (cred auth.Credentials, signature string, region string, date time.Time, errCode APIErrorCode) {
    	// Copy request.
    	req := *r
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  2. 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)
  3. 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 21 19:28:08 GMT 2024
    - Last Modified: Fri May 19 09:13:33 GMT 2023
    - 7.8K bytes
    - Viewed (3)
  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 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  5. cmd/encryption-v1.go

    	}
    
    	if err := w.buildDecrypter(w.parts[w.partIndex].Number); err != nil {
    		return nil, err
    	}
    
    	return w, nil
    }
    
    // DecryptBlocksReader - decrypts multipart parts, while implementing
    // a io.Reader compatible interface.
    type DecryptBlocksReader struct {
    	// Source of the encrypted content that will be decrypted
    	reader io.Reader
    	// Current decrypter for the current encrypted data block
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K 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. cmd/bitrot.go

    func closeBitrotWriters(ws []io.Writer) {
    	for _, w := range ws {
    		if w != nil {
    			if bw, ok := w.(io.Closer); ok {
    				bw.Close()
    			}
    		}
    	}
    }
    
    // Returns hash sum for whole-bitrot, nil for streaming-bitrot.
    func bitrotWriterSum(w io.Writer) []byte {
    	if bw, ok := w.(*wholeBitrotWriter); ok {
    		return bw.Sum(nil)
    	}
    	return nil
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  9. internal/grid/msg.go

    	OpPing
    
    	// OpPong is a OpPing response returned by the server.
    	OpPong
    
    	// OpConnectMux will connect a new mux with optional payload.
    	OpConnectMux
    
    	// OpMuxConnectError is an  error while connecting a mux.
    	OpMuxConnectError
    
    	// OpDisconnectClientMux instructs a client to disconnect a mux
    	OpDisconnectClientMux
    
    	// OpDisconnectServerMux instructs a server to disconnect (cancel) a server mux
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 28 19:22:29 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  10. cmd/signature-v2.go

    		return cred, ErrSignatureDoesNotMatch
    	}
    	return cred, ErrNone
    }
    
    // Escape encodedQuery string into unescaped list of query params, returns error
    // if any while unescaping the values.
    func unescapeQueries(encodedQuery string) (unescapedQueries []string, err error) {
    	for _, query := range strings.Split(encodedQuery, "&") {
    		var unescapedQuery string
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.2K bytes
    - Viewed (0)
Back to top