v0.28.0 Latest Latest

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

Go to latest
Published: Mar 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0



Package fake has the automatically generated clients.



This section is empty.


This section is empty.


This section is empty.


type FakeRepositories

type FakeRepositories struct {
	Fake *FakeStashV1alpha1
	// contains filtered or unexported fields

FakeRepositories implements RepositoryInterface

func (*FakeRepositories) Create

func (c *FakeRepositories) Create(ctx context.Context, repository *v1alpha1.Repository, opts v1.CreateOptions) (result *v1alpha1.Repository, err error)

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

func (*FakeRepositories) Delete

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

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

func (*FakeRepositories) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRepositories) Get

func (c *FakeRepositories) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Repository, err error)

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

func (*FakeRepositories) List

func (c *FakeRepositories) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RepositoryList, err error)

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

func (*FakeRepositories) Patch

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

Patch applies the patch and returns the patched repository.

func (*FakeRepositories) Update

func (c *FakeRepositories) Update(ctx context.Context, repository *v1alpha1.Repository, opts v1.UpdateOptions) (result *v1alpha1.Repository, err error)

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

func (*FakeRepositories) UpdateStatus

func (c *FakeRepositories) UpdateStatus(ctx context.Context, repository *v1alpha1.Repository, opts v1.UpdateOptions) (*v1alpha1.Repository, error)

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

func (*FakeRepositories) Watch

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

type FakeStashV1alpha1

type FakeStashV1alpha1 struct {

func (*FakeStashV1alpha1) RESTClient

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

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

func (*FakeStashV1alpha1) Repositories

func (c *FakeStashV1alpha1) Repositories(namespace string) v1alpha1.RepositoryInterface

Jump to

Keyboard shortcuts

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