fake

package
v1.4.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCore

type FakeCore struct {
	*core.Fake
}

func (*FakeCore) GetRESTClient

func (c *FakeCore) GetRESTClient() *restclient.RESTClient

GetRESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeCore) Services

func (c *FakeCore) Services(namespace string) v1.ServiceInterface

type FakeServices

type FakeServices struct {
	Fake *FakeCore
	// contains filtered or unexported fields
}

FakeServices implements ServiceInterface

func (*FakeServices) Create

func (c *FakeServices) Create(service *v1.Service) (result *v1.Service, err error)

func (*FakeServices) Delete

func (c *FakeServices) Delete(name string, options *api.DeleteOptions) error

func (*FakeServices) DeleteCollection

func (c *FakeServices) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakeServices) Get

func (c *FakeServices) Get(name string) (result *v1.Service, err error)

func (*FakeServices) List

func (c *FakeServices) List(opts api.ListOptions) (result *v1.ServiceList, err error)

func (*FakeServices) Patch added in v1.4.0

func (c *FakeServices) Patch(name string, pt api.PatchType, data []byte) (result *v1.Service, err error)

Patch applies the patch and returns the patched service.

func (*FakeServices) Update

func (c *FakeServices) Update(service *v1.Service) (result *v1.Service, err error)

func (*FakeServices) UpdateStatus

func (c *FakeServices) UpdateStatus(service *v1.Service) (*v1.Service, error)

func (*FakeServices) Watch

func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested services.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL