示例#1
0
func (c *RESTClient) Delete() *unversioned.Request {
	return unversioned.NewRequest(c, "DELETE", &url.URL{Host: "localhost"}, testapi.Default.Version(), c.Codec)
}
示例#2
0
func (c *RESTClient) Patch(_ api.PatchType) *unversioned.Request {
	return unversioned.NewRequest(c, "PATCH", &url.URL{Host: "localhost"}, testapi.Default.Version(), c.Codec)
}
示例#3
0
func (c *RESTClient) request(verb string) *unversioned.Request {
	return unversioned.NewRequest(c, verb, &url.URL{Host: "localhost"}, "", unversioned.ContentConfig{GroupVersion: testapi.Default.GroupVersion(), Codec: c.Codec}, nil)
}
示例#4
0
func (c *RESTClient) request(verb string) *unversioned.Request {
	return unversioned.NewRequest(c, verb, &url.URL{Host: "localhost"}, "", *testapi.Default.GroupVersion(), c.Codec, nil)
}
示例#5
0
文件: fake.go 项目: tacy/dashboard
func (c *RESTClient) Post() *unversioned.Request {
	return unversioned.NewRequest(c, "POST", &url.URL{Host: "localhost"}, *testapi.Default.GroupVersion(), c.Codec)
}