fake

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 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 FakeASClaims

type FakeASClaims struct {
	Fake *FakeAsV1alpha1
	// contains filtered or unexported fields
}

FakeASClaims implements ASClaimInterface

func (*FakeASClaims) Create

func (c *FakeASClaims) Create(ctx context.Context, aSClaim *v1alpha1.ASClaim, opts v1.CreateOptions) (result *v1alpha1.ASClaim, err error)

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

func (*FakeASClaims) Delete

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

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

func (*FakeASClaims) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeASClaims) Get

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

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

func (*FakeASClaims) List

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

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

func (*FakeASClaims) Patch

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

Patch applies the patch and returns the patched aSClaim.

func (*FakeASClaims) Update

func (c *FakeASClaims) Update(ctx context.Context, aSClaim *v1alpha1.ASClaim, opts v1.UpdateOptions) (result *v1alpha1.ASClaim, err error)

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

func (*FakeASClaims) UpdateStatus

func (c *FakeASClaims) UpdateStatus(ctx context.Context, aSClaim *v1alpha1.ASClaim, opts v1.UpdateOptions) (*v1alpha1.ASClaim, error)

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

func (*FakeASClaims) Watch

func (c *FakeASClaims) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeASEntries

type FakeASEntries struct {
	Fake *FakeAsV1alpha1
	// contains filtered or unexported fields
}

FakeASEntries implements ASEntryInterface

func (*FakeASEntries) Create

func (c *FakeASEntries) Create(ctx context.Context, aSEntry *v1alpha1.ASEntry, opts v1.CreateOptions) (result *v1alpha1.ASEntry, err error)

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

func (*FakeASEntries) Delete

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

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

func (*FakeASEntries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeASEntries) Get

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

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

func (*FakeASEntries) List

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

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

func (*FakeASEntries) Patch

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

Patch applies the patch and returns the patched aSEntry.

func (*FakeASEntries) Update

func (c *FakeASEntries) Update(ctx context.Context, aSEntry *v1alpha1.ASEntry, opts v1.UpdateOptions) (result *v1alpha1.ASEntry, err error)

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

func (*FakeASEntries) UpdateStatus

func (c *FakeASEntries) UpdateStatus(ctx context.Context, aSEntry *v1alpha1.ASEntry, opts v1.UpdateOptions) (*v1alpha1.ASEntry, error)

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

func (*FakeASEntries) Watch

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

type FakeASIndexes

type FakeASIndexes struct {
	Fake *FakeAsV1alpha1
	// contains filtered or unexported fields
}

FakeASIndexes implements ASIndexInterface

func (*FakeASIndexes) Create

func (c *FakeASIndexes) Create(ctx context.Context, aSIndex *v1alpha1.ASIndex, opts v1.CreateOptions) (result *v1alpha1.ASIndex, err error)

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

func (*FakeASIndexes) Delete

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

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

func (*FakeASIndexes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeASIndexes) Get

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

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

func (*FakeASIndexes) List

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

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

func (*FakeASIndexes) Patch

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

Patch applies the patch and returns the patched aSIndex.

func (*FakeASIndexes) Update

func (c *FakeASIndexes) Update(ctx context.Context, aSIndex *v1alpha1.ASIndex, opts v1.UpdateOptions) (result *v1alpha1.ASIndex, err error)

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

func (*FakeASIndexes) UpdateStatus

func (c *FakeASIndexes) UpdateStatus(ctx context.Context, aSIndex *v1alpha1.ASIndex, opts v1.UpdateOptions) (*v1alpha1.ASIndex, error)

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

func (*FakeASIndexes) Watch

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

type FakeAsV1alpha1

type FakeAsV1alpha1 struct {
	*testing.Fake
}

func (*FakeAsV1alpha1) ASClaims

func (c *FakeAsV1alpha1) ASClaims(namespace string) v1alpha1.ASClaimInterface

func (*FakeAsV1alpha1) ASEntries

func (c *FakeAsV1alpha1) ASEntries(namespace string) v1alpha1.ASEntryInterface

func (*FakeAsV1alpha1) ASIndexes

func (c *FakeAsV1alpha1) ASIndexes(namespace string) v1alpha1.ASIndexInterface

func (*FakeAsV1alpha1) RESTClient

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