fake

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 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) Projects

func (c *FakeCore) Projects() v1.ProjectInterface

type FakeProjects

type FakeProjects struct {
	Fake *FakeCore
}

FakeProjects implements ProjectInterface

func (*FakeProjects) Create

func (c *FakeProjects) Create(project *v1.Project) (result *v1.Project, err error)

func (*FakeProjects) Delete

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

func (*FakeProjects) DeleteCollection

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

func (*FakeProjects) Get

func (c *FakeProjects) Get(name string) (result *v1.Project, err error)

func (*FakeProjects) List

func (c *FakeProjects) List(opts api.ListOptions) (result *v1.ProjectList, err error)

func (*FakeProjects) Patch

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

Patch applies the patch and returns the patched project.

func (*FakeProjects) Update

func (c *FakeProjects) Update(project *v1.Project) (result *v1.Project, err error)

func (*FakeProjects) UpdateStatus

func (c *FakeProjects) UpdateStatus(project *v1.Project) (*v1.Project, error)

func (*FakeProjects) Watch

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

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

Jump to

Keyboard shortcuts

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