fake

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 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 FakeAccessGrants

type FakeAccessGrants struct {
	Fake *FakeAccessrequestsV1
	// contains filtered or unexported fields
}

FakeAccessGrants implements AccessGrantInterface

func (*FakeAccessGrants) Create

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

func (*FakeAccessGrants) Delete

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

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

func (*FakeAccessGrants) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAccessGrants) Get

func (c *FakeAccessGrants) Get(ctx context.Context, name string, options v1.GetOptions) (result *accessrequestsv1.AccessGrant, err error)

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

func (*FakeAccessGrants) List

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

func (*FakeAccessGrants) Patch

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

Patch applies the patch and returns the patched accessGrant.

func (*FakeAccessGrants) Update

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

func (*FakeAccessGrants) UpdateStatus

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

func (*FakeAccessGrants) Watch

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

type FakeAccessRequests

type FakeAccessRequests struct {
	Fake *FakeAccessrequestsV1
	// contains filtered or unexported fields
}

FakeAccessRequests implements AccessRequestInterface

func (*FakeAccessRequests) Create

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

func (*FakeAccessRequests) Delete

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

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

func (*FakeAccessRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAccessRequests) Get

func (c *FakeAccessRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *accessrequestsv1.AccessRequest, err error)

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

func (*FakeAccessRequests) List

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

func (*FakeAccessRequests) Patch

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

Patch applies the patch and returns the patched accessRequest.

func (*FakeAccessRequests) Update

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

func (*FakeAccessRequests) Watch

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

type FakeAccessrequestsV1

type FakeAccessrequestsV1 struct {
	*testing.Fake
}

func (*FakeAccessrequestsV1) AccessGrants

func (c *FakeAccessrequestsV1) AccessGrants(namespace string) v1.AccessGrantInterface

func (*FakeAccessrequestsV1) AccessRequests

func (c *FakeAccessrequestsV1) AccessRequests(namespace string) v1.AccessRequestInterface

func (*FakeAccessrequestsV1) RESTClient

func (c *FakeAccessrequestsV1) 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