code: func RsListFromClient(c appsclient.AppsV1Interface) RsListFunc {
  	return func(namespace string, options metav1.ListOptions) ([]*apps.ReplicaSet, error) {
  		rsList, err := c.ReplicaSets(namespace).List(options)
  		if err != nil {
  			return nil, err
  		}
  		var ret []*apps.ReplicaSet
  		for i := range rsList.Items {
  			ret = append(ret, &rsList.Items[i])
  		}
  		return ret, err
  	}
  }
docs: // RsListFromClient returns an rsListFunc that wraps the given client.