code: func (c *Client) forEachBucket(ctx context.Context, tx *bolt.Tx, fn func(*platform.Bucket) bool) error {
  	cur := tx.Bucket(bucketBucket).Cursor()
  	for k, v := cur.First(); k != nil; k, v = cur.Next() {
  		b := &platform.Bucket{}
  		if err := json.Unmarshal(v, b); err != nil {
  			return err
  		}
  		if err := c.setOrganizationOnBucket(ctx, tx, b); err != nil {
  			return err
  		}
  		if !fn(b) {
  			break
  		}
  	}
  
  	return nil
  }
docs: // forEachBucket will iterate through all buckets while fn returns true.