Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Dapper (0.18 sec)

  1. cmd/iam-store.go

    }
    
    // MappedPolicy represents a policy name mapped to a user or group
    type MappedPolicy struct {
    	Version   int       `json:"version"`
    	Policies  string    `json:"policy"`
    	UpdatedAt time.Time `json:"updatedAt,omitempty"`
    }
    
    // mappedPoliciesToMap copies the map of mapped policies to a regular map.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  2. cmd/iam.go

    		if len(unknownPoliciesSet) > 0 {
    			authz := newGlobalAuthZPluginFn()
    			if authz == nil {
    				// Print a warning that some policies mapped to a role are not defined.
    				errMsg := fmt.Errorf(
    					"The policies \"%s\" mapped to role ARN %s are not defined - this role may not work as expected.",
    					unknownPoliciesSet.ToSlice(), arn.String())
    				authZLogIf(ctx, errMsg, logger.WarningKind)
    			}
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  3. tests/migrate_test.go

    		t.Fatalf("Got error when tried to create index: %+v", err)
    	}
    
    	if err := DB.Migrator().RenameIndex(&IndexStruct{}, "idx_index_structs_name", "idx_users_name_1"); err != nil {
    		t.Fatalf("no error should happen when rename index, but got %v", err)
    	}
    
    	if !DB.Migrator().HasIndex(&IndexStruct{}, "idx_users_name_1") {
    		t.Fatalf("Should find index for user's name after rename")
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool.go

    	atTotal := uint64(0)
    	for _, pool := range serverPools {
    		atTotal += pool.Available
    		if atTotal > choose && pool.Available > 0 {
    			return pool.Index
    		}
    	}
    	// Should not happen, but print values just in case.
    	storageLogIf(ctx, fmt.Errorf("reached end of serverPools (total: %v, atTotal: %v, choose: %v)", total, atTotal, choose))
    	return -1
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  5. istioctl/pkg/describe/describe.go

    				StructValue: s,
    			},
    		},
    	}
    }
    
    func (v *myProtoValue) keyAsString(key string) string {
    	s := v.keyAsStruct(key)
    	return s.GetStringValue()
    }
    
    func getIstioRBACPolicies(cd *configdump.Wrapper, port int32) ([]string, error) {
    	hcm, err := getInboundHTTPConnectionManager(cd, port)
    	if err != nil || hcm == nil {
    		return []string{}, err
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  6. cmd/admin-handlers-users.go

    	password := cred.SecretKey
    
    	allCredentials, err := globalIAMSys.ListUsers(ctx)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	// Add ldap users which have mapped policies if in LDAP mode
    	// FIXME(vadmeste): move this to policy info in the future
    	ldapUsers, err := globalIAMSys.ListLDAPUsers(ctx)
    	if err != nil && err != errIAMActionNotAllowed {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  7. tests/query_test.go

    		t.Errorf("No error should returns, but got %v", err)
    	}
    
    	AssertEqual(t, p, p2)
    
    	if err := DB.First(&p, "id = ?", p2.ID).Error; err != nil {
    		t.Errorf("No error should happen when querying with customized type for primary key, got err %v", err)
    	}
    
    	AssertEqual(t, p, p2)
    }
    
    func TestStringPrimaryKeyForNumericValueStartingWithZero(t *testing.T) {
    	type AddressByZipCode struct {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
Back to top