Move list functions from runtime to meta package

This commit is contained in:
feihujiang
2015-11-12 18:45:42 +08:00
parent b12550273e
commit ad79fa6e84
17 changed files with 387 additions and 331 deletions

View File

@@ -49,7 +49,7 @@ func CreateObjList(prefix string, helper storage.Interface, items []runtime.Obje
// CreateList will properly create a list using the storage interface
func CreateList(prefix string, helper storage.Interface, list runtime.Object) error {
items, err := runtime.ExtractList(list)
items, err := meta.ExtractList(list)
if err != nil {
return err
}
@@ -57,5 +57,5 @@ func CreateList(prefix string, helper storage.Interface, list runtime.Object) er
if err != nil {
return err
}
return runtime.SetList(list, items)
return meta.SetList(list, items)
}