Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 189 for newobj (0.22 sec)

  1. callbacks/callmethod.go

    package callbacks
    
    import (
    	"reflect"
    
    	"gorm.io/gorm"
    )
    
    func callMethod(db *gorm.DB, fc func(value interface{}, tx *gorm.DB) bool) {
    	tx := db.Session(&gorm.Session{NewDB: true})
    	if called := fc(db.Statement.ReflectValue.Interface(), tx); !called {
    		switch db.Statement.ReflectValue.Kind() {
    		case reflect.Slice, reflect.Array:
    			db.Statement.CurDestIndex = 0
    			for i := 0; i < db.Statement.ReflectValue.Len(); i++ {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 18 01:20:29 UTC 2023
    - 846 bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller_test.go

    			manager.jobStoreSynced = alwaysReady
    
    			sharedInformerFactory.Batch().V1().Jobs().Informer().GetIndexer().Add(tc.oldJob)
    			newJob := tc.oldJob.DeepCopy()
    			if tc.updateFn != nil {
    				tc.updateFn(newJob)
    			}
    			manager.updateJob(logger, tc.oldJob, newJob)
    			gotRequeuedImmediately := manager.queue.Len() > 0
    			if tc.wantRequeuedImmediately != gotRequeuedImmediately {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  3. pkg/registry/batch/cronjob/strategy.go

    			fieldpath.MakePathOrDie("spec"),
    		),
    	}
    }
    
    func (cronJobStatusStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newJob := obj.(*batch.CronJob)
    	oldJob := old.(*batch.CronJob)
    	newJob.Spec = oldJob.Spec
    }
    
    func (cronJobStatusStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	return field.ErrorList{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 15:14:03 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. callbacks/delete.go

    			case schema.HasOne, schema.HasMany:
    				queryConds := rel.ToQueryConditions(db.Statement.Context, db.Statement.ReflectValue)
    				modelValue := reflect.New(rel.FieldSchema.ModelType).Interface()
    				tx := db.Session(&gorm.Session{NewDB: true}).Model(modelValue)
    				withoutConditions := false
    				if db.Statement.Unscoped {
    					tx = tx.Unscoped()
    				}
    
    				if len(db.Statement.Selects) > 0 {
    					selects := make([]string, 0, len(db.Statement.Selects))
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Feb 25 02:48:23 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  5. src/crypto/cipher/cipher_test.go

    		cfbd.XORKeyStream(ct, pt[:0])
    		assertEqual("CFB decrypt", ct, pt)
    
    		ctr := cipher.NewCTR(b, iv)
    		ctr.XORKeyStream(ct, pt[:0])
    		assertEqual("CTR", ct, pt)
    
    		ofb := cipher.NewOFB(b, iv)
    		ofb.XORKeyStream(ct, pt[:0])
    		assertEqual("OFB", ct, pt)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 21:42:23 UTC 2016
    - 2.2K bytes
    - Viewed (0)
  6. test/fixedbugs/issue4326.dir/p2.go

    package p2
    
    import "./p1"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 07 14:59:19 UTC 2012
    - 59 bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/audit/request.go

    			return nil, false, err
    		}
    	}
    
    	if isTable {
    		table := copy.(*metav1.Table)
    		for i := range table.Rows {
    			rowObj := table.Rows[i].Object
    			if err := removeManagedFields(rowObj.Object); err != nil {
    				return nil, false, err
    			}
    		}
    	}
    
    	return copy, true, nil
    }
    
    func removeManagedFields(obj runtime.Object) error {
    	if obj == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 9K bytes
    - Viewed (0)
  8. tests/sql_builder_test.go

    		t.Fatalf("invalid sql generated, got %v", sql)
    	}
    }
    
    func TestFromWithJoins(t *testing.T) {
    	var result User
    
    	newDB := DB.Session(&gorm.Session{NewDB: true, DryRun: true}).Table("users")
    
    	newDB.Clauses(
    		clause.From{
    			Tables: []clause.Table{{Name: "users"}},
    			Joins: []clause.Join{
    				{
    					Table: clause.Table{Name: "companies", Raw: false},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  9. cmd/erasure-sets.go

    	type delObj struct {
    		// Set index associated to this object
    		setIndex int
    		// Original index from the list of arguments
    		// where this object is passed
    		origIndex int
    		// object to delete
    		object ObjectToDelete
    	}
    
    	// Transform []delObj to the list of object names
    	toNames := func(delObjs []delObj) []ObjectToDelete {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  10. src/crypto/cipher/benchmark_test.go

    }
    
    func BenchmarkAESCFBDecrypt8K(b *testing.B) {
    	benchmarkAESStream(b, cipher.NewCFBDecrypter, make([]byte, almost8K))
    }
    
    func BenchmarkAESOFB1K(b *testing.B) {
    	benchmarkAESStream(b, cipher.NewOFB, make([]byte, almost1K))
    }
    
    func BenchmarkAESCTR1K(b *testing.B) {
    	benchmarkAESStream(b, cipher.NewCTR, make([]byte, almost1K))
    }
    
    func BenchmarkAESCTR8K(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 28 19:13:50 UTC 2021
    - 3.3K bytes
    - Viewed (0)
Back to top