Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,604 for if (0.14 sec)

  1. cmd/metacache-stream.go

    func (r *metacacheReader) readN(n int, inclDeleted, inclDirs, inclVersions bool, prefix string) (metaCacheEntriesSorted, error) {
    	r.checkInit()
    	if n == 0 {
    		return metaCacheEntriesSorted{}, nil
    	}
    	if r.err != nil {
    		return metaCacheEntriesSorted{}, r.err
    	}
    
    	var res metaCacheEntries
    	if n > 0 {
    		res = make(metaCacheEntries, 0, n)
    	}
    	if prefix != "" {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users.go

    	if targetUser == requestorUser || targetUser == requestorParentUser {
    		isSvcAccForRequestor = true
    	}
    
    	// If we are creating svc account for request sender, ensure
    	// that targetUser is a real user (i.e. not derived
    	// credentials).
    	if isSvcAccForRequestor {
    		if requestorIsDerivedCredential {
    			if requestorParentUser == "" {
    				writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 15:15:02 GMT 2024
    - 76K bytes
    - Viewed (0)
  3. cmd/object-handlers-common.go

    }
    
    // Validates the preconditions. Returns true if GET/HEAD operation should not proceed.
    // Preconditions supported are:
    //
    //	If-Modified-Since
    //	If-Unmodified-Since
    //	If-Match
    //	If-None-Match
    func checkPreconditions(ctx context.Context, w http.ResponseWriter, r *http.Request, objInfo ObjectInfo, opts ObjectOptions) bool {
    	// Return false for methods other than GET and HEAD.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v1_gen.go

    	}
    	if (zb0001Mask & 0x20) == 0 { // if not omitted
    		// write "index"
    		err = en.Append(0xa5, 0x69, 0x6e, 0x64, 0x65, 0x78)
    		if err != nil {
    			return
    		}
    		err = en.WriteBytes(z.Index)
    		if err != nil {
    			err = msgp.WrapError(err, "Index")
    			return
    		}
    	}
    	if (zb0001Mask & 0x40) == 0 { // if not omitted
    		// write "crc"
    		err = en.Append(0xa3, 0x63, 0x72, 0x63)
    		if err != nil {
    			return
    		}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 40.2K bytes
    - Viewed (0)
  5. cmd/batch-handlers_gen.go

    				if z.Replicate == nil {
    					z.Replicate = new(BatchJobReplicateV1)
    				}
    				err = z.Replicate.DecodeMsg(dc)
    				if err != nil {
    					err = msgp.WrapError(err, "Replicate")
    					return
    				}
    			}
    		case "KeyRotate":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    					err = msgp.WrapError(err, "KeyRotate")
    					return
    				}
    				z.KeyRotate = nil
    			} else {
    				if z.KeyRotate == nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 07 18:58:22 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  6. cmd/bucket-replication-metrics_gen.go

    	// write "Curr"
    	err = en.Append(0x83, 0xa4, 0x43, 0x75, 0x72, 0x72)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.Curr)
    	if err != nil {
    		err = msgp.WrapError(err, "Curr")
    		return
    	}
    	// write "Avg"
    	err = en.Append(0xa3, 0x41, 0x76, 0x67)
    	if err != nil {
    		return
    	}
    	err = en.WriteFloat32(z.Avg)
    	if err != nil {
    		err = msgp.WrapError(err, "Avg")
    		return
    	}
    	// write "Max"
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 33.3K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool-rebalance_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Bucket)
    	if err != nil {
    		err = msgp.WrapError(err, "Bucket")
    		return
    	}
    	// write "ob"
    	err = en.Append(0xa2, 0x6f, 0x62)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Object)
    	if err != nil {
    		err = msgp.WrapError(err, "Object")
    		return
    	}
    	// write "no"
    	err = en.Append(0xa2, 0x6e, 0x6f)
    	if err != nil {
    		return
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  8. cmd/bucket-replication-utils_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.Version)
    	if err != nil {
    		err = msgp.WrapError(err, "Version")
    		return
    	}
    	// write "brs"
    	err = en.Append(0xa3, 0x62, 0x72, 0x73)
    	if err != nil {
    		return
    	}
    	err = en.WriteMapHeader(uint32(len(z.TargetsMap)))
    	if err != nil {
    		err = msgp.WrapError(err, "TargetsMap")
    		return
    	}
    	for za0001, za0002 := range z.TargetsMap {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 61.1K bytes
    - Viewed (0)
  9. schema/field.go

    		}
    	}
    
    	if v, ok := field.TagSettings["->"]; ok {
    		field.Creatable = false
    		field.Updatable = false
    		if strings.ToLower(v) == "false" {
    			field.Readable = false
    		} else {
    			field.Readable = true
    		}
    	}
    
    	if v, ok := field.TagSettings["<-"]; ok {
    		field.Creatable = true
    		field.Updatable = true
    
    		if v != "<-" {
    			if !strings.Contains(v, "create") {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  10. clause/where.go

    func (where Where) Build(builder Builder) {
    	if len(where.Exprs) == 1 {
    		if andCondition, ok := where.Exprs[0].(AndConditions); ok {
    			where.Exprs = andCondition.Exprs
    		}
    	}
    
    	// Switch position if the first query expression is a single Or condition
    	for idx, expr := range where.Exprs {
    		if v, ok := expr.(OrConditions); !ok || len(v.Exprs) > 1 {
    			if idx != 0 {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Tue Mar 05 02:23:51 GMT 2024
    - 5K bytes
    - Viewed (0)
Back to top