Search Options

Results per page
Sort
Preferred Languages
Advance

Results 551 - 560 of 938 for NIL (0.04 sec)

  1. callbacks/raw.go

    package callbacks
    
    import (
    	"gorm.io/gorm"
    )
    
    func RawExec(db *gorm.DB) {
    	if db.Error == nil && !db.DryRun {
    		result, err := db.Statement.ConnPool.ExecContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...)
    		if err != nil {
    			db.AddError(err)
    			return
    		}
    
    		db.RowsAffected, _ = result.RowsAffected()
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Nov 29 01:33:20 UTC 2021
    - 336 bytes
    - Viewed (0)
  2. internal/crypto/sse.go

    func IsRequested(h http.Header) (Type, bool) {
    	switch {
    	case S3.IsRequested(h):
    		return S3, true
    	case S3KMS.IsRequested(h):
    		return S3KMS, true
    	case SSEC.IsRequested(h):
    		return SSEC, true
    	default:
    		return nil, false
    	}
    }
    
    // Requested returns whether any type of encryption is requested.
    func Requested(h http.Header) bool {
    	return S3.IsRequested(h) || S3KMS.IsRequested(h) || SSEC.IsRequested(h)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 30 15:26:43 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  3. cmd/admin-handlers-idp-ldap.go

    	if objectAPI == nil {
    		return
    	}
    
    	// Validate API arguments.
    
    	q := madmin.PolicyEntitiesQuery{
    		Users:  r.Form["user"],
    		Groups: r.Form["group"],
    		Policy: r.Form["policy"],
    	}
    
    	// Query IAM
    
    	res, err := globalIAMSys.QueryLDAPPolicyEntities(r.Context(), q)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/arch/arm64.go

    		case "B":
    			if !isIndex {
    				return nil
    			}
    			a.Reg = arm64.REG_ELEM + (reg & 31) + ((arm64.ARNG_B & 15) << 5)
    			a.Index = num
    		case "H":
    			if !isIndex {
    				return nil
    			}
    			a.Reg = arm64.REG_ELEM + (reg & 31) + ((arm64.ARNG_H & 15) << 5)
    			a.Index = num
    		case "S":
    			if !isIndex {
    				return nil
    			}
    			a.Reg = arm64.REG_ELEM + (reg & 31) + ((arm64.ARNG_S & 15) << 5)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Sep 29 09:04:58 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/endtoend_test.go

    		ok = false
    	}
    	obj.Flushplist(ctxt, pList, nil)
    
    	for p := top; p != nil; p = p.Link {
    		if p.As == obj.ATEXT {
    			text = p.From.Sym
    		}
    		hexes := hexByLine[p.Line()]
    		if hexes == "" {
    			continue
    		}
    		delete(hexByLine, p.Line())
    		if text == nil {
    			t.Errorf("%s: instruction outside TEXT", p)
    		}
    		size := int64(len(text.P)) - p.Pc
    		if p.Link != nil {
    			size = p.Link.Pc - p.Pc
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Dec 07 18:42:59 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  6. cmd/metrics-v3-api.go

    	labelsFilter := map[string]set.StringSet{}
    	m.SetHistogram(apiRequestsTTFBSecondsDistribution, httpRequestsDuration, labelsFilter, renameLabels, nil,
    		"type", "s3")
    	return nil
    }
    
    // loadAPIRequestsNetworkMetrics - loads S3 network metrics.
    //
    // This is a `MetricsLoaderFn`.
    func loadAPIRequestsNetworkMetrics(ctx context.Context, m MetricValues, _ *metricsCache) error {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. cmd/api-resources.go

    	if values.Get("max-parts") != "" {
    		if maxParts, err = strconv.Atoi(values.Get("max-parts")); err != nil {
    			errCode = ErrInvalidMaxParts
    			return
    		}
    	} else {
    		maxParts = maxPartsList
    	}
    
    	if values.Get("part-number-marker") != "" {
    		if partNumberMarker, err = strconv.Atoi(values.Get("part-number-marker")); err != nil {
    			errCode = ErrInvalidPartNumberMarker
    			return
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 07 18:25:26 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. internal/config/subnet/config.go

    	cfg.Proxy = proxy
    
    	if transport == nil {
    		// when transport is nil, it means we are just validating the
    		// inputs not performing any network calls.
    		return cfg, nil
    	}
    
    	// Make sure to clone the transport before editing the ProxyURL
    	if proxyURL != nil {
    		ctransport := transport.(*http.Transport).Clone()
    		ctransport.Proxy = http.ProxyURL((*url.URL)(proxyURL))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. tests/named_argument_test.go

    		t.Errorf("failed to update with named arg")
    	}
    
    	AssertEqual(t, result4, namedUser)
    
    	if err := DB.Exec("UPDATE named_users SET name1 = @name, name2 = @name2, name3 = @name", sql.Named("name", "jinzhu-new"), sql.Named("name2", "jinzhu-new2")).Error; err != nil {
    		t.Errorf("failed to update with named arg")
    	}
    
    	namedUser.Name1 = "jinzhu-new"
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Dec 21 11:50:00 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  10. cmd/kms-handlers_test.go

    	}
    
    	if accessKey == "" && secretKey == "" {
    		accessKey = globalActiveCred.AccessKey
    		secretKey = globalActiveCred.SecretKey
    	}
    
    	req, err := newTestSignedRequestV4(method, path, 0, nil, accessKey, secretKey, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return req
    }
    
    // setupKMSUser is a test helper that creates a new user with the provided access key and secret key
    // and applies the given policy to the user.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top