add PATCH to apiserver

This commit is contained in:
Mike Danese
2015-02-21 10:54:48 -08:00
parent d230c72e83
commit 46ec580771
7 changed files with 263 additions and 14 deletions

View File

@@ -105,6 +105,11 @@ func (c *RESTClient) Put() *Request {
return c.Verb("PUT")
}
// Patch begins a PATCH request. Short for c.Verb("Patch").
func (c *RESTClient) Patch() *Request {
return c.Verb("PATCH")
}
// Get begins a GET request. Short for c.Verb("GET").
func (c *RESTClient) Get() *Request {
return c.Verb("GET")