fake

package
v0.0.0-...-5c5dfeb Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT 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 FakeFlangaV1

type FakeFlangaV1 struct {
	*testing.Fake
}

func (*FakeFlangaV1) HtpasswdUsers

func (c *FakeFlangaV1) HtpasswdUsers(namespace string) v1.HtpasswdUserInterface

func (*FakeFlangaV1) RESTClient

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

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

type FakeHtpasswdUsers

type FakeHtpasswdUsers struct {
	Fake *FakeFlangaV1
	// contains filtered or unexported fields
}

FakeHtpasswdUsers implements HtpasswdUserInterface

func (*FakeHtpasswdUsers) Create

func (c *FakeHtpasswdUsers) Create(ctx context.Context, htpasswdUser *v12.HtpasswdUser, opts metav1.CreateOptions) (result *v12.HtpasswdUser, err error)

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

func (*FakeHtpasswdUsers) Delete

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

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

func (*FakeHtpasswdUsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHtpasswdUsers) Get

func (c *FakeHtpasswdUsers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v12.HtpasswdUser, err error)

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

func (*FakeHtpasswdUsers) List

func (c *FakeHtpasswdUsers) List(ctx context.Context, opts metav1.ListOptions) (result *v12.HtpasswdUserList, err error)

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

func (*FakeHtpasswdUsers) Patch

func (c *FakeHtpasswdUsers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v12.HtpasswdUser, err error)

Patch applies the patch and returns the patched htpasswdUser.

func (*FakeHtpasswdUsers) Update

func (c *FakeHtpasswdUsers) Update(ctx context.Context, htpasswdUser *v12.HtpasswdUser, opts metav1.UpdateOptions) (result *v12.HtpasswdUser, err error)

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

func (*FakeHtpasswdUsers) UpdateStatus

func (c *FakeHtpasswdUsers) UpdateStatus(ctx context.Context, htpasswdUser *v12.HtpasswdUser, opts metav1.UpdateOptions) (*v12.HtpasswdUser, error)

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

func (*FakeHtpasswdUsers) Watch

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

Jump to

Keyboard shortcuts

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