fake

package
v0.37.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 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 FakeBindings

type FakeBindings struct {
	Fake *FakeRabbitmqV1beta1
	// contains filtered or unexported fields
}

FakeBindings implements BindingInterface

func (*FakeBindings) Create

func (c *FakeBindings) Create(ctx context.Context, binding *v1beta1.Binding, opts v1.CreateOptions) (result *v1beta1.Binding, err error)

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

func (*FakeBindings) Delete

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

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

func (*FakeBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBindings) Get

func (c *FakeBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Binding, err error)

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

func (*FakeBindings) List

func (c *FakeBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.BindingList, err error)

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

func (*FakeBindings) Patch

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

Patch applies the patch and returns the patched binding.

func (*FakeBindings) Update

func (c *FakeBindings) Update(ctx context.Context, binding *v1beta1.Binding, opts v1.UpdateOptions) (result *v1beta1.Binding, err error)

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

func (*FakeBindings) UpdateStatus

func (c *FakeBindings) UpdateStatus(ctx context.Context, binding *v1beta1.Binding, opts v1.UpdateOptions) (*v1beta1.Binding, error)

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

func (*FakeBindings) Watch

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

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

type FakeExchanges

type FakeExchanges struct {
	Fake *FakeRabbitmqV1beta1
	// contains filtered or unexported fields
}

FakeExchanges implements ExchangeInterface

func (*FakeExchanges) Create

func (c *FakeExchanges) Create(ctx context.Context, exchange *v1beta1.Exchange, opts v1.CreateOptions) (result *v1beta1.Exchange, err error)

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

func (*FakeExchanges) Delete

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

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

func (*FakeExchanges) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeExchanges) Get

func (c *FakeExchanges) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Exchange, err error)

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

func (*FakeExchanges) List

func (c *FakeExchanges) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ExchangeList, err error)

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

func (*FakeExchanges) Patch

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

Patch applies the patch and returns the patched exchange.

func (*FakeExchanges) Update

func (c *FakeExchanges) Update(ctx context.Context, exchange *v1beta1.Exchange, opts v1.UpdateOptions) (result *v1beta1.Exchange, err error)

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

func (*FakeExchanges) UpdateStatus

func (c *FakeExchanges) UpdateStatus(ctx context.Context, exchange *v1beta1.Exchange, opts v1.UpdateOptions) (*v1beta1.Exchange, error)

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

func (*FakeExchanges) Watch

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

type FakeFederations

type FakeFederations struct {
	Fake *FakeRabbitmqV1beta1
	// contains filtered or unexported fields
}

FakeFederations implements FederationInterface

func (*FakeFederations) Create

func (c *FakeFederations) Create(ctx context.Context, federation *v1beta1.Federation, opts v1.CreateOptions) (result *v1beta1.Federation, err error)

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

func (*FakeFederations) Delete

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

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

func (*FakeFederations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFederations) Get

func (c *FakeFederations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Federation, err error)

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

func (*FakeFederations) List

func (c *FakeFederations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.FederationList, err error)

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

func (*FakeFederations) Patch

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

Patch applies the patch and returns the patched federation.

func (*FakeFederations) Update

func (c *FakeFederations) Update(ctx context.Context, federation *v1beta1.Federation, opts v1.UpdateOptions) (result *v1beta1.Federation, err error)

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

func (*FakeFederations) UpdateStatus

func (c *FakeFederations) UpdateStatus(ctx context.Context, federation *v1beta1.Federation, opts v1.UpdateOptions) (*v1beta1.Federation, error)

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

func (*FakeFederations) Watch

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

type FakePermissions

type FakePermissions struct {
	Fake *FakeRabbitmqV1beta1
	// contains filtered or unexported fields
}

FakePermissions implements PermissionInterface

func (*FakePermissions) Create

func (c *FakePermissions) Create(ctx context.Context, permission *v1beta1.Permission, opts v1.CreateOptions) (result *v1beta1.Permission, err error)

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

func (*FakePermissions) Delete

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

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

func (*FakePermissions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePermissions) Get

func (c *FakePermissions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Permission, err error)

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

func (*FakePermissions) List

func (c *FakePermissions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PermissionList, err error)

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

func (*FakePermissions) Patch

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

Patch applies the patch and returns the patched permission.

func (*FakePermissions) Update

func (c *FakePermissions) Update(ctx context.Context, permission *v1beta1.Permission, opts v1.UpdateOptions) (result *v1beta1.Permission, err error)

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

func (*FakePermissions) UpdateStatus

func (c *FakePermissions) UpdateStatus(ctx context.Context, permission *v1beta1.Permission, opts v1.UpdateOptions) (*v1beta1.Permission, error)

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

func (*FakePermissions) Watch

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

type FakePolicies

type FakePolicies struct {
	Fake *FakeRabbitmqV1beta1
	// contains filtered or unexported fields
}

FakePolicies implements PolicyInterface

func (*FakePolicies) Create

func (c *FakePolicies) Create(ctx context.Context, policy *v1beta1.Policy, opts v1.CreateOptions) (result *v1beta1.Policy, err error)

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

func (*FakePolicies) Delete

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

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

func (*FakePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicies) Get

func (c *FakePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Policy, err error)

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

func (*FakePolicies) List

func (c *FakePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PolicyList, err error)

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

func (*FakePolicies) Patch

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

Patch applies the patch and returns the patched policy.

func (*FakePolicies) Update

func (c *FakePolicies) Update(ctx context.Context, policy *v1beta1.Policy, opts v1.UpdateOptions) (result *v1beta1.Policy, err error)

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

func (*FakePolicies) UpdateStatus

func (c *FakePolicies) UpdateStatus(ctx context.Context, policy *v1beta1.Policy, opts v1.UpdateOptions) (*v1beta1.Policy, error)

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

func (*FakePolicies) Watch

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

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

type FakeQueues

type FakeQueues struct {
	Fake *FakeRabbitmqV1beta1
	// contains filtered or unexported fields
}

FakeQueues implements QueueInterface

func (*FakeQueues) Create

func (c *FakeQueues) Create(ctx context.Context, queue *v1beta1.Queue, opts v1.CreateOptions) (result *v1beta1.Queue, err error)

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

func (*FakeQueues) Delete

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

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

func (*FakeQueues) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeQueues) Get

func (c *FakeQueues) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Queue, err error)

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

func (*FakeQueues) List

func (c *FakeQueues) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.QueueList, err error)

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

func (*FakeQueues) Patch

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

Patch applies the patch and returns the patched queue.

func (*FakeQueues) Update

func (c *FakeQueues) Update(ctx context.Context, queue *v1beta1.Queue, opts v1.UpdateOptions) (result *v1beta1.Queue, err error)

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

func (*FakeQueues) UpdateStatus

func (c *FakeQueues) UpdateStatus(ctx context.Context, queue *v1beta1.Queue, opts v1.UpdateOptions) (*v1beta1.Queue, error)

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

func (*FakeQueues) Watch

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

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

type FakeRabbitmqV1beta1

type FakeRabbitmqV1beta1 struct {
	*testing.Fake
}

func (*FakeRabbitmqV1beta1) Bindings

func (c *FakeRabbitmqV1beta1) Bindings(namespace string) v1beta1.BindingInterface

func (*FakeRabbitmqV1beta1) Exchanges

func (c *FakeRabbitmqV1beta1) Exchanges(namespace string) v1beta1.ExchangeInterface

func (*FakeRabbitmqV1beta1) Federations

func (c *FakeRabbitmqV1beta1) Federations(namespace string) v1beta1.FederationInterface

func (*FakeRabbitmqV1beta1) Permissions

func (c *FakeRabbitmqV1beta1) Permissions(namespace string) v1beta1.PermissionInterface

func (*FakeRabbitmqV1beta1) Policies

func (c *FakeRabbitmqV1beta1) Policies(namespace string) v1beta1.PolicyInterface

func (*FakeRabbitmqV1beta1) Queues

func (c *FakeRabbitmqV1beta1) Queues(namespace string) v1beta1.QueueInterface

func (*FakeRabbitmqV1beta1) RESTClient

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

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

func (*FakeRabbitmqV1beta1) SchemaReplications

func (c *FakeRabbitmqV1beta1) SchemaReplications(namespace string) v1beta1.SchemaReplicationInterface

func (*FakeRabbitmqV1beta1) Shovels

func (c *FakeRabbitmqV1beta1) Shovels(namespace string) v1beta1.ShovelInterface

func (*FakeRabbitmqV1beta1) Users

func (c *FakeRabbitmqV1beta1) Users(namespace string) v1beta1.UserInterface

func (*FakeRabbitmqV1beta1) Vhosts

func (c *FakeRabbitmqV1beta1) Vhosts(namespace string) v1beta1.VhostInterface

type FakeSchemaReplications

type FakeSchemaReplications struct {
	Fake *FakeRabbitmqV1beta1
	// contains filtered or unexported fields
}

FakeSchemaReplications implements SchemaReplicationInterface

func (*FakeSchemaReplications) Create

func (c *FakeSchemaReplications) Create(ctx context.Context, schemaReplication *v1beta1.SchemaReplication, opts v1.CreateOptions) (result *v1beta1.SchemaReplication, err error)

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

func (*FakeSchemaReplications) Delete

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

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

func (*FakeSchemaReplications) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSchemaReplications) Get

func (c *FakeSchemaReplications) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.SchemaReplication, err error)

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

func (*FakeSchemaReplications) List

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

func (*FakeSchemaReplications) Patch

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

Patch applies the patch and returns the patched schemaReplication.

func (*FakeSchemaReplications) Update

func (c *FakeSchemaReplications) Update(ctx context.Context, schemaReplication *v1beta1.SchemaReplication, opts v1.UpdateOptions) (result *v1beta1.SchemaReplication, err error)

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

func (*FakeSchemaReplications) UpdateStatus

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

func (*FakeSchemaReplications) Watch

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

type FakeShovels

type FakeShovels struct {
	Fake *FakeRabbitmqV1beta1
	// contains filtered or unexported fields
}

FakeShovels implements ShovelInterface

func (*FakeShovels) Create

func (c *FakeShovels) Create(ctx context.Context, shovel *v1beta1.Shovel, opts v1.CreateOptions) (result *v1beta1.Shovel, err error)

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

func (*FakeShovels) Delete

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

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

func (*FakeShovels) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeShovels) Get

func (c *FakeShovels) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Shovel, err error)

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

func (*FakeShovels) List

func (c *FakeShovels) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ShovelList, err error)

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

func (*FakeShovels) Patch

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

Patch applies the patch and returns the patched shovel.

func (*FakeShovels) Update

func (c *FakeShovels) Update(ctx context.Context, shovel *v1beta1.Shovel, opts v1.UpdateOptions) (result *v1beta1.Shovel, err error)

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

func (*FakeShovels) UpdateStatus

func (c *FakeShovels) UpdateStatus(ctx context.Context, shovel *v1beta1.Shovel, opts v1.UpdateOptions) (*v1beta1.Shovel, error)

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

func (*FakeShovels) Watch

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

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

type FakeUsers

type FakeUsers struct {
	Fake *FakeRabbitmqV1beta1
	// contains filtered or unexported fields
}

FakeUsers implements UserInterface

func (*FakeUsers) Create

func (c *FakeUsers) Create(ctx context.Context, user *v1beta1.User, opts v1.CreateOptions) (result *v1beta1.User, err error)

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

func (*FakeUsers) Delete

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

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

func (*FakeUsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUsers) Get

func (c *FakeUsers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.User, err error)

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

func (*FakeUsers) List

func (c *FakeUsers) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.UserList, err error)

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

func (*FakeUsers) Patch

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

Patch applies the patch and returns the patched user.

func (*FakeUsers) Update

func (c *FakeUsers) Update(ctx context.Context, user *v1beta1.User, opts v1.UpdateOptions) (result *v1beta1.User, err error)

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

func (*FakeUsers) UpdateStatus

func (c *FakeUsers) UpdateStatus(ctx context.Context, user *v1beta1.User, opts v1.UpdateOptions) (*v1beta1.User, error)

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

func (*FakeUsers) Watch

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

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

type FakeVhosts

type FakeVhosts struct {
	Fake *FakeRabbitmqV1beta1
	// contains filtered or unexported fields
}

FakeVhosts implements VhostInterface

func (*FakeVhosts) Create

func (c *FakeVhosts) Create(ctx context.Context, vhost *v1beta1.Vhost, opts v1.CreateOptions) (result *v1beta1.Vhost, err error)

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

func (*FakeVhosts) Delete

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

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

func (*FakeVhosts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVhosts) Get

func (c *FakeVhosts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Vhost, err error)

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

func (*FakeVhosts) List

func (c *FakeVhosts) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.VhostList, err error)

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

func (*FakeVhosts) Patch

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

Patch applies the patch and returns the patched vhost.

func (*FakeVhosts) Update

func (c *FakeVhosts) Update(ctx context.Context, vhost *v1beta1.Vhost, opts v1.UpdateOptions) (result *v1beta1.Vhost, err error)

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

func (*FakeVhosts) UpdateStatus

func (c *FakeVhosts) UpdateStatus(ctx context.Context, vhost *v1beta1.Vhost, opts v1.UpdateOptions) (*v1beta1.Vhost, error)

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

func (*FakeVhosts) Watch

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

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

Jump to

Keyboard shortcuts

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