package fake

import "k8s.io/kubernetes/pkg/client/unversioned/fake"

This is made a separate package and should only be imported by tests, because it imports testapi

Index

Types

type HTTPClientFunc

type HTTPClientFunc func(*http.Request) (*http.Response, error)

func (HTTPClientFunc) Do

func (f HTTPClientFunc) Do(req *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.

func (*RESTClient) Delete

func (c *RESTClient) Delete() *unversioned.Request

func (*RESTClient) Do

func (c *RESTClient) Do(req *http.Request) (*http.Response, error)

func (*RESTClient) Get

func (c *RESTClient) Get() *unversioned.Request

func (*RESTClient) Patch

func (*RESTClient) Post

func (c *RESTClient) Post() *unversioned.Request

func (*RESTClient) Put

func (c *RESTClient) Put() *unversioned.Request

Source Files

fake.go

Version
v1.1.4-beta.0
Published
Dec 7, 2015
Platform
js/wasm
Imports
6 packages
Last checked
15 minutes ago

Tools for package owners.