Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for createSpy (0.44 sec)

  1. schema/relationship_test.go

    	type User struct {
    		ID        int32 `gorm:"primaryKey"`
    		Name      string
    		CreatedBy *int32
    		Creator   *User `gorm:"foreignKey:CreatedBy;references:ID"`
    	}
    
    	checkStructRelation(t, &User{}, Relation{
    		Name: "Creator", Type: schema.BelongsTo, Schema: "User", FieldSchema: "User",
    		References: []Reference{{"ID", "User", "CreatedBy", "User", "", false}},
    	})
    }
    
    func TestBelongsToWithMixin(t *testing.T) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  2. internal/kms/kes.go

    	return c.client.APIs(ctx)
    }
    
    // CreateKey tries to create a new key at the KMS with the
    // given key ID.
    //
    // If the a key with the same keyID already exists then
    // CreateKey returns kes.ErrKeyExists.
    func (c *kesClient) CreateKey(ctx context.Context, keyID string) error {
    	c.lock.RLock()
    	defer c.lock.RUnlock()
    
    	return c.client.CreateKey(ctx, keyID)
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

                throws PluginResolutionException, PluginDescriptorParsingException, InvalidPluginDescriptorException {
            PluginDescriptorCache.Key cacheKey = pluginDescriptorCache.createKey(plugin, repositories, session);
    
            PluginDescriptor pluginDescriptor = pluginDescriptorCache.get(cacheKey, () -> {
                org.eclipse.aether.artifact.Artifact artifact =
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/upgrade/AdminUpgradeAction.java

        }
    
        private void upgradeFrom13_1() {
            // nothing
        }
    
        private void upgradeFrom13_2() {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Sat Apr 13 11:43:03 GMT 2024
    - 46.9K bytes
    - Viewed (0)
  5. cmd/common-main.go

    		// to create keys - just to generate/decrypt data encryption keys.
    		if _, err = KMS.GenerateKey(GlobalContext, env.Get(kms.EnvKESKeyName, ""), kms.Context{}); err != nil && errors.Is(err, kes.ErrKeyNotFound) {
    			if err = KMS.CreateKey(GlobalContext, env.Get(kms.EnvKESKeyName, "")); err != nil && !errors.Is(err, kes.ErrKeyExists) && !errors.Is(err, kes.ErrNotAllowed) {
    				logger.Fatal(err, "Unable to initialize a connection to KES as specified by the shell environment")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 35.5K bytes
    - Viewed (2)
  6. cmd/admin-handlers.go

    	if objectAPI == nil {
    		return
    	}
    
    	if GlobalKMS == nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrKMSNotConfigured), r.URL)
    		return
    	}
    
    	if err := GlobalKMS.CreateKey(ctx, r.Form.Get("key-id")); err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    	writeSuccessResponseHeadersOnly(w)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
Back to top