Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for deleted_users (0.1 sec)

  1. tests/delete_test.go

    	type UserWithDelete struct {
    		gorm.Model
    		Name string
    	}
    
    	DB.Table("deleted_users").Migrator().DropTable(UserWithDelete{})
    	DB.Table("deleted_users").AutoMigrate(UserWithDelete{})
    
    	user := UserWithDelete{Name: "delete1"}
    	DB.Table("deleted_users").Create(&user)
    
    	var result UserWithDelete
    	if err := DB.Table("deleted_users").First(&result).Error; err != nil {
    		t.Errorf("failed to find deleted user, got error %v", err)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Oct 10 07:03:34 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  2. cmd/iam.go

    		// If user is set to "disabled", we will remove them
    		// subsequently.
    		if !u.Enabled {
    			expiredUsers = append(expiredUsers, parentUser)
    		}
    	}
    
    	// We ignore any errors
    	_ = sys.store.DeleteUsers(ctx, expiredUsers)
    }
    
    // purgeExpiredCredentialsForLDAP - validates if local credentials are still
    // valid by checking LDAP server if the relevant users are still present.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    	cache.iamSTSAccountsMap[accessKey] = u
    	cache.updatedAt = time.Now()
    
    	return u.UpdatedAt, nil
    }
    
    // DeleteUsers - given a set of users or access keys, deletes them along with
    // any derived credentials (STS or service accounts) and any associated policy
    // mappings.
    func (store *IAMStoreSys) DeleteUsers(ctx context.Context, users []string) error {
    	cache := store.lock()
    	defer store.unlock()
    
    	var deleted bool
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
Back to top