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 FakeConfigurations

type FakeConfigurations struct {
	Fake *FakeMariadbV1alpha1
	// contains filtered or unexported fields
}

FakeConfigurations implements ConfigurationInterface

func (*FakeConfigurations) Create

func (c *FakeConfigurations) Create(ctx context.Context, configuration *v1alpha1.Configuration, opts v1.CreateOptions) (result *v1alpha1.Configuration, err error)

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

func (*FakeConfigurations) Delete

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

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

func (*FakeConfigurations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConfigurations) Get

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

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

func (*FakeConfigurations) List

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

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

func (*FakeConfigurations) Patch

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

Patch applies the patch and returns the patched configuration.

func (*FakeConfigurations) Update

func (c *FakeConfigurations) Update(ctx context.Context, configuration *v1alpha1.Configuration, opts v1.UpdateOptions) (result *v1alpha1.Configuration, err error)

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

func (*FakeConfigurations) UpdateStatus

func (c *FakeConfigurations) UpdateStatus(ctx context.Context, configuration *v1alpha1.Configuration, opts v1.UpdateOptions) (*v1alpha1.Configuration, error)

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

func (*FakeConfigurations) Watch

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

type FakeDatabases

type FakeDatabases struct {
	Fake *FakeMariadbV1alpha1
	// contains filtered or unexported fields
}

FakeDatabases implements DatabaseInterface

func (*FakeDatabases) Create

func (c *FakeDatabases) Create(ctx context.Context, database *v1alpha1.Database, opts v1.CreateOptions) (result *v1alpha1.Database, err error)

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

func (*FakeDatabases) Delete

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

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

func (*FakeDatabases) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDatabases) Get

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

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

func (*FakeDatabases) List

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

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

func (*FakeDatabases) Patch

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

Patch applies the patch and returns the patched database.

func (*FakeDatabases) Update

func (c *FakeDatabases) Update(ctx context.Context, database *v1alpha1.Database, opts v1.UpdateOptions) (result *v1alpha1.Database, err error)

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

func (*FakeDatabases) UpdateStatus

func (c *FakeDatabases) UpdateStatus(ctx context.Context, database *v1alpha1.Database, opts v1.UpdateOptions) (*v1alpha1.Database, error)

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

func (*FakeDatabases) Watch

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

type FakeFirewallRules

type FakeFirewallRules struct {
	Fake *FakeMariadbV1alpha1
	// 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 FakeMariadbV1alpha1

type FakeMariadbV1alpha1 struct {
	*testing.Fake
}

func (*FakeMariadbV1alpha1) Configurations

func (c *FakeMariadbV1alpha1) Configurations(namespace string) v1alpha1.ConfigurationInterface

func (*FakeMariadbV1alpha1) Databases

func (c *FakeMariadbV1alpha1) Databases(namespace string) v1alpha1.DatabaseInterface

func (*FakeMariadbV1alpha1) FirewallRules

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

func (*FakeMariadbV1alpha1) RESTClient

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

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

func (*FakeMariadbV1alpha1) Servers

func (c *FakeMariadbV1alpha1) Servers(namespace string) v1alpha1.ServerInterface

func (*FakeMariadbV1alpha1) VirtualNetworkRules

func (c *FakeMariadbV1alpha1) VirtualNetworkRules(namespace string) v1alpha1.VirtualNetworkRuleInterface

type FakeServers

type FakeServers struct {
	Fake *FakeMariadbV1alpha1
	// contains filtered or unexported fields
}

FakeServers implements ServerInterface

func (*FakeServers) Create

func (c *FakeServers) Create(ctx context.Context, server *v1alpha1.Server, opts v1.CreateOptions) (result *v1alpha1.Server, err error)

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

func (*FakeServers) Delete

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

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

func (*FakeServers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServers) Get

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

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

func (*FakeServers) List

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

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

func (*FakeServers) Patch

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

Patch applies the patch and returns the patched server.

func (*FakeServers) Update

func (c *FakeServers) Update(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (result *v1alpha1.Server, err error)

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

func (*FakeServers) UpdateStatus

func (c *FakeServers) UpdateStatus(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (*v1alpha1.Server, error)

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

func (*FakeServers) Watch

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

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

type FakeVirtualNetworkRules

type FakeVirtualNetworkRules struct {
	Fake *FakeMariadbV1alpha1
	// contains filtered or unexported fields
}

FakeVirtualNetworkRules implements VirtualNetworkRuleInterface

func (*FakeVirtualNetworkRules) Create

func (c *FakeVirtualNetworkRules) Create(ctx context.Context, virtualNetworkRule *v1alpha1.VirtualNetworkRule, opts v1.CreateOptions) (result *v1alpha1.VirtualNetworkRule, err error)

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

func (*FakeVirtualNetworkRules) Delete

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

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

func (*FakeVirtualNetworkRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualNetworkRules) Get

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

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

func (*FakeVirtualNetworkRules) List

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

func (*FakeVirtualNetworkRules) Patch

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

Patch applies the patch and returns the patched virtualNetworkRule.

func (*FakeVirtualNetworkRules) Update

func (c *FakeVirtualNetworkRules) Update(ctx context.Context, virtualNetworkRule *v1alpha1.VirtualNetworkRule, opts v1.UpdateOptions) (result *v1alpha1.VirtualNetworkRule, err error)

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

func (*FakeVirtualNetworkRules) UpdateStatus

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

func (*FakeVirtualNetworkRules) Watch

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

Jump to

Keyboard shortcuts

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