fake

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 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 FakeCrunchydataV1

type FakeCrunchydataV1 struct {
	*testing.Fake
}

func (*FakeCrunchydataV1) PerconaPGClusters added in v0.2.0

func (c *FakeCrunchydataV1) PerconaPGClusters(namespace string) v1.PerconaPGClusterInterface

func (*FakeCrunchydataV1) Pgclusters

func (c *FakeCrunchydataV1) Pgclusters(namespace string) v1.PgclusterInterface

func (*FakeCrunchydataV1) Pgpolicies

func (c *FakeCrunchydataV1) Pgpolicies(namespace string) v1.PgpolicyInterface

func (*FakeCrunchydataV1) Pgreplicas

func (c *FakeCrunchydataV1) Pgreplicas(namespace string) v1.PgreplicaInterface

func (*FakeCrunchydataV1) Pgtasks

func (c *FakeCrunchydataV1) Pgtasks(namespace string) v1.PgtaskInterface

func (*FakeCrunchydataV1) RESTClient

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

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

type FakePerconaPGClusters added in v0.2.0

type FakePerconaPGClusters struct {
	Fake *FakeCrunchydataV1
	// contains filtered or unexported fields
}

FakePerconaPGClusters implements PerconaPGClusterInterface

func (*FakePerconaPGClusters) Create added in v0.2.0

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

func (*FakePerconaPGClusters) Delete added in v0.2.0

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

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

func (*FakePerconaPGClusters) DeleteCollection added in v0.2.0

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

DeleteCollection deletes a collection of objects.

func (*FakePerconaPGClusters) Get added in v0.2.0

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

func (*FakePerconaPGClusters) List added in v0.2.0

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

func (*FakePerconaPGClusters) Patch added in v0.2.0

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

Patch applies the patch and returns the patched perconaPGCluster.

func (*FakePerconaPGClusters) Update added in v0.2.0

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

func (*FakePerconaPGClusters) UpdateStatus added in v0.2.0

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

func (*FakePerconaPGClusters) Watch added in v0.2.0

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

type FakePgclusters

type FakePgclusters struct {
	Fake *FakeCrunchydataV1
	// contains filtered or unexported fields
}

FakePgclusters implements PgclusterInterface

func (*FakePgclusters) Create

func (c *FakePgclusters) Create(ctx context.Context, pgcluster *crunchydatacomv1.Pgcluster, opts v1.CreateOptions) (result *crunchydatacomv1.Pgcluster, err error)

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

func (*FakePgclusters) Delete

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

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

func (*FakePgclusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePgclusters) Get

func (c *FakePgclusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.Pgcluster, err error)

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

func (*FakePgclusters) List

func (c *FakePgclusters) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PgclusterList, err error)

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

func (*FakePgclusters) Patch

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

Patch applies the patch and returns the patched pgcluster.

func (*FakePgclusters) Update

func (c *FakePgclusters) Update(ctx context.Context, pgcluster *crunchydatacomv1.Pgcluster, opts v1.UpdateOptions) (result *crunchydatacomv1.Pgcluster, err error)

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

func (*FakePgclusters) UpdateStatus

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

func (*FakePgclusters) Watch

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

type FakePgpolicies

type FakePgpolicies struct {
	Fake *FakeCrunchydataV1
	// contains filtered or unexported fields
}

FakePgpolicies implements PgpolicyInterface

func (*FakePgpolicies) Create

func (c *FakePgpolicies) Create(ctx context.Context, pgpolicy *crunchydatacomv1.Pgpolicy, opts v1.CreateOptions) (result *crunchydatacomv1.Pgpolicy, err error)

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

func (*FakePgpolicies) Delete

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

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

func (*FakePgpolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePgpolicies) Get

func (c *FakePgpolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.Pgpolicy, err error)

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

func (*FakePgpolicies) List

func (c *FakePgpolicies) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PgpolicyList, err error)

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

func (*FakePgpolicies) Patch

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

Patch applies the patch and returns the patched pgpolicy.

func (*FakePgpolicies) Update

func (c *FakePgpolicies) Update(ctx context.Context, pgpolicy *crunchydatacomv1.Pgpolicy, opts v1.UpdateOptions) (result *crunchydatacomv1.Pgpolicy, err error)

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

func (*FakePgpolicies) UpdateStatus

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

func (*FakePgpolicies) Watch

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

type FakePgreplicas

type FakePgreplicas struct {
	Fake *FakeCrunchydataV1
	// contains filtered or unexported fields
}

FakePgreplicas implements PgreplicaInterface

func (*FakePgreplicas) Create

func (c *FakePgreplicas) Create(ctx context.Context, pgreplica *crunchydatacomv1.Pgreplica, opts v1.CreateOptions) (result *crunchydatacomv1.Pgreplica, err error)

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

func (*FakePgreplicas) Delete

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

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

func (*FakePgreplicas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePgreplicas) Get

func (c *FakePgreplicas) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.Pgreplica, err error)

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

func (*FakePgreplicas) List

func (c *FakePgreplicas) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PgreplicaList, err error)

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

func (*FakePgreplicas) Patch

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

Patch applies the patch and returns the patched pgreplica.

func (*FakePgreplicas) Update

func (c *FakePgreplicas) Update(ctx context.Context, pgreplica *crunchydatacomv1.Pgreplica, opts v1.UpdateOptions) (result *crunchydatacomv1.Pgreplica, err error)

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

func (*FakePgreplicas) UpdateStatus

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

func (*FakePgreplicas) Watch

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

type FakePgtasks

type FakePgtasks struct {
	Fake *FakeCrunchydataV1
	// contains filtered or unexported fields
}

FakePgtasks implements PgtaskInterface

func (*FakePgtasks) Create

func (c *FakePgtasks) Create(ctx context.Context, pgtask *crunchydatacomv1.Pgtask, opts v1.CreateOptions) (result *crunchydatacomv1.Pgtask, err error)

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

func (*FakePgtasks) Delete

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

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

func (*FakePgtasks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePgtasks) Get

func (c *FakePgtasks) Get(ctx context.Context, name string, options v1.GetOptions) (result *crunchydatacomv1.Pgtask, err error)

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

func (*FakePgtasks) List

func (c *FakePgtasks) List(ctx context.Context, opts v1.ListOptions) (result *crunchydatacomv1.PgtaskList, err error)

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

func (*FakePgtasks) Patch

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

Patch applies the patch and returns the patched pgtask.

func (*FakePgtasks) Update

func (c *FakePgtasks) Update(ctx context.Context, pgtask *crunchydatacomv1.Pgtask, opts v1.UpdateOptions) (result *crunchydatacomv1.Pgtask, err error)

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

func (*FakePgtasks) UpdateStatus

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

func (*FakePgtasks) Watch

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

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

Jump to

Keyboard shortcuts

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