fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 FakeCacheAccessPolicies

type FakeCacheAccessPolicies struct {
	Fake *FakeHpcV1alpha1
	// contains filtered or unexported fields
}

FakeCacheAccessPolicies implements CacheAccessPolicyInterface

func (*FakeCacheAccessPolicies) Create

func (c *FakeCacheAccessPolicies) Create(ctx context.Context, cacheAccessPolicy *v1alpha1.CacheAccessPolicy, opts v1.CreateOptions) (result *v1alpha1.CacheAccessPolicy, err error)

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

func (*FakeCacheAccessPolicies) Delete

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

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

func (*FakeCacheAccessPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCacheAccessPolicies) Get

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

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

func (*FakeCacheAccessPolicies) List

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

func (*FakeCacheAccessPolicies) Patch

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

Patch applies the patch and returns the patched cacheAccessPolicy.

func (*FakeCacheAccessPolicies) Update

func (c *FakeCacheAccessPolicies) Update(ctx context.Context, cacheAccessPolicy *v1alpha1.CacheAccessPolicy, opts v1.UpdateOptions) (result *v1alpha1.CacheAccessPolicy, err error)

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

func (*FakeCacheAccessPolicies) UpdateStatus

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

func (*FakeCacheAccessPolicies) Watch

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

type FakeCacheBlobNfsTargets

type FakeCacheBlobNfsTargets struct {
	Fake *FakeHpcV1alpha1
	// contains filtered or unexported fields
}

FakeCacheBlobNfsTargets implements CacheBlobNfsTargetInterface

func (*FakeCacheBlobNfsTargets) Create

func (c *FakeCacheBlobNfsTargets) Create(ctx context.Context, cacheBlobNfsTarget *v1alpha1.CacheBlobNfsTarget, opts v1.CreateOptions) (result *v1alpha1.CacheBlobNfsTarget, err error)

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

func (*FakeCacheBlobNfsTargets) Delete

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

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

func (*FakeCacheBlobNfsTargets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCacheBlobNfsTargets) Get

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

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

func (*FakeCacheBlobNfsTargets) List

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

func (*FakeCacheBlobNfsTargets) Patch

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

Patch applies the patch and returns the patched cacheBlobNfsTarget.

func (*FakeCacheBlobNfsTargets) Update

func (c *FakeCacheBlobNfsTargets) Update(ctx context.Context, cacheBlobNfsTarget *v1alpha1.CacheBlobNfsTarget, opts v1.UpdateOptions) (result *v1alpha1.CacheBlobNfsTarget, err error)

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

func (*FakeCacheBlobNfsTargets) UpdateStatus

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

func (*FakeCacheBlobNfsTargets) Watch

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

type FakeCacheBlobTargets

type FakeCacheBlobTargets struct {
	Fake *FakeHpcV1alpha1
	// contains filtered or unexported fields
}

FakeCacheBlobTargets implements CacheBlobTargetInterface

func (*FakeCacheBlobTargets) Create

func (c *FakeCacheBlobTargets) Create(ctx context.Context, cacheBlobTarget *v1alpha1.CacheBlobTarget, opts v1.CreateOptions) (result *v1alpha1.CacheBlobTarget, err error)

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

func (*FakeCacheBlobTargets) Delete

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

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

func (*FakeCacheBlobTargets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCacheBlobTargets) Get

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

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

func (*FakeCacheBlobTargets) List

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

func (*FakeCacheBlobTargets) Patch

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

Patch applies the patch and returns the patched cacheBlobTarget.

func (*FakeCacheBlobTargets) Update

func (c *FakeCacheBlobTargets) Update(ctx context.Context, cacheBlobTarget *v1alpha1.CacheBlobTarget, opts v1.UpdateOptions) (result *v1alpha1.CacheBlobTarget, err error)

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

func (*FakeCacheBlobTargets) UpdateStatus

func (c *FakeCacheBlobTargets) UpdateStatus(ctx context.Context, cacheBlobTarget *v1alpha1.CacheBlobTarget, opts v1.UpdateOptions) (*v1alpha1.CacheBlobTarget, error)

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

func (*FakeCacheBlobTargets) Watch

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

type FakeCacheNfsTargets

type FakeCacheNfsTargets struct {
	Fake *FakeHpcV1alpha1
	// contains filtered or unexported fields
}

FakeCacheNfsTargets implements CacheNfsTargetInterface

func (*FakeCacheNfsTargets) Create

func (c *FakeCacheNfsTargets) Create(ctx context.Context, cacheNfsTarget *v1alpha1.CacheNfsTarget, opts v1.CreateOptions) (result *v1alpha1.CacheNfsTarget, err error)

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

func (*FakeCacheNfsTargets) Delete

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

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

func (*FakeCacheNfsTargets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCacheNfsTargets) Get

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

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

func (*FakeCacheNfsTargets) List

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

func (*FakeCacheNfsTargets) Patch

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

Patch applies the patch and returns the patched cacheNfsTarget.

func (*FakeCacheNfsTargets) Update

func (c *FakeCacheNfsTargets) Update(ctx context.Context, cacheNfsTarget *v1alpha1.CacheNfsTarget, opts v1.UpdateOptions) (result *v1alpha1.CacheNfsTarget, err error)

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

func (*FakeCacheNfsTargets) UpdateStatus

func (c *FakeCacheNfsTargets) UpdateStatus(ctx context.Context, cacheNfsTarget *v1alpha1.CacheNfsTarget, opts v1.UpdateOptions) (*v1alpha1.CacheNfsTarget, error)

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

func (*FakeCacheNfsTargets) Watch

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

type FakeCaches

type FakeCaches struct {
	Fake *FakeHpcV1alpha1
	// contains filtered or unexported fields
}

FakeCaches implements CacheInterface

func (*FakeCaches) Create

func (c *FakeCaches) Create(ctx context.Context, cache *v1alpha1.Cache, opts v1.CreateOptions) (result *v1alpha1.Cache, err error)

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

func (*FakeCaches) Delete

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

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

func (*FakeCaches) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCaches) Get

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

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

func (*FakeCaches) List

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

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

func (*FakeCaches) Patch

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

Patch applies the patch and returns the patched cache.

func (*FakeCaches) Update

func (c *FakeCaches) Update(ctx context.Context, cache *v1alpha1.Cache, opts v1.UpdateOptions) (result *v1alpha1.Cache, err error)

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

func (*FakeCaches) UpdateStatus

func (c *FakeCaches) UpdateStatus(ctx context.Context, cache *v1alpha1.Cache, opts v1.UpdateOptions) (*v1alpha1.Cache, error)

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

func (*FakeCaches) Watch

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

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

type FakeHpcV1alpha1

type FakeHpcV1alpha1 struct {
	*testing.Fake
}

func (*FakeHpcV1alpha1) CacheAccessPolicies

func (c *FakeHpcV1alpha1) CacheAccessPolicies(namespace string) v1alpha1.CacheAccessPolicyInterface

func (*FakeHpcV1alpha1) CacheBlobNfsTargets

func (c *FakeHpcV1alpha1) CacheBlobNfsTargets(namespace string) v1alpha1.CacheBlobNfsTargetInterface

func (*FakeHpcV1alpha1) CacheBlobTargets

func (c *FakeHpcV1alpha1) CacheBlobTargets(namespace string) v1alpha1.CacheBlobTargetInterface

func (*FakeHpcV1alpha1) CacheNfsTargets

func (c *FakeHpcV1alpha1) CacheNfsTargets(namespace string) v1alpha1.CacheNfsTargetInterface

func (*FakeHpcV1alpha1) Caches

func (c *FakeHpcV1alpha1) Caches(namespace string) v1alpha1.CacheInterface

func (*FakeHpcV1alpha1) RESTClient

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