Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCrdbClusters
- func (c *FakeCrdbClusters) Create(ctx context.Context, crdbCluster *v1alpha1.CrdbCluster, opts v1.CreateOptions) (result *v1alpha1.CrdbCluster, err error)
- func (c *FakeCrdbClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeCrdbClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeCrdbClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CrdbCluster, err error)
- func (c *FakeCrdbClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.CrdbClusterList, err error)
- func (c *FakeCrdbClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.CrdbCluster, err error)
- func (c *FakeCrdbClusters) Update(ctx context.Context, crdbCluster *v1alpha1.CrdbCluster, opts v1.UpdateOptions) (result *v1alpha1.CrdbCluster, err error)
- func (c *FakeCrdbClusters) UpdateStatus(ctx context.Context, crdbCluster *v1alpha1.CrdbCluster, opts v1.UpdateOptions) (*v1alpha1.CrdbCluster, error)
- func (c *FakeCrdbClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeCrdbV1alpha1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCrdbClusters ¶
type FakeCrdbClusters struct { Fake *FakeCrdbV1alpha1 // contains filtered or unexported fields }
FakeCrdbClusters implements CrdbClusterInterface
func (*FakeCrdbClusters) Create ¶
func (c *FakeCrdbClusters) Create(ctx context.Context, crdbCluster *v1alpha1.CrdbCluster, opts v1.CreateOptions) (result *v1alpha1.CrdbCluster, err error)
Create takes the representation of a crdbCluster and creates it. Returns the server's representation of the crdbCluster, and an error, if there is any.
func (*FakeCrdbClusters) Delete ¶
func (c *FakeCrdbClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the crdbCluster and deletes it. Returns an error if one occurs.
func (*FakeCrdbClusters) DeleteCollection ¶
func (c *FakeCrdbClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeCrdbClusters) Get ¶
func (c *FakeCrdbClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CrdbCluster, err error)
Get takes name of the crdbCluster, and returns the corresponding crdbCluster object, and an error if there is any.
func (*FakeCrdbClusters) List ¶
func (c *FakeCrdbClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.CrdbClusterList, err error)
List takes label and field selectors, and returns the list of CrdbClusters that match those selectors.
func (*FakeCrdbClusters) Patch ¶
func (c *FakeCrdbClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.CrdbCluster, err error)
Patch applies the patch and returns the patched crdbCluster.
func (*FakeCrdbClusters) Update ¶
func (c *FakeCrdbClusters) Update(ctx context.Context, crdbCluster *v1alpha1.CrdbCluster, opts v1.UpdateOptions) (result *v1alpha1.CrdbCluster, err error)
Update takes the representation of a crdbCluster and updates it. Returns the server's representation of the crdbCluster, and an error, if there is any.
func (*FakeCrdbClusters) UpdateStatus ¶
func (c *FakeCrdbClusters) UpdateStatus(ctx context.Context, crdbCluster *v1alpha1.CrdbCluster, opts v1.UpdateOptions) (*v1alpha1.CrdbCluster, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeCrdbClusters) Watch ¶
func (c *FakeCrdbClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested crdbClusters.
type FakeCrdbV1alpha1 ¶
func (*FakeCrdbV1alpha1) CrdbClusters ¶
func (c *FakeCrdbV1alpha1) CrdbClusters(namespace string) v1alpha1.CrdbClusterInterface
func (*FakeCrdbV1alpha1) RESTClient ¶
func (c *FakeCrdbV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.