kubernetes: github.com/bboreham/kubernetes/pkg/client/unversioned/fake Index | Files

package fake

import "github.com/bboreham/kubernetes/pkg/client/unversioned/fake"

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


Package Files


func CreateHTTPClient Uses

func CreateHTTPClient(roundTripper func(*http.Request) (*http.Response, error)) *http.Client

type RESTClient Uses

type RESTClient struct {
    Client *http.Client
    Codec  runtime.Codec
    Req    *http.Request
    Resp   *http.Response
    Err    error

RESTClient provides a fake RESTClient interface.

func (*RESTClient) Delete Uses

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

func (*RESTClient) Do Uses

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

func (*RESTClient) Get Uses

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

func (*RESTClient) Patch Uses

func (c *RESTClient) Patch(_ api.PatchType) *unversioned.Request

func (*RESTClient) Post Uses

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

func (*RESTClient) Put Uses

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

Package fake imports 6 packages (graph). Updated 2017-05-30. Refresh now. Tools for package owners. This is a quick bug-fix fork (has fewer than three commits, and only during the week it was created).