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 FakeCaches

type FakeCaches struct {
	Fake *FakeRedisV1alpha1
	// 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 FakeEnterpriseClusters

type FakeEnterpriseClusters struct {
	Fake *FakeRedisV1alpha1
	// contains filtered or unexported fields
}

FakeEnterpriseClusters implements EnterpriseClusterInterface

func (*FakeEnterpriseClusters) Create

func (c *FakeEnterpriseClusters) Create(ctx context.Context, enterpriseCluster *v1alpha1.EnterpriseCluster, opts v1.CreateOptions) (result *v1alpha1.EnterpriseCluster, err error)

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

func (*FakeEnterpriseClusters) Delete

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

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

func (*FakeEnterpriseClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEnterpriseClusters) Get

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

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

func (*FakeEnterpriseClusters) List

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

func (*FakeEnterpriseClusters) Patch

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

Patch applies the patch and returns the patched enterpriseCluster.

func (*FakeEnterpriseClusters) Update

func (c *FakeEnterpriseClusters) Update(ctx context.Context, enterpriseCluster *v1alpha1.EnterpriseCluster, opts v1.UpdateOptions) (result *v1alpha1.EnterpriseCluster, err error)

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

func (*FakeEnterpriseClusters) UpdateStatus

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

func (*FakeEnterpriseClusters) Watch

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

type FakeEnterpriseDatabases

type FakeEnterpriseDatabases struct {
	Fake *FakeRedisV1alpha1
	// contains filtered or unexported fields
}

FakeEnterpriseDatabases implements EnterpriseDatabaseInterface

func (*FakeEnterpriseDatabases) Create

func (c *FakeEnterpriseDatabases) Create(ctx context.Context, enterpriseDatabase *v1alpha1.EnterpriseDatabase, opts v1.CreateOptions) (result *v1alpha1.EnterpriseDatabase, err error)

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

func (*FakeEnterpriseDatabases) Delete

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

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

func (*FakeEnterpriseDatabases) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEnterpriseDatabases) Get

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

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

func (*FakeEnterpriseDatabases) List

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

func (*FakeEnterpriseDatabases) Patch

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

Patch applies the patch and returns the patched enterpriseDatabase.

func (*FakeEnterpriseDatabases) Update

func (c *FakeEnterpriseDatabases) Update(ctx context.Context, enterpriseDatabase *v1alpha1.EnterpriseDatabase, opts v1.UpdateOptions) (result *v1alpha1.EnterpriseDatabase, err error)

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

func (*FakeEnterpriseDatabases) UpdateStatus

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

func (*FakeEnterpriseDatabases) Watch

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

type FakeFirewallRules

type FakeFirewallRules struct {
	Fake *FakeRedisV1alpha1
	// contains filtered or unexported fields
}

FakeFirewallRules implements FirewallRuleInterface

func (*FakeFirewallRules) Create

func (c *FakeFirewallRules) Create(ctx context.Context, firewallRule *v1alpha1.FirewallRule, opts v1.CreateOptions) (result *v1alpha1.FirewallRule, err error)

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

func (*FakeFirewallRules) Delete

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

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

func (*FakeFirewallRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFirewallRules) Get

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

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

func (*FakeFirewallRules) List

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

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

func (*FakeFirewallRules) Patch

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

Patch applies the patch and returns the patched firewallRule.

func (*FakeFirewallRules) Update

func (c *FakeFirewallRules) Update(ctx context.Context, firewallRule *v1alpha1.FirewallRule, opts v1.UpdateOptions) (result *v1alpha1.FirewallRule, err error)

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

func (*FakeFirewallRules) UpdateStatus

func (c *FakeFirewallRules) UpdateStatus(ctx context.Context, firewallRule *v1alpha1.FirewallRule, opts v1.UpdateOptions) (*v1alpha1.FirewallRule, error)

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

func (*FakeFirewallRules) Watch

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

type FakeLinkedServers

type FakeLinkedServers struct {
	Fake *FakeRedisV1alpha1
	// contains filtered or unexported fields
}

FakeLinkedServers implements LinkedServerInterface

func (*FakeLinkedServers) Create

func (c *FakeLinkedServers) Create(ctx context.Context, linkedServer *v1alpha1.LinkedServer, opts v1.CreateOptions) (result *v1alpha1.LinkedServer, err error)

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

func (*FakeLinkedServers) Delete

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

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

func (*FakeLinkedServers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLinkedServers) Get

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

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

func (*FakeLinkedServers) List

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

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

func (*FakeLinkedServers) Patch

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

Patch applies the patch and returns the patched linkedServer.

func (*FakeLinkedServers) Update

func (c *FakeLinkedServers) Update(ctx context.Context, linkedServer *v1alpha1.LinkedServer, opts v1.UpdateOptions) (result *v1alpha1.LinkedServer, err error)

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

func (*FakeLinkedServers) UpdateStatus

func (c *FakeLinkedServers) UpdateStatus(ctx context.Context, linkedServer *v1alpha1.LinkedServer, opts v1.UpdateOptions) (*v1alpha1.LinkedServer, error)

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

func (*FakeLinkedServers) Watch

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

type FakeRedisV1alpha1

type FakeRedisV1alpha1 struct {
	*testing.Fake
}

func (*FakeRedisV1alpha1) Caches

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

func (*FakeRedisV1alpha1) EnterpriseClusters

func (c *FakeRedisV1alpha1) EnterpriseClusters(namespace string) v1alpha1.EnterpriseClusterInterface

func (*FakeRedisV1alpha1) EnterpriseDatabases

func (c *FakeRedisV1alpha1) EnterpriseDatabases(namespace string) v1alpha1.EnterpriseDatabaseInterface

func (*FakeRedisV1alpha1) FirewallRules

func (c *FakeRedisV1alpha1) FirewallRules(namespace string) v1alpha1.FirewallRuleInterface

func (*FakeRedisV1alpha1) LinkedServers

func (c *FakeRedisV1alpha1) LinkedServers(namespace string) v1alpha1.LinkedServerInterface

func (*FakeRedisV1alpha1) RESTClient

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