Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 176 for newobj (0.31 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/value.go

    		}
    		return ntvMap.Interface(), nil
    	}
    
    	if typeDesc.Kind() == reflect.Struct {
    		ntvObjPtr := reflect.New(typeDesc)
    		ntvObj := ntvObjPtr.Elem()
    		for name, val := range sv.fieldMap {
    			f := ntvObj.FieldByName(name)
    			if !f.IsValid() {
    				return nil, fmt.Errorf("type conversion error, no such field %s in type %v",
    					name, typeDesc)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 20.5K bytes
    - Viewed (0)
  2. gorm.go

    	Statement    *Statement
    	clone        int
    }
    
    // Session session config when create session with Session() method
    type Session struct {
    	DryRun                   bool
    	PrepareStmt              bool
    	NewDB                    bool
    	Initialized              bool
    	SkipHooks                bool
    	SkipDefaultTransaction   bool
    	DisableNestedTransaction bool
    	AllowGlobalUpdate        bool
    	FullSaveAssociations     bool
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sun Aug 20 11:46:56 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  3. callbacks/associations.go

    					}
    
    					for i := 0; i < elemLen; i++ {
    						appendToJoins(objs[i], elems.Index(i))
    					}
    				}
    
    				if joins.Len() > 0 {
    					db.AddError(db.Session(&gorm.Session{NewDB: true}).Clauses(clause.OnConflict{DoNothing: true}).Session(&gorm.Session{
    						SkipHooks:                db.Statement.SkipHooks,
    						DisableNestedTransaction: true,
    					}).Create(joins.Interface()).Error)
    				}
    			}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  4. tests/transaction_test.go

    		t.Fatalf("Should not find record after rollback, but got %v", err)
    	}
    
    	txDB := DB.Where("fake_name = ?", "fake_name")
    	tx2 := txDB.Session(&gorm.Session{NewDB: true}).Begin()
    	user2 := *GetUser("transaction-2", Config{})
    	if err := tx2.Save(&user2).Error; err != nil {
    		t.Fatalf("No error should raise, but got %v", err)
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. tests/connpool_test.go

    		t.Fatalf("Should not find record after rollback, but got %v", err)
    	}
    
    	txDB := db.Where("fake_name = ?", "fake_name")
    	tx2 := txDB.Session(&gorm.Session{NewDB: true}).Begin()
    	user2 := *GetUser("transaction-2", Config{})
    	if err = tx2.Save(&user2).Error; err != nil {
    		t.Fatalf("No error should raise, but got %v", err)
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Feb 06 02:54:40 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. docs/bucket/replication/DESIGN.md

          "etag": "8315e643ed6a5d7c9962fc0a8ef9c11f",
          "x-amz-storage-class": "STANDARD"
        },
    ...
    ```
    
    ### Additional replication metadata for DeleteMarker
    
    ```
    ...
     {
          "DelObj": {
          "ID": "u8H5pYQFRMKgkIgkpSKIkQ==",
          "MTime": 1631843124147668389,
          "MetaSys": {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Sep 29 04:28:45 UTC 2022
    - 14.7K bytes
    - Viewed (0)
  7. finisher_api.go

    		}
    	}
    
    	for {
    		result := queryDB.Limit(batchSize).Find(dest)
    		rowsAffected += result.RowsAffected
    		batch++
    
    		if result.Error == nil && result.RowsAffected != 0 {
    			fcTx := result.Session(&Session{NewDB: true})
    			fcTx.RowsAffected = result.RowsAffected
    			tx.AddError(fc(fcTx, batch))
    		} else if result.Error != nil {
    			tx.AddError(result.Error)
    		}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  8. pkg/kubelet/container/helpers_test.go

    	_, actual = innerEventRecorder.shouldRecordEvent(obj)
    	assert.Equal(t, false, actual)
    
    	var nilObj *v1.ObjectReference = nil
    	_, actual = innerEventRecorder.shouldRecordEvent(nilObj)
    	assert.Equal(t, false, actual, "should not panic if the typed nil was used, see https://github.com/kubernetes/kubernetes/issues/95552")
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/nodevolumelimits/non_csi.go

    }
    
    // EBSName is the name of the plugin used in the plugin registry and configurations.
    const EBSName = names.EBSLimits
    
    // NewEBS returns function that initializes a new plugin and returns it.
    func NewEBS(ctx context.Context, _ runtime.Object, handle framework.Handle, fts feature.Features) (framework.Plugin, error) {
    	informerFactory := handle.SharedInformerFactory()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 30 23:00:56 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  10. callbacks/preload.go

    		}
    	}
    	return nil
    }
    
    func preloadDB(db *gorm.DB, reflectValue reflect.Value, dest interface{}) *gorm.DB {
    	tx := db.Session(&gorm.Session{Context: db.Statement.Context, NewDB: true, SkipHooks: db.Statement.SkipHooks, Initialized: true})
    	db.Statement.Settings.Range(func(k, v interface{}) bool {
    		tx.Statement.Settings.Store(k, v)
    		return true
    	})
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top