fake

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 10 Imported by: 5

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 FakeNatsClusters

type FakeNatsClusters struct {
	Fake *FakeNatsV1alpha2
	// contains filtered or unexported fields
}

FakeNatsClusters implements NatsClusterInterface

func (*FakeNatsClusters) Create

func (c *FakeNatsClusters) Create(ctx context.Context, natsCluster *v1alpha2.NatsCluster, opts v1.CreateOptions) (result *v1alpha2.NatsCluster, err error)

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

func (*FakeNatsClusters) Delete

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

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

func (*FakeNatsClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNatsClusters) Get

func (c *FakeNatsClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.NatsCluster, err error)

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

func (*FakeNatsClusters) List

func (c *FakeNatsClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.NatsClusterList, err error)

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

func (*FakeNatsClusters) Patch

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

Patch applies the patch and returns the patched natsCluster.

func (*FakeNatsClusters) Update

func (c *FakeNatsClusters) Update(ctx context.Context, natsCluster *v1alpha2.NatsCluster, opts v1.UpdateOptions) (result *v1alpha2.NatsCluster, err error)

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

func (*FakeNatsClusters) Watch

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

type FakeNatsServiceRoles

type FakeNatsServiceRoles struct {
	Fake *FakeNatsV1alpha2
	// contains filtered or unexported fields
}

FakeNatsServiceRoles implements NatsServiceRoleInterface

func (*FakeNatsServiceRoles) Create

func (c *FakeNatsServiceRoles) Create(ctx context.Context, natsServiceRole *v1alpha2.NatsServiceRole, opts v1.CreateOptions) (result *v1alpha2.NatsServiceRole, err error)

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

func (*FakeNatsServiceRoles) Delete

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

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

func (*FakeNatsServiceRoles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNatsServiceRoles) Get

func (c *FakeNatsServiceRoles) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.NatsServiceRole, err error)

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

func (*FakeNatsServiceRoles) List

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

func (*FakeNatsServiceRoles) Patch

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

Patch applies the patch and returns the patched natsServiceRole.

func (*FakeNatsServiceRoles) Update

func (c *FakeNatsServiceRoles) Update(ctx context.Context, natsServiceRole *v1alpha2.NatsServiceRole, opts v1.UpdateOptions) (result *v1alpha2.NatsServiceRole, err error)

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

func (*FakeNatsServiceRoles) Watch

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

type FakeNatsV1alpha2

type FakeNatsV1alpha2 struct {
	*testing.Fake
}

func (*FakeNatsV1alpha2) NatsClusters

func (c *FakeNatsV1alpha2) NatsClusters(namespace string) v1alpha2.NatsClusterInterface

func (*FakeNatsV1alpha2) NatsServiceRoles

func (c *FakeNatsV1alpha2) NatsServiceRoles(namespace string) v1alpha2.NatsServiceRoleInterface

func (*FakeNatsV1alpha2) RESTClient

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