Moving /apis handler to generic server

This commit is contained in:
nikhiljindal
2016-02-02 17:29:17 -08:00
parent ea5f1233c2
commit d267ab5f92
6 changed files with 66 additions and 40 deletions

View File

@@ -37,6 +37,10 @@ func makeThirdPartyPath(group string) string {
return thirdpartyprefix + "/" + group
}
func getThirdPartyGroupName(path string) string {
return strings.TrimPrefix(strings.TrimPrefix(path, thirdpartyprefix), "/")
}
// resourceInterface is the interface for the parts of the master that know how to add/remove
// third party resources. Extracted into an interface for injection for testing.
type resourceInterface interface {