fake

package
v3.11.0-alpha.0+incomp... Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 9 Imported by: 32

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 FakeProject

type FakeProject struct {
	*testing.Fake
}

func (*FakeProject) ProjectRequests

func (*FakeProject) Projects

func (*FakeProject) RESTClient

func (c *FakeProject) RESTClient() rest.Interface

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

type FakeProjectRequests

type FakeProjectRequests struct {
	Fake *FakeProject
}

FakeProjectRequests implements ProjectRequestInterface

func (*FakeProjectRequests) Create

func (c *FakeProjectRequests) Create(projectRequest *project.ProjectRequest) (result *project.Project, err error)

Create takes the representation of a projectRequest and creates it. Returns the server's representation of the projectResource, and an error, if there is any.

type FakeProjects

type FakeProjects struct {
	Fake *FakeProject
}

FakeProjects implements ProjectResourceInterface

func (*FakeProjects) Create

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

Create takes the representation of a projectResource and creates it. Returns the server's representation of the projectResource, and an error, if there is any.

func (*FakeProjects) Delete

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

Delete takes name of the projectResource and deletes it. Returns an error if one occurs.

func (*FakeProjects) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProjects) Get

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

Get takes name of the projectResource, and returns the corresponding projectResource object, and an error if there is any.

func (*FakeProjects) List

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

List takes label and field selectors, and returns the list of Projects that match those selectors.

func (*FakeProjects) Patch

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

Patch applies the patch and returns the patched projectResource.

func (*FakeProjects) Update

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

Update takes the representation of a projectResource and updates it. Returns the server's representation of the projectResource, and an error, if there is any.

func (*FakeProjects) UpdateStatus

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

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeProjects) Watch

func (c *FakeProjects) Watch(opts v1.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