Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for gomock (0.2 sec)

  1. internal/s3select/sql/value_test.go

    		t.Run(tt.name, func(t *testing.T) {
    			v := Value{
    				value: tt.fields.value,
    			}
    			gotVal, gotOk := v.bytesToBool()
    			if gotVal != tt.wantVal {
    				t.Errorf("bytesToBool() gotVal = %v, want %v", gotVal, tt.wantVal)
    			}
    			if gotOk != tt.wantOk {
    				t.Errorf("bytesToBool() gotOk = %v, want %v", gotOk, tt.wantOk)
    			}
    		})
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool.go

    	err = nil
    	objInfo = ObjectInfo{}
    
    	object = encodeDirObject(object)
    
    	if z.SinglePool() {
    		return z.serverPools[0].GetObjectInfo(ctx, bucket, object, opts)
    	}
    
    	if !opts.NoLock {
    		opts.NoLock = true // avoid taking locks at lower levels for multi-pool setups.
    
    		// Lock the object before reading.
    		lk := z.NewNSLock(bucket, object)
    		lkctx, err := lk.GetRLock(ctx, globalOperationTimeout)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool-decom.go

    						bi.Name,
    						encodeDirObject(version.Name),
    						nil,
    						http.Header{},
    						ObjectOptions{
    							VersionID:    versionID,
    							NoDecryption: true,
    							NoLock:       true,
    							NoAuditLog:   true,
    						})
    					if isErrObjectNotFound(err) || isErrVersionNotFound(err) {
    						// object deleted by the application, nothing to do here we move on.
    						ignore = true
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.3K bytes
    - Viewed (1)
  4. cmd/erasure-object.go

    	}
    
    	data := r.Reader
    
    	if opts.CheckPrecondFn != nil {
    		if !opts.NoLock {
    			ns := er.NewNSLock(bucket, object)
    			lkctx, err := ns.GetLock(ctx, globalOperationTimeout)
    			if err != nil {
    				return ObjectInfo{}, err
    			}
    			ctx = lkctx.Context()
    			defer ns.Unlock(lkctx)
    			opts.NoLock = true
    		}
    
    		obj, err := er.getObjectInfo(ctx, bucket, object, opts)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 76.9K bytes
    - Viewed (2)
  5. cmd/erasure-server-pool-rebalance.go

    			return err
    		}
    		defer lock.Unlock(lkCtx)
    
    		ctx = lkCtx.Context()
    
    		noLockOpts := ObjectOptions{NoLock: true}
    		return z.rebalMeta.saveWithOpts(ctx, z.serverPools[0], noLockOpts)
    	}
    
    	return nil
    }
    
    func (z *erasureServerPools) findIndex(index int) int {
    	for i := 0; i < len(z.rebalMeta.PoolStats); i++ {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  6. internal/jwt/parser.go

    // "accessKey" field.
    func (c *StandardClaims) SetAccessKey(accessKey string) {
    	c.Subject = accessKey
    	c.AccessKey = accessKey
    }
    
    // Valid - implements https://godoc.org/github.com/golang-jwt/jwt#Claims compatible
    // claims interface, additionally validates "accessKey" fields.
    func (c *StandardClaims) Valid() error {
    	if err := c.StandardClaims.Valid(); err != nil {
    		return err
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  7. cmd/sts-handlers_test.go

    	}
    
    	// Generate web identity STS token by interacting with OpenID IDP.
    	token, err := MockOpenIDTestUserInteraction(ctx, testAppParams, "******@****.***", "dillon")
    	if err != nil {
    		c.Fatalf("mock user err: %v", err)
    	}
    	// fmt.Printf("TOKEN: %s\n", token)
    
    	webID := cr.STSWebIdentity{
    		Client:      s.TestSuiteCommon.client,
    		STSEndpoint: s.endPoint,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  8. cmd/object-handlers.go

    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	ctx = lkctx.Context()
    	defer lock.RUnlock(lkctx)
    
    	getObjectNInfo := objectAPI.GetObjectNInfo
    
    	gopts := opts
    	gopts.NoLock = true // We already have a lock, we can live with it.
    	objInfo, err := getObjectInfo(ctx, bucket, object, gopts)
    	if err != nil {
    		// Versioning enabled quite possibly object is deleted might be delete-marker
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 125K bytes
    - Viewed (0)
  9. cmd/object-api-interface.go

    	CreatedAt         time.Time // only for site replication
    	NoLock            bool      // does not lock the make bucket call if set to 'true'
    }
    
    // DeleteBucketOptions provides options for DeleteBucket calls.
    type DeleteBucketOptions struct {
    	NoLock     bool             // does not lock the delete bucket call if set to 'true'
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  10. docs/sts/dex.yaml

    staticClients:
      - id: example-app
        redirectURIs:
          - 'http://localhost:8080/oauth2/callback'
        name: 'Example App'
        secret: ZXhhbXBsZS1hcHAtc2VjcmV0
    
    connectors:
      - type: mockCallback
        id: mock
        name: Example
    
    # Let dex keep a list of passwords which can be used to login to dex.
    enablePasswordDB: true
    
    # A static list of passwords to login the end user. By identifying here, dex
    Others
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jul 15 11:55:55 GMT 2020
    - 2.7K bytes
    - Viewed (1)
Back to top