fake

package
v1.72.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 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 FakeSourceRepoRepositories

type FakeSourceRepoRepositories struct {
	Fake *FakeSourcerepoV1beta1
	// contains filtered or unexported fields
}

FakeSourceRepoRepositories implements SourceRepoRepositoryInterface

func (*FakeSourceRepoRepositories) Create

func (c *FakeSourceRepoRepositories) Create(ctx context.Context, sourceRepoRepository *v1beta1.SourceRepoRepository, opts v1.CreateOptions) (result *v1beta1.SourceRepoRepository, err error)

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

func (*FakeSourceRepoRepositories) Delete

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

func (*FakeSourceRepoRepositories) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSourceRepoRepositories) Get

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

func (*FakeSourceRepoRepositories) List

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

func (*FakeSourceRepoRepositories) Patch

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

Patch applies the patch and returns the patched sourceRepoRepository.

func (*FakeSourceRepoRepositories) Update

func (c *FakeSourceRepoRepositories) Update(ctx context.Context, sourceRepoRepository *v1beta1.SourceRepoRepository, opts v1.UpdateOptions) (result *v1beta1.SourceRepoRepository, err error)

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

func (*FakeSourceRepoRepositories) UpdateStatus

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

func (*FakeSourceRepoRepositories) Watch

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

type FakeSourcerepoV1beta1

type FakeSourcerepoV1beta1 struct {
	*testing.Fake
}

func (*FakeSourcerepoV1beta1) RESTClient

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

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

func (*FakeSourcerepoV1beta1) SourceRepoRepositories

func (c *FakeSourcerepoV1beta1) SourceRepoRepositories(namespace string) v1beta1.SourceRepoRepositoryInterface

Jump to

Keyboard shortcuts

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