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 HTTPClientFunc func(*http.Request) (*http.Response, error)
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.
Click to show internal directories.
Click to hide internal directories.