Documentation ¶
Overview ¶
This is made a separate package and should only be imported by tests, because it imports testapi
Index ¶
- type HTTPClientFunc
- type RESTClient
- func (c *RESTClient) Delete() *unversioned.Request
- func (c *RESTClient) Do(req *http.Request) (*http.Response, error)
- func (c *RESTClient) Get() *unversioned.Request
- func (c *RESTClient) Patch(_ api.PatchType) *unversioned.Request
- func (c *RESTClient) Post() *unversioned.Request
- func (c *RESTClient) Put() *unversioned.Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClientFunc ¶
type RESTClient ¶
type RESTClient struct { Client unversioned.HTTPClient Codec runtime.Codec Req *http.Request Resp *http.Response Err error }
RESTClient provides a fake RESTClient interface.
func (*RESTClient) Delete ¶
func (c *RESTClient) Delete() *unversioned.Request
func (*RESTClient) Get ¶
func (c *RESTClient) Get() *unversioned.Request
func (*RESTClient) Patch ¶
func (c *RESTClient) Patch(_ api.PatchType) *unversioned.Request
func (*RESTClient) Post ¶
func (c *RESTClient) Post() *unversioned.Request
func (*RESTClient) Put ¶
func (c *RESTClient) Put() *unversioned.Request
Click to show internal directories.
Click to hide internal directories.