Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,799 for ID (0.01 sec)

  1. cmd/xl-storage-disk-id-check.go

    		}
    	}
    }
    
    // checkID will check if the disk ID matches the provided ID.
    func (p *xlStorageDiskIDCheck) checkID(wantID string) (err error) {
    	if wantID == "" {
    		return nil
    	}
    	id, err := p.storage.GetDiskID()
    	if err != nil {
    		return err
    	}
    	if id != wantID {
    		return fmt.Errorf("disk ID %s does not match. disk reports %s", wantID, id)
    	}
    	return nil
    }
    
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-04-25 05:41
    - 34.5K bytes
    - Viewed (0)
  2. docs/iam/policies/deny-objects-with-invalid-sse-kms-key-id.json

    {
       "Version":"2012-10-17",
       "Id":"PutObjectPolicy1",
       "Statement":[{
             "Sid":"DenyObjectsWithInvalidSSEKMS",
             "Effect":"Deny",
             "Principal":"*",
             "Action":"s3:PutObject",
             "Resource":"arn:aws:s3:::multi-key-poc/*",
             "Condition":{
                "StringNotEquals":{
                   "s3:x-amz-server-side-encryption-aws-kms-key-id":"minio-default-key"
                }
             }
          }
       ]
    Registered: 2025-05-25 19:28
    - Last Modified: 2024-05-14 15:43
    - 439 bytes
    - Viewed (0)
  3. tests/preload_test.go

    	}
    
    	var user2 User
    	DB.Preload("Pets.Toy").Find(&user2, "id = ?", user.ID)
    	CheckUser(t, user2, user)
    
    	var user3 User
    	DB.Preload(clause.Associations+"."+clause.Associations).Find(&user3, "id = ?", user.ID)
    	CheckUser(t, user3, user)
    
    	var user4 *User
    	DB.Preload("Pets.Toy").Find(&user4, "id = ?", user.ID)
    	CheckUser(t, *user4, user)
    }
    
    func TestNestedPreloadForSlice(t *testing.T) {
    Registered: 2025-05-25 09:35
    - Last Modified: 2024-06-12 10:00
    - 15.9K bytes
    - Viewed (0)
  4. tests/associations_test.go

    		t.Fatalf("invalid %v count %v, expects: %v got %v", name, reason, result, count)
    	}
    
    	var newUser User
    	if user, ok := data.(User); ok {
    		DB.Find(&newUser, "id = ?", user.ID)
    	} else if user, ok := data.(*User); ok {
    		DB.Find(&newUser, "id = ?", user.ID)
    	}
    
    	if newUser.ID != 0 {
    		if count := DB.Model(&newUser).Association(name).Count(); count != result {
    			t.Fatalf("invalid %v count %v, expects: %v got %v", name, reason, result, count)
    Registered: 2025-05-25 09:35
    - Last Modified: 2023-02-08 08:29
    - 10.9K bytes
    - Viewed (0)
  5. tests/gorm_test.go

    			t.Fatalf("rows affected expects: %v, got %v", 1, results.RowsAffected)
    		} else if u1.ID == 0 {
    			t.Fatalf("ID expects : not equal 0, got %v", u1.ID)
    		} else if u2.ID == 0 {
    			t.Fatalf("ID expects : not equal 0, got %v", u2.ID)
    		}
    
    		var gotUsers []user
    		results = DB.Where("id in (?, ?)", u1.ID, u2.ID).Order("id asc").Select("id, name").Find(&gotUsers)
    		if results.Error != nil {
    Registered: 2025-05-25 09:35
    - Last Modified: 2023-06-01 07:22
    - 3.3K bytes
    - Viewed (0)
  6. tests/joins_test.go

    	user := User{Name: "kingGo", CompanyID: &companyB.ID}
    	DB.Create(&user)
    
    	query := DB.Model(&User{}).Joins("Company")
    
    	var total int64
    	query.Count(&total)
    
    	var result User
    
    	if err := query.First(&result, user.ID).Error; err != nil {
    		t.Fatalf("Failed, got error: %v", err)
    	}
    
    	if result.ID != user.ID {
    		t.Fatalf("result's id, %d, doesn't match user's id, %d", result.ID, user.ID)
    	}
    Registered: 2025-05-25 09:35
    - Last Modified: 2025-05-25 07:40
    - 15K bytes
    - Viewed (0)
  7. tests/create_test.go

    	}
    
    	if _, ok := record["@id"]; ok && fmt.Sprint(res["id"]) != fmt.Sprint(record["@id"]) {
    		t.Fatalf("failed to create data from map with table, @id != id, got %v, expect %v", res["id"], record["@id"])
    	}
    
    	// case 2: create from *map[string]interface{}
    	record1 := map[string]interface{}{"name": "create_from_map_with_table_1", "age": 18}
    	tableDB2 := DB.Table("users")
    Registered: 2025-05-25 09:35
    - Last Modified: 2024-03-19 03:50
    - 26.4K bytes
    - Viewed (0)
  8. internal/event/config_test.go

    	dataCase1 := []byte(`
    <QueueConfiguration>
       <Id>1</Id>
       <Filter></Filter>
       <Queue>arn:minio:sqs:us-east-1:1:webhook</Queue>
       <Event>s3:ObjectAccessed:*</Event>
       <Event>s3:ObjectCreated:*</Event>
       <Event>s3:ObjectRemoved:*</Event>
    </QueueConfiguration>`)
    
    	dataCase2 := []byte(`
    <QueueConfiguration>
       <Id>1</Id>
        <Filter>
            <S3Key>
                <FilterRule>
    Registered: 2025-05-25 19:28
    - Last Modified: 2025-04-09 14:28
    - 28.9K bytes
    - Viewed (0)
  9. apache-maven/pom.xml

              </plugin>
            </plugins>
          </build>
        </profile>
        <profile>
          <id>run-its</id>
          <build>
            <plugins>
              <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                  <execution>
                    <id>create-distribution-dir</id>
                    <goals>
                      <goal>single</goal>
                    </goals>
    Registered: 2025-05-24 08:56
    - Last Modified: 2025-05-20 13:00
    - 14.4K bytes
    - Viewed (0)
  10. schema/schema_test.go

    	}
    
    	fields := []schema.Field{
    		{Name: "ID", DBName: "id", BindNames: []string{"CorpBase", "Model", "ID"}, DataType: schema.Uint, PrimaryKey: true, Size: 64, HasDefaultValue: true, AutoIncrement: true, TagSettings: map[string]string{"PRIMARYKEY": "PRIMARYKEY"}},
    Registered: 2025-05-25 09:35
    - Last Modified: 2024-06-20 12:19
    - 13.3K bytes
    - Viewed (0)
Back to top