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

package fake

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

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

Index

Package Files

fake.go

type HTTPClientFunc Uses

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

func (HTTPClientFunc) Do Uses

func (f HTTPClientFunc) Do(req *http.Request) (*http.Response, error)

type RESTClient Uses

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 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-08-21. Refresh now. Tools for package owners. This is a dead-end fork (no commits since the fork).