fake

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 10 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 FakePingSources

type FakePingSources struct {
	Fake *FakeSourcesV1beta2
	// contains filtered or unexported fields
}

FakePingSources implements PingSourceInterface

func (*FakePingSources) Create

func (c *FakePingSources) Create(ctx context.Context, pingSource *v1beta2.PingSource, opts v1.CreateOptions) (result *v1beta2.PingSource, err error)

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

func (*FakePingSources) Delete

func (c *FakePingSources) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakePingSources) DeleteCollection

func (c *FakePingSources) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePingSources) Get

func (c *FakePingSources) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.PingSource, err error)

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

func (*FakePingSources) List

func (c *FakePingSources) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.PingSourceList, err error)

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

func (*FakePingSources) Patch

func (c *FakePingSources) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.PingSource, err error)

Patch applies the patch and returns the patched pingSource.

func (*FakePingSources) Update

func (c *FakePingSources) Update(ctx context.Context, pingSource *v1beta2.PingSource, opts v1.UpdateOptions) (result *v1beta2.PingSource, err error)

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

func (*FakePingSources) UpdateStatus

func (c *FakePingSources) UpdateStatus(ctx context.Context, pingSource *v1beta2.PingSource, opts v1.UpdateOptions) (*v1beta2.PingSource, error)

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

func (*FakePingSources) Watch

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

type FakeSourcesV1beta2

type FakeSourcesV1beta2 struct {
	*testing.Fake
}

func (*FakeSourcesV1beta2) PingSources

func (c *FakeSourcesV1beta2) PingSources(namespace string) v1beta2.PingSourceInterface

func (*FakeSourcesV1beta2) RESTClient

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

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

Jump to

Keyboard shortcuts

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