fake

package
v0.0.0-...-142e272 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 9 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 FakeAghV1alpha1

type FakeAghV1alpha1 struct {
	*testing.Fake
}

func (*FakeAghV1alpha1) RESTClient

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

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

func (*FakeAghV1alpha1) Shouts

func (c *FakeAghV1alpha1) Shouts(namespace string) v1alpha1.ShoutInterface

type FakeShouts

type FakeShouts struct {
	Fake *FakeAghV1alpha1
	// contains filtered or unexported fields
}

FakeShouts implements ShoutInterface

func (*FakeShouts) Create

func (c *FakeShouts) Create(shout *v1alpha1.Shout) (result *v1alpha1.Shout, err error)

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

func (*FakeShouts) Delete

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

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

func (*FakeShouts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeShouts) Get

func (c *FakeShouts) Get(name string, options v1.GetOptions) (result *v1alpha1.Shout, err error)

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

func (*FakeShouts) List

func (c *FakeShouts) List(opts v1.ListOptions) (result *v1alpha1.ShoutList, err error)

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

func (*FakeShouts) Patch

func (c *FakeShouts) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Shout, err error)

Patch applies the patch and returns the patched shout.

func (*FakeShouts) Update

func (c *FakeShouts) Update(shout *v1alpha1.Shout) (result *v1alpha1.Shout, err error)

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

func (*FakeShouts) UpdateStatus

func (c *FakeShouts) UpdateStatus(shout *v1alpha1.Shout) (*v1alpha1.Shout, error)

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

func (*FakeShouts) Watch

func (c *FakeShouts) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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