Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for Cole (0.15 sec)

  1. internal/arn/arn_test.go

    				Region:       "us-east-1",
    				ResourceType: "role",
    				ResourceID:   "my-role",
    			},
    			want: "arn:minio:iam:us-east-1::role/my-role",
    		},
    		{
    			arn: ARN{
    				Partition:    "minio",
    				Service:      "",
    				Region:       "us-east-1",
    				ResourceType: "role",
    				ResourceID:   "my-role",
    			},
    			want: "arn:minio::us-east-1::role/my-role",
    		},
    	}
    	for _, tt := range tests {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 08:31:34 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  2. clause/group_by_test.go

    				Columns: []clause.Column{{Name: "role"}},
    				Having:  []clause.Expression{clause.Eq{"role", "admin"}},
    			}},
    			"SELECT * FROM `users` GROUP BY `role` HAVING `role` = ?",
    			[]interface{}{"admin"},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.GroupBy{
    				Columns: []clause.Column{{Name: "role"}},
    				Having:  []clause.Expression{clause.Eq{"role", "admin"}},
    			}, clause.GroupBy{
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.1K bytes
    - Viewed (0)
  3. internal/bucket/replication/rule_test.go

    		expectedResult bool
    	}{
    		// case 1 - rule with replica modification enabled; not a replica
    		{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.6K bytes
    - Viewed (0)
  4. tests/scanner_valuer_test.go

    	}
    }
    
    type Role struct {
    	Name string `gorm:"size:256"`
    }
    
    func (role *Role) Scan(value interface{}) error {
    	if b, ok := value.([]uint8); ok {
    		role.Name = string(b)
    	} else {
    		role.Name = value.(string)
    	}
    	return nil
    }
    
    func (role Role) Value() (driver.Value, error) {
    	return role.Name, nil
    }
    
    func (role Role) IsAdmin() bool {
    	return role.Name == "admin"
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  5. cmd/sts-datatypes.go

    	// in Using IAM.
    	//
    	// Arn is a required field
    	Arn string
    
    	// A unique identifier that contains the role ID and the role session name of
    	// the role that is being assumed. The role ID is generated by AWS when the
    	// role is created.
    	//
    	// AssumedRoleId is a required field
    	AssumedRoleID string `xml:"AssumeRoleId"`
    	// contains filtered or unexported fields
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 9.9K bytes
    - Viewed (0)
  6. docs/site-replication/gen-oidc-sts-cred.go

    	}
    
    	oidcToken, err := cmd.MockOpenIDTestUserInteraction(ctx, appParams, "******@****.***", "dillon")
    	if err != nil {
    		log.Fatalf("Failed to generate OIDC token: %v", err)
    	}
    
    	roleARN := os.Getenv("ROLE_ARN")
    	webID := cr.STSWebIdentity{
    		Client:      &http.Client{},
    		STSEndpoint: endpoint,
    		GetWebIDTokenExpiry: func() (*cr.WebIdentityToken, error) {
    			return &cr.WebIdentityToken{
    				Token: oidcToken,
    			}, nil
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 29 01:27:09 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  7. src/archive/tar/common.go

    //		{Offset: 18, Length: 3},  // Data fragment for 18..20
    //	}
    //	var sph sparseHoles = []sparseEntry{
    //		{Offset: 0,  Length: 2},  // Hole fragment for 0..1
    //		{Offset: 7,  Length: 11}, // Hole fragment for 7..17
    //		{Offset: 21, Length: 4},  // Hole fragment for 21..24
    //	}
    //
    // Then the content of the resulting sparse file with a Header.Size of 25 is:
    //
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  8. internal/bucket/replication/replication_test.go

    		sameTarget            bool
    	}{
    		{ // 1 Invalid delete marker status in replication config
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  9. cmd/iam-store.go

    	} else {
    		c.iamUsersMap[key] = u
    	}
    	c.updatedAt = time.Now()
    	return nil
    }
    
    // IAMStorageAPI defines an interface for the IAM persistence layer
    type IAMStorageAPI interface {
    	// The role of the read-write lock is to prevent go routines from
    	// concurrently reading and writing the IAM storage. The (r)lock()
    	// functions return the iamCache. The cache can be safely written to
    	// only when returned by `lock()`.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 74.4K bytes
    - Viewed (2)
  10. src/archive/tar/reader_test.go

    			Size:     1000,
    			ModTime:  time.Unix(0, 0),
    			Format:   FormatGNU,
    		}},
    	}, {
    		// Generated by Go, works on BSD tar v3.1.2 and GNU tar v.1.27.1.
    		file: "testdata/gnu-nil-sparse-hole.tar",
    		headers: []*Header{{
    			Name:     "sparse.db",
    			Typeflag: TypeGNUSparse,
    			Size:     1000,
    			ModTime:  time.Unix(0, 0),
    			Format:   FormatGNU,
    		}},
    	}, {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
Back to top