Add field selector to List, implement for pods.

This commit is contained in:
Daniel Smith
2014-09-16 16:15:40 -07:00
parent 3f659f7d74
commit 4e9cf2ccb4
18 changed files with 153 additions and 39 deletions

View File

@@ -86,7 +86,7 @@ func (rs *REST) Get(id string) (runtime.Object, error) {
return rs.toApiMinion(id), err
}
func (rs *REST) List(selector labels.Selector) (runtime.Object, error) {
func (rs *REST) List(label, field labels.Selector) (runtime.Object, error) {
nameList, err := rs.registry.List()
if err != nil {
return nil, err

View File

@@ -67,7 +67,7 @@ func TestMinionREST(t *testing.T) {
t.Errorf("delete returned wrong error")
}
list, err := ms.List(labels.Everything())
list, err := ms.List(labels.Everything(), labels.Everything())
if err != nil {
t.Errorf("got error calling List")
}