Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 144 of 144 for newFunc (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    	}
    }
    
    func Test_kmsv2PluginProbe_rotateDEKOnKeyIDChange(t *testing.T) {
    	defaultUseSeed := GetKDF()
    
    	origNowFunc := envelopekmsv2.NowFunc
    	now := origNowFunc() // freeze time
    	t.Cleanup(func() { envelopekmsv2.NowFunc = origNowFunc })
    	envelopekmsv2.NowFunc = func() time.Time { return now }
    
    	klog.LogToStderr(false)
    	var level klog.Level
    	if err := level.Set("6"); err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"NewAlias", Func, 22},
    		{"NewArray", Func, 5},
    		{"NewChan", Func, 5},
    		{"NewChecker", Func, 5},
    		{"NewConst", Func, 5},
    		{"NewContext", Func, 18},
    		{"NewField", Func, 5},
    		{"NewFunc", Func, 5},
    		{"NewInterface", Func, 5},
    		{"NewInterfaceType", Func, 11},
    		{"NewLabel", Func, 5},
    		{"NewMap", Func, 5},
    		{"NewMethodSet", Func, 5},
    		{"NewNamed", Func, 5},
    		{"NewPackage", Func, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  3. tests/create_test.go

    }
    
    func TestCreateWithNowFuncOverride(t *testing.T) {
    	user := User{Name: "CreateUserTimestampOverride"}
    	curTime := now.MustParse("2016-01-01")
    
    	NEW := DB.Session(&gorm.Session{
    		NowFunc: func() time.Time {
    			return curTime
    		},
    	})
    
    	NEW.Save(&user)
    
    	AssertEqual(t, user.CreatedAt, curTime)
    	AssertEqual(t, user.UpdatedAt, curTime)
    
    	var newUser User
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config.go

    	// we start the timer before we make the network call because kmsv2PluginWriteDEKSourceMaxTTL is meant to be the upper bound
    	expirationTimestamp := envelopekmsv2.NowFunc().Add(kmsv2PluginWriteDEKSourceMaxTTL)
    
    	// dynamically check if we want to use KDF seed to derive DEKs or just a single DEK
    	// this gate can only change during tests, but the check is cheap enough to always make
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 41.2K bytes
    - Viewed (0)
Back to top