etcd: Remove stuttering in package

This is a good first step to cleaning up the package.
This commit is contained in:
James Shubin
2017-02-12 22:51:46 -05:00
parent e96041d76f
commit 35d3328e3e
3 changed files with 82 additions and 82 deletions

View File

@@ -30,7 +30,7 @@ type World struct {
// ResExport exports a list of resources under our hostname namespace.
// Subsequent calls replace the previously set collection atomically.
func (obj *World) ResExport(resourceList []resources.Res) error {
return EtcdSetResources(obj.EmbdEtcd, obj.Hostname, resourceList)
return SetResources(obj.EmbdEtcd, obj.Hostname, resourceList)
}
// ResCollect gets the collection of exported resources which match the filter.
@@ -39,5 +39,5 @@ func (obj *World) ResCollect(hostnameFilter, kindFilter []string) ([]resources.R
// XXX: should we be restricted to retrieving resources that were
// exported with a tag that allows or restricts our hostname? We could
// enforce that here if the underlying API supported it... Add this?
return EtcdGetResources(obj.EmbdEtcd, hostnameFilter, kindFilter)
return GetResources(obj.EmbdEtcd, hostnameFilter, kindFilter)
}