make selfLink namespace aware

This commit is contained in:
derekwaynecarr
2014-11-24 13:35:24 -05:00
parent b811eb8303
commit ef25520baa
3 changed files with 38 additions and 7 deletions

View File

@@ -59,6 +59,8 @@ type SelfLinker interface {
// Knowing Name is sometimes necessary to use a SelfLinker.
Name(obj Object) (string, error)
// Knowing Namespace is sometimes necessary to use a SelfLinker
Namespace(obj Object) (string, error)
}
// All api types must support the Object interface. It's deliberately tiny so that this is not an onerous